Skip to content

Commit cfe52a7

Browse files
committed
fix(schema): update graphql schema
updates generated graphql schema
1 parent 536a274 commit cfe52a7

File tree

1 file changed

+71
-16
lines changed

1 file changed

+71
-16
lines changed

schema.graphql

Lines changed: 71 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ type Attestation {
8282
data: JSON
8383

8484
"""Hypercert related to the attestation"""
85-
hypercert: HypercertBaseType
85+
hypercert: HypercertBaseType!
8686
id: ID!
8787

8888
"""Block number at which the attestation was last updated"""
@@ -98,10 +98,43 @@ type Attestation {
9898
resolver: String
9999

100100
"""Unique identifier of the EAS schema used to create the attestation"""
101-
schema: String
101+
schema_uid: String
102+
103+
"""Schema related to the attestation"""
104+
supported_schemas: AttestationSchemaBaseType!
105+
106+
"""Unique identifier for the attestation on EAS"""
107+
uid: ID
108+
}
109+
110+
type AttestationBaseType {
111+
"""Address of the creator of the attestation"""
112+
attester: String
113+
114+
"""Block number at which the attestation was created"""
115+
creation_block_number: EthBigInt
116+
117+
"""Timestamp at which the attestation was created"""
118+
creation_block_timestamp: EthBigInt
119+
120+
"""Encoded data of the attestation"""
121+
data: JSON
122+
id: ID!
123+
124+
"""Block number at which the attestation was last updated"""
125+
last_update_block_number: EthBigInt
126+
127+
"""Timestamp at which the attestation was last updated"""
128+
last_update_block_timestamp: EthBigInt
129+
130+
"""Address of the recipient of the attestation"""
131+
recipient: String
132+
133+
"""Address of the resolver contract for the attestation"""
134+
resolver: String
102135

103-
"""ID referencing the supported EAS schema in the database"""
104-
supported_schemas_id: ID
136+
"""Unique identifier of the EAS schema used to create the attestation"""
137+
schema_uid: String
105138

106139
"""Unique identifier for the attestation on EAS"""
107140
uid: ID
@@ -114,23 +147,42 @@ input AttestationFetchInput {
114147
"""Supported EAS attestation schemas and their related records"""
115148
type AttestationSchema {
116149
"""Chain ID of the chains where the attestation schema is supported"""
117-
chain_id: EthBigInt
150+
chain_id: EthBigInt!
118151
id: ID!
119152

120153
"""List of attestations related to the attestation schema"""
121-
records: [Attestation!]
154+
records: [AttestationBaseType!]!
122155

123156
"""Address of the resolver contract for the attestation schema"""
124-
resolver: String
157+
resolver: String!
125158

126159
"""Whether the attestation schema is revocable"""
127-
revocable: Boolean
160+
revocable: Boolean!
128161

129162
"""String representation of the attestation schema"""
130-
schema: String
163+
schema: String!
131164

132165
"""Unique identifier for the attestation schema"""
133-
uid: ID
166+
uid: ID!
167+
}
168+
169+
"""Supported EAS attestation schemas and their related records"""
170+
type AttestationSchemaBaseType {
171+
"""Chain ID of the chains where the attestation schema is supported"""
172+
chain_id: EthBigInt!
173+
id: ID!
174+
175+
"""Address of the resolver contract for the attestation schema"""
176+
resolver: String!
177+
178+
"""Whether the attestation schema is revocable"""
179+
revocable: Boolean!
180+
181+
"""String representation of the attestation schema"""
182+
schema: String!
183+
184+
"""Unique identifier for the attestation schema"""
185+
uid: ID!
134186
}
135187

136188
input AttestationSortOptions {
@@ -152,32 +204,35 @@ input AttestationWhereInput {
152204
creation_block_number: BigIntSearchOptions
153205
creation_block_timestamp: BigIntSearchOptions
154206
hypercerts: BasicHypercertWhereArgs
155-
id: IdSearchOptions
156207
last_update_block_number: BigIntSearchOptions
157208
last_update_block_timestamp: BigIntSearchOptions
158209
metadata: BasicMetadataWhereInput
159210
recipient: StringSearchOptions
160211
resolver: StringSearchOptions
161-
schema: StringSearchOptions
162-
supported_schemas_id: StringSearchOptions
212+
supported_schemas: BasicAttestationSchemaWhereInput
163213
token_id: StringSearchOptions
164214
uid: StringSearchOptions
165215
}
166216

217+
input BasicAttestationSchemaWhereInput {
218+
chain_id: BigIntSearchOptions
219+
resolver: StringSearchOptions
220+
revocable: BooleanSearchOptions
221+
schema: StringSearchOptions
222+
uid: StringSearchOptions
223+
}
224+
167225
input BasicAttestationWhereInput {
168226
attestation: StringSearchOptions
169227
attester: StringSearchOptions
170228
chain_id: BigIntSearchOptions
171229
contract_address: StringSearchOptions
172230
creation_block_number: BigIntSearchOptions
173231
creation_block_timestamp: BigIntSearchOptions
174-
id: IdSearchOptions
175232
last_update_block_number: BigIntSearchOptions
176233
last_update_block_timestamp: BigIntSearchOptions
177234
recipient: StringSearchOptions
178235
resolver: StringSearchOptions
179-
schema: StringSearchOptions
180-
supported_schemas_id: StringSearchOptions
181236
token_id: StringSearchOptions
182237
uid: StringSearchOptions
183238
}

0 commit comments

Comments
 (0)