UNPKG

@superstateinc/allowlist

Version:

TypeScript library for interacting with the Superstate Allowlist program on Solana

42 lines 1.07 kB
import { PublicKey } from '@solana/web3.js'; /** * Interface for the Admin account state */ export interface Admin { admin_authority: PublicKey; } /** * Interface for the PrivateAllowlist account state */ export interface PrivateAllowlist { mint: PublicKey; } /** * Interface for the PublicAllowedAccount account state */ export interface PublicAllowedAccount { owner: PublicKey; } /** * Interface for the PrivateAllowedAccount account state */ export interface PrivateAllowedAccount { owner: PublicKey; mint: PublicKey; } /** * Parameters for creating a thaw instruction */ export interface ThawInstructionParams { /** The allowlist program ID */ allowlistProgramId: PublicKey; /** The token mint to thaw */ mint: PublicKey; /** The owner of the user's token account */ userTokenAccountOwner: PublicKey; /** The user's token account to be thawed */ userTokenAccount: PublicKey; /** The SPL Token program ID (defaults to Token 2022) */ tokenProgramId?: PublicKey; } //# sourceMappingURL=types.d.ts.map