/** * 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 DELEGATE_DISCRIMINATOR: Uint8Array; export declare function getDelegateDiscriminatorBytes(): ReadonlyUint8Array; export type DelegateInstruction = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountPreviousLeafDelegate extends string | AccountMeta = string, TAccountNewLeafDelegate 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 ? ReadonlySignerAccount & AccountSignerMeta : TAccountLeafOwner, TAccountPreviousLeafDelegate extends string ? ReadonlyAccount : TAccountPreviousLeafDelegate, TAccountNewLeafDelegate extends string ? ReadonlyAccount : TAccountNewLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type DelegateInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; }; export type DelegateInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; }; export declare function getDelegateInstructionDataEncoder(): FixedSizeEncoder; export declare function getDelegateInstructionDataDecoder(): FixedSizeDecoder; export declare function getDelegateInstructionDataCodec(): FixedSizeCodec; export type DelegateAsyncInput = { treeConfig?: Address; leafOwner: TransactionSigner; previousLeafDelegate: Address; newLeafDelegate: Address; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: DelegateInstructionDataArgs['root']; dataHash: DelegateInstructionDataArgs['dataHash']; creatorHash: DelegateInstructionDataArgs['creatorHash']; nonce: DelegateInstructionDataArgs['nonce']; index: DelegateInstructionDataArgs['index']; proof?: Array
; }; export declare function getDelegateInstructionAsync(input: DelegateAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type DelegateInput = { treeConfig: Address; leafOwner: TransactionSigner; previousLeafDelegate: Address; newLeafDelegate: Address; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: DelegateInstructionDataArgs['root']; dataHash: DelegateInstructionDataArgs['dataHash']; creatorHash: DelegateInstructionDataArgs['creatorHash']; nonce: DelegateInstructionDataArgs['nonce']; index: DelegateInstructionDataArgs['index']; proof?: Array
; }; export declare function getDelegateInstruction(input: DelegateInput, config?: { programAddress?: TProgramAddress; }): DelegateInstruction; export type ParsedDelegateInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; previousLeafDelegate: TAccountMetas[2]; newLeafDelegate: TAccountMetas[3]; merkleTree: TAccountMetas[4]; logWrapper: TAccountMetas[5]; compressionProgram: TAccountMetas[6]; systemProgram: TAccountMetas[7]; }; data: DelegateInstructionData; }; export declare function parseDelegateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDelegateInstruction; //# sourceMappingURL=delegate.d.ts.map