Type alias TwoHopSwapV2Params

TwoHopSwapV2Params: TwoHopSwapInput & {
    oracleOne: PublicKey;
    oracleTwo: PublicKey;
    tokenAuthority: PublicKey;
    tokenMintInput: PublicKey;
    tokenMintIntermediate: PublicKey;
    tokenMintOutput: PublicKey;
    tokenOwnerAccountInput: PublicKey;
    tokenOwnerAccountOutput: PublicKey;
    tokenProgramInput: PublicKey;
    tokenProgramIntermediate: PublicKey;
    tokenProgramOutput: PublicKey;
    tokenTransferHookAccountsInput?: AccountMeta[];
    tokenTransferHookAccountsIntermediate?: AccountMeta[];
    tokenTransferHookAccountsOutput?: AccountMeta[];
    tokenVaultOneInput: PublicKey;
    tokenVaultOneIntermediate: PublicKey;
    tokenVaultTwoIntermediate: PublicKey;
    tokenVaultTwoOutput: PublicKey;
    whirlpoolOne: PublicKey;
    whirlpoolTwo: PublicKey;
}

Parameters to execute a two-hop swap on a Whirlpool.

Type declaration

  • oracleOne: PublicKey
  • oracleTwo: PublicKey
  • tokenAuthority: PublicKey
  • tokenMintInput: PublicKey
  • tokenMintIntermediate: PublicKey
  • tokenMintOutput: PublicKey
  • tokenOwnerAccountInput: PublicKey
  • tokenOwnerAccountOutput: PublicKey
  • tokenProgramInput: PublicKey
  • tokenProgramIntermediate: PublicKey
  • tokenProgramOutput: PublicKey
  • Optional tokenTransferHookAccountsInput?: AccountMeta[]
  • Optional tokenTransferHookAccountsIntermediate?: AccountMeta[]
  • Optional tokenTransferHookAccountsOutput?: AccountMeta[]
  • tokenVaultOneInput: PublicKey
  • tokenVaultOneIntermediate: PublicKey
  • tokenVaultTwoIntermediate: PublicKey
  • tokenVaultTwoOutput: PublicKey
  • whirlpoolOne: PublicKey
  • whirlpoolTwo: PublicKey

Param: whirlpoolOne

PublicKey for the whirlpool that the swap-one will occur on

Param: whirlpoolTwo

PublicKey for the whirlpool that the swap-two will occur on

Param: tokenMintInput

PublicKey for the input token mint.

Param: tokenMintIntermediate

PublicKey for the intermediate token mint.

Param: tokenMintOutput

PublicKey for the output token mint.

Param: tokenOwnerAccountInput

PublicKey for the input token owner account.

Param: tokenOwnerAccountOutput

PublicKey for the output token owner account.

Param: tokenVaultOneInput

PublicKey for the input token vault of whirlpoolOne.

Param: tokenVaultOneIntermediate

PublicKey for the intermediate token vault of whirlpoolOne.

Param: tokenVaultTwoIntermediate

PublicKey for the intermediate token vault of whirlpoolTwo.

Param: tokenVaultTwoOutput

PublicKey for the output token vault of whirlpoolTwo.

Param: tokenTransferHookAccountsInput

AccountMeta[] for the input token transfer hook accounts.

Param: tokenTransferHookAccountsIntermediate

AccountMeta[] for the intermediate token transfer hook accounts.

Param: tokenTransferHookAccountsOutput

AccountMeta[] for the output token transfer hook accounts.

Param: oracleOne

PublicKey for the oracle account for this whirlpoolOne.

Param: oracleTwo

PublicKey for the oracle account for this whirlpoolTwo.

Param: tokenAuthority

authority to withdraw tokens from the input token account

Param: swapInput

Parameters in TwoHopSwapInput

Generated using TypeDoc