Expand description
Module containing a contract’s types and functions.
interface ICustomQuoter {
function quoteExactInput(bytes memory path, uint256 amountIn) external returns (uint256 amountOut, uint160[] memory sqrtPriceX96AfterList, uint32[] memory initializedTicksCrossedList, uint256 gasEstimate);
struct QuoteExactInputSingleParams { address pool; address tokenIn; address tokenOut; uint256 amountIn; uint24 fee; uint160 sqrtPriceLimitX96; }
function quoteExactInputSingle(QuoteExactInputSingleParams memory params) external returns (uint256 amountOut, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate);
function quoteExactOutput(bytes memory path, uint256 amountOut) external returns (uint256 amountIn, uint160[] memory sqrtPriceX96AfterList, uint32[] memory initializedTicksCrossedList, uint256 gasEstimate);
struct QuoteExactOutputSingleParams { address pool; address tokenIn; address tokenOut; uint256 amount; uint24 fee; uint160 sqrtPriceLimitX96; }
function quoteExactOutputSingle(QuoteExactOutputSingleParams memory params) external returns (uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate);
}
Structs§
- Function with signature
quoteExactInput(bytes,uint256)
and selector0xcdca1753
. - Container type for the return parameters of the
quoteExactInput(bytes,uint256)
function. - Function with signature
quoteExactInputSingle((address,address,address,uint256,uint24,uint160))
and selector0xa0dfc0de
. - Container type for the return parameters of the
quoteExactInputSingle((address,address,address,uint256,uint24,uint160))
function. - Function with signature
quoteExactOutput(bytes,uint256)
and selector0x2f80bb1d
. - Container type for the return parameters of the
quoteExactOutput(bytes,uint256)
function. - Function with signature
quoteExactOutputSingle((address,address,address,uint256,uint24,uint160))
and selector0x9084b37b
. - Container type for the return parameters of the
quoteExactOutputSingle((address,address,address,uint256,uint24,uint160))
function.
Enums§
- Container for all the
ICustomQuoter
function calls.