/** * 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, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, Option, OptionOrNullable, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; import type { RemainingAccountsInfo, RemainingAccountsInfoArgs } from "../types/index.js"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const COLLECT_REWARD_V2_DISCRIMINATOR: ReadonlyUint8Array; export declare function getCollectRewardV2DiscriminatorBytes(): ReadonlyUint8Array; export type CollectRewardV2Instruction = 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, TAccountRewardMint extends string ? ReadonlyAccount : TAccountRewardMint, TAccountRewardVault extends string ? WritableAccount : TAccountRewardVault, TAccountRewardTokenProgram extends string ? ReadonlyAccount : TAccountRewardTokenProgram, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; export interface CollectRewardV2InstructionData { discriminator: ReadonlyUint8Array; rewardIndex: number; remainingAccountsInfo: Option; } export interface CollectRewardV2InstructionDataArgs { rewardIndex: number; remainingAccountsInfo: OptionOrNullable; } export declare function getCollectRewardV2InstructionDataEncoder(): Encoder; export declare function getCollectRewardV2InstructionDataDecoder(): Decoder; export declare function getCollectRewardV2InstructionDataCodec(): Codec; export interface CollectRewardV2Input { whirlpool: Address; positionAuthority: TransactionSigner; position: Address; positionTokenAccount: Address; rewardOwnerAccount: Address; rewardMint: Address; rewardVault: Address; rewardTokenProgram?: Address; memoProgram?: Address; rewardIndex: CollectRewardV2InstructionDataArgs["rewardIndex"]; remainingAccountsInfo: CollectRewardV2InstructionDataArgs["remainingAccountsInfo"]; } export declare function getCollectRewardV2Instruction(input: CollectRewardV2Input, config?: { programAddress?: TProgramAddress; }): CollectRewardV2Instruction; export interface ParsedCollectRewardV2Instruction { programAddress: Address; accounts: { whirlpool: TAccountMetas[0]; positionAuthority: TAccountMetas[1]; position: TAccountMetas[2]; positionTokenAccount: TAccountMetas[3]; rewardOwnerAccount: TAccountMetas[4]; rewardMint: TAccountMetas[5]; rewardVault: TAccountMetas[6]; rewardTokenProgram: TAccountMetas[7]; memoProgram: TAccountMetas[8]; }; data: CollectRewardV2InstructionData; } export declare function parseCollectRewardV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectRewardV2Instruction; //# sourceMappingURL=collectRewardV2.d.ts.map