/** * 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 INCREASE_LIQUIDITY_V2_DISCRIMINATOR: ReadonlyUint8Array; export declare function getIncreaseLiquidityV2DiscriminatorBytes(): ReadonlyUint8Array; export type IncreaseLiquidityV2Instruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount : TAccountMemoProgram, TAccountPositionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPositionAuthority, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountPositionTokenAccount extends string ? ReadonlyAccount : TAccountPositionTokenAccount, TAccountTokenMintA extends string ? ReadonlyAccount : TAccountTokenMintA, TAccountTokenMintB extends string ? ReadonlyAccount : TAccountTokenMintB, TAccountTokenOwnerAccountA extends string ? WritableAccount : TAccountTokenOwnerAccountA, TAccountTokenOwnerAccountB extends string ? WritableAccount : TAccountTokenOwnerAccountB, TAccountTokenVaultA extends string ? WritableAccount : TAccountTokenVaultA, TAccountTokenVaultB extends string ? WritableAccount : TAccountTokenVaultB, TAccountTickArrayLower extends string ? WritableAccount : TAccountTickArrayLower, TAccountTickArrayUpper extends string ? WritableAccount : TAccountTickArrayUpper, ...TRemainingAccounts ]>; export interface IncreaseLiquidityV2InstructionData { discriminator: ReadonlyUint8Array; liquidityAmount: bigint; tokenMaxA: bigint; tokenMaxB: bigint; remainingAccountsInfo: Option; } export interface IncreaseLiquidityV2InstructionDataArgs { liquidityAmount: number | bigint; tokenMaxA: number | bigint; tokenMaxB: number | bigint; remainingAccountsInfo: OptionOrNullable; } export declare function getIncreaseLiquidityV2InstructionDataEncoder(): Encoder; export declare function getIncreaseLiquidityV2InstructionDataDecoder(): Decoder; export declare function getIncreaseLiquidityV2InstructionDataCodec(): Codec; export interface IncreaseLiquidityV2Input { whirlpool: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram?: Address; positionAuthority: TransactionSigner; position: Address; positionTokenAccount: Address; tokenMintA: Address; tokenMintB: Address; tokenOwnerAccountA: Address; tokenOwnerAccountB: Address; tokenVaultA: Address; tokenVaultB: Address; tickArrayLower: Address; tickArrayUpper: Address; liquidityAmount: IncreaseLiquidityV2InstructionDataArgs["liquidityAmount"]; tokenMaxA: IncreaseLiquidityV2InstructionDataArgs["tokenMaxA"]; tokenMaxB: IncreaseLiquidityV2InstructionDataArgs["tokenMaxB"]; remainingAccountsInfo: IncreaseLiquidityV2InstructionDataArgs["remainingAccountsInfo"]; } export declare function getIncreaseLiquidityV2Instruction(input: IncreaseLiquidityV2Input, config?: { programAddress?: TProgramAddress; }): IncreaseLiquidityV2Instruction; export interface ParsedIncreaseLiquidityV2Instruction { programAddress: Address; accounts: { whirlpool: TAccountMetas[0]; tokenProgramA: TAccountMetas[1]; tokenProgramB: TAccountMetas[2]; memoProgram: TAccountMetas[3]; positionAuthority: TAccountMetas[4]; position: TAccountMetas[5]; positionTokenAccount: TAccountMetas[6]; tokenMintA: TAccountMetas[7]; tokenMintB: TAccountMetas[8]; tokenOwnerAccountA: TAccountMetas[9]; tokenOwnerAccountB: TAccountMetas[10]; tokenVaultA: TAccountMetas[11]; tokenVaultB: TAccountMetas[12]; tickArrayLower: TAccountMetas[13]; tickArrayUpper: TAccountMetas[14]; }; data: IncreaseLiquidityV2InstructionData; } export declare function parseIncreaseLiquidityV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedIncreaseLiquidityV2Instruction; //# sourceMappingURL=increaseLiquidityV2.d.ts.map