-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
54 lines (48 loc) · 959 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
43
44
45
46
47
48
49
50
51
52
53
54
type pool @entity {
id: ID!
token0: String!
token1: String!
reserve0: BigDecimal!
reserve1: BigDecimal!
}
type swap @entity{
id: ID!
pair: String!
to: String!
sender: String!
amount0In: BigInt!
amount1In: BigInt!
amount0Out: BigInt!
amount1Out: BigInt!
}
type token @entity {
id: ID!
symbol: String!
name: String!
totalSupply: BigInt!
decimals: BigInt
}
type daily @entity{
id: ID!
totalLiquidity: BigDecimal
totalSwapUSD: BigDecimal!
totalSwapAmount: BigDecimal
swapCount: BigDecimal
swapAccountCount:BigDecimal!
DAILiquidityRate: BigDecimal
DAISwapCountRate: BigDecimal
DAISwapAmountRate: BigDecimal
}
type activeAccount @entity {
id: ID!
}
type dailyToken @entity {
id: ID!
dailyTransferCount: BigDecimal
dailyTransferAmount: BigDecimal
dailySupply: BigDecimal
}
type dailyPool @entity {
id: ID!
dailyDAILiquidity: BigDecimal!
}