Type Alias DecreaseLiquidityV2Instruction<TProgram, TAccountWhirlpool, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram, TAccountPositionAuthority, TAccountPosition, TAccountPositionTokenAccount, TAccountTokenMintA, TAccountTokenMintB, TAccountTokenOwnerAccountA, TAccountTokenOwnerAccountB, TAccountTokenVaultA, TAccountTokenVaultB, TAccountTickArrayLower, TAccountTickArrayUpper, TRemainingAccounts>

DecreaseLiquidityV2Instruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountWhirlpool extends string
            ? WritableAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountTokenProgramA extends string
            ? ReadonlyAccount<TAccountTokenProgramA>
            : TAccountTokenProgramA,
        TAccountTokenProgramB extends string
            ? ReadonlyAccount<TAccountTokenProgramB>
            : TAccountTokenProgramB,
        TAccountMemoProgram extends string
            ? ReadonlyAccount<TAccountMemoProgram>
            : TAccountMemoProgram,
        TAccountPositionAuthority extends string
            ? ReadonlySignerAccount<TAccountPositionAuthority> & IAccountSignerMeta<
                TAccountPositionAuthority,
            >
            : TAccountPositionAuthority,
        TAccountPosition extends string
            ? WritableAccount<TAccountPosition>
            : TAccountPosition,
        TAccountPositionTokenAccount extends string
            ? ReadonlyAccount<TAccountPositionTokenAccount>
            : TAccountPositionTokenAccount,
        TAccountTokenMintA extends string
            ? ReadonlyAccount<TAccountTokenMintA>
            : TAccountTokenMintA,
        TAccountTokenMintB extends string
            ? ReadonlyAccount<TAccountTokenMintB>
            : TAccountTokenMintB,
        TAccountTokenOwnerAccountA extends string
            ? WritableAccount<TAccountTokenOwnerAccountA>
            : TAccountTokenOwnerAccountA,
        TAccountTokenOwnerAccountB extends string
            ? WritableAccount<TAccountTokenOwnerAccountB>
            : TAccountTokenOwnerAccountB,
        TAccountTokenVaultA extends string
            ? WritableAccount<TAccountTokenVaultA>
            : TAccountTokenVaultA,
        TAccountTokenVaultB extends string
            ? WritableAccount<TAccountTokenVaultB>
            : TAccountTokenVaultB,
        TAccountTickArrayLower extends string
            ? WritableAccount<TAccountTickArrayLower>
            : TAccountTickArrayLower,
        TAccountTickArrayUpper extends string
            ? WritableAccount<TAccountTickArrayUpper>
            : TAccountTickArrayUpper,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountTokenProgramA extends string | IAccountMeta<string> = string
  • TAccountTokenProgramB extends string | IAccountMeta<string> = string
  • TAccountMemoProgram extends string | IAccountMeta<string> = string
  • TAccountPositionAuthority extends string | IAccountMeta<string> = string
  • TAccountPosition extends string | IAccountMeta<string> = string
  • TAccountPositionTokenAccount extends string | IAccountMeta<string> = string
  • TAccountTokenMintA extends string | IAccountMeta<string> = string
  • TAccountTokenMintB extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountA extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountB extends string | IAccountMeta<string> = string
  • TAccountTokenVaultA extends string | IAccountMeta<string> = string
  • TAccountTokenVaultB extends string | IAccountMeta<string> = string
  • TAccountTickArrayLower extends string | IAccountMeta<string> = string
  • TAccountTickArrayUpper extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []