Constructor
# new UniswapV3Pool(options)
UniswapV3Pool Object
Parameters:
Name | Type | Description |
---|---|---|
options |
UniswapV3Pool~Options
|
Type Definitions
Object
# observationsType
Properties:
Name | Type | Description |
---|---|---|
blockTimestamp |
uint32
|
|
tickCumulative |
int56
|
|
secondsPerLiquidityCumulativeX128 |
uint160
|
|
initialized |
bool
|
Object
# observeType
Properties:
Name | Type | Description |
---|---|---|
tickCumulatives |
Array.<int56>
|
|
secondsPerLiquidityCumulativeX128s |
Array.<uint160>
|
Object
# positionsType
Properties:
Name | Type | Description |
---|---|---|
liquidity |
uint128
|
|
feeGrowthInside0LastX128 |
uint256
|
|
feeGrowthInside1LastX128 |
uint256
|
|
tokensOwed0 |
uint128
|
|
tokensOwed1 |
uint128
|
Object
# slot0Type
Properties:
Name | Type | Description |
---|---|---|
sqrtPriceX96 |
uint160
|
|
tick |
int24
|
|
observationIndex |
uint16
|
|
observationCardinality |
uint16
|
|
observationCardinalityNext |
uint16
|
|
feeProtocol |
uint8
|
|
unlocked |
bool
|
Object
# snapshotCumulativesInsideType
Properties:
Name | Type | Description |
---|---|---|
tickCumulativeInside |
int56
|
|
secondsPerLiquidityInsideX128 |
uint160
|
|
secondsInside |
uint32
|
Object
# ticksType
Properties:
Name | Type | Description |
---|---|---|
liquidityGross |
uint128
|
|
liquidityNet |
int128
|
|
feeGrowthOutside0X128 |
uint256
|
|
feeGrowthOutside1X128 |
uint256
|
|
tickCumulativeOutside |
int56
|
|
secondsPerLiquidityOutsideX128 |
uint160
|
|
secondsOutside |
uint32
|
|
initialized |
bool
|