Documentation
    Preparing search index...

    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.

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

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

    PublicKey for the input token mint.

    PublicKey for the intermediate token mint.

    PublicKey for the output token mint.

    PublicKey for the input token owner account.

    PublicKey for the output token owner account.

    PublicKey for the input token vault of whirlpoolOne.

    PublicKey for the intermediate token vault of whirlpoolOne.

    PublicKey for the intermediate token vault of whirlpoolTwo.

    PublicKey for the output token vault of whirlpoolTwo.

    AccountMeta[] for the input token transfer hook accounts.

    AccountMeta[] for the intermediate token transfer hook accounts.

    AccountMeta[] for the output token transfer hook accounts.

    PublicKey for the oracle account for this whirlpoolOne.

    PublicKey for the oracle account for this whirlpoolTwo.

    authority to withdraw tokens from the input token account

    Parameters in TwoHopSwapInput