-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.graphql
531 lines (482 loc) · 10.2 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
type AdditionalReward {
periodRewardEnd: Int!
rewardPerSec: String!
rewardPerShare: String!
tokenId: String!
}
type BlockShard {
epoch: String!
gasConsumed: Int!
gasPenalized: Int!
gasRefunded: Int!
hash: String!
maxGasLimit: String!
nonce: String!
prevHash: String!
proposer: String!
pubKeyBitmap: String!
round: Int!
shard: String!
size: Int!
sizeTxs: Int!
stateRootHash: String!
timestamp: Int!
txCount: Int!
}
type Blockchain {
blockShards: [BlockShard!]
}
type BoyStatistic {
cheating_level: Int
claim_value: Float
rank: Int
wallet: Wallet
}
type Cheating {
cheating_level: Int
evidence: String
wallet_address: String
}
type DAOActionArguments {
argument_length: Int
}
type DAOBribeReward {
reward_amount: String!
token_id: String!
}
type DAOProposal {
arguments: String!
bribes: [DAOBribeReward!]!
created_at: Int!
dest_address: String!
execute_time_limit: Int!
executed_at: Int!
executed_by: String!
function_name: String!
ipfs_hash: String!
min_power_for_propose: String!
min_quorum_pct: String!
min_support_pct: String!
min_time_for_propose: Int!
no_vote: String!
proposal_id: Int!
proposer: String!
queue_time_limit: Int!
state: String!
total_supply: String!
voting_time_limit: Int!
yes_vote: String!
}
type DAOProposalConfig {
execute_time_limit: Int!
min_power_for_propose: String!
min_quorum_pct: String!
min_support_pct: String!
min_time_for_propose: Int!
queue_time_limit: Int!
voting_time_limit: Int!
}
type DAOProposalDetail {
proposal: DAOProposal
top_againsters: [[String!]!]!
top_supporters: [[String!]!]!
top_voters: [[String!]!]!
}
type Defillama {
pools: [DefillamaPool]
totalValueLockedUSD: Float
totalValueStakedUSD: Float
totalVolumeUSD24h: Float
}
type DefillamaPool {
address: String
apyBase: Float
apyReward: Float
tokens: [String]
tvlUsd: Float
}
type FBAccount {
farms: [FBAccountFarm!]!
}
type FBAccountFarm {
address: String!
rewards: [FBAccountReward!]!
}
type FBAccountReward {
claimable: String!
lastUserClaim: Int!
tokenId: String!
}
type FBFarm {
address: String!
rewards: [FBReward!]!
}
type FBReward {
activePeriod: Int!
claimed: String!
reserve: String!
rewardPerVote: String!
tokenId: String!
total: String!
}
type Farm {
account: FarmAccount
additionalRewards: [AdditionalReward!]!
address: String!
divisionSafetyConstant: String
farmToken: Token!
farmTokenSupply: String
farmingToken: Token!
farmingTokenBalance: String
lastRewardBlockTs: Int
produceRewardEnabled: Boolean
rewardPerSec: String
rewardPerShare: String
rewardToken: Token!
shard: String
state: Boolean
}
type FarmAccount {
slopeBoosted: String
}
type FarmBribe {
account: FBAccount
address: String!
farms: [FBFarm!]!
whitelistTokens: [Token!]!
}
type FarmController {
account: FcAccount
address: String!
farmTypes: [FarmType!]
farms: [FarmInController!]
nextTotalWeight: String!
timeTotal: Int!
totalWeight: String!
}
type FarmInController {
address: String!
farmType: Int!
nextRelativeWeight: String!
nextVotedPoint: VotedPoint!
relativeWeight: String!
votedPoint: VotedPoint!
}
type FarmInControllerAccount {
address: String!
lastUserVote: Int!
voteUserSlope: VotedSlope
}
type FarmType {
farmType: Int!
name: String!
nextWeight: String!
weight: String!
}
type FcAccount {
farms: [FarmInControllerAccount!]
voteUserPower: String!
}
type FdAccount {
reward: String
}
type FeeDistributor {
account: FdAccount
address: String!
rewardToken: Token!
}
type Governance {
adminFee: Float
summaries(limit: Int, offset: Int): [Summary]
votingPower: [[String]]
}
type LeaderBoard {
ash_farming_reward_amount: [Float]
ash_farming_reward_in_usd: [Float]
cheating_level: Int
gov_claimable_token_amount: Float
gov_claimable_token_in_usd: Float
gov_staked_amount: Float
gov_staked_in_usd: Float
lp_token_amount: [Float]
lp_token_in_usd: [Float]
lp_token_staked_amount: [Float]
lp_token_staked_in_usd: [Float]
record_id: Int
timestamp: Int
token_amount: [Float]
token_in_usd: [Float]
total_value_in_usd: Float
wallet_address: String
}
type LiquidityDistribution {
liquidity: Float
token: String
}
type Locked {
amount: String
end: String
}
type PaginationProposals {
proposals: [DAOProposal!]!
total: Int!
}
type Pool {
address: ID!
adminFeePercent: String
ampFactor: String
apr: PoolApr
graphStatistic: [[Float]]
lpToken: Token!
reserves: [String!]!
state: Boolean
statistic: PoolStatistic
swapFeePercent: String
tokens: [Token!]!
totalSupply: String
underlyingPrices: [String!]!
}
type PoolApr {
address: String
apr: [[Float]]
}
type PoolStatistic {
address: String
apr: Float
timestamp: Int
token_1_admin_fee_usd: Float
token_1_amount: Float
token_1_amount_usd: Float
token_1_total_fee_usd: Float
token_2_admin_fee_usd: Float
token_2_amount: Float
token_2_amount_usd: Float
token_2_total_fee_usd: Float
token_3_admin_fee_usd: Float
token_3_amount: Float
token_3_amount_usd: Float
token_3_total_fee_usd: Float
transaction_count: Int
tvl: Float
unique_traders: Float
volume_usd: Float
}
type PoolTransaction {
action: String
admin_fee_1: String
admin_fee_1_usd: Float
admin_fee_2: String
admin_fee_2_usd: Float
admin_fee_3: String
admin_fee_3_usd: Float
amount_1: String
amount_1_usd: Float
amount_2: String
amount_2_usd: Float
amount_3: String
amount_3_usd: Float
caller: String
lp_token_amount: String
lp_token_supply: String
receiver: String
reserve_1: String
reserve_2: String
reserve_3: String
timestamp: Int
token_id_1: String
token_id_2: String
token_id_3: String
total_fee_1: String
total_fee_1_usd: Float
total_fee_2: String
total_fee_2_usd: Float
total_fee_3: String
total_fee_3_usd: Float
transaction_hash: String
}
type PoolV2 {
address: String!
adjustmentStep: String!
adminFee: String!
allowedExtraProfit: String!
ampFactor: String!
d: String!
fee: String!
feeGamma: String!
futureAGammaTime: Int!
gamma: String!
initialAGammaTime: Int!
isNotAdjusted: Boolean!
lastPriceTs: Int!
lastPrices: String!
lpPrice: String!
lpToken: Token!
maHalfTime: Int!
midFee: String!
outFee: String!
priceOracle: String!
priceScale: String!
realReserves: [String!]!
reserves: [String!]!
state: Boolean!
tokens: [Token!]!
totalSupply: String!
virtualPrice: String!
xcpProfit: String!
xcpProfitA: String!
xp: [String!]!
}
type Query {
adminFee: Float
ashSupply: String!
blockchain: Blockchain!
boyStatistic(address: String): BoyStatistic
cheating: [Cheating]
closedDAOProposals(limit: Int, offset: Int, states: [String!]): PaginationProposals!
daoWhitelistFunctions: String!
defillama: Defillama
farmBribe(address: String): FarmBribe!
farmController(address: String): FarmController!
farms(address: String!): [Farm!]
feeDistributor(address: String!): FeeDistributor!
governance: Governance!
leaderboard: [LeaderBoard]
liquidity: [[Float!]]
liquidityDistribution(pool_addresses: String): [LiquidityDistribution]
openedDAOProposals: [DAOProposal!]!
poolTransaction(limit: Int, offset: Int, pool_address: String): [PoolTransaction]
pools(pool_address: String): [Pool]
poolsV2: [PoolV2!]!
proposalConfig(address: String!, functionName: String!): DAOProposalConfig
proposalDetail(id: Int!): DAOProposalDetail
rewarder: Rewarder!
summaries(limit: Int, offset: Int): [Summary]
tokenTransactions(limit: Int, offset: Int, token_id: String): [TokenTransacion]
tokens(token_ids: String): [Token!]
volume: [[Float!]]
votingEscrows(address: String!): [VotingEscrow!]
votingPower: [[String]]
}
type Rewarder {
address: String!
futureRewardPerSec: Int!
futureRewardPerSecTime: Int!
lastRewardPerSecTime: Int!
rewardPerSec: String!
}
type Summary {
from_timestamp: String
to_timestamp: String
total_admin_fee_in_usd: Float
}
type Token {
graphStatistic: [[Float]]
id: String
price: Float
statistic: TokenStatistic
tokenFee: TokenFee
tokenPool: [TokenPool]
}
type TokenFee {
fee: [[Float]]
token: String
}
type TokenPool {
address: String
apr: Float
timestamp: String
token_1_admin_fee_usd: Float
token_1_amount: String
token_1_amount_usd: Float
token_1_total_fee_usd: Float
token_2_admin_fee_usd: Float
token_2_amount: String
token_2_amount_usd: Float
token_2_total_fee_usd: Float
token_3_admin_fee_usd: String
token_3_amount: String
token_3_amount_usd: Float
token_3_total_fee_usd: Float
transaction_count: Int
tvl: Float
unique_traders: String
volume_usd: Float
}
type TokenStatistic {
change_percentage_day: Float!
change_percentage_hour: Float!
change_percentage_week: Float!
liquidity: Float!
price: Float!
transaction_count: Float!
volume: Float!
}
type TokenTransacion {
action: String
admin_fee_1: String
admin_fee_1_usd: Float
admin_fee_2: String
admin_fee_2_usd: Float
admin_fee_3: String
admin_fee_3_usd: Float
amount_1: String
amount_1_usd: Float
amount_2: String
amount_2_usd: Float
amount_3: String
amount_3_usd: Float
caller: String
lp_token_amount: String
lp_token_supply: String
receiver: String
reserve_1: String
reserve_2: String
reserve_3: String
timestamp: Int
token_id_1: String
token_id_2: String
token_id_3: String
total_fee_1: String
total_fee_1_usd: Float
total_fee_2: String
total_fee_2_usd: Float
total_fee_3: String
total_fee_3_usd: Float
transaction_hash: String
}
type VeAccount {
locked: Locked
}
type VotedPoint {
bias: String!
slope: String!
}
type VotedSlope {
end: Int!
power: String!
slope: String!
}
type VotingEscrow {
account: VeAccount
address: String!
lockedToken: Token!
totalLock: String
veSupply: String
}
type Wallet {
ash_farming_reward_amount: [Float]
ash_farming_reward_in_usd: [Float]
gov_claimable_token_amount: Float
gov_claimable_token_in_usd: Float
gov_staked_amount: Float
gov_staked_in_usd: Float
lp_token_amount: [Float]
lp_token_in_usd: [Float]
lp_token_staked_amount: [Float]
lp_token_staked_in_usd: [Float]
timestamp: Int
token_amount: [Float]
token_in_usd: [Float]
total_value_in_usd: Float
wallet_address: String
}