-
Notifications
You must be signed in to change notification settings - Fork 2
/
entgql.graphql
574 lines (574 loc) · 13.9 KB
/
entgql.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
directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
type Balance implements Node {
id: ID!
tokenid: BigInt!
balance: BigInt!
account: Contract
contract: Contract
}
"""A connection to a list of items."""
type BalanceConnection {
"""A list of edges."""
edges: [BalanceEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type BalanceEdge {
"""The item at the end of the edge."""
node: Balance
"""A cursor for use in pagination."""
cursor: Cursor!
}
"""
BalanceWhereInput is used for filtering Balance objects.
Input was generated by ent.
"""
input BalanceWhereInput {
not: BalanceWhereInput
and: [BalanceWhereInput!]
or: [BalanceWhereInput!]
"""tokenId field predicates"""
tokenid: BigInt
tokenidNEQ: BigInt
tokenidIn: [BigInt!]
tokenidNotIn: [BigInt!]
tokenidGT: BigInt
tokenidGTE: BigInt
tokenidLT: BigInt
tokenidLTE: BigInt
tokenidIsNil: Boolean
tokenidNotNil: Boolean
"""balance field predicates"""
balance: BigInt
balanceNEQ: BigInt
balanceIn: [BigInt!]
balanceNotIn: [BigInt!]
balanceGT: BigInt
balanceGTE: BigInt
balanceLT: BigInt
balanceLTE: BigInt
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""account edge predicates"""
hasAccount: Boolean
hasAccountWith: [ContractWhereInput!]
"""contract edge predicates"""
hasContract: Boolean
hasContractWith: [ContractWhereInput!]
}
type Block implements Node {
id: ID!
blockHash: String!
parentBlockHash: String!
blockNumber: Long!
stateRoot: String!
status: BlockStatus!
timestamp: Time!
transactions: [Transaction!]
transactionReceipts: [TransactionReceipt!]
}
"""A connection to a list of items."""
type BlockConnection {
"""A list of edges."""
edges: [BlockEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type BlockEdge {
"""The item at the end of the edge."""
node: Block
"""A cursor for use in pagination."""
cursor: Cursor!
}
input BlockOrder {
direction: OrderDirection! = ASC
field: BlockOrderField!
}
enum BlockOrderField {
BLOCK_NUMBER
TIMESTAMP
}
"""BlockStatus is enum for the field status"""
enum BlockStatus @goModel(model: "github.com/cartridge-gg/starknet-indexer/ent/block.Status") {
ACCEPTED_ON_L1
ACCEPTED_ON_L2
}
"""
BlockWhereInput is used for filtering Block objects.
Input was generated by ent.
"""
input BlockWhereInput {
not: BlockWhereInput
and: [BlockWhereInput!]
or: [BlockWhereInput!]
"""block_hash field predicates"""
blockHash: String
blockHashNEQ: String
blockHashIn: [String!]
blockHashNotIn: [String!]
blockHashGT: String
blockHashGTE: String
blockHashLT: String
blockHashLTE: String
blockHashContains: String
blockHashHasPrefix: String
blockHashHasSuffix: String
blockHashEqualFold: String
blockHashContainsFold: String
"""parent_block_hash field predicates"""
parentBlockHash: String
parentBlockHashNEQ: String
parentBlockHashIn: [String!]
parentBlockHashNotIn: [String!]
parentBlockHashGT: String
parentBlockHashGTE: String
parentBlockHashLT: String
parentBlockHashLTE: String
parentBlockHashContains: String
parentBlockHashHasPrefix: String
parentBlockHashHasSuffix: String
parentBlockHashEqualFold: String
parentBlockHashContainsFold: String
"""block_number field predicates"""
blockNumber: Long
blockNumberNEQ: Long
blockNumberIn: [Long!]
blockNumberNotIn: [Long!]
blockNumberGT: Long
blockNumberGTE: Long
blockNumberLT: Long
blockNumberLTE: Long
"""state_root field predicates"""
stateRoot: String
stateRootNEQ: String
stateRootIn: [String!]
stateRootNotIn: [String!]
stateRootGT: String
stateRootGTE: String
stateRootLT: String
stateRootLTE: String
stateRootContains: String
stateRootHasPrefix: String
stateRootHasSuffix: String
stateRootEqualFold: String
stateRootContainsFold: String
"""status field predicates"""
status: BlockStatus
statusNEQ: BlockStatus
statusIn: [BlockStatus!]
statusNotIn: [BlockStatus!]
"""timestamp field predicates"""
timestamp: Time
timestampNEQ: Time
timestampIn: [Time!]
timestampNotIn: [Time!]
timestampGT: Time
timestampGTE: Time
timestampLT: Time
timestampLTE: Time
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""transactions edge predicates"""
hasTransactions: Boolean
hasTransactionsWith: [TransactionWhereInput!]
"""transaction_receipts edge predicates"""
hasTransactionReceipts: Boolean
hasTransactionReceiptsWith: [TransactionReceiptWhereInput!]
}
type Contract implements Node {
id: ID!
type: Type!
createdAt: Time!
updatedAt: Time!
transactions: [Transaction!]
}
"""A connection to a list of items."""
type ContractConnection {
"""A list of edges."""
edges: [ContractEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type ContractEdge {
"""The item at the end of the edge."""
node: Contract
"""A cursor for use in pagination."""
cursor: Cursor!
}
input ContractOrder {
direction: OrderDirection! = ASC
field: ContractOrderField!
}
enum ContractOrderField {
CREATED_AT
}
"""
ContractWhereInput is used for filtering Contract objects.
Input was generated by ent.
"""
input ContractWhereInput {
not: ContractWhereInput
and: [ContractWhereInput!]
or: [ContractWhereInput!]
"""type field predicates"""
type: Type
typeNEQ: Type
typeIn: [Type!]
typeNotIn: [Type!]
"""created_at field predicates"""
createdAt: Time
createdAtNEQ: Time
createdAtIn: [Time!]
createdAtNotIn: [Time!]
createdAtGT: Time
createdAtGTE: Time
createdAtLT: Time
createdAtLTE: Time
"""updated_at field predicates"""
updatedAt: Time
updatedAtNEQ: Time
updatedAtIn: [Time!]
updatedAtNotIn: [Time!]
updatedAtGT: Time
updatedAtGTE: Time
updatedAtLT: Time
updatedAtLTE: Time
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""transactions edge predicates"""
hasTransactions: Boolean
hasTransactionsWith: [TransactionWhereInput!]
}
"""
Define a Relay Cursor type:
https://relay.dev/graphql/connections.htm#sec-Cursor
"""
scalar Cursor
type Event implements Node {
id: ID!
from: String!
keys: [Felt]!
data: [Felt]!
transaction: Transaction
}
"""A connection to a list of items."""
type EventConnection {
"""A list of edges."""
edges: [EventEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type EventEdge {
"""The item at the end of the edge."""
node: Event
"""A cursor for use in pagination."""
cursor: Cursor!
}
"""
EventWhereInput is used for filtering Event objects.
Input was generated by ent.
"""
input EventWhereInput {
not: EventWhereInput
and: [EventWhereInput!]
or: [EventWhereInput!]
"""from field predicates"""
from: String
fromNEQ: String
fromIn: [String!]
fromNotIn: [String!]
fromGT: String
fromGTE: String
fromLT: String
fromLTE: String
fromContains: String
fromHasPrefix: String
fromHasSuffix: String
fromEqualFold: String
fromContainsFold: String
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""transaction edge predicates"""
hasTransaction: Boolean
hasTransactionWith: [TransactionWhereInput!]
}
"""
An object with an ID.
Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm)
"""
interface Node {
"""The id of the object."""
id: ID!
}
enum OrderDirection {
ASC
DESC
}
"""
Information about pagination in a connection.
https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!
"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!
"""When paginating backwards, the cursor to continue."""
startCursor: Cursor
"""When paginating forwards, the cursor to continue."""
endCursor: Cursor
}
"""Status is enum for the field status"""
enum Status @goModel(model: "github.com/cartridge-gg/starknet-indexer/ent/transactionreceipt.Status") {
UNKNOWN
RECEIVED
PENDING
ACCEPTED_ON_L2
ACCEPTED_ON_L1
REJECTED
}
type Transaction implements Node {
id: ID!
contractAddress: String!
entryPointSelector: String!
transactionHash: String!
calldata: [String!]!
signature: [String!]
nonce: String!
block: Block
receipt: TransactionReceipt
events: [Event!]
}
"""A connection to a list of items."""
type TransactionConnection {
"""A list of edges."""
edges: [TransactionEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type TransactionEdge {
"""The item at the end of the edge."""
node: Transaction
"""A cursor for use in pagination."""
cursor: Cursor!
}
input TransactionOrder {
direction: OrderDirection! = ASC
field: TransactionOrderField!
}
enum TransactionOrderField {
NONCE
}
type TransactionReceipt implements Node {
id: ID!
transactionHash: String!
status: Status!
statusData: String!
l1OriginMessage: L2Message!
block: Block
transaction: Transaction!
}
"""A connection to a list of items."""
type TransactionReceiptConnection {
"""A list of edges."""
edges: [TransactionReceiptEdge]
"""Information to aid in pagination."""
pageInfo: PageInfo!
totalCount: Int!
}
"""An edge in a connection."""
type TransactionReceiptEdge {
"""The item at the end of the edge."""
node: TransactionReceipt
"""A cursor for use in pagination."""
cursor: Cursor!
}
"""
TransactionReceiptWhereInput is used for filtering TransactionReceipt objects.
Input was generated by ent.
"""
input TransactionReceiptWhereInput {
not: TransactionReceiptWhereInput
and: [TransactionReceiptWhereInput!]
or: [TransactionReceiptWhereInput!]
"""transaction_hash field predicates"""
transactionHash: String
transactionHashNEQ: String
transactionHashIn: [String!]
transactionHashNotIn: [String!]
transactionHashGT: String
transactionHashGTE: String
transactionHashLT: String
transactionHashLTE: String
transactionHashContains: String
transactionHashHasPrefix: String
transactionHashHasSuffix: String
transactionHashEqualFold: String
transactionHashContainsFold: String
"""status field predicates"""
status: Status
statusNEQ: Status
statusIn: [Status!]
statusNotIn: [Status!]
"""status_data field predicates"""
statusData: String
statusDataNEQ: String
statusDataIn: [String!]
statusDataNotIn: [String!]
statusDataGT: String
statusDataGTE: String
statusDataLT: String
statusDataLTE: String
statusDataContains: String
statusDataHasPrefix: String
statusDataHasSuffix: String
statusDataEqualFold: String
statusDataContainsFold: String
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""block edge predicates"""
hasBlock: Boolean
hasBlockWith: [BlockWhereInput!]
"""transaction edge predicates"""
hasTransaction: Boolean
hasTransactionWith: [TransactionWhereInput!]
}
"""
TransactionWhereInput is used for filtering Transaction objects.
Input was generated by ent.
"""
input TransactionWhereInput {
not: TransactionWhereInput
and: [TransactionWhereInput!]
or: [TransactionWhereInput!]
"""contract_address field predicates"""
contractAddress: String
contractAddressNEQ: String
contractAddressIn: [String!]
contractAddressNotIn: [String!]
contractAddressGT: String
contractAddressGTE: String
contractAddressLT: String
contractAddressLTE: String
contractAddressContains: String
contractAddressHasPrefix: String
contractAddressHasSuffix: String
contractAddressEqualFold: String
contractAddressContainsFold: String
"""entry_point_selector field predicates"""
entryPointSelector: String
entryPointSelectorNEQ: String
entryPointSelectorIn: [String!]
entryPointSelectorNotIn: [String!]
entryPointSelectorGT: String
entryPointSelectorGTE: String
entryPointSelectorLT: String
entryPointSelectorLTE: String
entryPointSelectorContains: String
entryPointSelectorHasPrefix: String
entryPointSelectorHasSuffix: String
entryPointSelectorIsNil: Boolean
entryPointSelectorNotNil: Boolean
entryPointSelectorEqualFold: String
entryPointSelectorContainsFold: String
"""transaction_hash field predicates"""
transactionHash: String
transactionHashNEQ: String
transactionHashIn: [String!]
transactionHashNotIn: [String!]
transactionHashGT: String
transactionHashGTE: String
transactionHashLT: String
transactionHashLTE: String
transactionHashContains: String
transactionHashHasPrefix: String
transactionHashHasSuffix: String
transactionHashEqualFold: String
transactionHashContainsFold: String
"""nonce field predicates"""
nonce: String
nonceNEQ: String
nonceIn: [String!]
nonceNotIn: [String!]
nonceGT: String
nonceGTE: String
nonceLT: String
nonceLTE: String
nonceContains: String
nonceHasPrefix: String
nonceHasSuffix: String
nonceIsNil: Boolean
nonceNotNil: Boolean
nonceEqualFold: String
nonceContainsFold: String
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""block edge predicates"""
hasBlock: Boolean
hasBlockWith: [BlockWhereInput!]
"""receipt edge predicates"""
hasReceipt: Boolean
hasReceiptWith: [TransactionReceiptWhereInput!]
"""events edge predicates"""
hasEvents: Boolean
hasEventsWith: [EventWhereInput!]
}
"""Type is enum for the field type"""
enum Type @goModel(model: "github.com/cartridge-gg/starknet-indexer/ent/contract.Type") {
UNKNOWN
ERC20
ERC721
}