/** * 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_PROTOCOL_FEES_DISCRIMINATOR: ReadonlyUint8Array; export declare function getCollectProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array; export type CollectProtocolFeesInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpoolsConfig extends string ? ReadonlyAccount : TAccountWhirlpoolsConfig, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountCollectProtocolFeesAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCollectProtocolFeesAuthority, TAccountTokenVaultA extends string ? WritableAccount : TAccountTokenVaultA, TAccountTokenVaultB extends string ? WritableAccount : TAccountTokenVaultB, TAccountTokenDestinationA extends string ? WritableAccount : TAccountTokenDestinationA, TAccountTokenDestinationB extends string ? WritableAccount : TAccountTokenDestinationB, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export interface CollectProtocolFeesInstructionData { discriminator: ReadonlyUint8Array; } export type CollectProtocolFeesInstructionDataArgs = {}; export declare function getCollectProtocolFeesInstructionDataEncoder(): FixedSizeEncoder; export declare function getCollectProtocolFeesInstructionDataDecoder(): FixedSizeDecoder; export declare function getCollectProtocolFeesInstructionDataCodec(): FixedSizeCodec; export interface CollectProtocolFeesInput { whirlpoolsConfig: Address; whirlpool: Address; collectProtocolFeesAuthority: TransactionSigner; tokenVaultA: Address; tokenVaultB: Address; tokenDestinationA: Address; tokenDestinationB: Address; tokenProgram?: Address; } export declare function getCollectProtocolFeesInstruction(input: CollectProtocolFeesInput, config?: { programAddress?: TProgramAddress; }): CollectProtocolFeesInstruction; export interface ParsedCollectProtocolFeesInstruction { programAddress: Address; accounts: { whirlpoolsConfig: TAccountMetas[0]; whirlpool: TAccountMetas[1]; collectProtocolFeesAuthority: TAccountMetas[2]; tokenVaultA: TAccountMetas[3]; tokenVaultB: TAccountMetas[4]; tokenDestinationA: TAccountMetas[5]; tokenDestinationB: TAccountMetas[6]; tokenProgram: TAccountMetas[7]; }; data: CollectProtocolFeesInstructionData; } export declare function parseCollectProtocolFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCollectProtocolFeesInstruction; //# sourceMappingURL=collectProtocolFees.d.ts.map