Entity Types
Following Entity Types are defined in the graph schema file:
| Entity | Description | Schema differs with chain | |
|---|---|---|---|
| 1. | Factory | Captures metrics for all the pools deployed by a specific factory contract. | |
| 2. | Bundle | Stores the current Eth price in USD. | |
| 3. | Token | Stores the metadata and token level metrics for a token present in any of the pools. | |
| 4. | Pool | Stores a pool's metadata, current & lifetime metrics and links to events and hourly/daily metrics and references to it's tick entities. | |
| 5. | Tick | Stores the metadata for a tick in a pool, it's lifetime metrics and current liquidity and fee variables. | |
| 6. | Position | Represents a position created through NonfungiblePositionManager. Stores it's metadata, deposited/withdrawn tokens, fee variables and transactions where it participated. | |
| 7 | PositionSnapshot | Saves the state of a position after an action taken on the position. | |
| 8 | Transaction | Stores the list of mint, burn, swap, flash and collects events emitted within a transaction. | |
| 9 | Mint | Stores details of a mint event emitted while adding liquidity to a pool | |
| 10 | Burn | Stores details of a burn event emitted while removing liquidity from a pool | |
| 11 | Swap | Stores details of a swap event emitted while swapping one token for the other in a pool | |
| 12 | Collect | Stores details of a collect event emitted while removing tokens from a position | |
| 13 | Flash | Stores details of a flash event emitted while a flash loan was taken from a pool | |
| 14 | UniswapDayData | Daily stats for all of Uniswap. | |
| 15 | PoolDayData | Daily stats for each pool | |
| 16 | PoolHourData | Hourly stats for each pool | |
| 17 | TickHourData | Stats on Liquidity available & Volume of token traded at a tick for a given hour | |
| 18 | TickDayData | Stats 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) | |
| 19 | TokenDayData | Daily stats for a token across all of Uniswap. | |
| 20 | TokenHourData | Hourly stats for a token across all of Uniswap. |