Skip to content

Commit e2956bf

Browse files
committed
chore: update graphql schema
1 parent 24b075a commit e2956bf

File tree

1 file changed

+69
-2
lines changed

1 file changed

+69
-2
lines changed

schema.graphql

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ type AllowlistRecord {
1717
"""The hypercert ID the claimable fraction belongs to"""
1818
hypercert_id: String
1919

20+
"""The ID of the allow list record"""
21+
id: String
22+
2023
"""The leaf of the Merkle tree for the claimable fraction"""
2124
leaf: String
2225

@@ -168,6 +171,7 @@ type AttestationSchema {
168171

169172
input AttestationSchemaAttestationWhereInput {
170173
attester: StringSearchOptions
174+
contract_address: StringSearchOptions
171175
creation_block_number: BigIntSearchOptions
172176
creation_block_timestamp: BigIntSearchOptions
173177
id: StringSearchOptions
@@ -217,6 +221,7 @@ input AttestationSchemaWhereInput {
217221

218222
input AttestationSortOptions {
219223
attester: SortOrder = null
224+
contract_address: SortOrder = null
220225
creation_block_number: SortOrder = null
221226
creation_block_timestamp: SortOrder = null
222227
id: SortOrder = null
@@ -230,6 +235,7 @@ input AttestationSortOptions {
230235

231236
input AttestationWhereInput {
232237
attester: StringSearchOptions
238+
contract_address: StringSearchOptions
233239
creation_block_number: BigIntSearchOptions
234240
creation_block_timestamp: BigIntSearchOptions
235241
eas_schema: AttestationAttestationSchemaWhereInput = {}
@@ -268,6 +274,7 @@ type Blueprint {
268274
}
269275

270276
input BlueprintSortOptions {
277+
admin_address: SortOrder = null
271278
created_at: SortOrder = null
272279
id: SortOrder = null
273280
minted: SortOrder = null
@@ -282,6 +289,7 @@ input BlueprintUserWhereInput {
282289
}
283290

284291
input BlueprintWhereInput {
292+
admin_address: StringSearchOptions
285293
admins: BlueprintUserWhereInput = {}
286294
created_at: StringSearchOptions
287295
id: NumberSearchOptions
@@ -314,6 +322,7 @@ type Collection {
314322
}
315323

316324
input CollectionBlueprintWhereInput {
325+
admin_address: StringSearchOptions
317326
created_at: StringSearchOptions
318327
id: NumberSearchOptions
319328
minted: BooleanSearchOptions
@@ -628,6 +637,7 @@ type HyperboardOwner {
628637
}
629638

630639
input HyperboardSortOptions {
640+
admin_address: SortOrder = null
631641
chain_ids: SortOrder = null
632642
id: SortOrder = null
633643
}
@@ -640,6 +650,7 @@ input HyperboardUserWhereInput {
640650
}
641651

642652
input HyperboardWhereInput {
653+
admin_address: StringSearchOptions
643654
admins: HyperboardUserWhereInput = {}
644655
chain_ids: NumberArraySearchOptions
645656
collections: HyperboardCollectionWhereInput = {}
@@ -702,6 +713,7 @@ type Hypercert {
702713

703714
input HypercertAttestationWhereInput {
704715
attester: StringSearchOptions
716+
contract_address: StringSearchOptions
705717
creation_block_number: BigIntSearchOptions
706718
creation_block_timestamp: BigIntSearchOptions
707719
id: StringSearchOptions
@@ -816,6 +828,45 @@ input HypercertWhereInput {
816828
uri: StringSearchOptions
817829
}
818830

831+
"""
832+
Hypercert with metadata, contract, orders, sales and fraction information
833+
"""
834+
type HypercertWithMetadata {
835+
"""Count of attestations referencing this hypercert"""
836+
attestations_count: Int
837+
838+
"""The UUID of the contract as stored in the database"""
839+
contracts_id: ID
840+
creation_block_number: EthBigInt
841+
creation_block_timestamp: EthBigInt
842+
843+
"""The address of the creator of the hypercert"""
844+
creator_address: String
845+
846+
"""
847+
Concatenation of [chainID]-[contractAddress]-[tokenID] to discern hypercerts across chains
848+
"""
849+
hypercert_id: ID
850+
id: ID
851+
last_update_block_number: EthBigInt
852+
last_update_block_timestamp: EthBigInt
853+
854+
"""The metadata for the hypercert as referenced by the uri"""
855+
metadata: Metadata
856+
857+
"""Count of sales of fractions that belong to this hypercert"""
858+
sales_count: Int
859+
860+
"""The token ID of the hypercert"""
861+
token_id: EthBigInt
862+
863+
"""The total units held by the hypercert"""
864+
units: EthBigInt
865+
866+
"""References the metadata for this claim"""
867+
uri: String
868+
}
869+
819870
"""
820871
Hypercert without metadata, contract, orders, sales and fraction information
821872
"""
@@ -878,6 +929,21 @@ type Metadata {
878929
work_timeframe_to: EthBigInt
879930
}
880931

932+
input MetadataHypercertWhereInput {
933+
attestations_count: NumberSearchOptions
934+
creation_block_number: BigIntSearchOptions
935+
creation_block_timestamp: BigIntSearchOptions
936+
creator_address: StringSearchOptions
937+
hypercert_id: StringSearchOptions
938+
id: StringSearchOptions
939+
last_update_block_number: BigIntSearchOptions
940+
last_update_block_timestamp: BigIntSearchOptions
941+
sales_count: NumberSearchOptions
942+
token_id: BigIntSearchOptions
943+
units: BigIntSearchOptions
944+
uri: StringSearchOptions
945+
}
946+
881947
input MetadataSortOptions {
882948
allow_list_uri: SortOrder = null
883949
contributors: SortOrder = null
@@ -900,6 +966,7 @@ input MetadataWhereInput {
900966
contributors: StringArraySearchOptions
901967
description: StringSearchOptions
902968
external_url: StringSearchOptions
969+
hypercert: MetadataHypercertWhereInput = {}
903970
id: StringSearchOptions
904971
impact_scope: StringArraySearchOptions
905972
impact_timeframe_from: BigIntSearchOptions
@@ -942,7 +1009,7 @@ type Order {
9421009
globalNonce: String!
9431010

9441011
"""The hypercert associated with this order"""
945-
hypercert: HypercertBaseType
1012+
hypercert: HypercertWithMetadata
9461013
hypercert_id: String!
9471014
id: ID
9481015
invalidated: Boolean!
@@ -1058,7 +1125,7 @@ type Sale {
10581125
currency_amount: EthBigInt!
10591126

10601127
"""The hypercert associated with this order"""
1061-
hypercert: HypercertBaseType
1128+
hypercert: HypercertWithMetadata
10621129

10631130
"""The ID of the hypercert token referenced in the order"""
10641131
hypercert_id: String

0 commit comments

Comments
 (0)