Skip to main content

Entity Types

Following Entity Types are defined in the graph schema file:

EntityDescriptionSchema differs with chain
1.FactoryCaptures metrics for all the pools deployed by a specific factory contract.
2.BundleStores the current Eth price in USD.
3.TokenStores the metadata and token level metrics for a token present in any of the pools.
4.PoolStores a pool's metadata, current & lifetime metrics and links to events and hourly/daily metrics and references to it's tick entities.
5.TickStores the metadata for a tick in a pool, it's lifetime metrics and current liquidity and fee variables.
6.PositionRepresents a position created through NonfungiblePositionManager. Stores it's metadata, deposited/withdrawn tokens, fee variables and transactions where it participated.
7PositionSnapshotSaves the state of a position after an action taken on the position.
8TransactionStores the list of mint, burn, swap, flash and collects events emitted within a transaction.
9MintStores details of a mint event emitted while adding liquidity to a pool
10BurnStores details of a burn event emitted while removing liquidity from a pool
11SwapStores details of a swap event emitted while swapping one token for the other in a pool
12CollectStores details of a collect event emitted while removing tokens from a position
13FlashStores details of a flash event emitted while a flash loan was taken from a pool
14UniswapDayDataDaily stats for all of Uniswap.
15PoolDayDataDaily stats for each pool
16PoolHourDataHourly stats for each pool
17TickHourDataStats on Liquidity available & Volume of token traded at a tick for a given hour
18TickDayDataStats on Liquidity available & Volume of token traded at a tick on a given day.
(Note: this entity gets saved only if there is a change during the day)
19TokenDayDataDaily stats for a token across all of Uniswap.
20TokenHourDataHourly stats for a token across all of Uniswap.