/** * 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_REMOVE_LIQUIDITY_AMOUNT_AND_FEE_DISCRIMINATOR: Uint8Array; export declare function getGetRemoveLiquidityAmountAndFeeDiscriminatorBytes(): ReadonlyUint8Array; export type GetRemoveLiquidityAmountAndFeeInstruction = 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 GetRemoveLiquidityAmountAndFeeInstructionData = { discriminator: ReadonlyUint8Array; lpAmountIn: bigint; }; export type GetRemoveLiquidityAmountAndFeeInstructionDataArgs = { lpAmountIn: number | bigint; }; export declare function getGetRemoveLiquidityAmountAndFeeInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetRemoveLiquidityAmountAndFeeInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetRemoveLiquidityAmountAndFeeInstructionDataCodec(): FixedSizeCodec; export type GetRemoveLiquidityAmountAndFeeInput = { perpetuals: Address; pool: Address; custody: Address; custodyOracleAccount: Address; lpTokenMint: Address; lpAmountIn: GetRemoveLiquidityAmountAndFeeInstructionDataArgs["lpAmountIn"]; }; export declare function getGetRemoveLiquidityAmountAndFeeInstruction(input: GetRemoveLiquidityAmountAndFeeInput, config?: { programAddress?: TProgramAddress; }): GetRemoveLiquidityAmountAndFeeInstruction; export type ParsedGetRemoveLiquidityAmountAndFeeInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; custody: TAccountMetas[2]; custodyOracleAccount: TAccountMetas[3]; lpTokenMint: TAccountMetas[4]; }; data: GetRemoveLiquidityAmountAndFeeInstructionData; }; export declare function parseGetRemoveLiquidityAmountAndFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetRemoveLiquidityAmountAndFeeInstruction; //# sourceMappingURL=getRemoveLiquidityAmountAndFee.d.ts.map