/** * 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, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const GET_ADD_LIQUIDITY_AMOUNT_AND_FEE_DISCRIMINATOR: Uint8Array; export declare function getGetAddLiquidityAmountAndFeeDiscriminatorBytes(): ReadonlyUint8Array; export type GetAddLiquidityAmountAndFeeInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountCustodyOracleAccount extends string | AccountMeta = string, TAccountLpTokenMint extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountCustody extends string ? ReadonlyAccount : TAccountCustody, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, TAccountLpTokenMint extends string ? ReadonlyAccount : TAccountLpTokenMint, ...TRemainingAccounts ]>; export type GetAddLiquidityAmountAndFeeInstructionData = { discriminator: ReadonlyUint8Array; tokenAmountIn: bigint; }; export type GetAddLiquidityAmountAndFeeInstructionDataArgs = { tokenAmountIn: number | bigint; }; export declare function getGetAddLiquidityAmountAndFeeInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetAddLiquidityAmountAndFeeInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetAddLiquidityAmountAndFeeInstructionDataCodec(): FixedSizeCodec; export type GetAddLiquidityAmountAndFeeInput = { perpetuals: Address; pool: Address; custody: Address; custodyOracleAccount: Address; lpTokenMint: Address; tokenAmountIn: GetAddLiquidityAmountAndFeeInstructionDataArgs["tokenAmountIn"]; }; export declare function getGetAddLiquidityAmountAndFeeInstruction(input: GetAddLiquidityAmountAndFeeInput, config?: { programAddress?: TProgramAddress; }): GetAddLiquidityAmountAndFeeInstruction; export type ParsedGetAddLiquidityAmountAndFeeInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; custody: TAccountMetas[2]; custodyOracleAccount: TAccountMetas[3]; lpTokenMint: TAccountMetas[4]; }; data: GetAddLiquidityAmountAndFeeInstructionData; }; export declare function parseGetAddLiquidityAmountAndFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetAddLiquidityAmountAndFeeInstruction; //# sourceMappingURL=getAddLiquidityAmountAndFee.d.ts.map