-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
42 lines (40 loc) · 848 Bytes
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# stores for USD calculations
type Bundle @entity {
id: ID!
# price of ETH in usd
ethPriceUSD: BigDecimal!
}
type Token @entity {
# token address
id: ID!
# token symbol
symbol: String!
# token name
name: String!
# token decimals
decimals: BigInt!
# derived price in ETH
derivedETH: BigDecimal!
# pools token is in that are allow listed for USD pricing
allowedPools: [UniswapPool!]!
}
type UniswapPool @entity {
# pool address
id: ID!
# token0
token0: Token!
# token1
token1: Token!
# in range liquidity
liquidity: BigInt!
# token0 per token1
token0Price: BigDecimal!
# token1 per token0
token1Price: BigDecimal!
# current tick
tick: BigInt
# total token 0 across all ticks
totalValueLockedToken0: BigDecimal!
# total token 1 across all ticks
totalValueLockedToken1: BigDecimal!
}