/** * 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 CLAIM_LOCKED_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly claimStatus: 1; readonly from: 2; readonly to: 3; readonly claimant: 4; readonly tokenProgram: 5; }; export type ClaimLockedInstructionAccountName = keyof typeof CLAIM_LOCKED_INSTRUCTION_ACCOUNTS; export declare const CLAIM_LOCKED_DISCRIMINATOR: Uint8Array; export declare function getClaimLockedDiscriminatorBytes(): ReadonlyUint8Array; export type ClaimLockedInstruction = 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", 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, ...TRemainingAccounts ]>; export type ClaimLockedInstructionData = { discriminator: ReadonlyUint8Array; }; export type ClaimLockedInstructionDataArgs = {}; export declare function getClaimLockedInstructionDataEncoder(): FixedSizeEncoder; export declare function getClaimLockedInstructionDataDecoder(): FixedSizeDecoder; export declare function getClaimLockedInstructionDataCodec(): FixedSizeCodec; export type ClaimLockedInput = { /** 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. * Claimant must sign the transaction and can only claim on behalf of themself */ to: Address; /** Who is claiming the tokens. */ claimant: TransactionSigner; /** SPL [Token] program. */ tokenProgram?: Address; }; export declare function getClaimLockedInstruction(input: ClaimLockedInput, config?: { programAddress?: TProgramAddress; }): ClaimLockedInstruction; export type ParsedClaimLockedInstruction = { 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. * Claimant must sign the transaction and can only claim on behalf of themself */ to: TAccountMetas[3]; /** Who is claiming the tokens. */ claimant: TAccountMetas[4]; /** SPL [Token] program. */ tokenProgram: TAccountMetas[5]; }; data: ClaimLockedInstructionData; }; export declare function parseClaimLockedInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClaimLockedInstruction; //# sourceMappingURL=claimLocked.d.ts.map