/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; export declare const REDEEM_DISCRIMINATOR: Uint8Array; export declare function getRedeemDiscriminatorBytes(): ReadonlyUint8Array; export type RedeemInstruction = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountVoucher 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 ? WritableSignerAccount & AccountSignerMeta : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountVoucher extends string ? WritableAccount : TAccountVoucher, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type RedeemInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; }; export type RedeemInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; }; export declare function getRedeemInstructionDataEncoder(): FixedSizeEncoder; export declare function getRedeemInstructionDataDecoder(): FixedSizeDecoder; export declare function getRedeemInstructionDataCodec(): FixedSizeCodec; export type RedeemAsyncInput = { treeConfig?: Address; leafOwner: TransactionSigner; leafDelegate?: Address; merkleTree: Address; voucher?: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: RedeemInstructionDataArgs['root']; dataHash: RedeemInstructionDataArgs['dataHash']; creatorHash: RedeemInstructionDataArgs['creatorHash']; nonce: RedeemInstructionDataArgs['nonce']; index: RedeemInstructionDataArgs['index']; proof?: Array
; }; export declare function getRedeemInstructionAsync(input: RedeemAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type RedeemInput = { treeConfig: Address; leafOwner: TransactionSigner; leafDelegate?: Address; merkleTree: Address; voucher: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: RedeemInstructionDataArgs['root']; dataHash: RedeemInstructionDataArgs['dataHash']; creatorHash: RedeemInstructionDataArgs['creatorHash']; nonce: RedeemInstructionDataArgs['nonce']; index: RedeemInstructionDataArgs['index']; proof?: Array
; }; export declare function getRedeemInstruction(input: RedeemInput, config?: { programAddress?: TProgramAddress; }): RedeemInstruction; export type ParsedRedeemInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; leafDelegate: TAccountMetas[2]; merkleTree: TAccountMetas[3]; voucher: TAccountMetas[4]; logWrapper: TAccountMetas[5]; compressionProgram: TAccountMetas[6]; systemProgram: TAccountMetas[7]; }; data: RedeemInstructionData; }; export declare function parseRedeemInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRedeemInstruction; //# sourceMappingURL=redeem.d.ts.map