Expand description
Module containing a contract’s types and functions.
interface IMaverickQuoter {
function calculateSwap(address pool, uint128 amount, bool tokenAIn, bool exactOutput, uint256 sqrtPriceLimit) external returns (uint256 returnAmount);
function calculateMultihopSwap(bytes memory path, uint256 amount, bool exactOutput) external returns (uint256 returnAmount);
function getActiveBins(address pool, uint128 startBinIndex, uint128 endBinIndex) external view returns (BinInfo[] memory bins);
function getBinDepth(address pool, uint128 binId) external view returns (uint256 depth);
function getSqrtPrice(address pool) external view returns (uint256 sqrtPrice);
function getBinsAtTick(address pool, int32 tick) external view returns (BinState[] memory bins);
function activeTickLiquidity(address pool) external view returns (uint256 sqrtPrice, uint256 liquidity, uint256 reserveA, uint256 reserveB);
function tickLiquidity(address pool, int32 tick) external view returns (uint256 sqrtPrice, uint256 liquidity, uint256 reserveA, uint256 reserveB);
}
Modules§
- Contains dynamic ABI definitions for this contract.
Structs§
- A
IMaverickQuoter
instance. - Function with signature
activeTickLiquidity(address)
and selector0xa3a5d06d
. - Container type for the return parameters of the
activeTickLiquidity(address)
function. - Function with signature
calculateMultihopSwap(bytes,uint256,bool)
and selector0x21f8ce41
. - Container type for the return parameters of the
calculateMultihopSwap(bytes,uint256,bool)
function. - Function with signature
calculateSwap(address,uint128,bool,bool,uint256)
and selector0x2764cd0b
. - Container type for the return parameters of the
calculateSwap(address,uint128,bool,bool,uint256)
function. - Function with signature
getActiveBins(address,uint128,uint128)
and selector0x2d4c5a38
. - Container type for the return parameters of the
getActiveBins(address,uint128,uint128)
function. - Function with signature
getBinDepth(address,uint128)
and selector0x136c7589
. - Container type for the return parameters of the
getBinDepth(address,uint128)
function. - Function with signature
getBinsAtTick(address,int32)
and selector0xd12e2bb2
. - Container type for the return parameters of the
getBinsAtTick(address,int32)
function. - Function with signature
getSqrtPrice(address)
and selector0x91c0914e
. - Container type for the return parameters of the
getSqrtPrice(address)
function. - Function with signature
tickLiquidity(address,int32)
and selector0xd388a5a6
. - Container type for the return parameters of the
tickLiquidity(address,int32)
function.
Enums§
- Container for all the
IMaverickQuoter
function calls.
Functions§
- Creates a new wrapper around an on-chain
IMaverickQuoter
contract instance.