-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
996 lines (808 loc) · 23.9 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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
"""Records of allow list entries for claimable fractions"""
type AllowlistRecord {
"""Whether the fraction has been claimed"""
claimed: Boolean
"""The entry index of the Merkle tree for the claimable fraction"""
entry: Float
"""The hypercert ID the claimable fraction belongs to"""
hypercert_id: String
id: ID!
"""The leaf of the Merkle tree for the claimable fraction"""
leaf: String
"""The proof for the claimable fraction"""
proof: [String!]
"""The root of the allow list Merkle tree"""
root: String
"""The token ID of the hypercert the claimable fraction belongs to"""
token_id: EthBigInt
"""The total number of units held by the hypercert"""
total_units: EthBigInt
"""The number of units of the claimable fraction"""
units: EthBigInt
"""The address of the user who can claim the fraction"""
user_address: String
}
input AllowlistRecordFetchInput {
by: AllowlistRecordSortOptions
}
input AllowlistRecordSortOptions {
claimed: SortOrder
entry: SortOrder
hypercert_id: SortOrder
leaf: SortOrder
proof: SortOrder
root: SortOrder
token_id: SortOrder
total_units: SortOrder
units: SortOrder
user_address: SortOrder
}
input AllowlistRecordWhereInput {
claimed: BooleanSearchOptions
entry: BigIntSearchOptions
hypercert_id: StringSearchOptions
leaf: StringSearchOptions
proof: StringArraySearchOptions
root: StringSearchOptions
token_id: BigIntSearchOptions
total_units: BigIntSearchOptions
units: BigIntSearchOptions
user_address: StringSearchOptions
}
"""Attestation on the Ethereum Attestation Service"""
type Attestation {
"""Address of the creator of the attestation"""
attester: String
"""Block number at which the attestation was created"""
creation_block_number: EthBigInt
"""Timestamp at which the attestation was created"""
creation_block_timestamp: EthBigInt
"""Encoded data of the attestation"""
data: JSON
"""Hypercert related to the attestation"""
hypercert: HypercertBaseType
id: ID!
"""Block number at which the attestation was last updated"""
last_update_block_number: EthBigInt
"""Timestamp at which the attestation was last updated"""
last_update_block_timestamp: EthBigInt
"""Address of the recipient of the attestation"""
recipient: String
"""Address of the resolver contract for the attestation"""
resolver: String
"""Unique identifier of the EAS schema used to create the attestation"""
schema: String
"""ID referencing the supported EAS schema in the database"""
supported_schemas_id: ID
"""Unique identifier for the attestation on EAS"""
uid: ID
}
input AttestationFetchInput {
by: AttestationSortOptions
}
"""Supported EAS attestation schemas and their related records"""
type AttestationSchema {
"""Chain ID of the chains where the attestation schema is supported"""
chain_id: EthBigInt
id: ID!
"""List of attestations related to the attestation schema"""
records: [Attestation!]
"""Address of the resolver contract for the attestation schema"""
resolver: String
"""Whether the attestation schema is revocable"""
revocable: Boolean
"""String representation of the attestation schema"""
schema: String
"""Unique identifier for the attestation schema"""
uid: ID
}
input AttestationSortOptions {
attestation_uid: SortOrder
attester_address: SortOrder
creation_block_number: SortOrder
creation_block_timestamp: SortOrder
last_update_block_number: SortOrder
last_update_block_timestamp: SortOrder
recipient_address: SortOrder
schema: SortOrder
}
input AttestationWhereInput {
attestation: StringSearchOptions
attester: StringSearchOptions
chain_id: BigIntSearchOptions
contract_address: StringSearchOptions
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
hypercerts: BasicHypercertWhereArgs
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
metadata: BasicMetadataWhereInput
recipient: StringSearchOptions
resolver: StringSearchOptions
schema: StringSearchOptions
supported_schemas_id: StringSearchOptions
token_id: StringSearchOptions
uid: StringSearchOptions
}
input BasicAttestationWhereInput {
attestation: StringSearchOptions
attester: StringSearchOptions
chain_id: BigIntSearchOptions
contract_address: StringSearchOptions
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
recipient: StringSearchOptions
resolver: StringSearchOptions
schema: StringSearchOptions
supported_schemas_id: StringSearchOptions
token_id: StringSearchOptions
uid: StringSearchOptions
}
input BasicContractWhereInput {
chain_id: BigIntSearchOptions
contract_address: StringSearchOptions
id: IdSearchOptions
}
input BasicFractionWhereInput {
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
fraction_id: StringSearchOptions
hypercert_id: StringSearchOptions
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
owner_address: StringSearchOptions
token_id: BigIntSearchOptions
units: BigIntSearchOptions
}
input BasicHypercertWhereArgs {
"""Count of attestations referencing this hypercert"""
attestations_count: NumberSearchOptions
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
creator_address: StringSearchOptions
hypercert_id: StringSearchOptions
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
sales_count: NumberSearchOptions
token_id: BigIntSearchOptions
uri: StringSearchOptions
}
input BasicMetadataWhereInput {
contributors: StringArraySearchOptions
creation_block_timestamp: BigIntSearchOptions
description: StringSearchOptions
id: IdSearchOptions
impact_scope: StringArraySearchOptions
impact_timeframe_from: BigIntSearchOptions
impact_timeframe_to: BigIntSearchOptions
last_block_update_timestamp: BigIntSearchOptions
name: StringSearchOptions
rights: StringArraySearchOptions
uri: StringSearchOptions
work_scope: StringArraySearchOptions
work_timeframe_from: BigIntSearchOptions
work_timeframe_to: BigIntSearchOptions
}
"""
The `BigInt` scalar type represents non-fractional signed whole numeric values.
"""
scalar BigInt
input BigIntSearchOptions {
eq: BigInt
gt: BigInt
gte: BigInt
lt: BigInt
lte: BigInt
}
type Blueprint {
admins: [User!]!
created_at: String!
form_values: JSON!
id: Float!
minted: Boolean!
minter_address: String!
}
input BlueprintFetchInput {
by: BlueprintSortOptions
}
input BlueprintSortOptions {
created_at: SortOrder
}
input BlueprintWhereInput {
admin_address: StringSearchOptions
id: NumberSearchOptions
minted: BooleanSearchOptions
minter_address: StringSearchOptions
}
input BooleanSearchOptions {
eq: Boolean
}
"""Collection of hypercerts for reference and display purposes"""
type Collection {
admins: [User!]!
"""Chain ID of the collection"""
chain_ids: [EthBigInt!]
"""Creation timestamp of the collection"""
created_at: String!
"""Description of the collection"""
description: String!
id: ID!
"""Name of the collection"""
name: String!
}
"""Pointer to a contract deployed on a chain"""
type Contract {
"""The ID of the chain on which the contract is deployed"""
chain_id: EthBigInt
"""The address of the contract"""
contract_address: String
id: ID!
"""The block number at which the contract was deployed"""
start_block: EthBigInt
}
input ContractFetchInput {
by: ContractSortOptions
}
input ContractSortOptions {
chain_id: SortOrder
contract_address: SortOrder
contract_id: SortOrder
}
input ContractWhereInput {
chain_id: BigIntSearchOptions
contract_address: StringSearchOptions
id: IdSearchOptions
}
"""Handles uint256 bigint values stored in DB"""
scalar EthBigInt
"""Fraction of an hypercert"""
type Fraction {
"""Block number of the creation of the fraction"""
creation_block_number: EthBigInt
"""Timestamp of the block of the creation of the fraction"""
creation_block_timestamp: EthBigInt
"""
The ID of the fraction concatenated from the chain ID, contract address, and token ID of the fraction
"""
fraction_id: ID
"""
The ID of the fraction concatenated from the chain ID, contract address, and ID of the hypercert claim
"""
hypercert_id: ID
id: ID!
"""Block number of the last update of the fraction"""
last_update_block_number: EthBigInt
"""Timestamp of the block of the last update of the fraction"""
last_update_block_timestamp: EthBigInt
"""The metadata for the fraction"""
metadata: Metadata
"""Marketplace orders related to this fraction"""
orders: GetOrdersResponse
"""Address of the owner of the fractions"""
owner_address: String
"""Sales related to this fraction"""
sales: GetSalesResponse
"""Units held by the fraction"""
units: EthBigInt
}
input FractionFetchInput {
by: FractionSortOptions
}
input FractionSortOptions {
creation_block_number: SortOrder
creation_block_timestamp: SortOrder
last_update_block_number: SortOrder
last_update_block_timestamp: SortOrder
owner_address: SortOrder
token_id: SortOrder
units: SortOrder
}
input FractionWhereInput {
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
fraction_id: StringSearchOptions
hypercert_id: StringSearchOptions
hypercerts: BasicHypercertWhereArgs
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
owner_address: StringSearchOptions
token_id: BigIntSearchOptions
units: BigIntSearchOptions
}
type GetAllowlistRecordResponse {
count: Int
data: [AllowlistRecord!]
}
type GetAttestationsResponse {
count: Int
data: [Attestation!]
}
type GetAttestationsSchemaResponse {
count: Int
data: [AttestationSchema!]
}
type GetBlueprintResponse {
count: Int
data: [Blueprint!]
}
"""Pointer to a contract deployed on a chain"""
type GetContractsResponse {
count: Int
data: [Contract!]
}
"""Fraction of an hypercert"""
type GetFractionsResponse {
count: Int
data: [Fraction!]
}
type GetHyperboardsResponse {
count: Int
data: [Hyperboard!]
}
"""
Hypercert with metadata, contract, orders, sales and fraction information
"""
type GetHypercertsResponse {
count: Int
data: [Hypercert!]
}
type GetMetadataResponse {
count: Int
data: [Metadata!]
}
type GetOrdersForHypercertResponse {
cheapestOrder: Order
count: Int
data: [Order!]
totalUnitsForSale: BigInt
}
type GetOrdersResponse {
count: Int
data: [Order!]
}
type GetSalesResponse {
count: Int
data: [Sale!]
}
type GetUsersResponse {
count: Int
data: [User!]
}
"""Hyperboard of hypercerts for reference and display purposes"""
type Hyperboard {
admins: [User!]!
"""Background image of the hyperboard"""
background_image: String
"""Chain ID of the hyperboard"""
chain_ids: [EthBigInt!]
"""Whether the hyperboard should be rendered as a grayscale image"""
grayscale_images: Boolean
id: ID!
"""Name of the hyperboard"""
name: String!
owners: [HyperboardOwner!]!
sections: SectionResponseType!
"""Color of the borders of the hyperboard"""
tile_border_color: String
}
input HyperboardFetchInput {
by: HyperboardSortOptions
}
type HyperboardOwner {
"""The address of the user"""
address: String!
"""The avatar of the user"""
avatar: String
"""The chain ID of the user"""
chain_id: EthBigInt
"""The display name of the user"""
display_name: String
percentage_owned: Float!
}
input HyperboardSortOptions {
admin_id: SortOrder
chainId: SortOrder
name: SortOrder
}
input HyperboardWhereInput {
admin_id: StringSearchOptions
chain_id: BigIntSearchOptions
id: IdSearchOptions
}
"""
Hypercert with metadata, contract, orders, sales and fraction information
"""
type Hypercert {
"""Attestations for the hypercert or parts of its data"""
attestations: GetAttestationsResponse
"""Count of attestations referencing this hypercert"""
attestations_count: Int
"""The contract that the hypercert is associated with"""
contract: Contract
"""The UUID of the contract as stored in the database"""
contracts_id: ID
creation_block_number: EthBigInt
creation_block_timestamp: EthBigInt
"""The address of the creator of the hypercert"""
creator_address: String
"""Transferable fractions representing partial ownership of the hypercert"""
fractions: GetFractionsResponse
"""
Concatenation of [chainID]-[contractAddress]-[tokenID] to discern hypercerts across chains
"""
hypercert_id: ID
id: ID!
last_update_block_number: EthBigInt
last_update_block_timestamp: EthBigInt
"""The metadata for the hypercert as referenced by the uri"""
metadata: Metadata
"""Marketplace orders related to this hypercert"""
orders: GetOrdersForHypercertResponse
"""Sales related to this hypercert"""
sales: GetSalesResponse
"""Count of sales of fractions that belong to this hypercert"""
sales_count: Int
"""The token ID of the hypercert"""
token_id: EthBigInt
"""The total units held by the hypercert"""
units: EthBigInt
"""References the metadata for this claim"""
uri: String
}
type HypercertBaseType {
"""Count of attestations referencing this hypercert"""
attestations_count: Int
"""The UUID of the contract as stored in the database"""
contracts_id: ID
creation_block_number: EthBigInt
creation_block_timestamp: EthBigInt
"""The address of the creator of the hypercert"""
creator_address: String
"""
Concatenation of [chainID]-[contractAddress]-[tokenID] to discern hypercerts across chains
"""
hypercert_id: ID
id: ID!
last_update_block_number: EthBigInt
last_update_block_timestamp: EthBigInt
"""The metadata for the hypercert as referenced by the uri"""
metadata: Metadata
"""Count of sales of fractions that belong to this hypercert"""
sales_count: Int
"""The token ID of the hypercert"""
token_id: EthBigInt
"""The total units held by the hypercert"""
units: EthBigInt
"""References the metadata for this claim"""
uri: String
}
input HypercertFetchInput {
by: HypercertSortOptions
}
input HypercertSortOptions {
attestations_count: SortOrder
creation_block_number: SortOrder
creation_block_timestamp: SortOrder
hypercert_id: SortOrder
last_block_update_timestamp: SortOrder
last_update_block_number: SortOrder
last_update_block_timestamp: SortOrder
owner_address: SortOrder
sales_count: SortOrder
token_id: SortOrder
units: SortOrder
uri: SortOrder
}
"""Arguments for filtering hypercerts"""
input HypercertsWhereArgs {
attestations: BasicAttestationWhereInput
"""Count of attestations referencing this hypercert"""
attestations_count: NumberSearchOptions
contract: BasicContractWhereInput
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
creator_address: StringSearchOptions
fractions: BasicFractionWhereInput
hypercert_id: StringSearchOptions
id: IdSearchOptions
last_update_block_number: BigIntSearchOptions
last_update_block_timestamp: BigIntSearchOptions
metadata: BasicMetadataWhereInput
sales_count: NumberSearchOptions
token_id: BigIntSearchOptions
uri: StringSearchOptions
}
input IdSearchOptions {
eq: UUID
in: [UUID!]
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
"""
Metadata related to the hypercert describing work, impact, timeframes and other relevant information
"""
type Metadata {
"""URI of the allow list for the hypercert"""
allow_list_uri: String
"""Contributors to the work and impact of the hypercert"""
contributors: [String!]
"""Description of the hypercert"""
description: String
"""References additional information related to the hypercert"""
external_url: String
id: ID!
"""Base64 encoded representation of the image of the hypercert"""
image: String
"""Impact scope of the hypercert"""
impact_scope: [String!]
"""Timestamp of the start of the impact (in seconds)"""
impact_timeframe_from: EthBigInt
"""Timestamp of the end of the impact (in seconds)"""
impact_timeframe_to: EthBigInt
"""Name of the hypercert"""
name: String
"""Properties of the hypercert"""
properties: JSON
"""Rights of the hypercert"""
rights: [String!]
"""URI of the hypercert metadata"""
uri: String
"""Work scope of the hypercert"""
work_scope: [String!]
"""Timestamp of the start of the work (in seconds)"""
work_timeframe_from: EthBigInt
"""Timestamp of the end of the work (in seconds)"""
work_timeframe_to: EthBigInt
}
input MetadataFetchInput {
by: MetadataSortOptions
}
input MetadataSortOptions {
allow_list_uri: SortOrder
description: SortOrder
external_url: SortOrder
metadata_id: SortOrder
name: SortOrder
uri: SortOrder
}
input MetadataWhereInput {
contributors: StringArraySearchOptions
creation_block_timestamp: BigIntSearchOptions
description: StringSearchOptions
hypercerts: BasicHypercertWhereArgs
id: IdSearchOptions
impact_scope: StringArraySearchOptions
impact_timeframe_from: BigIntSearchOptions
impact_timeframe_to: BigIntSearchOptions
last_block_update_timestamp: BigIntSearchOptions
name: StringSearchOptions
rights: StringArraySearchOptions
uri: StringSearchOptions
work_scope: StringArraySearchOptions
work_timeframe_from: BigIntSearchOptions
work_timeframe_to: BigIntSearchOptions
}
input NumberArraySearchOptions {
"""Array of numbers"""
contains: [BigInt!]
"""Array of numbers"""
overlaps: [BigInt!]
}
input NumberSearchOptions {
eq: Int
gt: Int
gte: Int
in: [Int!]
lt: Int
lte: Int
}
type Order {
additionalParameters: String!
amounts: [Float!]!
chainId: EthBigInt!
collection: String!
collectionType: Float!
createdAt: String!
currency: String!
endTime: Float!
globalNonce: String!
"""The hypercert associated with this order"""
hypercert: HypercertBaseType
hypercert_id: String!
id: ID!
invalidated: Boolean!
itemIds: [String!]!
orderNonce: String!
price: String!
pricePerPercentInToken: String!
pricePerPercentInUSD: String!
quoteType: Float!
signature: String!
signer: String!
startTime: Float!
strategyId: Float!
subsetNonce: Float!
validator_codes: [String!]
}
input OrderFetchInput {
by: OrderSortOptions
}
input OrderSortOptions {
amounts: SortOrder
chainId: SortOrder
collection: SortOrder
collectionType: SortOrder
createdAt: SortOrder
currency: SortOrder
endTime: SortOrder
globalNonce: SortOrder
hypercert_id: SortOrder
invalidated: SortOrder
orderNonce: SortOrder
price: SortOrder
quoteType: SortOrder
signer: SortOrder
startTime: SortOrder
strategyId: SortOrder
}
input OrderWhereInput {
chainId: BigIntSearchOptions
currency: StringSearchOptions
hypercert_id: StringSearchOptions
id: IdSearchOptions
invalidated: BooleanSearchOptions
signer: StringSearchOptions
}
type Query {
allowlistRecords(first: Int, offset: Int, sort: AllowlistRecordFetchInput, where: AllowlistRecordWhereInput): GetAllowlistRecordResponse!
attestationSchemas(first: Int, offset: Int): GetAttestationsSchemaResponse!
attestations(first: Int, offset: Int, sort: AttestationFetchInput, where: AttestationWhereInput): GetAttestationsResponse!
blueprints(first: Int, offset: Int, sort: BlueprintFetchInput, where: BlueprintWhereInput): GetBlueprintResponse!
contracts(first: Int, offset: Int, sort: ContractFetchInput, where: ContractWhereInput): GetContractsResponse!
fractions(first: Int, offset: Int, sort: FractionFetchInput, where: FractionWhereInput): GetFractionsResponse!
hyperboards(first: Int, offset: Int, sort: HyperboardFetchInput, where: HyperboardWhereInput): GetHyperboardsResponse!
hypercerts(first: Int, offset: Int, sort: HypercertFetchInput, where: HypercertsWhereArgs): GetHypercertsResponse!
metadata(first: Int, offset: Int, sort: MetadataFetchInput, where: MetadataWhereInput): GetMetadataResponse!
orders(first: Int, offset: Int, sort: OrderFetchInput, where: OrderWhereInput): GetOrdersResponse!
sales(first: Int, offset: Int, sort: SaleFetchInput, where: SaleWhereInput): GetSalesResponse!
users(first: Int, offset: Int, where: UserWhereInput): GetUsersResponse!
}
type Sale {
"""Number of units sold for each fraction"""
amounts: [EthBigInt!]
"""The address of the buyer"""
buyer: String!
"""The address of the contract minting the tradable fractions"""
collection: String!
"""The block number of the transaction creating the sale"""
creation_block_number: EthBigInt
"""The timestamp of the block creating the sale"""
creation_block_timestamp: EthBigInt
"""The address of the token accepted for this order"""
currency: String!
"""The hypercert associated with this order"""
hypercert: HypercertBaseType
"""The ID of the hypercert token referenced in the order"""
hypercert_id: String
id: ID!
"""Token ids of the sold fractions"""
item_ids: [EthBigInt!]
"""The address of the seller"""
seller: String!
"""The ID of the strategy registered with the exchange contracts"""
strategy_id: EthBigInt
"""The transactions hash of the sale"""
transaction_hash: String!
}
input SaleFetchInput {
by: SaleSortOptions
}
input SaleSortOptions {
amounts: SortOrder
buyer: SortOrder
collection: SortOrder
creationBlockNumber: SortOrder
creationBlockTimestamp: SortOrder
currency: SortOrder
hypercertId: SortOrder
seller: SortOrder
strategyId: SortOrder
transactionHash: SortOrder
}
input SaleWhereInput {
amounts: NumberArraySearchOptions
buyer: StringSearchOptions
collection: StringSearchOptions
creation_block_number: BigIntSearchOptions
creation_block_timestamp: BigIntSearchOptions
currency: StringSearchOptions
hypercert_id: StringSearchOptions
item_ids: StringArraySearchOptions
seller: StringSearchOptions
strategy_id: BigIntSearchOptions
transaction_hash: IdSearchOptions
}
"""Section representing a collection within a hyperboard"""
type Section {
collection: Collection!
entries: [SectionEntry!]!
label: String!
owners: [HyperboardOwner!]!
}
"""Entry representing a hypercert or blueprint within a section"""
type SectionEntry {
display_size: Float!
"""ID of the hypercert or blueprint"""
id: String!
is_blueprint: Boolean!
"""Name of the hypercert or blueprint"""
name: String
owners: [SectionEntryOwner!]!
percentage_of_section: Float!
total_units: BigInt
}
type SectionEntryOwner {
"""The address of the user"""
address: String!
"""The avatar of the user"""
avatar: String
"""The chain ID of the user"""
chain_id: EthBigInt
"""The display name of the user"""
display_name: String
percentage: Float!
units: BigInt
}
type SectionResponseType {
count: Float!
data: [Section!]!
}
"""The direction to sort the query results"""
enum SortOrder {
"""Ascending order"""
ascending
"""Descending order"""
descending
}
input StringArraySearchOptions {
contains: [String!]
overlaps: [String!]
}
input StringSearchOptions {
contains: String
endsWith: String
eq: String
in: [String!]
startsWith: String
}
"""
A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier.
"""
scalar UUID
type User {
"""The address of the user"""
address: String!
"""The avatar of the user"""
avatar: String
"""The chain ID of the user"""
chain_id: EthBigInt
"""The display name of the user"""
display_name: String
}
input UserWhereInput {
address: StringSearchOptions
chain_id: BigIntSearchOptions
}