UNPKG

@superstateinc/allowlist

Version:

TypeScript library for interacting with the Superstate Allowlist program on Solana

25 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AllowlistInstruction = exports.SYSTEM_PROGRAM_ID = exports.TOKEN_2022_PROGRAM_ID = exports.ADMIN_SEED_PREFIX = exports.PRIVATE_ALLOWED_ACCOUNT_SEED_PREFIX = exports.PUBLIC_ALLOWED_ACCOUNT_SEED_PREFIX = exports.PRIVATE_ALLOWLIST_PREFIX = exports.ALLOWLIST_PROGRAM_SEED_PREFIX = void 0; const web3_js_1 = require("@solana/web3.js"); /** * Seed prefixes used for PDA derivation */ exports.ALLOWLIST_PROGRAM_SEED_PREFIX = 'allowlist_program'; exports.PRIVATE_ALLOWLIST_PREFIX = 'private_allowlist'; exports.PUBLIC_ALLOWED_ACCOUNT_SEED_PREFIX = 'public_allowed_account'; exports.PRIVATE_ALLOWED_ACCOUNT_SEED_PREFIX = 'private_allowed_account'; exports.ADMIN_SEED_PREFIX = 'admin_authority'; /** * Standard Solana program IDs */ exports.TOKEN_2022_PROGRAM_ID = new web3_js_1.PublicKey('TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb'); exports.SYSTEM_PROGRAM_ID = new web3_js_1.PublicKey('11111111111111111111111111111111'); /** * Allowlist instruction discriminants */ var AllowlistInstruction; (function (AllowlistInstruction) { AllowlistInstruction[AllowlistInstruction["Thaw"] = 4] = "Thaw"; })(AllowlistInstruction || (exports.AllowlistInstruction = AllowlistInstruction = {})); //# sourceMappingURL=constants.js.map