-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathschema.graphql
4793 lines (4657 loc) · 155 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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
subscription: Subscription
}
interface Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type Bond {
bondedAmount: BigDecimal!
holder: Bytes!
id: ID!
keep: BondedECDSAKeep!
operator: Operator!
referenceID: BigInt!
status: BondStatus!
}
type BondedECDSAKeep {
createdAt: BigInt!
deposit: Deposit!
honestThreshold: Int
id: ID!
keepAddress: Bytes!
members(first: Int, orderBy: Operator_orderBy, orderDirection: OrderDirection, skip: Int, where: Operator_filter): [Operator]!
"The nodes which have submitted their pubkey."
pubkeySubmissions(first: Int, orderBy: Operator_orderBy, orderDirection: OrderDirection, skip: Int, where: Operator_filter): [Operator]!
publicKey: Bytes
"Which stakedrop interval this keep belongs to, if any."
stakedropInterval: StakedropInterval
status: BondedECDSAKeepStatus
totalBondAmount: BigInt
}
type CourtesyCalledEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type CreatedEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type Deposit {
bondedECDSAKeep: BondedECDSAKeep
contractAddress: Bytes!
"Timestamp of when this deposit was created."
createdAt: BigInt!
"The address which created the deposit initially. In contrast to the owner, this cannot change."
creator: Bytes!
currentState: DepositState
"The timeout after which the current state can be notified, if any. This does not include non-timeout actions that are time-locked, such as courtesy calls or liquidation auctions."
currentStateTimesOutAt: BigInt
depositLiquidation: DepositLiquidation
depositRedemption: DepositRedemption
depositSetup: DepositSetup
endOfTerm: BigInt
failureReason: SetupFailedReason
filter_activeLikeState: Boolean!
"True if the deposit state is either liquidation like, or a signer setup failure."
filter_liquidationLikeOrSignerFailureState: Boolean!
"True if the deposit state is LIQUIDATED, LIQUIDATION_IN_PROGRESS, FRAUD_LIQUIDATION_IN_PROGRESS or COURTESY_CALL."
filter_liquidationLikeState: Boolean!
filter_redeemableAsOf: BigInt!
filter_unmintedTDT: Boolean!
id: ID!
"An incrementing unique number for this deposit, starting at 1."
index: Int!
initialCollateralizedPercent: Int
keepAddress: Bytes
lotSizeSatoshis: BigInt
owner: Bytes!
"Timestamp of when the deposit redemption was requested, if any. This includes the start of liquidation due to undercollateralization."
redemptionStartedAt: BigInt
severelyUndercollateralizedThresholdPercent: Int
signerFee: BigInt
tbtcSystem: Bytes!
tdtToken: TBTCDepositToken!
undercollateralizedThresholdPercent: Int
"Timestamp of the last state change of this deposit. Initialized to the same value as createdAt."
updatedAt: BigInt!
utxoSize: BigInt
}
type DepositLiquidation {
cause: LiquidationCause
courtesyCallInitiated: BigInt
courtesyCallTxhash: Bytes
deposit: Deposit!
id: ID!
initiateTxhash: Bytes
isLiquidated: Boolean!
liquidatedAt: BigInt
liquidationInitiated: BigInt
liquidationInitiator: Bytes
}
type DepositRedemption {
deposit: Deposit!
id: ID!
lastRequestedDigest: Bytes
latestRedemptionFee: BigInt
outpoint: Bytes
redeemedAt: BigInt
redeemerOutputScript: Bytes
requestedFee: BigInt
txid: Bytes
utxoSize: BigInt
withdrawalRequestAt: BigInt
}
type DepositSetup {
deposit: Deposit!
failureReason: SetupFailedReason
fundingProofTimerStartedAt: BigInt
id: ID!
}
type FundedEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
tx: Bytes!
}
type GotRedemptionSignatureEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type Governance {
factorySelector: Bytes!
fullyBackedFactory: Bytes!
id: ID!
initialCollateralizedPercent: Int!
keepStakedFactory: Bytes!
lotSizes: [BigInt!]!
newDepositsAllowed: Boolean!
pendingCollateralizationThresholdsChange: GovernanceChange
pendingFactoriesChange: GovernanceChange
pendingLotSizeChange: GovernanceChange
pendingPriceFeedAddition: GovernanceChange
pendingSignerFeeDivisorChange: GovernanceChange
priceFeeds: [Bytes!]!
severelyUndercollateralizedThresholdPercent: Int!
signerFeeDivisor: Int!
undercollateralizedThresholdPercent: Int!
}
type GovernanceChange {
finalizeBlock: BigInt
finalizeTransactionHash: String
id: ID!
newFactorySelector: Bytes
newFullyBackedFactory: Bytes
newInitialCollateralizedPercent: Int
newKeepStakedFactory: Bytes
newLotSizes: [BigInt!]
newPriceFeed: Bytes
newSeverelyUndercollateralizedThresholdPercent: Int
newSignerFeeDivisor: Int
newUndercollateralizedThresholdPercent: Int
prevFactorySelector: Bytes
prevFullyBackedFactory: Bytes
prevInitialCollateralizedPercent: Int
prevKeepStakedFactory: Bytes
prevLotSizes: [BigInt!]
prevSeverelyUndercollateralizedThresholdPercent: Int
prevSignerFeeDivisor: Int
prevUndercollateralizedThresholdPercent: Int
requestBlock: BigInt!
requestTransactionHash: String!
requestedAt: BigInt!
takesEffectAfter: BigInt!
type: GovernanceChangeType!
}
type GovernanceLogEntry {
block: BigInt!
change: GovernanceChange
id: ID!
isRequest: Boolean!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type Grant {
amount: BigInt!
cliff: BigInt!
duration: BigInt!
grantManager: Bytes!
grantee: Bytes!
id: ID!
revocable: Boolean!
revokedAmount: BigInt!
revokedAt: BigInt!
revokedWithdrawn: BigInt!
staked: BigInt!
stakingPolicy: Bytes!
start: BigInt!
timestamp: BigInt
transactionHash: Bytes!
withdrawn: BigInt!
}
type LiquidatedEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
"""
A lock on an operator stake.
"""
type Lock {
creator: Bytes!
id: ID!
operator: Operator!
until: BigInt!
}
"""
A node operator.
In Staking terms (https://docs.keep.network/random-beacon/staking/), there is an abstract role called the Staker,
representing owner, operator, beneficiary and authorizer. "Stakers are identified by their operator address", and
in our graph, through the Operator entity. Understand that in staking terms, only a single owner can delegate
their tokens to a particular owner, so the tokens staked always come from the samea address.
"""
type Operator {
activeKeepCount: Int!
address: Bytes!
"How often this operator was involved in a fault, attributable to them."
attributableFaultCount: Int!
authorizer: Bytes
beaconGroupMemberships(first: Int, orderBy: RandomBeaconGroupMembership_orderBy, orderDirection: OrderDirection, skip: Int, where: RandomBeaconGroupMembership_filter): [RandomBeaconGroupMembership!]!
beneficiary: Bytes
bonded: BigDecimal!
bonds(first: Int, orderBy: Bond_orderBy, orderDirection: OrderDirection, skip: Int, where: Bond_filter): [Bond!]!
id: ID!
"How often this operator was involved in a fault, attributable to them."
involvedInFaultCount: Int!
keeps(first: Int, orderBy: BondedECDSAKeep_orderBy, orderDirection: OrderDirection, skip: Int, where: BondedECDSAKeep_filter): [BondedECDSAKeep!]
locks(first: Int, orderBy: Lock_orderBy, orderDirection: OrderDirection, skip: Int, where: Lock_filter): [Lock!]!
operator: Bytes
owner: Bytes
stakedAmount: BigDecimal!
"ETH Rewards generated by this operator for random beacon work."
totalBeaconRewards: BigInt!
"Rewards generated by this operator in ETH, for any work."
totalETHRewards: BigInt!
"How often this operator was involved in a fault, either attributable or not."
totalFaultCount: Int!
totalKeepCount: Int!
"Rewards generated by this operator in TBTC, for any work."
totalTBTCRewards: BigInt!
unboundAvailable: BigDecimal!
}
type PriceFeed {
age: BigInt!
blockNumber: BigInt!
id: ID!
timestamp: BigInt!
transactionHash: Bytes!
val: BigInt!
}
type Query {
bond(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Bond
bondedECDSAKeep(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): BondedECDSAKeep
bondedECDSAKeeps(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: BondedECDSAKeep_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: BondedECDSAKeep_filter
): [BondedECDSAKeep!]!
bonds(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Bond_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Bond_filter
): [Bond!]!
courtesyCalledEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): CourtesyCalledEvent
courtesyCalledEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: CourtesyCalledEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: CourtesyCalledEvent_filter
): [CourtesyCalledEvent!]!
createdEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): CreatedEvent
createdEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: CreatedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: CreatedEvent_filter
): [CreatedEvent!]!
deposit(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Deposit
depositLiquidation(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): DepositLiquidation
depositLiquidations(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: DepositLiquidation_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: DepositLiquidation_filter
): [DepositLiquidation!]!
depositRedemption(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): DepositRedemption
depositRedemptions(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: DepositRedemption_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: DepositRedemption_filter
): [DepositRedemption!]!
depositSetup(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): DepositSetup
depositSetups(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: DepositSetup_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: DepositSetup_filter
): [DepositSetup!]!
deposits(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Deposit_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Deposit_filter
): [Deposit!]!
event(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Event
events(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Event_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Event_filter
): [Event!]!
fundedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): FundedEvent
fundedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: FundedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: FundedEvent_filter
): [FundedEvent!]!
gotRedemptionSignatureEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): GotRedemptionSignatureEvent
gotRedemptionSignatureEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: GotRedemptionSignatureEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: GotRedemptionSignatureEvent_filter
): [GotRedemptionSignatureEvent!]!
governance(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Governance
governanceChange(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): GovernanceChange
governanceChanges(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: GovernanceChange_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: GovernanceChange_filter
): [GovernanceChange!]!
governanceLogEntries(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: GovernanceLogEntry_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: GovernanceLogEntry_filter
): [GovernanceLogEntry!]!
governanceLogEntry(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): GovernanceLogEntry
governances(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Governance_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Governance_filter
): [Governance!]!
grant(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Grant
grants(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Grant_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Grant_filter
): [Grant!]!
liquidatedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): LiquidatedEvent
liquidatedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: LiquidatedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: LiquidatedEvent_filter
): [LiquidatedEvent!]!
lock(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Lock
locks(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Lock_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Lock_filter
): [Lock!]!
operator(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Operator
operators(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Operator_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: Operator_filter
): [Operator!]!
priceFeed(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): PriceFeed
priceFeeds(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: PriceFeed_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: PriceFeed_filter
): [PriceFeed!]!
randomBeaconGroup(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RandomBeaconGroup
randomBeaconGroupMembership(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RandomBeaconGroupMembership
randomBeaconGroupMemberships(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RandomBeaconGroupMembership_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RandomBeaconGroupMembership_filter
): [RandomBeaconGroupMembership!]!
randomBeaconGroups(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RandomBeaconGroup_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RandomBeaconGroup_filter
): [RandomBeaconGroup!]!
redeemedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RedeemedEvent
redeemedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RedeemedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RedeemedEvent_filter
): [RedeemedEvent!]!
redemptionRequestedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RedemptionRequestedEvent
redemptionRequestedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RedemptionRequestedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RedemptionRequestedEvent_filter
): [RedemptionRequestedEvent!]!
registeredPubKeyEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RegisteredPubKeyEvent
registeredPubKeyEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RegisteredPubKeyEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RegisteredPubKeyEvent_filter
): [RegisteredPubKeyEvent!]!
relayEntries(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: RelayEntry_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: RelayEntry_filter
): [RelayEntry!]!
relayEntry(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): RelayEntry
setupFailedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): SetupFailedEvent
setupFailedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: SetupFailedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: SetupFailedEvent_filter
): [SetupFailedEvent!]!
stakedropInterval(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): StakedropInterval
stakedropIntervals(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: StakedropInterval_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: StakedropInterval_filter
): [StakedropInterval!]!
stakingContractAuthorizedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): StakingContractAuthorizedEvent
stakingContractAuthorizedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: StakingContractAuthorizedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: StakingContractAuthorizedEvent_filter
): [StakingContractAuthorizedEvent!]!
startedLiquidationEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): StartedLiquidationEvent
startedLiquidationEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: StartedLiquidationEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: StartedLiquidationEvent_filter
): [StartedLiquidationEvent!]!
statsRecord(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): StatsRecord
statsRecords(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: StatsRecord_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: StatsRecord_filter
): [StatsRecord!]!
statusRecord(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): StatusRecord
statusRecords(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: StatusRecord_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: StatusRecord_filter
): [StatusRecord!]!
tbtcdepositToken(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): TBTCDepositToken
tbtcdepositTokens(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: TBTCDepositToken_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: TBTCDepositToken_filter
): [TBTCDepositToken!]!
tokenGrantCreatedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): TokenGrantCreatedEvent
tokenGrantCreatedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: TokenGrantCreatedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: TokenGrantCreatedEvent_filter
): [TokenGrantCreatedEvent!]!
tokenGrantRevokedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): TokenGrantRevokedEvent
tokenGrantRevokedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: TokenGrantRevokedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: TokenGrantRevokedEvent_filter
): [TokenGrantRevokedEvent!]!
tokenGrantStakedEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): TokenGrantStakedEvent
tokenGrantStakedEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: TokenGrantStakedEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: TokenGrantStakedEvent_filter
): [TokenGrantStakedEvent!]!
tokenGrantWithdrawnEvent(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): TokenGrantWithdrawnEvent
tokenGrantWithdrawnEvents(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: TokenGrantWithdrawnEvent_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: TokenGrantWithdrawnEvent_filter
): [TokenGrantWithdrawnEvent!]!
user(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): User
users(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: User_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: User_filter
): [User!]!
}
type RandomBeaconGroup {
createdAt: BigInt!
id: ID!
"A membership record for each unique member in the group."
memberships(first: Int, orderBy: RandomBeaconGroupMembership_orderBy, orderDirection: OrderDirection, skip: Int, where: RandomBeaconGroupMembership_filter): [RandomBeaconGroupMembership!]!
pubKey: Bytes!
relayEntries(first: Int, orderBy: RelayEntry_orderBy, orderDirection: OrderDirection, skip: Int, where: RelayEntry_filter): [RelayEntry!]!
rewardPerMember: BigInt!
"The total number of slots. Since operators may appear multiple times, this is distinct from the unique number count of the group."
size: Int!
"How many unique operators are in this group - the number of membership records."
uniqueMemberCount: Int!
}
"""
Represents the membership of an operator in a beacon group.
"""
type RandomBeaconGroupMembership {
"The same operator can fill multiple membership slots within a group."
count: Int!
group: RandomBeaconGroup!
groupCreatedAt: BigInt!
id: ID!
operator: Operator!
"ETH reward amount (in wei) earned by this operator through membership in this group."
reward: BigInt!
}
type RedeemedEvent implements Event {
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
tx: Bytes!
}
type RedemptionRequestedEvent implements Event {
deposit: Deposit
id: ID!
redeemer: Bytes!
redeemerOutputScript: Bytes!
requestedFee: BigInt!
sigHashDigest: Bytes!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
utxoOutpoint: Bytes!
utxoValue: BigInt!
}
type RegisteredPubKeyEvent implements Event {
deposit: Deposit
id: ID!
signingGroupPubkeyX: Bytes!
signingGroupPubkeyY: Bytes!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type RelayEntry {
generatedAt: BigInt
group: RandomBeaconGroup!
id: ID!
requestId: BigInt
requestedAt: BigInt!
requestedBy: Bytes!
rewardPerMember: BigInt
value: BigInt
}
type SetupFailedEvent implements Event {
deposit: Deposit
id: ID!
"The reason for the failure, based on which contract call caused the failure state to be entered."
reason: SetupFailedReason
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
"""
A one-month interval in the stakedrop reward program.
The intervals of the Beacon and ECDSA reward programs are not the same (there is about a 14 day difference).
However, the number of intervals are the same, and the programs are otherwise aligned conceptually, so there
is only one entity representing the intervals for both reward programs.
"""
type StakedropInterval {
beaconGroupCount: Int!
beaconIntervalEnd: BigInt!
beaconIntervalStart: BigInt!
ecdsaIntervalEnd: BigInt!
ecdsaIntervalStart: BigInt!
id: ID!
keepCount: Int!
"""
Keeps that fall into this interval, and are counted towards the allocated rewards. This includes terminated
keeps which are non-the-less not eligable for an reward.
"""
keeps(first: Int, orderBy: BondedECDSAKeep_orderBy, orderDirection: OrderDirection, skip: Int, where: BondedECDSAKeep_filter): [BondedECDSAKeep!]
"Nunber of the interval, with the first interval being 1."
number: Int!
}
type StakingContractAuthorizedEvent implements Event {
deposit: Deposit
grantManager: Bytes!
id: ID!
stakingContract: Bytes!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
type StartedLiquidationEvent implements Event {
"The cause of this deposit going into liquidation"
cause: LiquidationCause
deposit: Deposit
id: ID!
submitter: Bytes!
timestamp: BigInt!
transactionHash: String!
}
"""
Exposes some global system statistics. Only a single record with the id "current" is available.
"""
type StatsRecord {
availableToBeBonded: BigDecimal!
"The total amount of BTC currently deposited, measured from funding proof received to redemption requested"
btcInActiveDeposits: BigInt!
"The total amount of BTC currently deposited, measured from funding proof received to redemption proof received."
btcUnderDeposit: BigInt!
"Total number of deposits ever created, regardless of their current state."
depositCount: Int!
id: ID!
totalBonded: BigDecimal!
totalBondsSeized: BigDecimal!
"Total number of grants ever created, regardless of their current state."
totalGrantCount: Int!
"Total amount of grants issued."
totalGrantIssued: BigInt!
}
"""
Exposes some global system status data. Only a single record with the id "current" is available.
"""
type StatusRecord {
"The currently requested RandomBeacon relay entry, if any. Only a single request can exist at a time."
currentRequestedRelayEntry: RelayEntry
id: ID!
}
type Subscription {
bond(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): Bond
bondedECDSAKeep(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
id: ID!
): BondedECDSAKeep
bondedECDSAKeeps(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: BondedECDSAKeep_orderBy,
orderDirection: OrderDirection,
skip: Int,
where: BondedECDSAKeep_filter
): [BondedECDSAKeep!]!
bonds(
"The block at which the query should be executed. Can either be an `{ number: Int }` containing the block number or a `{ hash: Bytes }` value containing a block hash. Defaults to the latest block when omitted."
block: Block_height,
first: Int,
orderBy: Bond_orderBy,
orderDirection: OrderDirection,
skip: Int,