/** * 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 ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { MERKLE_DISTRIBUTOR_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const NEW_CLAIM_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly claimStatus: 1; readonly from: 2; readonly to: 3; readonly claimant: 4; readonly tokenProgram: 5; readonly systemProgram: 6; }; export type NewClaimInstructionAccountName = keyof typeof NEW_CLAIM_INSTRUCTION_ACCOUNTS; export declare const NEW_CLAIM_DISCRIMINATOR: Uint8Array; export declare function getNewClaimDiscriminatorBytes(): ReadonlyUint8Array; export type NewClaimInstruction = string, TAccountClaimStatus extends string | AccountMeta = string, TAccountFrom extends string | AccountMeta = string, TAccountTo extends string | AccountMeta = string, TAccountClaimant extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountDistributor extends string ? WritableAccount : TAccountDistributor, TAccountClaimStatus extends string ? WritableAccount : TAccountClaimStatus, TAccountFrom extends string ? WritableAccount : TAccountFrom, TAccountTo extends string ? WritableAccount : TAccountTo, TAccountClaimant extends string ? WritableSignerAccount & AccountSignerMeta : TAccountClaimant, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type NewClaimInstructionData = { discriminator: ReadonlyUint8Array; amountUnlocked: bigint; amountLocked: bigint; proof: Array; }; export type NewClaimInstructionDataArgs = { amountUnlocked: number | bigint; amountLocked: number | bigint; proof: Array; }; export declare function getNewClaimInstructionDataEncoder(): Encoder; export declare function getNewClaimInstructionDataDecoder(): Decoder; export declare function getNewClaimInstructionDataCodec(): Codec; export type NewClaimInput = { /** The [MerkleDistributor]. */ distributor: Address; /** Claim status PDA */ claimStatus: Address; /** Distributor ATA containing the tokens to distribute. */ from: Address; /** Account to send the claimed tokens to. */ to: Address; /** Who is claiming the tokens. */ claimant: TransactionSigner; /** SPL [Token] program. */ tokenProgram?: Address; /** The [System] program. */ systemProgram?: Address; amountUnlocked: NewClaimInstructionDataArgs["amountUnlocked"]; amountLocked: NewClaimInstructionDataArgs["amountLocked"]; proof: NewClaimInstructionDataArgs["proof"]; }; export declare function getNewClaimInstruction(input: NewClaimInput, config?: { programAddress?: TProgramAddress; }): NewClaimInstruction; export type ParsedNewClaimInstruction = { programAddress: Address; accounts: { /** The [MerkleDistributor]. */ distributor: TAccountMetas[0]; /** Claim status PDA */ claimStatus: TAccountMetas[1]; /** Distributor ATA containing the tokens to distribute. */ from: TAccountMetas[2]; /** Account to send the claimed tokens to. */ to: TAccountMetas[3]; /** Who is claiming the tokens. */ claimant: TAccountMetas[4]; /** SPL [Token] program. */ tokenProgram: TAccountMetas[5]; /** The [System] program. */ systemProgram: TAccountMetas[6]; }; data: NewClaimInstructionData; }; export declare function parseNewClaimInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedNewClaimInstruction; //# sourceMappingURL=newClaim.d.ts.map