Module brontes_pricing::protocols::uniswap_v3::IUniswapV3Pool
source · Expand description
Module containing a contract’s types and functions.
interface IUniswapV3Pool {
function token0() external view returns (address);
function token1() external view returns (address);
function liquidity() external view returns (uint128);
function slot0() external view returns (uint160, int24, uint16, uint16, uint16, uint8, bool);
function fee() external view returns (uint24);
function tickSpacing() external view returns (int24);
function ticks(int24 tick) external view returns (uint128, int128, uint256, uint256, int56, uint160, uint32, bool);
function tickBitmap(int16 wordPosition) external view returns (uint256);
function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data) external returns (int256, int256);
event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick);
event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1);
event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1);
}
Structs§
- Event with signature
Burn(address,int24,int24,uint128,uint256,uint256)
and selector0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c
. - Event with signature
Mint(address,address,int24,int24,uint128,uint256,uint256)
and selector0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde
. - Event with signature
Swap(address,address,int256,int256,uint160,uint128,int24)
and selector0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67
. - Function with signature
fee()
and selector0xddca3f43
. - Container type for the return parameters of the
fee()
function. - Function with signature
liquidity()
and selector0x1a686502
. - Container type for the return parameters of the
liquidity()
function. - Function with signature
slot0()
and selector0x3850c7bd
. - Container type for the return parameters of the
slot0()
function. - Function with signature
swap(address,bool,int256,uint160,bytes)
and selector0x128acb08
. - Container type for the return parameters of the
swap(address,bool,int256,uint160,bytes)
function. - Function with signature
tickBitmap(int16)
and selector0x5339c296
. - Container type for the return parameters of the
tickBitmap(int16)
function. - Function with signature
tickSpacing()
and selector0xd0c93a7c
. - Container type for the return parameters of the
tickSpacing()
function. - Function with signature
ticks(int24)
and selector0xf30dba93
. - Container type for the return parameters of the
ticks(int24)
function. - Function with signature
token0()
and selector0x0dfe1681
. - Container type for the return parameters of the
token0()
function. - Function with signature
token1()
and selector0xd21220a7
. - Container type for the return parameters of the
token1()
function.
Enums§
- Container for all the
IUniswapV3Pool
function calls. - Container for all the
IUniswapV3Pool
events.