UNPKG

@superstateinc/allowlist

Version:

TypeScript library for interacting with the Superstate Allowlist program on Solana

36 lines 1.47 kB
import { PublicKey } from '@solana/web3.js'; /** * Derives the allowlist program PDA * @param programId The allowlist program ID * @returns [PDA address, bump seed] */ export declare function getAllowlistProgramPda(programId: PublicKey): [PublicKey, number]; /** * Derives the private allowlist PDA for a specific mint * @param mint The token mint * @param programId The allowlist program ID * @returns [PDA address, bump seed] */ export declare function getPrivateAllowlistPda(mint: PublicKey, programId: PublicKey): [PublicKey, number]; /** * Derives the public allowed account PDA for a user * @param userAccount The user's wallet address * @param programId The allowlist program ID * @returns [PDA address, bump seed] */ export declare function getPublicAllowedAccountPda(userAccount: PublicKey, programId: PublicKey): [PublicKey, number]; /** * Derives the private allowed account PDA for a user and specific mint * @param userAccount The user's wallet address * @param mint The token mint * @param programId The allowlist program ID * @returns [PDA address, bump seed] */ export declare function getPrivateAllowedAccountPda(userAccount: PublicKey, mint: PublicKey, programId: PublicKey): [PublicKey, number]; /** * Derives the admin authority PDA * @param programId The allowlist program ID * @returns [PDA address, bump seed] */ export declare function getAdminPda(programId: PublicKey): [PublicKey, number]; //# sourceMappingURL=pda.d.ts.map