UNPKG

solana-token-extension-boost

Version:

SDK for Solana Token Extensions with wallet adapter support

32 lines (31 loc) 1.41 kB
import { PublicKey } from '@solana/web3.js'; export declare const MemberPointerExtensionType = 21; /** * Create instruction to initialize member pointer for a token * @param mint - Mint address * @param memberMint - Mint address of the token that this token is a member of * @param programId - Token Extension Program ID * @returns Instruction to initialize member pointer */ export declare function createInitializeMemberPointerInstruction(mint: PublicKey, memberMint: PublicKey, programId?: PublicKey): any; /** * Class for managing member pointers in token groups */ export declare class MemberPointerExtension { /** * Create instruction to initialize member pointer for a token * @param mint - Mint address * @param memberMint - Mint address of the token that this token is a member of * @param programId - Token Extension Program ID * @returns Instruction to initialize member pointer */ static createInitializeMemberPointerInstruction(mint: PublicKey, memberMint: PublicKey, programId?: PublicKey): any; /** * Check if a token is a member of a token group * @param connection - Connection to Solana cluster * @param mint - Mint address of the token * @param groupMint - Mint address of the token group * @returns Promise<boolean> - True if token is a member of the group */ static isMemberOfGroup(): Promise<boolean>; }