/** * 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'; import { type InstructionWithByteDelta } from '../shared'; export declare const CREATE_TREE_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getCreateTreeConfigDiscriminatorBytes(): ReadonlyUint8Array; export type CreateTreeConfigInstruction = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountTreeCreator 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 ? WritableAccount : TAccountTreeConfig, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountTreeCreator extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountTreeCreator, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateTreeConfigInstructionData = { discriminator: ReadonlyUint8Array; maxDepth: number; maxBufferSize: number; public: Option; }; export type CreateTreeConfigInstructionDataArgs = { maxDepth: number; maxBufferSize: number; public?: OptionOrNullable; }; export declare function getCreateTreeConfigInstructionDataEncoder(): Encoder; export declare function getCreateTreeConfigInstructionDataDecoder(): Decoder; export declare function getCreateTreeConfigInstructionDataCodec(): Codec; export type CreateTreeConfigAsyncInput = { treeConfig?: Address; merkleTree: Address; payer?: TransactionSigner; treeCreator: TransactionSigner; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; maxDepth: CreateTreeConfigInstructionDataArgs['maxDepth']; maxBufferSize: CreateTreeConfigInstructionDataArgs['maxBufferSize']; public?: CreateTreeConfigInstructionDataArgs['public']; }; export declare function getCreateTreeConfigInstructionAsync(input: CreateTreeConfigAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise & InstructionWithByteDelta>; export type CreateTreeConfigInput = { treeConfig: Address; merkleTree: Address; payer?: TransactionSigner; treeCreator: TransactionSigner; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; maxDepth: CreateTreeConfigInstructionDataArgs['maxDepth']; maxBufferSize: CreateTreeConfigInstructionDataArgs['maxBufferSize']; public?: CreateTreeConfigInstructionDataArgs['public']; }; export declare function getCreateTreeConfigInstruction(input: CreateTreeConfigInput, config?: { programAddress?: TProgramAddress; }): CreateTreeConfigInstruction & InstructionWithByteDelta; export type ParsedCreateTreeConfigInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; merkleTree: TAccountMetas[1]; payer: TAccountMetas[2]; treeCreator: TAccountMetas[3]; logWrapper: TAccountMetas[4]; compressionProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateTreeConfigInstructionData; }; export declare function parseCreateTreeConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateTreeConfigInstruction; //# sourceMappingURL=createTreeConfig.d.ts.map