Expand description
Module containing a contract’s types and functions.
interface IUniswapV3Pool {
event Initialize(uint160 sqrtPriceX96, int24 tick);
event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1);
event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1);
event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1);
event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick);
event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1);
event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew);
event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);
event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
function slot0() external view returns (uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked);
function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data) external returns (uint256 amount0, uint256 amount1);
function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) external returns (uint128 amount0, uint128 amount1);
function burn(int24 tickLower, int24 tickUpper, uint128 amount) external returns (uint256 amount0, uint256 amount1);
function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data) external returns (int256 amount0, int256 amount1);
function flash(address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external;
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function fee() external view returns (uint24);
function tickSpacing() external view returns (int24);
function maxLiquidityPerTick() external view returns (uint128);
function liquidity() external view returns (uint128);
function ticks(int24 tick) external view returns (uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized);
function tickBitmap(int16 wordPosition) external view returns (uint256);
function positions(bytes32 key) external view returns (uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1);
function observations(uint256 index) external view returns (uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized);
}
Modules§
- Contains dynamic ABI definitions for this contract.
Structs§
- Event with signature
Burn(address,int24,int24,uint128,uint256,uint256)
and selector0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c
. - Event with signature
Collect(address,address,int24,int24,uint128,uint128)
and selector0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0
. - Event with signature
CollectProtocol(address,address,uint128,uint128)
and selector0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151
. - Event with signature
Flash(address,address,uint256,uint256,uint256,uint256)
and selector0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633
. - A
IUniswapV3Pool
instance. - Event with signature
IncreaseObservationCardinalityNext(uint16,uint16)
and selector0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a
. - Event with signature
Initialize(uint160,int24)
and selector0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95
. - Event with signature
Mint(address,address,int24,int24,uint128,uint256,uint256)
and selector0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde
. - Event with signature
SetFeeProtocol(uint8,uint8,uint8,uint8)
and selector0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133
. - Event with signature
Swap(address,address,int256,int256,uint160,uint128,int24)
and selector0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67
. - Function with signature
burn(int24,int24,uint128)
and selector0xa34123a7
. - Container type for the return parameters of the
burn(int24,int24,uint128)
function. - Function with signature
collect(address,int24,int24,uint128,uint128)
and selector0x4f1eb3d8
. - Container type for the return parameters of the
collect(address,int24,int24,uint128,uint128)
function. - Function with signature
factory()
and selector0xc45a0155
. - Container type for the return parameters of the
factory()
function. - Function with signature
fee()
and selector0xddca3f43
. - Container type for the return parameters of the
fee()
function. - Function with signature
flash(address,uint256,uint256,bytes)
and selector0x490e6cbc
. - Container type for the return parameters of the
flash(address,uint256,uint256,bytes)
function. - Function with signature
liquidity()
and selector0x1a686502
. - Container type for the return parameters of the
liquidity()
function. - Function with signature
maxLiquidityPerTick()
and selector0x70cf754a
. - Container type for the return parameters of the
maxLiquidityPerTick()
function. - Function with signature
mint(address,int24,int24,uint128,bytes)
and selector0x3c8a7d8d
. - Container type for the return parameters of the
mint(address,int24,int24,uint128,bytes)
function. - Function with signature
observations(uint256)
and selector0x252c09d7
. - Container type for the return parameters of the
observations(uint256)
function. - Function with signature
positions(bytes32)
and selector0x514ea4bf
. - Container type for the return parameters of the
positions(bytes32)
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.
Functions§
- Creates a new wrapper around an on-chain
IUniswapV3Pool
contract instance.