Skip to main content

Module UniswapV3SwapRouter

Module UniswapV3SwapRouter 

Source
Expand description

Module containing a contract’s types and functions.

contract UniswapV3SwapRouter {
    struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; }
    function exactInputSingle(ExactInputSingleParams memory params) external payable returns (uint256 amountOut);
}

Structs§

ExactInputSingleParams
UniswapV3SwapRouterInstance
A UniswapV3SwapRouter instance.
exactInputSingleCall
Function with signature exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160)) and selector 0x414bf389.
exactInputSingleReturn
Container type for the return parameters of the exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160)) function.

Enums§

UniswapV3SwapRouterCalls
Container for all the UniswapV3SwapRouter function calls.

Functions§

new
Creates a new wrapper around an on-chain UniswapV3SwapRouter contract instance.