/** * 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 { MERKLE_DISTRIBUTOR_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const CLAWBACK_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly from: 1; readonly to: 2; readonly claimant: 3; readonly systemProgram: 4; readonly tokenProgram: 5; }; export type ClawbackInstructionAccountName = keyof typeof CLAWBACK_INSTRUCTION_ACCOUNTS; export declare const CLAWBACK_DISCRIMINATOR: Uint8Array; export declare function getClawbackDiscriminatorBytes(): ReadonlyUint8Array; export type ClawbackInstruction = string, TAccountFrom extends string | AccountMeta = string, TAccountTo extends string | AccountMeta = string, TAccountClaimant extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountDistributor extends string ? WritableAccount : TAccountDistributor, TAccountFrom extends string ? WritableAccount : TAccountFrom, TAccountTo extends string ? WritableAccount : TAccountTo, TAccountClaimant extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountClaimant, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type ClawbackInstructionData = { discriminator: ReadonlyUint8Array; }; export type ClawbackInstructionDataArgs = {}; export declare function getClawbackInstructionDataEncoder(): FixedSizeEncoder; export declare function getClawbackInstructionDataDecoder(): FixedSizeDecoder; export declare function getClawbackInstructionDataCodec(): FixedSizeCodec; export type ClawbackInput = { /** The [MerkleDistributor]. */ distributor: Address; /** Distributor ATA containing the tokens to distribute. */ from: Address; /** The Clawback token account. */ to: Address; /** * Claimant account * Anyone can claw back the funds */ claimant: TransactionSigner; /** The [System] program. */ systemProgram?: Address; /** SPL [Token] program. */ tokenProgram?: Address; }; export declare function getClawbackInstruction(input: ClawbackInput, config?: { programAddress?: TProgramAddress; }): ClawbackInstruction; export type ParsedClawbackInstruction = { programAddress: Address; accounts: { /** The [MerkleDistributor]. */ distributor: TAccountMetas[0]; /** Distributor ATA containing the tokens to distribute. */ from: TAccountMetas[1]; /** The Clawback token account. */ to: TAccountMetas[2]; /** * Claimant account * Anyone can claw back the funds */ claimant: TAccountMetas[3]; /** The [System] program. */ systemProgram: TAccountMetas[4]; /** SPL [Token] program. */ tokenProgram: TAccountMetas[5]; }; data: ClawbackInstructionData; }; export declare function parseClawbackInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClawbackInstruction; //# sourceMappingURL=clawback.d.ts.map