-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
161 lines (137 loc) · 2.66 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
type Transaction @entity {
id: ID!
count: BigInt!
hash: String!
index: BigInt!
from: String!
to: String!
gas_used: BigInt!
gas_price: BigInt!
}
type Trade @entity {
id: ID!
count: BigInt!
address: Bytes!
origin: String!
origin_amount: BigDecimal!
origin_amount_numeraire: BigDecimal
target: String!
target_amount: BigDecimal!
target_amount_numeraire: BigDecimal
timestamp: BigInt!
transaction: Transaction!
parametersSet: ParametersSet!
pool: Pool!
utility_frame: UtilityFrame!
}
type Deposit @entity {
id: ID!
count: BigInt!
type: String!
amounts: [BigDecimal!]!
amounts_numeraire: [BigDecimal!]!
tokens: [Token!]!
lp_shares: BigDecimal
lp_shares_total: BigDecimal
timestamp: BigInt!
transaction: Transaction!
parametersSet: ParametersSet!
pool: Pool!
utility_frame: UtilityFrame!
}
type Withdrawal @entity {
id: ID!
count: BigInt!
type: String!
amounts: [BigDecimal!]!
amounts_numeraire: [BigDecimal!]
tokens: [Token!]!
lp_shares: BigDecimal
lp_shares_total: BigDecimal
timestamp: BigInt!
transaction: Transaction!
parametersSet: ParametersSet!
pool: Pool!
utility_frame: UtilityFrame!
}
type Pool @entity {
id: ID!
reserves: [Token!]!
numeraires: [Token!]!
parametersSet: ParametersSet
}
type ParametersSet @entity {
id: ID!
count: BigInt!
alpha: BigDecimal!
beta: BigDecimal!
delta: BigDecimal!
epsilon: BigDecimal!
lambda: BigDecimal!
weights: [BigDecimal!]!
timestamp: BigInt!
}
type Parameters @entity {
id: ID!
alpha: BigDecimal!
beta: BigDecimal!
delta: BigDecimal!
epsilon: BigDecimal!
lambda: BigDecimal!
weights: [ BigDecimal! ]!
parametersSet: ParametersSet!
}
type Token @entity {
id: ID!
decimals: Int!
name: String!
symbol: String!
pool: Pool!
}
type WeightTracker @entity {
id: ID!
timestamp: BigInt!
weights: [BigDecimal!]!
}
type UtilityFrame @entity {
id: ID!
block: BigInt
count: BigInt
first: Boolean
pool: Pool
timestamp: BigInt
preceding_liquidity: [ BigDecimal! ]
preceding_parameters: Parameters
preceding_lp_shares: BigDecimal
proceeding_liquidity: [ BigDecimal! ]
proceeding_parameters: Parameters
proceeding_lp_shares: BigDecimal
}
type ParametersSetCounter @entity {
id: ID!
count: BigInt!
}
type TransactionCounter @entity {
id: ID!
count: BigInt!
}
type DepositCounter @entity {
id: ID!
count: BigInt!
}
type WithdrawalCounter @entity {
id: ID!
count: BigInt!
}
type TradeCounter @entity {
id: ID!
count: BigInt!
}
type UtilityTimestamp @entity {
id: ID!
timestamp: BigInt!
}
type UtilityCounter @entity {
id: ID!
count: BigInt!
}