Type Alias SwapQuoteParam

SwapQuoteParam: {
    amountSpecifiedIsInput: boolean;
    aToB: boolean;
    fallbackTickArray?: PublicKey;
    otherAmountThreshold: BN;
    sqrtPriceLimit: BN;
    tickArrays: TickArray[];
    tokenAmount: BN;
    tokenExtensionCtx: TokenExtensionContextForPool;
    whirlpoolData: WhirlpoolData;
}

The amount of input or output token to swap from (depending on amountSpecifiedIsInput).

The maximum/minimum of input/output token to swap into (depending on amountSpecifiedIsInput).

The maximum/minimum price the swap will swap to.

The direction of the swap. True if swapping from A to B. False if swapping from B to A.

Specifies the token the parameter amountrepresents. If true, the amount represents the input token of the swap.

An sequential array of tick-array objects in the direction of the trade to swap on

TokenExtensions info for the whirlpool

Optional. A reserve in case prices move in the opposite direction