/** * 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_V2_DISCRIMINATOR: Uint8Array; export declare function getCreateTreeConfigV2DiscriminatorBytes(): ReadonlyUint8Array; export type CreateTreeConfigV2Instruction = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountTreeCreator extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = 'mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3', TAccountCompressionProgram extends string | AccountMeta = 'mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW', 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 CreateTreeConfigV2InstructionData = { discriminator: ReadonlyUint8Array; maxDepth: number; maxBufferSize: number; public: Option; }; export type CreateTreeConfigV2InstructionDataArgs = { maxDepth: number; maxBufferSize: number; public?: OptionOrNullable; }; export declare function getCreateTreeConfigV2InstructionDataEncoder(): Encoder; export declare function getCreateTreeConfigV2InstructionDataDecoder(): Decoder; export declare function getCreateTreeConfigV2InstructionDataCodec(): Codec; export type CreateTreeConfigV2AsyncInput = { treeConfig?: Address; merkleTree: Address; payer: TransactionSigner; /** Optional tree creator, defaults to `payer` */ treeCreator?: TransactionSigner; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; maxDepth: CreateTreeConfigV2InstructionDataArgs['maxDepth']; maxBufferSize: CreateTreeConfigV2InstructionDataArgs['maxBufferSize']; public?: CreateTreeConfigV2InstructionDataArgs['public']; }; export declare function getCreateTreeConfigV2InstructionAsync(input: CreateTreeConfigV2AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise & InstructionWithByteDelta>; export type CreateTreeConfigV2Input = { treeConfig: Address; merkleTree: Address; payer: TransactionSigner; /** Optional tree creator, defaults to `payer` */ treeCreator?: TransactionSigner; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; maxDepth: CreateTreeConfigV2InstructionDataArgs['maxDepth']; maxBufferSize: CreateTreeConfigV2InstructionDataArgs['maxBufferSize']; public?: CreateTreeConfigV2InstructionDataArgs['public']; }; export declare function getCreateTreeConfigV2Instruction(input: CreateTreeConfigV2Input, config?: { programAddress?: TProgramAddress; }): CreateTreeConfigV2Instruction & InstructionWithByteDelta; export type ParsedCreateTreeConfigV2Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; merkleTree: TAccountMetas[1]; payer: TAccountMetas[2]; /** Optional tree creator, defaults to `payer` */ treeCreator?: TAccountMetas[3] | undefined; logWrapper: TAccountMetas[4]; compressionProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CreateTreeConfigV2InstructionData; }; export declare function parseCreateTreeConfigV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateTreeConfigV2Instruction; //# sourceMappingURL=createTreeConfigV2.d.ts.map