/** * 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, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const COLLECT_REWARD_DISCRIMINATOR: ReadonlyUint8Array; export declare function getCollectRewardDiscriminatorBytes(): ReadonlyUint8Array; export type CollectRewardInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpool extends string ? ReadonlyAccount : TAccountWhirlpool, TAccountPositionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPositionAuthority, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountPositionTokenAccount extends string ? ReadonlyAccount : TAccountPositionTokenAccount, TAccountRewardOwnerAccount extends string ? WritableAccount : TAccountRewardOwnerAccount, TAccountRewardVault extends string ? WritableAccount : TAccountRewardVault, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export interface CollectRewardInstructionData { discriminator: ReadonlyUint8Array; rewardIndex: number; } export interface CollectRewardInstructionDataArgs { rewardIndex: number; } export declare function getCollectRewardInstructionDataEncoder(): FixedSizeEncoder; export declare function getCollectRewardInstructionDataDecoder(): FixedSizeDecoder; export declare function getCollectRewardInstructionDataCodec(): FixedSizeCodec; export interface CollectRewardInput { whirlpool: Address; positionAuthority: TransactionSigner; position: Address; positionTokenAccount: Address; rewardOwnerAccount: Address; rewardVault: Address; tokenProgram?: Address; rewardIndex: CollectRewardInstructionDataArgs["rewardIndex"]; } export declare function getCollectRewardInstruction(input: CollectRewardInput, config?: { programAddress?: TProgramAddress; }): CollectRewardInstruction; export interface ParsedCollectRewardInstruction { programAddress: Address; accounts: { whirlpool: TAccountMetas[0]; positionAuthority: TAccountMetas[1]; position: TAccountMetas[2]; positionTokenAccount: TAccountMetas[3]; rewardOwnerAccount: TAccountMetas[4]; rewardVault: TAccountMetas[5]; tokenProgram: TAccountMetas[6]; }; data: CollectRewardInstructionData; } export declare function parseCollectRewardInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectRewardInstruction; //# sourceMappingURL=collectReward.d.ts.map