-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.subgraph.graphql
More file actions
16280 lines (15191 loc) · 467 KB
/
schema.subgraph.graphql
File metadata and controls
16280 lines (15191 loc) · 467 KB
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
"""
Marks the GraphQL type as indexable entity. Each type that should be an entity
is required to be annotated with this directive.
"""
directive @entity on OBJECT
"""Defined a Subgraph ID for an object type"""
directive @subgraphId(id: String!) on OBJECT
"""
creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API.
"""
directive @derivedFrom(field: String!) on FIELD_DEFINITION
type _ActiveAccount {
"""
{ daily/hourly }-{ Address of the account }-{ Optional: Transaction Type }-{
Optional: Market Address }-{ Optional: Days/hours since Unix epoch }
"""
id: ID!
}
input _ActiveAccount_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_ActiveAccount_filter]
or: [_ActiveAccount_filter]
}
enum _ActiveAccount_orderBy {
id
}
type _Block_ {
"""The hash of the block"""
hash: Bytes
"""The block number"""
number: Int!
"""Integer representation of the timestamp stored in blocks for the chain"""
timestamp: Int
"""The hash of the parent block"""
parentHash: Bytes
}
type _ChainlinkAggregator {
id: Bytes!
proxy: _ChainlinkProxy!
isDeprecated: Boolean!
}
input _ChainlinkAggregator_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
proxy: String
proxy_not: String
proxy_gt: String
proxy_lt: String
proxy_gte: String
proxy_lte: String
proxy_in: [String!]
proxy_not_in: [String!]
proxy_contains: String
proxy_contains_nocase: String
proxy_not_contains: String
proxy_not_contains_nocase: String
proxy_starts_with: String
proxy_starts_with_nocase: String
proxy_not_starts_with: String
proxy_not_starts_with_nocase: String
proxy_ends_with: String
proxy_ends_with_nocase: String
proxy_not_ends_with: String
proxy_not_ends_with_nocase: String
proxy_: _ChainlinkProxy_filter
isDeprecated: Boolean
isDeprecated_not: Boolean
isDeprecated_in: [Boolean!]
isDeprecated_not_in: [Boolean!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_ChainlinkAggregator_filter]
or: [_ChainlinkAggregator_filter]
}
enum _ChainlinkAggregator_orderBy {
id
proxy
proxy__id
proxy__proxy
proxy__isUSD
proxy__lastPrice
proxy__decimals
proxy__lastPriceBD
proxy__lastPriceUpdateTimestamp
proxy__lastPriceUpdateBlock
isDeprecated
}
type _ChainlinkProxy {
id: Bytes!
proxy: Bytes!
isUSD: Boolean!
currentAggregator: _ChainlinkAggregator!
lastPrice: BigInt!
decimals: Int!
lastPriceBD: BigDecimal!
lastPriceUpdateTimestamp: BigInt!
lastPriceUpdateBlock: BigInt!
}
input _ChainlinkProxy_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
proxy: Bytes
proxy_not: Bytes
proxy_gt: Bytes
proxy_lt: Bytes
proxy_gte: Bytes
proxy_lte: Bytes
proxy_in: [Bytes!]
proxy_not_in: [Bytes!]
proxy_contains: Bytes
proxy_not_contains: Bytes
isUSD: Boolean
isUSD_not: Boolean
isUSD_in: [Boolean!]
isUSD_not_in: [Boolean!]
currentAggregator: String
currentAggregator_not: String
currentAggregator_gt: String
currentAggregator_lt: String
currentAggregator_gte: String
currentAggregator_lte: String
currentAggregator_in: [String!]
currentAggregator_not_in: [String!]
currentAggregator_contains: String
currentAggregator_contains_nocase: String
currentAggregator_not_contains: String
currentAggregator_not_contains_nocase: String
currentAggregator_starts_with: String
currentAggregator_starts_with_nocase: String
currentAggregator_not_starts_with: String
currentAggregator_not_starts_with_nocase: String
currentAggregator_ends_with: String
currentAggregator_ends_with_nocase: String
currentAggregator_not_ends_with: String
currentAggregator_not_ends_with_nocase: String
currentAggregator_: _ChainlinkAggregator_filter
lastPrice: BigInt
lastPrice_not: BigInt
lastPrice_gt: BigInt
lastPrice_lt: BigInt
lastPrice_gte: BigInt
lastPrice_lte: BigInt
lastPrice_in: [BigInt!]
lastPrice_not_in: [BigInt!]
decimals: Int
decimals_not: Int
decimals_gt: Int
decimals_lt: Int
decimals_gte: Int
decimals_lte: Int
decimals_in: [Int!]
decimals_not_in: [Int!]
lastPriceBD: BigDecimal
lastPriceBD_not: BigDecimal
lastPriceBD_gt: BigDecimal
lastPriceBD_lt: BigDecimal
lastPriceBD_gte: BigDecimal
lastPriceBD_lte: BigDecimal
lastPriceBD_in: [BigDecimal!]
lastPriceBD_not_in: [BigDecimal!]
lastPriceUpdateTimestamp: BigInt
lastPriceUpdateTimestamp_not: BigInt
lastPriceUpdateTimestamp_gt: BigInt
lastPriceUpdateTimestamp_lt: BigInt
lastPriceUpdateTimestamp_gte: BigInt
lastPriceUpdateTimestamp_lte: BigInt
lastPriceUpdateTimestamp_in: [BigInt!]
lastPriceUpdateTimestamp_not_in: [BigInt!]
lastPriceUpdateBlock: BigInt
lastPriceUpdateBlock_not: BigInt
lastPriceUpdateBlock_gt: BigInt
lastPriceUpdateBlock_lt: BigInt
lastPriceUpdateBlock_gte: BigInt
lastPriceUpdateBlock_lte: BigInt
lastPriceUpdateBlock_in: [BigInt!]
lastPriceUpdateBlock_not_in: [BigInt!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_ChainlinkProxy_filter]
or: [_ChainlinkProxy_filter]
}
enum _ChainlinkProxy_orderBy {
id
proxy
isUSD
currentAggregator
currentAggregator__id
currentAggregator__isDeprecated
lastPrice
decimals
lastPriceBD
lastPriceUpdateTimestamp
lastPriceUpdateBlock
}
type _DefaultOracle {
""" protocol id """
id: Bytes!
""" address of default oracle """
oracle: Bytes!
}
input _DefaultOracle_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
oracle: Bytes
oracle_not: Bytes
oracle_gt: Bytes
oracle_lt: Bytes
oracle_gte: Bytes
oracle_lte: Bytes
oracle_in: [Bytes!]
oracle_not_in: [Bytes!]
oracle_contains: Bytes
oracle_not_contains: Bytes
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_DefaultOracle_filter]
or: [_DefaultOracle_filter]
}
enum _DefaultOracle_orderBy {
id
oracle
}
type _FlashLoanPremium {
""" protocol id """
id: Bytes!
""" total premium rate """
premiumRateTotal: BigDecimal!
""" premium rate to protocol """
premiumRateToProtocol: BigDecimal!
}
input _FlashLoanPremium_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
premiumRateTotal: BigDecimal
premiumRateTotal_not: BigDecimal
premiumRateTotal_gt: BigDecimal
premiumRateTotal_lt: BigDecimal
premiumRateTotal_gte: BigDecimal
premiumRateTotal_lte: BigDecimal
premiumRateTotal_in: [BigDecimal!]
premiumRateTotal_not_in: [BigDecimal!]
premiumRateToProtocol: BigDecimal
premiumRateToProtocol_not: BigDecimal
premiumRateToProtocol_gt: BigDecimal
premiumRateToProtocol_lt: BigDecimal
premiumRateToProtocol_gte: BigDecimal
premiumRateToProtocol_lte: BigDecimal
premiumRateToProtocol_in: [BigDecimal!]
premiumRateToProtocol_not_in: [BigDecimal!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_FlashLoanPremium_filter]
or: [_FlashLoanPremium_filter]
}
enum _FlashLoanPremium_orderBy {
id
premiumRateTotal
premiumRateToProtocol
}
type _MarketList {
""" Same ID as LendingProtocol """
id: Bytes!
""" IDs of all markets in the LendingProtocol """
markets: [Bytes!]!
}
input _MarketList_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
markets: [Bytes!]
markets_not: [Bytes!]
markets_contains: [Bytes!]
markets_contains_nocase: [Bytes!]
markets_not_contains: [Bytes!]
markets_not_contains_nocase: [Bytes!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_MarketList_filter]
or: [_MarketList_filter]
}
enum _MarketList_orderBy {
id
markets
}
"""The type for the top-level _meta field"""
type _Meta_ {
"""
Information about a specific subgraph block. The hash of the block
will be null if the _meta field has a block constraint that asks for
a block number. It will be filled if the _meta field has no block constraint
and therefore asks for the latest block
"""
block: _Block_!
"""The deployment ID"""
deployment: String!
"""If `true`, the subgraph encountered indexing errors at some past block"""
hasIndexingErrors: Boolean!
}
type _PositionCounter {
""" { Account address }-{ Market address }-{ Position Side } """
id: ID!
""" Next count """
nextCount: Int!
""" The last timestamp this position was updated """
lastTimestamp: BigInt!
}
input _PositionCounter_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
nextCount: Int
nextCount_not: Int
nextCount_gt: Int
nextCount_lt: Int
nextCount_gte: Int
nextCount_lte: Int
nextCount_in: [Int!]
nextCount_not_in: [Int!]
lastTimestamp: BigInt
lastTimestamp_not: BigInt
lastTimestamp_gt: BigInt
lastTimestamp_lt: BigInt
lastTimestamp_gte: BigInt
lastTimestamp_lte: BigInt
lastTimestamp_in: [BigInt!]
lastTimestamp_not_in: [BigInt!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [_PositionCounter_filter]
or: [_PositionCounter_filter]
}
enum _PositionCounter_orderBy {
id
nextCount
lastTimestamp
}
enum _SubgraphErrorPolicy_ {
"""Data will be returned even if the subgraph has indexing errors"""
allow
"""
If the subgraph has indexing errors, data will be omitted. The default.
"""
deny
}
type Account {
""" { Account address } """
id: Bytes!
""" Number of positions this account has """
positionCount: Int!
""" All positions that belong to this account """
positions(skip: Int = 0, first: Int = 100, orderBy: Position_orderBy, orderDirection: OrderDirection, where: Position_filter): [Position!]!
""" Number of open positions this account has """
openPositionCount: Int!
""" Number of closed positions this account has """
closedPositionCount: Int!
""" Number of deposits this account made """
depositCount: Int!
""" All deposit events of this account """
deposits(skip: Int = 0, first: Int = 100, orderBy: Deposit_orderBy, orderDirection: OrderDirection, where: Deposit_filter): [Deposit!]!
""" Number of withdrawals this account made """
withdrawCount: Int!
""" All withdraw events of this account """
withdraws(skip: Int = 0, first: Int = 100, orderBy: Withdraw_orderBy, orderDirection: OrderDirection, where: Withdraw_filter): [Withdraw!]!
""" Number of borrows this account made """
borrowCount: Int!
""" All borrow events of this account """
borrows(skip: Int = 0, first: Int = 100, orderBy: Borrow_orderBy, orderDirection: OrderDirection, where: Borrow_filter): [Borrow!]!
""" Number of repays this account made """
repayCount: Int!
""" All repay events of this account """
repays(skip: Int = 0, first: Int = 100, orderBy: Repay_orderBy, orderDirection: OrderDirection, where: Repay_filter): [Repay!]!
""" Number of times this account liquidated a position """
liquidateCount: Int!
""" All liquidation events where this account was the liquidator """
liquidates(skip: Int = 0, first: Int = 100, orderBy: Liquidate_orderBy, orderDirection: OrderDirection, where: Liquidate_filter): [Liquidate!]!
""" Number of times this account has been liquidated """
liquidationCount: Int!
""" All liquidation events where this account got liquidated """
liquidations(skip: Int = 0, first: Int = 100, orderBy: Liquidate_orderBy, orderDirection: OrderDirection, where: Liquidate_filter): [Liquidate!]!
""" Number of times this account has transferred """
transferredCount: Int!
""" All transfer events where this account was the sender """
transfers(skip: Int = 0, first: Int = 100, orderBy: Transfer_orderBy, orderDirection: OrderDirection, where: Transfer_filter): [Transfer!]!
""" Number of times this account has received a transfer """
receivedCount: Int!
""" All transfer events where this account was the receiver """
receives(skip: Int = 0, first: Int = 100, orderBy: Transfer_orderBy, orderDirection: OrderDirection, where: Transfer_filter): [Transfer!]!
""" Number of times this account has executed a flashloan """
flashloanCount: Int!
""" All flashloan events where this account executed it """
flashloans(skip: Int = 0, first: Int = 100, orderBy: Flashloan_orderBy, orderDirection: OrderDirection, where: Flashloan_filter): [Flashloan!]!
metaMorphoOwner(skip: Int = 0, first: Int = 100, orderBy: MetaMorpho_orderBy, orderDirection: OrderDirection, where: MetaMorpho_filter): [MetaMorpho!]!
metaMorphoCurator(skip: Int = 0, first: Int = 100, orderBy: MetaMorpho_orderBy, orderDirection: OrderDirection, where: MetaMorpho_filter): [MetaMorpho!]!
metaMorphoAllocator(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoAllocator_orderBy, orderDirection: OrderDirection, where: MetaMorphoAllocator_filter): [MetaMorphoAllocator!]!
metaMorphoGuardian(skip: Int = 0, first: Int = 100, orderBy: MetaMorpho_orderBy, orderDirection: OrderDirection, where: MetaMorpho_filter): [MetaMorpho!]!
metaMorpho(skip: Int = 0, first: Int = 100, orderBy: MetaMorpho_orderBy, orderDirection: OrderDirection, where: MetaMorpho_filter): [MetaMorpho!]!
feeRecipient(skip: Int = 0, first: Int = 100, orderBy: FeeRecipient_orderBy, orderDirection: OrderDirection, where: FeeRecipient_filter): [FeeRecipient!]!
metaMorphoPositions(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoPosition_orderBy, orderDirection: OrderDirection, where: MetaMorphoPosition_filter): [MetaMorphoPosition!]!
metaMorphoDeposit(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoDeposit_orderBy, orderDirection: OrderDirection, where: MetaMorphoDeposit_filter): [MetaMorphoDeposit!]!
metaMorphoWithdraw(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoWithdraw_orderBy, orderDirection: OrderDirection, where: MetaMorphoWithdraw_filter): [MetaMorphoWithdraw!]!
metaMorphoTransferFrom(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoTransfer_orderBy, orderDirection: OrderDirection, where: MetaMorphoTransfer_filter): [MetaMorphoTransfer!]!
metaMorphoTransferTo(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoTransfer_orderBy, orderDirection: OrderDirection, where: MetaMorphoTransfer_filter): [MetaMorphoTransfer!]!
publicAllocatorAdmin(skip: Int = 0, first: Int = 100, orderBy: MetaMorphoPublicAllocator_orderBy, orderDirection: OrderDirection, where: MetaMorphoPublicAllocator_filter): [MetaMorphoPublicAllocator!]!
publicAllocatorReallocateToAuthor(skip: Int = 0, first: Int = 100, orderBy: PublicAllocatorReallocationToEvent_orderBy, orderDirection: OrderDirection, where: PublicAllocatorReallocationToEvent_filter): [PublicAllocatorReallocationToEvent!]!
publicAllocatorWithdrawalAuthor(skip: Int = 0, first: Int = 100, orderBy: PublicAllocatorWithdrawalEvent_orderBy, orderDirection: OrderDirection, where: PublicAllocatorWithdrawalEvent_filter): [PublicAllocatorWithdrawalEvent!]!
publicAllocatorSetFlowCapsAuthor(skip: Int = 0, first: Int = 100, orderBy: SetFlowCapsEvent_orderBy, orderDirection: OrderDirection, where: SetFlowCapsEvent_filter): [SetFlowCapsEvent!]!
}
input Account_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
positionCount: Int
positionCount_not: Int
positionCount_gt: Int
positionCount_lt: Int
positionCount_gte: Int
positionCount_lte: Int
positionCount_in: [Int!]
positionCount_not_in: [Int!]
positions_: Position_filter
openPositionCount: Int
openPositionCount_not: Int
openPositionCount_gt: Int
openPositionCount_lt: Int
openPositionCount_gte: Int
openPositionCount_lte: Int
openPositionCount_in: [Int!]
openPositionCount_not_in: [Int!]
closedPositionCount: Int
closedPositionCount_not: Int
closedPositionCount_gt: Int
closedPositionCount_lt: Int
closedPositionCount_gte: Int
closedPositionCount_lte: Int
closedPositionCount_in: [Int!]
closedPositionCount_not_in: [Int!]
depositCount: Int
depositCount_not: Int
depositCount_gt: Int
depositCount_lt: Int
depositCount_gte: Int
depositCount_lte: Int
depositCount_in: [Int!]
depositCount_not_in: [Int!]
deposits_: Deposit_filter
withdrawCount: Int
withdrawCount_not: Int
withdrawCount_gt: Int
withdrawCount_lt: Int
withdrawCount_gte: Int
withdrawCount_lte: Int
withdrawCount_in: [Int!]
withdrawCount_not_in: [Int!]
withdraws_: Withdraw_filter
borrowCount: Int
borrowCount_not: Int
borrowCount_gt: Int
borrowCount_lt: Int
borrowCount_gte: Int
borrowCount_lte: Int
borrowCount_in: [Int!]
borrowCount_not_in: [Int!]
borrows_: Borrow_filter
repayCount: Int
repayCount_not: Int
repayCount_gt: Int
repayCount_lt: Int
repayCount_gte: Int
repayCount_lte: Int
repayCount_in: [Int!]
repayCount_not_in: [Int!]
repays_: Repay_filter
liquidateCount: Int
liquidateCount_not: Int
liquidateCount_gt: Int
liquidateCount_lt: Int
liquidateCount_gte: Int
liquidateCount_lte: Int
liquidateCount_in: [Int!]
liquidateCount_not_in: [Int!]
liquidates_: Liquidate_filter
liquidationCount: Int
liquidationCount_not: Int
liquidationCount_gt: Int
liquidationCount_lt: Int
liquidationCount_gte: Int
liquidationCount_lte: Int
liquidationCount_in: [Int!]
liquidationCount_not_in: [Int!]
liquidations_: Liquidate_filter
transferredCount: Int
transferredCount_not: Int
transferredCount_gt: Int
transferredCount_lt: Int
transferredCount_gte: Int
transferredCount_lte: Int
transferredCount_in: [Int!]
transferredCount_not_in: [Int!]
transfers_: Transfer_filter
receivedCount: Int
receivedCount_not: Int
receivedCount_gt: Int
receivedCount_lt: Int
receivedCount_gte: Int
receivedCount_lte: Int
receivedCount_in: [Int!]
receivedCount_not_in: [Int!]
receives_: Transfer_filter
flashloanCount: Int
flashloanCount_not: Int
flashloanCount_gt: Int
flashloanCount_lt: Int
flashloanCount_gte: Int
flashloanCount_lte: Int
flashloanCount_in: [Int!]
flashloanCount_not_in: [Int!]
flashloans_: Flashloan_filter
metaMorphoOwner_: MetaMorpho_filter
metaMorphoCurator_: MetaMorpho_filter
metaMorphoAllocator_: MetaMorphoAllocator_filter
metaMorphoGuardian_: MetaMorpho_filter
metaMorpho_: MetaMorpho_filter
feeRecipient_: FeeRecipient_filter
metaMorphoPositions_: MetaMorphoPosition_filter
metaMorphoDeposit_: MetaMorphoDeposit_filter
metaMorphoWithdraw_: MetaMorphoWithdraw_filter
metaMorphoTransferFrom_: MetaMorphoTransfer_filter
metaMorphoTransferTo_: MetaMorphoTransfer_filter
publicAllocatorAdmin_: MetaMorphoPublicAllocator_filter
publicAllocatorReallocateToAuthor_: PublicAllocatorReallocationToEvent_filter
publicAllocatorWithdrawalAuthor_: PublicAllocatorWithdrawalEvent_filter
publicAllocatorSetFlowCapsAuthor_: SetFlowCapsEvent_filter
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [Account_filter]
or: [Account_filter]
}
enum Account_orderBy {
id
positionCount
positions
openPositionCount
closedPositionCount
depositCount
deposits
withdrawCount
withdraws
borrowCount
borrows
repayCount
repays
liquidateCount
liquidates
liquidationCount
liquidations
transferredCount
transfers
receivedCount
receives
flashloanCount
flashloans
metaMorphoOwner
metaMorphoCurator
metaMorphoAllocator
metaMorphoGuardian
metaMorpho
feeRecipient
metaMorphoPositions
metaMorphoDeposit
metaMorphoWithdraw
metaMorphoTransferFrom
metaMorphoTransferTo
publicAllocatorAdmin
publicAllocatorReallocateToAuthor
publicAllocatorWithdrawalAuthor
publicAllocatorSetFlowCapsAuthor
}
enum Aggregation_interval {
hour
day
}
type AllocatorSet {
""" { Transaction hash }{ Log index } """
id: Bytes!
""" Transaction hash of the transaction that emitted this event """
hash: Bytes!
""" Nonce of the transaction that emitted this event """
nonce: BigInt!
""" Event log index. For transactions that don't emit event, create arbitrary index starting from 0
"""
logIndex: Int!
""" Price of gas in this transaction """
gasPrice: BigInt
""" Gas used in this transaction. (Optional because not every chain will support this)
"""
gasUsed: BigInt
""" Gas limit of this transaction. e.g. the amount of gas the sender will pay
"""
gasLimit: BigInt
""" Block number of this event """
blockNumber: BigInt!
""" Timestamp of this event """
timestamp: BigInt!
""" Account that executed the transaction"""
accountActor: Account
metaMorpho: MetaMorpho!
allocator: MetaMorphoAllocator!
isAllocator: Boolean!
}
input AllocatorSet_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
hash: Bytes
hash_not: Bytes
hash_gt: Bytes
hash_lt: Bytes
hash_gte: Bytes
hash_lte: Bytes
hash_in: [Bytes!]
hash_not_in: [Bytes!]
hash_contains: Bytes
hash_not_contains: Bytes
nonce: BigInt
nonce_not: BigInt
nonce_gt: BigInt
nonce_lt: BigInt
nonce_gte: BigInt
nonce_lte: BigInt
nonce_in: [BigInt!]
nonce_not_in: [BigInt!]
logIndex: Int
logIndex_not: Int
logIndex_gt: Int
logIndex_lt: Int
logIndex_gte: Int
logIndex_lte: Int
logIndex_in: [Int!]
logIndex_not_in: [Int!]
gasPrice: BigInt
gasPrice_not: BigInt
gasPrice_gt: BigInt
gasPrice_lt: BigInt
gasPrice_gte: BigInt
gasPrice_lte: BigInt
gasPrice_in: [BigInt!]
gasPrice_not_in: [BigInt!]
gasUsed: BigInt
gasUsed_not: BigInt
gasUsed_gt: BigInt
gasUsed_lt: BigInt
gasUsed_gte: BigInt
gasUsed_lte: BigInt
gasUsed_in: [BigInt!]
gasUsed_not_in: [BigInt!]
gasLimit: BigInt
gasLimit_not: BigInt
gasLimit_gt: BigInt
gasLimit_lt: BigInt
gasLimit_gte: BigInt
gasLimit_lte: BigInt
gasLimit_in: [BigInt!]
gasLimit_not_in: [BigInt!]
blockNumber: BigInt
blockNumber_not: BigInt
blockNumber_gt: BigInt
blockNumber_lt: BigInt
blockNumber_gte: BigInt
blockNumber_lte: BigInt
blockNumber_in: [BigInt!]
blockNumber_not_in: [BigInt!]
timestamp: BigInt
timestamp_not: BigInt
timestamp_gt: BigInt
timestamp_lt: BigInt
timestamp_gte: BigInt
timestamp_lte: BigInt
timestamp_in: [BigInt!]
timestamp_not_in: [BigInt!]
accountActor: String
accountActor_not: String
accountActor_gt: String
accountActor_lt: String
accountActor_gte: String
accountActor_lte: String
accountActor_in: [String!]
accountActor_not_in: [String!]
accountActor_contains: String
accountActor_contains_nocase: String
accountActor_not_contains: String
accountActor_not_contains_nocase: String
accountActor_starts_with: String
accountActor_starts_with_nocase: String
accountActor_not_starts_with: String
accountActor_not_starts_with_nocase: String
accountActor_ends_with: String
accountActor_ends_with_nocase: String
accountActor_not_ends_with: String
accountActor_not_ends_with_nocase: String
accountActor_: Account_filter
metaMorpho: String
metaMorpho_not: String
metaMorpho_gt: String
metaMorpho_lt: String
metaMorpho_gte: String
metaMorpho_lte: String
metaMorpho_in: [String!]
metaMorpho_not_in: [String!]
metaMorpho_contains: String
metaMorpho_contains_nocase: String
metaMorpho_not_contains: String
metaMorpho_not_contains_nocase: String
metaMorpho_starts_with: String
metaMorpho_starts_with_nocase: String
metaMorpho_not_starts_with: String
metaMorpho_not_starts_with_nocase: String
metaMorpho_ends_with: String
metaMorpho_ends_with_nocase: String
metaMorpho_not_ends_with: String
metaMorpho_not_ends_with_nocase: String
metaMorpho_: MetaMorpho_filter
allocator: String
allocator_not: String
allocator_gt: String
allocator_lt: String
allocator_gte: String
allocator_lte: String
allocator_in: [String!]
allocator_not_in: [String!]
allocator_contains: String
allocator_contains_nocase: String
allocator_not_contains: String
allocator_not_contains_nocase: String
allocator_starts_with: String
allocator_starts_with_nocase: String
allocator_not_starts_with: String
allocator_not_starts_with_nocase: String
allocator_ends_with: String
allocator_ends_with_nocase: String
allocator_not_ends_with: String
allocator_not_ends_with_nocase: String
allocator_: MetaMorphoAllocator_filter
isAllocator: Boolean
isAllocator_not: Boolean
isAllocator_in: [Boolean!]
isAllocator_not_in: [Boolean!]
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [AllocatorSet_filter]
or: [AllocatorSet_filter]
}
enum AllocatorSet_orderBy {
id
hash
nonce
logIndex
gasPrice
gasUsed
gasLimit
blockNumber
timestamp
accountActor
accountActor__id
accountActor__positionCount
accountActor__openPositionCount
accountActor__closedPositionCount
accountActor__depositCount
accountActor__withdrawCount
accountActor__borrowCount
accountActor__repayCount
accountActor__liquidateCount
accountActor__liquidationCount
accountActor__transferredCount
accountActor__receivedCount
accountActor__flashloanCount
metaMorpho
metaMorpho__id
metaMorpho__version
metaMorpho__name
metaMorpho__symbol
metaMorpho__decimals
metaMorpho__hasPublicAllocator
metaMorpho__timelock
metaMorpho__fee
metaMorpho__feeAccrued
metaMorpho__feeAccruedAssets
metaMorpho__lastTotalAssets
metaMorpho__totalShares
metaMorpho__idle
allocator
allocator__id
allocator__isCurrentAllocator
allocator__isPublicAllocator
isAllocator
}
type BadDebtRealization {
id: Bytes!
market: Market!
liquidation: Liquidate!
badDebt: BigInt!
badDebtUSD: BigDecimal
}
input BadDebtRealization_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
market: String
market_not: String
market_gt: String
market_lt: String
market_gte: String
market_lte: String
market_in: [String!]
market_not_in: [String!]
market_contains: String
market_contains_nocase: String
market_not_contains: String
market_not_contains_nocase: String
market_starts_with: String
market_starts_with_nocase: String
market_not_starts_with: String
market_not_starts_with_nocase: String
market_ends_with: String
market_ends_with_nocase: String
market_not_ends_with: String
market_not_ends_with_nocase: String
market_: Market_filter
liquidation: String
liquidation_not: String
liquidation_gt: String
liquidation_lt: String
liquidation_gte: String
liquidation_lte: String
liquidation_in: [String!]
liquidation_not_in: [String!]
liquidation_contains: String
liquidation_contains_nocase: String
liquidation_not_contains: String