/** * 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_PROTOCOL_FEES_V2_DISCRIMINATOR: ReadonlyUint8Array; export declare function getCollectProtocolFeesV2DiscriminatorBytes(): ReadonlyUint8Array; export type CollectProtocolFeesV2Instruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpoolsConfig extends string ? ReadonlyAccount : TAccountWhirlpoolsConfig, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountCollectProtocolFeesAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCollectProtocolFeesAuthority, TAccountTokenMintA extends string ? ReadonlyAccount : TAccountTokenMintA, TAccountTokenMintB extends string ? ReadonlyAccount : TAccountTokenMintB, TAccountTokenVaultA extends string ? WritableAccount : TAccountTokenVaultA, TAccountTokenVaultB extends string ? WritableAccount : TAccountTokenVaultB, TAccountTokenDestinationA extends string ? WritableAccount : TAccountTokenDestinationA, TAccountTokenDestinationB extends string ? WritableAccount : TAccountTokenDestinationB, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, ...TRemainingAccounts ]>; export interface CollectProtocolFeesV2InstructionData { discriminator: ReadonlyUint8Array; remainingAccountsInfo: Option; } export interface CollectProtocolFeesV2InstructionDataArgs { remainingAccountsInfo: OptionOrNullable; } export declare function getCollectProtocolFeesV2InstructionDataEncoder(): Encoder; export declare function getCollectProtocolFeesV2InstructionDataDecoder(): Decoder; export declare function getCollectProtocolFeesV2InstructionDataCodec(): Codec; export interface CollectProtocolFeesV2Input { whirlpoolsConfig: Address; whirlpool: Address; collectProtocolFeesAuthority: TransactionSigner; tokenMintA: Address; tokenMintB: Address; tokenVaultA: Address; tokenVaultB: Address; tokenDestinationA: Address; tokenDestinationB: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram?: Address; remainingAccountsInfo: CollectProtocolFeesV2InstructionDataArgs["remainingAccountsInfo"]; } export declare function getCollectProtocolFeesV2Instruction(input: CollectProtocolFeesV2Input, config?: { programAddress?: TProgramAddress; }): CollectProtocolFeesV2Instruction; export interface ParsedCollectProtocolFeesV2Instruction { programAddress: Address; accounts: { whirlpoolsConfig: TAccountMetas[0]; whirlpool: TAccountMetas[1]; collectProtocolFeesAuthority: TAccountMetas[2]; tokenMintA: TAccountMetas[3]; tokenMintB: TAccountMetas[4]; tokenVaultA: TAccountMetas[5]; tokenVaultB: TAccountMetas[6]; tokenDestinationA: TAccountMetas[7]; tokenDestinationB: TAccountMetas[8]; tokenProgramA: TAccountMetas[9]; tokenProgramB: TAccountMetas[10]; memoProgram: TAccountMetas[11]; }; data: CollectProtocolFeesV2InstructionData; } export declare function parseCollectProtocolFeesV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectProtocolFeesV2Instruction; //# sourceMappingURL=collectProtocolFeesV2.d.ts.map