Type Alias TwoHopSwapV2Input<TAccountWhirlpoolOne, TAccountWhirlpoolTwo, TAccountTokenMintInput, TAccountTokenMintIntermediate, TAccountTokenMintOutput, TAccountTokenProgramInput, TAccountTokenProgramIntermediate, TAccountTokenProgramOutput, TAccountTokenOwnerAccountInput, TAccountTokenVaultOneInput, TAccountTokenVaultOneIntermediate, TAccountTokenVaultTwoIntermediate, TAccountTokenVaultTwoOutput, TAccountTokenOwnerAccountOutput, TAccountTokenAuthority, TAccountTickArrayOne0, TAccountTickArrayOne1, TAccountTickArrayOne2, TAccountTickArrayTwo0, TAccountTickArrayTwo1, TAccountTickArrayTwo2, TAccountOracleOne, TAccountOracleTwo, TAccountMemoProgram>

TwoHopSwapV2Input: {
    amount: TwoHopSwapV2InstructionDataArgs["amount"];
    amountSpecifiedIsInput: TwoHopSwapV2InstructionDataArgs["amountSpecifiedIsInput"];
    aToBOne: TwoHopSwapV2InstructionDataArgs["aToBOne"];
    aToBTwo: TwoHopSwapV2InstructionDataArgs["aToBTwo"];
    memoProgram: Address<TAccountMemoProgram>;
    oracleOne: Address<TAccountOracleOne>;
    oracleTwo: Address<TAccountOracleTwo>;
    otherAmountThreshold: TwoHopSwapV2InstructionDataArgs["otherAmountThreshold"];
    remainingAccountsInfo: TwoHopSwapV2InstructionDataArgs["remainingAccountsInfo"];
    sqrtPriceLimitOne: TwoHopSwapV2InstructionDataArgs["sqrtPriceLimitOne"];
    sqrtPriceLimitTwo: TwoHopSwapV2InstructionDataArgs["sqrtPriceLimitTwo"];
    tickArrayOne0: Address<TAccountTickArrayOne0>;
    tickArrayOne1: Address<TAccountTickArrayOne1>;
    tickArrayOne2: Address<TAccountTickArrayOne2>;
    tickArrayTwo0: Address<TAccountTickArrayTwo0>;
    tickArrayTwo1: Address<TAccountTickArrayTwo1>;
    tickArrayTwo2: Address<TAccountTickArrayTwo2>;
    tokenAuthority: TransactionSigner<TAccountTokenAuthority>;
    tokenMintInput: Address<TAccountTokenMintInput>;
    tokenMintIntermediate: Address<TAccountTokenMintIntermediate>;
    tokenMintOutput: Address<TAccountTokenMintOutput>;
    tokenOwnerAccountInput: Address<TAccountTokenOwnerAccountInput>;
    tokenOwnerAccountOutput: Address<TAccountTokenOwnerAccountOutput>;
    tokenProgramInput: Address<TAccountTokenProgramInput>;
    tokenProgramIntermediate: Address<TAccountTokenProgramIntermediate>;
    tokenProgramOutput: Address<TAccountTokenProgramOutput>;
    tokenVaultOneInput: Address<TAccountTokenVaultOneInput>;
    tokenVaultOneIntermediate: Address<TAccountTokenVaultOneIntermediate>;
    tokenVaultTwoIntermediate: Address<TAccountTokenVaultTwoIntermediate>;
    tokenVaultTwoOutput: Address<TAccountTokenVaultTwoOutput>;
    whirlpoolOne: Address<TAccountWhirlpoolOne>;
    whirlpoolTwo: Address<TAccountWhirlpoolTwo>;
}

Type Parameters

  • TAccountWhirlpoolOne extends string = string
  • TAccountWhirlpoolTwo extends string = string
  • TAccountTokenMintInput extends string = string
  • TAccountTokenMintIntermediate extends string = string
  • TAccountTokenMintOutput extends string = string
  • TAccountTokenProgramInput extends string = string
  • TAccountTokenProgramIntermediate extends string = string
  • TAccountTokenProgramOutput extends string = string
  • TAccountTokenOwnerAccountInput extends string = string
  • TAccountTokenVaultOneInput extends string = string
  • TAccountTokenVaultOneIntermediate extends string = string
  • TAccountTokenVaultTwoIntermediate extends string = string
  • TAccountTokenVaultTwoOutput extends string = string
  • TAccountTokenOwnerAccountOutput extends string = string
  • TAccountTokenAuthority extends string = string
  • TAccountTickArrayOne0 extends string = string
  • TAccountTickArrayOne1 extends string = string
  • TAccountTickArrayOne2 extends string = string
  • TAccountTickArrayTwo0 extends string = string
  • TAccountTickArrayTwo1 extends string = string
  • TAccountTickArrayTwo2 extends string = string
  • TAccountOracleOne extends string = string
  • TAccountOracleTwo extends string = string
  • TAccountMemoProgram extends string = string

Type declaration