/** * 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 TRANSFER_DISCRIMINATOR: Uint8Array; export declare function getTransferDiscriminatorBytes(): ReadonlyUint8Array; export type TransferInstruction = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountNewLeafOwner 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, TAccountNewLeafOwner extends string ? ReadonlyAccount : TAccountNewLeafOwner, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type TransferInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; }; export type TransferInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; }; export declare function getTransferInstructionDataEncoder(): FixedSizeEncoder; export declare function getTransferInstructionDataDecoder(): FixedSizeDecoder; export declare function getTransferInstructionDataCodec(): FixedSizeCodec; export type TransferAsyncInput = { treeConfig?: Address; leafOwner: Address | TransactionSigner; leafDelegate?: Address | TransactionSigner; newLeafOwner: Address; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: TransferInstructionDataArgs['root']; dataHash: TransferInstructionDataArgs['dataHash']; creatorHash: TransferInstructionDataArgs['creatorHash']; nonce: TransferInstructionDataArgs['nonce']; index: TransferInstructionDataArgs['index']; proof?: Array
; }; export declare function getTransferInstructionAsync(input: TransferAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafOwner, (typeof input)['leafDelegate'] extends TransactionSigner ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafDelegate, TAccountNewLeafOwner, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>>; export type TransferInput = { treeConfig: Address; leafOwner: Address | TransactionSigner; leafDelegate?: Address | TransactionSigner; newLeafOwner: Address; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: TransferInstructionDataArgs['root']; dataHash: TransferInstructionDataArgs['dataHash']; creatorHash: TransferInstructionDataArgs['creatorHash']; nonce: TransferInstructionDataArgs['nonce']; index: TransferInstructionDataArgs['index']; proof?: Array
; }; export declare function getTransferInstruction(input: TransferInput, config?: { programAddress?: TProgramAddress; }): TransferInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafOwner, (typeof input)['leafDelegate'] extends TransactionSigner ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafDelegate, TAccountNewLeafOwner, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>; export type ParsedTransferInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; leafDelegate: TAccountMetas[2]; newLeafOwner: TAccountMetas[3]; merkleTree: TAccountMetas[4]; logWrapper: TAccountMetas[5]; compressionProgram: TAccountMetas[6]; systemProgram: TAccountMetas[7]; }; data: TransferInstructionData; }; export declare function parseTransferInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTransferInstruction; //# sourceMappingURL=transfer.d.ts.map