/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; export declare const BURN_V2_DISCRIMINATOR: Uint8Array; export declare function getBurnV2DiscriminatorBytes(): ReadonlyUint8Array; export type BurnV2Instruction = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountCoreCollection extends string | AccountMeta = string, TAccountMplCoreCpiSigner extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = 'mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3', TAccountCompressionProgram extends string | AccountMeta = 'mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW', TAccountMplCoreProgram extends string | AccountMeta = 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountTreeConfig extends string ? WritableAccount : TAccountTreeConfig, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountCoreCollection extends string ? WritableAccount : TAccountCoreCollection, TAccountMplCoreCpiSigner extends string ? ReadonlyAccount : TAccountMplCoreCpiSigner, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountMplCoreProgram extends string ? ReadonlyAccount : TAccountMplCoreProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type BurnV2InstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; assetDataHash: Option; flags: Option; nonce: bigint; index: number; }; export type BurnV2InstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; assetDataHash?: OptionOrNullable; flags?: OptionOrNullable; nonce: number | bigint; index: number; }; export declare function getBurnV2InstructionDataEncoder(): Encoder; export declare function getBurnV2InstructionDataDecoder(): Decoder; export declare function getBurnV2InstructionDataCodec(): Codec; export type BurnV2AsyncInput = { treeConfig?: Address; payer: TransactionSigner; /** * Optional authority, defaults to `payer`. Must be either * the leaf owner or collection collection permanent burn delegate. */ authority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; root: BurnV2InstructionDataArgs['root']; dataHash: BurnV2InstructionDataArgs['dataHash']; creatorHash: BurnV2InstructionDataArgs['creatorHash']; assetDataHash?: BurnV2InstructionDataArgs['assetDataHash']; flags?: BurnV2InstructionDataArgs['flags']; nonce: BurnV2InstructionDataArgs['nonce']; index: BurnV2InstructionDataArgs['index']; proof?: Array
; }; export declare function getBurnV2InstructionAsync(input: BurnV2AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type BurnV2Input = { treeConfig: Address; payer: TransactionSigner; /** * Optional authority, defaults to `payer`. Must be either * the leaf owner or collection collection permanent burn delegate. */ authority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; root: BurnV2InstructionDataArgs['root']; dataHash: BurnV2InstructionDataArgs['dataHash']; creatorHash: BurnV2InstructionDataArgs['creatorHash']; assetDataHash?: BurnV2InstructionDataArgs['assetDataHash']; flags?: BurnV2InstructionDataArgs['flags']; nonce: BurnV2InstructionDataArgs['nonce']; index: BurnV2InstructionDataArgs['index']; proof?: Array
; }; export declare function getBurnV2Instruction(input: BurnV2Input, config?: { programAddress?: TProgramAddress; }): BurnV2Instruction; export type ParsedBurnV2Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; payer: TAccountMetas[1]; /** * Optional authority, defaults to `payer`. Must be either * the leaf owner or collection collection permanent burn delegate. */ authority?: TAccountMetas[2] | undefined; leafOwner: TAccountMetas[3]; /** Defaults to `leaf_owner` */ leafDelegate?: TAccountMetas[4] | undefined; merkleTree: TAccountMetas[5]; coreCollection?: TAccountMetas[6] | undefined; mplCoreCpiSigner?: TAccountMetas[7] | undefined; logWrapper: TAccountMetas[8]; compressionProgram: TAccountMetas[9]; mplCoreProgram: TAccountMetas[10]; systemProgram: TAccountMetas[11]; }; data: BurnV2InstructionData; }; export declare function parseBurnV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedBurnV2Instruction; //# sourceMappingURL=burnV2.d.ts.map