/** * 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 SET_PROTOCOL_FEE_RATE_DISCRIMINATOR: ReadonlyUint8Array; export declare function getSetProtocolFeeRateDiscriminatorBytes(): ReadonlyUint8Array; export type SetProtocolFeeRateInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpoolsConfig extends string ? ReadonlyAccount : TAccountWhirlpoolsConfig, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountFeeAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountFeeAuthority, ...TRemainingAccounts ]>; export interface SetProtocolFeeRateInstructionData { discriminator: ReadonlyUint8Array; protocolFeeRate: number; } export interface SetProtocolFeeRateInstructionDataArgs { protocolFeeRate: number; } export declare function getSetProtocolFeeRateInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetProtocolFeeRateInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetProtocolFeeRateInstructionDataCodec(): FixedSizeCodec; export interface SetProtocolFeeRateInput { whirlpoolsConfig: Address; whirlpool: Address; feeAuthority: TransactionSigner; protocolFeeRate: SetProtocolFeeRateInstructionDataArgs["protocolFeeRate"]; } export declare function getSetProtocolFeeRateInstruction(input: SetProtocolFeeRateInput, config?: { programAddress?: TProgramAddress; }): SetProtocolFeeRateInstruction; export interface ParsedSetProtocolFeeRateInstruction { programAddress: Address; accounts: { whirlpoolsConfig: TAccountMetas[0]; whirlpool: TAccountMetas[1]; feeAuthority: TAccountMetas[2]; }; data: SetProtocolFeeRateInstructionData; } export declare function parseSetProtocolFeeRateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetProtocolFeeRateInstruction; //# sourceMappingURL=setProtocolFeeRate.d.ts.map