-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.graphql
550 lines (461 loc) · 9.62 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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# Events
type TransferEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
contract: Bytes
from: Bytes
to: Bytes
tokenId: BigInt
transaction: Bytes
}
type MintParcelEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
from: Bytes
to: Bytes
owner: Bytes
tokenId: BigInt
transaction: Bytes
}
type ChannelAlchemicaEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
gotchi: Gotchi!
parcel: Parcel!
realmId: BigInt
gotchiId: BigInt
alchemica: [BigInt!]!
spilloverRate: BigInt!
spilloverRadius: BigInt!
transaction: Bytes
}
type AlchemicaClaimedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
gotchi: Gotchi
parcel: Parcel
realmId: BigInt
gotchiId: BigInt
alchemicaType: BigInt
amount: BigInt
spilloverRadius: BigInt
spilloverRate: BigInt
}
type ExitAlchemicaEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
gotchi: Gotchi
alchemica: [BigInt!]!
gotchiId: BigInt
}
type EquipInstallationEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel!
installation: InstallationType!
x: BigInt!
y: BigInt!
realmId: BigInt
installationId: BigInt
}
type UnequipInstallationEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel!
installation: InstallationType!
x: BigInt!
y: BigInt!
realmId: BigInt
installationId: BigInt
}
type InstallationUpgradedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel!
prevInstallation: InstallationType!
nextInstallation: InstallationType!
x: BigInt!
y: BigInt!
realmId: BigInt
prevInstallationId: BigInt
nextInstallationId: BigInt
}
type UpgradeQueuedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
owner: Bytes!
realmId: BigInt
queueIndex: BigInt!
parcel: Parcel
}
type MintTileEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
owner: Bytes
tile: TileType
quantity: Int
}
type MintTilesEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
owner: Bytes
tile: TileType
amount: Int
}
type MintInstallationEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
owner: Bytes
installationType: InstallationType
quantity: Int
}
type MintInstallationsEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
owner: Bytes
installationType: InstallationType
amount: Int
}
type UpgradeInitiatedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel
installation: InstallationType!
blockInitiated: BigInt!
readyBlock: BigInt!
x: BigInt!
y: BigInt!
realmId: BigInt
installationId: BigInt
}
type AddInstallationTypeEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
installationType: InstallationType
}
type EditInstallationTypeEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
installationType: InstallationType
}
type DeprecateInstallationEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
installationType: InstallationType
}
type EquipTileEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel
tile: Tile
x: BigInt
y: BigInt
realmId: BigInt
tileId: BigInt
}
type UnequipTileEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes
parcel: Parcel
tile: Tile
x: BigInt
y: BigInt
realmId: BigInt
tileId: BigInt
}
type CraftTimeReducedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
blocksReduced: BigInt!
}
type UpgradeTimeReducedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
parcel: Parcel!
x: BigInt!
y: BigInt!
blocksReduced: BigInt!
realmId: BigInt
}
type UpgradeFinalizedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
parcel: Parcel!
x: BigInt!
y: BigInt!
installation: InstallationType
}
type URIEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
tokenId: BigInt!
value: String
}
type NFTDisplayStatusUpdatedEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
token: Bytes
chainId: Int
allowed: Boolean
}
type ParcelAccessRightSetEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
realmId: Int!
accessRight: Int!
actionRight: Int!
}
type ParcelWhitelistSetEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
realmId: Int!
whitelistId: Int!
actionRight: Int!
}
type EditTileTypeEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
tileId: Int
tileType: TileType
# param1
_alchemicaCost: [BigInt!]
_craftTime: Int
_deprecated: Boolean
_height: Int
_width: Int
_name: String
}
type EditDeprecateTimeEvent @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
newDeprecatetime: BigInt
tileId: Int
tileType: TileType
installationId: Int
installationType: InstallationType
}
type BounceGateEventStarted @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
_eventId: BigInt
_endTime: BigInt
_equipped: Boolean
_lastTimeUpdated: BigInt
_priority: BigInt
_startTime: BigInt
_title: String
}
type BounceGateEventCancelled @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
_eventId: BigInt
}
type BounceGateEventPriorityAndDurationUpdated @entity {
id: ID!
block: BigInt!
timestamp: BigInt!
transaction: Bytes!
contract: Bytes!
_eventId: BigInt
_newPriority: BigInt
_newEndTime: BigInt
}
type Parcel @entity {
id: ID!
equippedInstallations: [InstallationType!]!
equippedTiles: [TileType!]!
lastChanneledAlchemica: BigInt
lastClaimedAlchemica: BigInt
owner: Bytes
tokenId: BigInt
parcelId: String
coordinateX: BigInt
coordinateY: BigInt
district: BigInt
parcelHash: String
fudBoost: BigInt
fomoBoost: BigInt
alphaBoost: BigInt
kekBoost: BigInt
size: BigInt
accessRights: [ParcelAccessRight!]! @derivedFrom(field: "parcel")
remainingAlchemica: [BigInt!]!
surveyRound: Int
}
type ParcelAccessRight @entity {
id: ID!
parcel: Parcel!
whitelistId: Int
accessRight: Int!
actionRight: Int!
}
type Gotchi @entity {
id: ID!
lastChanneledAlchemica: BigInt
}
type Tile @entity {
id: ID!
type: TileType
x: BigInt
y: BigInt
equipped: Boolean
parcel: Parcel
owner: Bytes
}
type Installation @entity {
id: ID!
type: InstallationType
x: BigInt
y: BigInt
equipped: Boolean
parcel: Parcel
owner: Bytes
}
type InstallationType @entity {
id: ID!
width: Int
height: Int
installationType: Int
level: Int
alchemicaType: Int
spillRadius: BigInt
spillRate: Int
upgradeQueueBoost: Int
craftTime: BigInt
nextLevelId: BigInt
deprecated: Boolean
deprecatedAt: BigInt!
alchemicaCost: [BigInt!]
harvestRate: BigInt
capacity: BigInt
prerequisites: [BigInt!]
amountPrerequisites: Int
name: String
amount: BigInt!
uri: String
}
type TileType @entity {
id: ID!
width: Int!
height: Int!
deprecated: Boolean!
deprecatedAt: BigInt!
tileType: Int!
craftTime: BigInt!
alchemicaCost: [BigInt!]!
name: String!
amount: BigInt!
uri: String
}
type Stat @entity {
id: ID!
countChannelAlchemicaEvents: BigInt!
countParcelInstallations: BigInt!
countInstallationTypes: BigInt!
countUpgradesInitiated: BigInt!
alchemicaSpendOnInstallations: [BigInt!]!
alchemicaSpendOnUpgrades: [BigInt!]!
alchemicaSpendOnTiles: [BigInt!]!
alchemicaSpendTotal: [BigInt!]!
alchemicaChanneledTotal: [BigInt!]!
alchemicaClaimedTotal: [BigInt!]!
alchemicaExitedTotal: [BigInt!]!
tilesEquippedTotal: BigInt!
tilesUnequippedTotal: BigInt!
tilesEquippedCurrent: BigInt!
tilesMinted: BigInt!
installationsMintedTotal: BigInt!
installationsUpgradedTotal: BigInt!
installationsEquippedTotal: BigInt!
installationsUnequippedTotal: BigInt!
installationsEquippedCurrent: BigInt!
craftTimeReduced: BigInt!
upgradeTimeReduced: BigInt!
gltrSpendOnUpgrades: BigInt
gltrSpendOnCrafts: BigInt
gltrSpendTotal: BigInt
contracts: [Bytes!]!
}
type NFTDisplayStatus @entity {
id: ID!
contractAddress: Bytes
contractId: Int
chainId: Int
allowed: Boolean
}
type BounceGateEvent @entity {
id: ID!
title: String
startTime: BigInt
endTime: BigInt
priority: BigInt
equipped: Boolean
lastTimeUpdated: BigInt
cancelled: Boolean
creator: Bytes
}