/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; export declare const BURN_DISCRIMINATOR: Uint8Array; export declare function getBurnDiscriminatorBytes(): ReadonlyUint8Array; export type BurnInstruction = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV', TAccountCompressionProgram extends string | AccountMeta = 'cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountTreeConfig extends string ? ReadonlyAccount : TAccountTreeConfig, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type BurnInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; }; export type BurnInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; }; export declare function getBurnInstructionDataEncoder(): FixedSizeEncoder; export declare function getBurnInstructionDataDecoder(): FixedSizeDecoder; export declare function getBurnInstructionDataCodec(): FixedSizeCodec; export type BurnAsyncInput = { treeConfig?: Address; leafOwner: Address | TransactionSigner; leafDelegate?: Address | TransactionSigner; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: BurnInstructionDataArgs['root']; dataHash: BurnInstructionDataArgs['dataHash']; creatorHash: BurnInstructionDataArgs['creatorHash']; nonce: BurnInstructionDataArgs['nonce']; index: BurnInstructionDataArgs['index']; proof?: Array
; }; export declare function getBurnInstructionAsync(input: BurnAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafOwner, (typeof input)['leafDelegate'] extends TransactionSigner ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafDelegate, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>>; export type BurnInput = { treeConfig: Address; leafOwner: Address | TransactionSigner; leafDelegate?: Address | TransactionSigner; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: BurnInstructionDataArgs['root']; dataHash: BurnInstructionDataArgs['dataHash']; creatorHash: BurnInstructionDataArgs['creatorHash']; nonce: BurnInstructionDataArgs['nonce']; index: BurnInstructionDataArgs['index']; proof?: Array
; }; export declare function getBurnInstruction(input: BurnInput, config?: { programAddress?: TProgramAddress; }): BurnInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafOwner, (typeof input)['leafDelegate'] extends TransactionSigner ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafDelegate, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>; export type ParsedBurnInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; leafDelegate: TAccountMetas[2]; merkleTree: TAccountMetas[3]; logWrapper: TAccountMetas[4]; compressionProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: BurnInstructionData; }; export declare function parseBurnInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedBurnInstruction; //# sourceMappingURL=burn.d.ts.map