/** * 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 { MERKLE_DISTRIBUTOR_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const CLOSE_DISTRIBUTOR_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly tokenVault: 1; readonly admin: 2; readonly destinationTokenAccount: 3; readonly tokenProgram: 4; }; export type CloseDistributorInstructionAccountName = keyof typeof CLOSE_DISTRIBUTOR_INSTRUCTION_ACCOUNTS; export declare const CLOSE_DISTRIBUTOR_DISCRIMINATOR: Uint8Array; export declare function getCloseDistributorDiscriminatorBytes(): ReadonlyUint8Array; export type CloseDistributorInstruction = string, TAccountTokenVault extends string | AccountMeta = string, TAccountAdmin extends string | AccountMeta = string, TAccountDestinationTokenAccount extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountDistributor extends string ? WritableAccount : TAccountDistributor, TAccountTokenVault extends string ? WritableAccount : TAccountTokenVault, TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountDestinationTokenAccount extends string ? WritableAccount : TAccountDestinationTokenAccount, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type CloseDistributorInstructionData = { discriminator: ReadonlyUint8Array; }; export type CloseDistributorInstructionDataArgs = {}; export declare function getCloseDistributorInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseDistributorInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseDistributorInstructionDataCodec(): FixedSizeCodec; export type CloseDistributorInput = { /** [MerkleDistributor]. */ distributor: Address; /** Clawback receiver token account */ tokenVault: Address; /** * Admin wallet, responsible for creating the distributor and paying for the transaction. * Also has the authority to set the clawback receiver and change itself. */ admin: TransactionSigner; /** account receive token back */ destinationTokenAccount: Address; /** The [Token] program. */ tokenProgram?: Address; }; export declare function getCloseDistributorInstruction(input: CloseDistributorInput, config?: { programAddress?: TProgramAddress; }): CloseDistributorInstruction; export type ParsedCloseDistributorInstruction = { programAddress: Address; accounts: { /** [MerkleDistributor]. */ distributor: TAccountMetas[0]; /** Clawback receiver token account */ tokenVault: TAccountMetas[1]; /** * Admin wallet, responsible for creating the distributor and paying for the transaction. * Also has the authority to set the clawback receiver and change itself. */ admin: TAccountMetas[2]; /** account receive token back */ destinationTokenAccount: TAccountMetas[3]; /** The [Token] program. */ tokenProgram: TAccountMetas[4]; }; data: CloseDistributorInstructionData; }; export declare function parseCloseDistributorInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseDistributorInstruction; //# sourceMappingURL=closeDistributor.d.ts.map