@iota/graphql-transport 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +201 -0
  3. package/README.md +100 -0
  4. package/dist/cjs/generated/queries.d.ts +9134 -0
  5. package/dist/cjs/generated/queries.js +3530 -0
  6. package/dist/cjs/generated/queries.js.map +7 -0
  7. package/dist/cjs/index.d.ts +1 -0
  8. package/dist/cjs/index.js +19 -0
  9. package/dist/cjs/index.js.map +7 -0
  10. package/dist/cjs/mappers/bcs.d.ts +4 -0
  11. package/dist/cjs/mappers/bcs.js +71 -0
  12. package/dist/cjs/mappers/bcs.js.map +7 -0
  13. package/dist/cjs/mappers/checkpint.d.ts +3 -0
  14. package/dist/cjs/mappers/checkpint.js +63 -0
  15. package/dist/cjs/mappers/checkpint.js.map +7 -0
  16. package/dist/cjs/mappers/display.d.ts +8 -0
  17. package/dist/cjs/mappers/display.js +43 -0
  18. package/dist/cjs/mappers/display.js.map +7 -0
  19. package/dist/cjs/mappers/move.d.ts +57 -0
  20. package/dist/cjs/mappers/move.js +215 -0
  21. package/dist/cjs/mappers/move.js.map +7 -0
  22. package/dist/cjs/mappers/object.d.ts +8 -0
  23. package/dist/cjs/mappers/object.js +80 -0
  24. package/dist/cjs/mappers/object.js.map +7 -0
  25. package/dist/cjs/mappers/owner.d.ts +3 -0
  26. package/dist/cjs/mappers/owner.js +48 -0
  27. package/dist/cjs/mappers/owner.js.map +7 -0
  28. package/dist/cjs/mappers/stakes.d.ts +3 -0
  29. package/dist/cjs/mappers/stakes.js +48 -0
  30. package/dist/cjs/mappers/stakes.js.map +7 -0
  31. package/dist/cjs/mappers/transaction-block.d.ts +6 -0
  32. package/dist/cjs/mappers/transaction-block.js +314 -0
  33. package/dist/cjs/mappers/transaction-block.js.map +7 -0
  34. package/dist/cjs/mappers/util.d.ts +2 -0
  35. package/dist/cjs/mappers/util.js +31 -0
  36. package/dist/cjs/mappers/util.js.map +7 -0
  37. package/dist/cjs/mappers/validator.d.ts +3 -0
  38. package/dist/cjs/mappers/validator.js +66 -0
  39. package/dist/cjs/mappers/validator.js.map +7 -0
  40. package/dist/cjs/methods.d.ts +19 -0
  41. package/dist/cjs/methods.js +1276 -0
  42. package/dist/cjs/methods.js.map +7 -0
  43. package/dist/cjs/package.json +5 -0
  44. package/dist/cjs/transport.d.ts +43 -0
  45. package/dist/cjs/transport.js +153 -0
  46. package/dist/cjs/transport.js.map +7 -0
  47. package/dist/esm/generated/queries.d.ts +9134 -0
  48. package/dist/esm/generated/queries.js +3510 -0
  49. package/dist/esm/generated/queries.js.map +7 -0
  50. package/dist/esm/index.d.ts +1 -0
  51. package/dist/esm/index.js +2 -0
  52. package/dist/esm/index.js.map +7 -0
  53. package/dist/esm/mappers/bcs.d.ts +4 -0
  54. package/dist/esm/mappers/bcs.js +51 -0
  55. package/dist/esm/mappers/bcs.js.map +7 -0
  56. package/dist/esm/mappers/checkpint.d.ts +3 -0
  57. package/dist/esm/mappers/checkpint.js +43 -0
  58. package/dist/esm/mappers/checkpint.js.map +7 -0
  59. package/dist/esm/mappers/display.d.ts +8 -0
  60. package/dist/esm/mappers/display.js +23 -0
  61. package/dist/esm/mappers/display.js.map +7 -0
  62. package/dist/esm/mappers/move.d.ts +57 -0
  63. package/dist/esm/mappers/move.js +195 -0
  64. package/dist/esm/mappers/move.js.map +7 -0
  65. package/dist/esm/mappers/object.d.ts +8 -0
  66. package/dist/esm/mappers/object.js +60 -0
  67. package/dist/esm/mappers/object.js.map +7 -0
  68. package/dist/esm/mappers/owner.d.ts +3 -0
  69. package/dist/esm/mappers/owner.js +28 -0
  70. package/dist/esm/mappers/owner.js.map +7 -0
  71. package/dist/esm/mappers/stakes.d.ts +3 -0
  72. package/dist/esm/mappers/stakes.js +28 -0
  73. package/dist/esm/mappers/stakes.js.map +7 -0
  74. package/dist/esm/mappers/transaction-block.d.ts +6 -0
  75. package/dist/esm/mappers/transaction-block.js +294 -0
  76. package/dist/esm/mappers/transaction-block.js.map +7 -0
  77. package/dist/esm/mappers/util.d.ts +2 -0
  78. package/dist/esm/mappers/util.js +11 -0
  79. package/dist/esm/mappers/util.js.map +7 -0
  80. package/dist/esm/mappers/validator.d.ts +3 -0
  81. package/dist/esm/mappers/validator.js +46 -0
  82. package/dist/esm/mappers/validator.js.map +7 -0
  83. package/dist/esm/methods.d.ts +19 -0
  84. package/dist/esm/methods.js +1306 -0
  85. package/dist/esm/methods.js.map +7 -0
  86. package/dist/esm/package.json +5 -0
  87. package/dist/esm/transport.d.ts +43 -0
  88. package/dist/esm/transport.js +133 -0
  89. package/dist/esm/transport.js.map +7 -0
  90. package/dist/tsconfig.esm.tsbuildinfo +1 -0
  91. package/dist/tsconfig.tsbuildinfo +1 -0
  92. package/package.json +66 -0
@@ -0,0 +1,3510 @@
1
+ var AddressTransactionBlockRelationship = /* @__PURE__ */ ((AddressTransactionBlockRelationship2) => {
2
+ AddressTransactionBlockRelationship2["Recv"] = "RECV";
3
+ AddressTransactionBlockRelationship2["Sign"] = "SIGN";
4
+ return AddressTransactionBlockRelationship2;
5
+ })(AddressTransactionBlockRelationship || {});
6
+ var DomainFormat = /* @__PURE__ */ ((DomainFormat2) => {
7
+ DomainFormat2["At"] = "AT";
8
+ DomainFormat2["Dot"] = "DOT";
9
+ return DomainFormat2;
10
+ })(DomainFormat || {});
11
+ var ExecutionStatus = /* @__PURE__ */ ((ExecutionStatus2) => {
12
+ ExecutionStatus2["Failure"] = "FAILURE";
13
+ ExecutionStatus2["Success"] = "SUCCESS";
14
+ return ExecutionStatus2;
15
+ })(ExecutionStatus || {});
16
+ var Feature = /* @__PURE__ */ ((Feature2) => {
17
+ Feature2["Analytics"] = "ANALYTICS";
18
+ Feature2["Coins"] = "COINS";
19
+ Feature2["DynamicFields"] = "DYNAMIC_FIELDS";
20
+ Feature2["NameService"] = "NAME_SERVICE";
21
+ Feature2["Subscriptions"] = "SUBSCRIPTIONS";
22
+ Feature2["SystemState"] = "SYSTEM_STATE";
23
+ return Feature2;
24
+ })(Feature || {});
25
+ var MoveAbility = /* @__PURE__ */ ((MoveAbility2) => {
26
+ MoveAbility2["Copy"] = "COPY";
27
+ MoveAbility2["Drop"] = "DROP";
28
+ MoveAbility2["Key"] = "KEY";
29
+ MoveAbility2["Store"] = "STORE";
30
+ return MoveAbility2;
31
+ })(MoveAbility || {});
32
+ var MoveVisibility = /* @__PURE__ */ ((MoveVisibility2) => {
33
+ MoveVisibility2["Friend"] = "FRIEND";
34
+ MoveVisibility2["Private"] = "PRIVATE";
35
+ MoveVisibility2["Public"] = "PUBLIC";
36
+ return MoveVisibility2;
37
+ })(MoveVisibility || {});
38
+ var ObjectKind = /* @__PURE__ */ ((ObjectKind2) => {
39
+ ObjectKind2["Historical"] = "HISTORICAL";
40
+ ObjectKind2["Live"] = "LIVE";
41
+ ObjectKind2["NotIndexed"] = "NOT_INDEXED";
42
+ ObjectKind2["WrappedOrDeleted"] = "WRAPPED_OR_DELETED";
43
+ return ObjectKind2;
44
+ })(ObjectKind || {});
45
+ var StakeStatus = /* @__PURE__ */ ((StakeStatus2) => {
46
+ StakeStatus2["Active"] = "ACTIVE";
47
+ StakeStatus2["Pending"] = "PENDING";
48
+ StakeStatus2["Unstaked"] = "UNSTAKED";
49
+ return StakeStatus2;
50
+ })(StakeStatus || {});
51
+ var TransactionBlockKindInput = /* @__PURE__ */ ((TransactionBlockKindInput2) => {
52
+ TransactionBlockKindInput2["ProgrammableTx"] = "PROGRAMMABLE_TX";
53
+ TransactionBlockKindInput2["SystemTx"] = "SYSTEM_TX";
54
+ return TransactionBlockKindInput2;
55
+ })(TransactionBlockKindInput || {});
56
+ var ZkLoginIntentScope = /* @__PURE__ */ ((ZkLoginIntentScope2) => {
57
+ ZkLoginIntentScope2["PersonalMessage"] = "PERSONAL_MESSAGE";
58
+ ZkLoginIntentScope2["TransactionData"] = "TRANSACTION_DATA";
59
+ return ZkLoginIntentScope2;
60
+ })(ZkLoginIntentScope || {});
61
+ class TypedDocumentString extends String {
62
+ constructor(value, __meta__) {
63
+ super(value);
64
+ this.value = value;
65
+ this.__meta__ = __meta__;
66
+ }
67
+ toString() {
68
+ return this.value;
69
+ }
70
+ }
71
+ const Rpc_Checkpoint_FieldsFragmentDoc = new TypedDocumentString(`
72
+ fragment RPC_Checkpoint_Fields on Checkpoint {
73
+ digest
74
+ epoch {
75
+ epochId
76
+ }
77
+ rollingGasSummary {
78
+ computationCost
79
+ storageCost
80
+ storageRebate
81
+ nonRefundableStorageFee
82
+ }
83
+ networkTotalTransactions
84
+ previousCheckpointDigest
85
+ sequenceNumber
86
+ timestamp
87
+ validatorSignatures
88
+ transactionBlocks {
89
+ pageInfo {
90
+ hasNextPage
91
+ endCursor
92
+ }
93
+ nodes {
94
+ digest
95
+ }
96
+ }
97
+ endOfEpoch: transactionBlocks(last: 1, filter: {kind: SYSTEM_TX}) {
98
+ nodes {
99
+ kind {
100
+ __typename
101
+ ... on EndOfEpochTransaction {
102
+ transactions(last: 1) {
103
+ nodes {
104
+ __typename
105
+ ... on ChangeEpochTransaction {
106
+ epoch {
107
+ validatorSet {
108
+ activeValidators {
109
+ pageInfo {
110
+ hasNextPage
111
+ endCursor
112
+ }
113
+ nodes {
114
+ credentials {
115
+ protocolPubKey
116
+ }
117
+ votingPower
118
+ }
119
+ }
120
+ }
121
+ protocolConfigs {
122
+ protocolVersion
123
+ }
124
+ epochId
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ `, { "fragmentName": "RPC_Checkpoint_Fields" });
135
+ const Rpc_Credential_FieldsFragmentDoc = new TypedDocumentString(`
136
+ fragment RPC_CREDENTIAL_FIELDS on ValidatorCredentials {
137
+ netAddress
138
+ networkPubKey
139
+ p2PAddress
140
+ primaryAddress
141
+ workerPubKey
142
+ workerAddress
143
+ proofOfPossession
144
+ protocolPubKey
145
+ }
146
+ `, { "fragmentName": "RPC_CREDENTIAL_FIELDS" });
147
+ const Rpc_Validator_FieldsFragmentDoc = new TypedDocumentString(`
148
+ fragment RPC_VALIDATOR_FIELDS on Validator {
149
+ atRisk
150
+ commissionRate
151
+ exchangeRatesSize
152
+ exchangeRates {
153
+ contents {
154
+ json
155
+ }
156
+ address
157
+ }
158
+ description
159
+ gasPrice
160
+ imageUrl
161
+ name
162
+ credentials {
163
+ ...RPC_CREDENTIAL_FIELDS
164
+ }
165
+ nextEpochCommissionRate
166
+ nextEpochGasPrice
167
+ nextEpochCredentials {
168
+ ...RPC_CREDENTIAL_FIELDS
169
+ }
170
+ nextEpochStake
171
+ nextEpochCommissionRate
172
+ operationCap {
173
+ address
174
+ }
175
+ pendingPoolTokenWithdraw
176
+ pendingStake
177
+ pendingTotalIotaWithdraw
178
+ poolTokenBalance
179
+ projectUrl
180
+ rewardsPool
181
+ stakingPool {
182
+ address
183
+ }
184
+ stakingPoolActivationEpoch
185
+ stakingPoolIotaBalance
186
+ address {
187
+ address
188
+ }
189
+ votingPower
190
+ }
191
+ fragment RPC_CREDENTIAL_FIELDS on ValidatorCredentials {
192
+ netAddress
193
+ networkPubKey
194
+ p2PAddress
195
+ primaryAddress
196
+ workerPubKey
197
+ workerAddress
198
+ proofOfPossession
199
+ protocolPubKey
200
+ }`, { "fragmentName": "RPC_VALIDATOR_FIELDS" });
201
+ const Rpc_Move_Struct_FieldsFragmentDoc = new TypedDocumentString(`
202
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
203
+ name
204
+ abilities
205
+ fields {
206
+ name
207
+ type {
208
+ signature
209
+ }
210
+ }
211
+ typeParameters {
212
+ isPhantom
213
+ constraints
214
+ }
215
+ }
216
+ `, { "fragmentName": "RPC_MOVE_STRUCT_FIELDS" });
217
+ const Rpc_Move_Function_FieldsFragmentDoc = new TypedDocumentString(`
218
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
219
+ name
220
+ visibility
221
+ isEntry
222
+ parameters {
223
+ signature
224
+ }
225
+ typeParameters {
226
+ constraints
227
+ }
228
+ return {
229
+ repr
230
+ signature
231
+ }
232
+ }
233
+ `, { "fragmentName": "RPC_MOVE_FUNCTION_FIELDS" });
234
+ const Rpc_Move_Module_FieldsFragmentDoc = new TypedDocumentString(`
235
+ fragment RPC_MOVE_MODULE_FIELDS on MoveModule {
236
+ name
237
+ friends {
238
+ pageInfo {
239
+ hasNextPage
240
+ endCursor
241
+ }
242
+ nodes {
243
+ name
244
+ package {
245
+ address
246
+ }
247
+ }
248
+ }
249
+ structs {
250
+ pageInfo {
251
+ hasNextPage
252
+ endCursor
253
+ }
254
+ nodes {
255
+ ...RPC_MOVE_STRUCT_FIELDS
256
+ }
257
+ }
258
+ fileFormatVersion
259
+ functions {
260
+ pageInfo {
261
+ hasNextPage
262
+ endCursor
263
+ }
264
+ nodes {
265
+ ...RPC_MOVE_FUNCTION_FIELDS
266
+ }
267
+ }
268
+ }
269
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
270
+ name
271
+ visibility
272
+ isEntry
273
+ parameters {
274
+ signature
275
+ }
276
+ typeParameters {
277
+ constraints
278
+ }
279
+ return {
280
+ repr
281
+ signature
282
+ }
283
+ }
284
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
285
+ name
286
+ abilities
287
+ fields {
288
+ name
289
+ type {
290
+ signature
291
+ }
292
+ }
293
+ typeParameters {
294
+ isPhantom
295
+ constraints
296
+ }
297
+ }`, { "fragmentName": "RPC_MOVE_MODULE_FIELDS" });
298
+ const Rpc_Object_Owner_FieldsFragmentDoc = new TypedDocumentString(`
299
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
300
+ __typename
301
+ ... on AddressOwner {
302
+ owner {
303
+ asObject {
304
+ address
305
+ }
306
+ asAddress {
307
+ address
308
+ }
309
+ }
310
+ }
311
+ ... on Parent {
312
+ parent {
313
+ address
314
+ }
315
+ }
316
+ ... on Shared {
317
+ initialSharedVersion
318
+ }
319
+ }
320
+ `, { "fragmentName": "RPC_OBJECT_OWNER_FIELDS" });
321
+ const Rpc_Object_FieldsFragmentDoc = new TypedDocumentString(`
322
+ fragment RPC_OBJECT_FIELDS on Object {
323
+ objectId: address
324
+ version
325
+ asMoveObject @include(if: $showType) {
326
+ contents {
327
+ type {
328
+ repr
329
+ }
330
+ }
331
+ }
332
+ asMoveObject @include(if: $showContent) {
333
+ hasPublicTransfer
334
+ contents {
335
+ data
336
+ type {
337
+ repr
338
+ layout
339
+ signature
340
+ }
341
+ }
342
+ }
343
+ asMoveObject @include(if: $showBcs) {
344
+ hasPublicTransfer
345
+ contents {
346
+ bcs
347
+ type {
348
+ repr
349
+ }
350
+ }
351
+ }
352
+ owner @include(if: $showOwner) {
353
+ ...RPC_OBJECT_OWNER_FIELDS
354
+ }
355
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
356
+ digest
357
+ }
358
+ storageRebate @include(if: $showStorageRebate)
359
+ digest
360
+ version
361
+ display @include(if: $showDisplay) {
362
+ key
363
+ value
364
+ error
365
+ }
366
+ }
367
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
368
+ __typename
369
+ ... on AddressOwner {
370
+ owner {
371
+ asObject {
372
+ address
373
+ }
374
+ asAddress {
375
+ address
376
+ }
377
+ }
378
+ }
379
+ ... on Parent {
380
+ parent {
381
+ address
382
+ }
383
+ }
384
+ ... on Shared {
385
+ initialSharedVersion
386
+ }
387
+ }`, { "fragmentName": "RPC_OBJECT_FIELDS" });
388
+ const Rpc_Move_Object_FieldsFragmentDoc = new TypedDocumentString(`
389
+ fragment RPC_MOVE_OBJECT_FIELDS on MoveObject {
390
+ objectId: address
391
+ bcs @include(if: $showBcs)
392
+ contents @include(if: $showType) {
393
+ type {
394
+ repr
395
+ }
396
+ }
397
+ hasPublicTransfer @include(if: $showContent)
398
+ contents @include(if: $showContent) {
399
+ data
400
+ type {
401
+ repr
402
+ layout
403
+ signature
404
+ }
405
+ }
406
+ hasPublicTransfer @include(if: $showBcs)
407
+ contents @include(if: $showBcs) {
408
+ bcs
409
+ type {
410
+ repr
411
+ }
412
+ }
413
+ owner @include(if: $showOwner) {
414
+ ...RPC_OBJECT_OWNER_FIELDS
415
+ }
416
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
417
+ digest
418
+ }
419
+ storageRebate @include(if: $showStorageRebate)
420
+ digest
421
+ version
422
+ display @include(if: $showDisplay) {
423
+ key
424
+ value
425
+ error
426
+ }
427
+ }
428
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
429
+ __typename
430
+ ... on AddressOwner {
431
+ owner {
432
+ asObject {
433
+ address
434
+ }
435
+ asAddress {
436
+ address
437
+ }
438
+ }
439
+ }
440
+ ... on Parent {
441
+ parent {
442
+ address
443
+ }
444
+ }
445
+ ... on Shared {
446
+ initialSharedVersion
447
+ }
448
+ }`, { "fragmentName": "RPC_MOVE_OBJECT_FIELDS" });
449
+ const Rpc_Stake_FieldsFragmentDoc = new TypedDocumentString(`
450
+ fragment RPC_STAKE_FIELDS on StakedIota {
451
+ principal
452
+ activatedEpoch {
453
+ epochId
454
+ referenceGasPrice
455
+ }
456
+ stakeStatus
457
+ requestedEpoch {
458
+ epochId
459
+ }
460
+ activatedEpoch {
461
+ epochId
462
+ }
463
+ contents {
464
+ json
465
+ }
466
+ address
467
+ estimatedReward
468
+ }
469
+ `, { "fragmentName": "RPC_STAKE_FIELDS" });
470
+ const Rpc_Events_FieldsFragmentDoc = new TypedDocumentString(`
471
+ fragment RPC_EVENTS_FIELDS on Event {
472
+ sendingModule {
473
+ package {
474
+ address
475
+ }
476
+ name
477
+ }
478
+ sender {
479
+ address
480
+ }
481
+ type {
482
+ repr
483
+ }
484
+ json
485
+ bcs
486
+ timestamp
487
+ }
488
+ `, { "fragmentName": "RPC_EVENTS_FIELDS" });
489
+ const Paginate_Transaction_ListsFragmentDoc = new TypedDocumentString(`
490
+ fragment PAGINATE_TRANSACTION_LISTS on TransactionBlock {
491
+ effects {
492
+ events(after: $afterEvents) @include(if: $hasMoreEvents) {
493
+ pageInfo {
494
+ hasNextPage
495
+ endCursor
496
+ }
497
+ nodes {
498
+ ...RPC_EVENTS_FIELDS
499
+ }
500
+ }
501
+ balanceChanges(after: $afterBalanceChanges) @include(if: $hasMoreBalanceChanges) {
502
+ pageInfo {
503
+ hasNextPage
504
+ endCursor
505
+ }
506
+ nodes {
507
+ coinType {
508
+ repr
509
+ }
510
+ owner {
511
+ asObject {
512
+ address
513
+ }
514
+ asAddress {
515
+ address
516
+ }
517
+ }
518
+ amount
519
+ }
520
+ }
521
+ dependencies(after: $afterDependencies) @include(if: $hasMoreDependencies) {
522
+ pageInfo {
523
+ hasNextPage
524
+ endCursor
525
+ }
526
+ nodes {
527
+ digest
528
+ }
529
+ }
530
+ objectChanges(after: $afterObjectChanges) @include(if: $hasMoreObjectChanges) {
531
+ pageInfo {
532
+ hasNextPage
533
+ endCursor
534
+ }
535
+ nodes {
536
+ idCreated
537
+ idDeleted
538
+ inputState {
539
+ version
540
+ digest
541
+ address
542
+ asMoveObject {
543
+ contents {
544
+ type {
545
+ repr
546
+ }
547
+ }
548
+ }
549
+ owner {
550
+ ...RPC_OBJECT_OWNER_FIELDS
551
+ }
552
+ }
553
+ outputState {
554
+ version
555
+ digest
556
+ address
557
+ asMoveObject {
558
+ contents {
559
+ type {
560
+ repr
561
+ }
562
+ }
563
+ }
564
+ owner {
565
+ ...RPC_OBJECT_OWNER_FIELDS
566
+ }
567
+ }
568
+ }
569
+ }
570
+ }
571
+ }
572
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
573
+ __typename
574
+ ... on AddressOwner {
575
+ owner {
576
+ asObject {
577
+ address
578
+ }
579
+ asAddress {
580
+ address
581
+ }
582
+ }
583
+ }
584
+ ... on Parent {
585
+ parent {
586
+ address
587
+ }
588
+ }
589
+ ... on Shared {
590
+ initialSharedVersion
591
+ }
592
+ }
593
+ fragment RPC_EVENTS_FIELDS on Event {
594
+ sendingModule {
595
+ package {
596
+ address
597
+ }
598
+ name
599
+ }
600
+ sender {
601
+ address
602
+ }
603
+ type {
604
+ repr
605
+ }
606
+ json
607
+ bcs
608
+ timestamp
609
+ }`, { "fragmentName": "PAGINATE_TRANSACTION_LISTS" });
610
+ const Rpc_Transaction_FieldsFragmentDoc = new TypedDocumentString(`
611
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
612
+ digest
613
+ rawTransaction: bcs @include(if: $showInput)
614
+ rawTransaction: bcs @include(if: $showRawInput)
615
+ sender {
616
+ address
617
+ }
618
+ signatures
619
+ effects {
620
+ events @include(if: $showEvents) {
621
+ pageInfo {
622
+ hasNextPage
623
+ endCursor
624
+ }
625
+ nodes {
626
+ ...RPC_EVENTS_FIELDS
627
+ }
628
+ }
629
+ checkpoint {
630
+ sequenceNumber
631
+ }
632
+ timestamp
633
+ balanceChanges @include(if: $showBalanceChanges) {
634
+ pageInfo {
635
+ hasNextPage
636
+ endCursor
637
+ }
638
+ nodes {
639
+ coinType {
640
+ repr
641
+ }
642
+ owner {
643
+ asObject {
644
+ address
645
+ }
646
+ asAddress {
647
+ address
648
+ }
649
+ }
650
+ amount
651
+ }
652
+ }
653
+ dependencies @include(if: $showEffects) {
654
+ pageInfo {
655
+ hasNextPage
656
+ endCursor
657
+ }
658
+ nodes {
659
+ digest
660
+ }
661
+ }
662
+ status @include(if: $showEffects)
663
+ gasEffects @include(if: $showEffects) {
664
+ gasObject {
665
+ owner {
666
+ ...RPC_OBJECT_OWNER_FIELDS
667
+ }
668
+ digest
669
+ version
670
+ address
671
+ }
672
+ gasSummary {
673
+ storageCost
674
+ storageRebate
675
+ nonRefundableStorageFee
676
+ computationCost
677
+ }
678
+ }
679
+ executedEpoch: epoch @include(if: $showEffects) {
680
+ epochId
681
+ }
682
+ objectChanges @include(if: $showEffects) {
683
+ pageInfo {
684
+ hasNextPage
685
+ endCursor
686
+ }
687
+ nodes {
688
+ idCreated
689
+ idDeleted
690
+ inputState {
691
+ version
692
+ digest
693
+ address
694
+ }
695
+ outputState {
696
+ version
697
+ digest
698
+ address
699
+ owner {
700
+ ...RPC_OBJECT_OWNER_FIELDS
701
+ }
702
+ }
703
+ }
704
+ }
705
+ objectChanges @include(if: $showObjectChanges) {
706
+ pageInfo {
707
+ hasNextPage
708
+ endCursor
709
+ }
710
+ nodes {
711
+ idCreated
712
+ idDeleted
713
+ inputState {
714
+ version
715
+ digest
716
+ address
717
+ asMoveObject {
718
+ contents {
719
+ type {
720
+ repr
721
+ }
722
+ }
723
+ }
724
+ owner {
725
+ ...RPC_OBJECT_OWNER_FIELDS
726
+ }
727
+ }
728
+ outputState {
729
+ version
730
+ digest
731
+ address
732
+ asMoveObject {
733
+ contents {
734
+ type {
735
+ repr
736
+ }
737
+ }
738
+ }
739
+ owner {
740
+ ...RPC_OBJECT_OWNER_FIELDS
741
+ }
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
748
+ __typename
749
+ ... on AddressOwner {
750
+ owner {
751
+ asObject {
752
+ address
753
+ }
754
+ asAddress {
755
+ address
756
+ }
757
+ }
758
+ }
759
+ ... on Parent {
760
+ parent {
761
+ address
762
+ }
763
+ }
764
+ ... on Shared {
765
+ initialSharedVersion
766
+ }
767
+ }
768
+ fragment RPC_EVENTS_FIELDS on Event {
769
+ sendingModule {
770
+ package {
771
+ address
772
+ }
773
+ name
774
+ }
775
+ sender {
776
+ address
777
+ }
778
+ type {
779
+ repr
780
+ }
781
+ json
782
+ bcs
783
+ timestamp
784
+ }`, { "fragmentName": "RPC_TRANSACTION_FIELDS" });
785
+ const GetCheckpointDocument = new TypedDocumentString(`
786
+ query getCheckpoint($id: CheckpointId) {
787
+ checkpoint(id: $id) {
788
+ ...RPC_Checkpoint_Fields
789
+ }
790
+ }
791
+ fragment RPC_Checkpoint_Fields on Checkpoint {
792
+ digest
793
+ epoch {
794
+ epochId
795
+ }
796
+ rollingGasSummary {
797
+ computationCost
798
+ storageCost
799
+ storageRebate
800
+ nonRefundableStorageFee
801
+ }
802
+ networkTotalTransactions
803
+ previousCheckpointDigest
804
+ sequenceNumber
805
+ timestamp
806
+ validatorSignatures
807
+ transactionBlocks {
808
+ pageInfo {
809
+ hasNextPage
810
+ endCursor
811
+ }
812
+ nodes {
813
+ digest
814
+ }
815
+ }
816
+ endOfEpoch: transactionBlocks(last: 1, filter: {kind: SYSTEM_TX}) {
817
+ nodes {
818
+ kind {
819
+ __typename
820
+ ... on EndOfEpochTransaction {
821
+ transactions(last: 1) {
822
+ nodes {
823
+ __typename
824
+ ... on ChangeEpochTransaction {
825
+ epoch {
826
+ validatorSet {
827
+ activeValidators {
828
+ pageInfo {
829
+ hasNextPage
830
+ endCursor
831
+ }
832
+ nodes {
833
+ credentials {
834
+ protocolPubKey
835
+ }
836
+ votingPower
837
+ }
838
+ }
839
+ }
840
+ protocolConfigs {
841
+ protocolVersion
842
+ }
843
+ epochId
844
+ }
845
+ }
846
+ }
847
+ }
848
+ }
849
+ }
850
+ }
851
+ }
852
+ }`);
853
+ const GetCheckpointsDocument = new TypedDocumentString(`
854
+ query getCheckpoints($first: Int, $before: String, $last: Int, $after: String) {
855
+ checkpoints(first: $first, after: $after, last: $last, before: $before) {
856
+ pageInfo {
857
+ startCursor
858
+ endCursor
859
+ hasNextPage
860
+ hasPreviousPage
861
+ }
862
+ nodes {
863
+ ...RPC_Checkpoint_Fields
864
+ }
865
+ }
866
+ }
867
+ fragment RPC_Checkpoint_Fields on Checkpoint {
868
+ digest
869
+ epoch {
870
+ epochId
871
+ }
872
+ rollingGasSummary {
873
+ computationCost
874
+ storageCost
875
+ storageRebate
876
+ nonRefundableStorageFee
877
+ }
878
+ networkTotalTransactions
879
+ previousCheckpointDigest
880
+ sequenceNumber
881
+ timestamp
882
+ validatorSignatures
883
+ transactionBlocks {
884
+ pageInfo {
885
+ hasNextPage
886
+ endCursor
887
+ }
888
+ nodes {
889
+ digest
890
+ }
891
+ }
892
+ endOfEpoch: transactionBlocks(last: 1, filter: {kind: SYSTEM_TX}) {
893
+ nodes {
894
+ kind {
895
+ __typename
896
+ ... on EndOfEpochTransaction {
897
+ transactions(last: 1) {
898
+ nodes {
899
+ __typename
900
+ ... on ChangeEpochTransaction {
901
+ epoch {
902
+ validatorSet {
903
+ activeValidators {
904
+ pageInfo {
905
+ hasNextPage
906
+ endCursor
907
+ }
908
+ nodes {
909
+ credentials {
910
+ protocolPubKey
911
+ }
912
+ votingPower
913
+ }
914
+ }
915
+ }
916
+ protocolConfigs {
917
+ protocolVersion
918
+ }
919
+ epochId
920
+ }
921
+ }
922
+ }
923
+ }
924
+ }
925
+ }
926
+ }
927
+ }
928
+ }`);
929
+ const PaginateCheckpointTransactionBlocksDocument = new TypedDocumentString(`
930
+ query paginateCheckpointTransactionBlocks($id: CheckpointId, $after: String) {
931
+ checkpoint(id: $id) {
932
+ transactionBlocks(after: $after) {
933
+ pageInfo {
934
+ hasNextPage
935
+ endCursor
936
+ }
937
+ nodes {
938
+ digest
939
+ }
940
+ }
941
+ }
942
+ }
943
+ `);
944
+ const DevInspectTransactionBlockDocument = new TypedDocumentString(`
945
+ query devInspectTransactionBlock($txBytes: String!, $txMeta: TransactionMetadata!, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false) {
946
+ dryRunTransactionBlock(txBytes: $txBytes, txMeta: $txMeta) {
947
+ error
948
+ results {
949
+ mutatedReferences {
950
+ input {
951
+ __typename
952
+ ... on Input {
953
+ inputIndex: ix
954
+ }
955
+ ... on Result {
956
+ cmd
957
+ resultIndex: ix
958
+ }
959
+ }
960
+ type {
961
+ repr
962
+ }
963
+ bcs
964
+ }
965
+ returnValues {
966
+ type {
967
+ repr
968
+ }
969
+ bcs
970
+ }
971
+ }
972
+ transaction {
973
+ ...RPC_TRANSACTION_FIELDS
974
+ }
975
+ }
976
+ }
977
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
978
+ __typename
979
+ ... on AddressOwner {
980
+ owner {
981
+ asObject {
982
+ address
983
+ }
984
+ asAddress {
985
+ address
986
+ }
987
+ }
988
+ }
989
+ ... on Parent {
990
+ parent {
991
+ address
992
+ }
993
+ }
994
+ ... on Shared {
995
+ initialSharedVersion
996
+ }
997
+ }
998
+ fragment RPC_EVENTS_FIELDS on Event {
999
+ sendingModule {
1000
+ package {
1001
+ address
1002
+ }
1003
+ name
1004
+ }
1005
+ sender {
1006
+ address
1007
+ }
1008
+ type {
1009
+ repr
1010
+ }
1011
+ json
1012
+ bcs
1013
+ timestamp
1014
+ }
1015
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
1016
+ digest
1017
+ rawTransaction: bcs @include(if: $showInput)
1018
+ rawTransaction: bcs @include(if: $showRawInput)
1019
+ sender {
1020
+ address
1021
+ }
1022
+ signatures
1023
+ effects {
1024
+ events @include(if: $showEvents) {
1025
+ pageInfo {
1026
+ hasNextPage
1027
+ endCursor
1028
+ }
1029
+ nodes {
1030
+ ...RPC_EVENTS_FIELDS
1031
+ }
1032
+ }
1033
+ checkpoint {
1034
+ sequenceNumber
1035
+ }
1036
+ timestamp
1037
+ balanceChanges @include(if: $showBalanceChanges) {
1038
+ pageInfo {
1039
+ hasNextPage
1040
+ endCursor
1041
+ }
1042
+ nodes {
1043
+ coinType {
1044
+ repr
1045
+ }
1046
+ owner {
1047
+ asObject {
1048
+ address
1049
+ }
1050
+ asAddress {
1051
+ address
1052
+ }
1053
+ }
1054
+ amount
1055
+ }
1056
+ }
1057
+ dependencies @include(if: $showEffects) {
1058
+ pageInfo {
1059
+ hasNextPage
1060
+ endCursor
1061
+ }
1062
+ nodes {
1063
+ digest
1064
+ }
1065
+ }
1066
+ status @include(if: $showEffects)
1067
+ gasEffects @include(if: $showEffects) {
1068
+ gasObject {
1069
+ owner {
1070
+ ...RPC_OBJECT_OWNER_FIELDS
1071
+ }
1072
+ digest
1073
+ version
1074
+ address
1075
+ }
1076
+ gasSummary {
1077
+ storageCost
1078
+ storageRebate
1079
+ nonRefundableStorageFee
1080
+ computationCost
1081
+ }
1082
+ }
1083
+ executedEpoch: epoch @include(if: $showEffects) {
1084
+ epochId
1085
+ }
1086
+ objectChanges @include(if: $showEffects) {
1087
+ pageInfo {
1088
+ hasNextPage
1089
+ endCursor
1090
+ }
1091
+ nodes {
1092
+ idCreated
1093
+ idDeleted
1094
+ inputState {
1095
+ version
1096
+ digest
1097
+ address
1098
+ }
1099
+ outputState {
1100
+ version
1101
+ digest
1102
+ address
1103
+ owner {
1104
+ ...RPC_OBJECT_OWNER_FIELDS
1105
+ }
1106
+ }
1107
+ }
1108
+ }
1109
+ objectChanges @include(if: $showObjectChanges) {
1110
+ pageInfo {
1111
+ hasNextPage
1112
+ endCursor
1113
+ }
1114
+ nodes {
1115
+ idCreated
1116
+ idDeleted
1117
+ inputState {
1118
+ version
1119
+ digest
1120
+ address
1121
+ asMoveObject {
1122
+ contents {
1123
+ type {
1124
+ repr
1125
+ }
1126
+ }
1127
+ }
1128
+ owner {
1129
+ ...RPC_OBJECT_OWNER_FIELDS
1130
+ }
1131
+ }
1132
+ outputState {
1133
+ version
1134
+ digest
1135
+ address
1136
+ asMoveObject {
1137
+ contents {
1138
+ type {
1139
+ repr
1140
+ }
1141
+ }
1142
+ }
1143
+ owner {
1144
+ ...RPC_OBJECT_OWNER_FIELDS
1145
+ }
1146
+ }
1147
+ }
1148
+ }
1149
+ }
1150
+ }`);
1151
+ const DryRunTransactionBlockDocument = new TypedDocumentString(`
1152
+ query dryRunTransactionBlock($txBytes: String!, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false) {
1153
+ dryRunTransactionBlock(txBytes: $txBytes) {
1154
+ error
1155
+ transaction {
1156
+ ...RPC_TRANSACTION_FIELDS
1157
+ }
1158
+ }
1159
+ }
1160
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
1161
+ __typename
1162
+ ... on AddressOwner {
1163
+ owner {
1164
+ asObject {
1165
+ address
1166
+ }
1167
+ asAddress {
1168
+ address
1169
+ }
1170
+ }
1171
+ }
1172
+ ... on Parent {
1173
+ parent {
1174
+ address
1175
+ }
1176
+ }
1177
+ ... on Shared {
1178
+ initialSharedVersion
1179
+ }
1180
+ }
1181
+ fragment RPC_EVENTS_FIELDS on Event {
1182
+ sendingModule {
1183
+ package {
1184
+ address
1185
+ }
1186
+ name
1187
+ }
1188
+ sender {
1189
+ address
1190
+ }
1191
+ type {
1192
+ repr
1193
+ }
1194
+ json
1195
+ bcs
1196
+ timestamp
1197
+ }
1198
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
1199
+ digest
1200
+ rawTransaction: bcs @include(if: $showInput)
1201
+ rawTransaction: bcs @include(if: $showRawInput)
1202
+ sender {
1203
+ address
1204
+ }
1205
+ signatures
1206
+ effects {
1207
+ events @include(if: $showEvents) {
1208
+ pageInfo {
1209
+ hasNextPage
1210
+ endCursor
1211
+ }
1212
+ nodes {
1213
+ ...RPC_EVENTS_FIELDS
1214
+ }
1215
+ }
1216
+ checkpoint {
1217
+ sequenceNumber
1218
+ }
1219
+ timestamp
1220
+ balanceChanges @include(if: $showBalanceChanges) {
1221
+ pageInfo {
1222
+ hasNextPage
1223
+ endCursor
1224
+ }
1225
+ nodes {
1226
+ coinType {
1227
+ repr
1228
+ }
1229
+ owner {
1230
+ asObject {
1231
+ address
1232
+ }
1233
+ asAddress {
1234
+ address
1235
+ }
1236
+ }
1237
+ amount
1238
+ }
1239
+ }
1240
+ dependencies @include(if: $showEffects) {
1241
+ pageInfo {
1242
+ hasNextPage
1243
+ endCursor
1244
+ }
1245
+ nodes {
1246
+ digest
1247
+ }
1248
+ }
1249
+ status @include(if: $showEffects)
1250
+ gasEffects @include(if: $showEffects) {
1251
+ gasObject {
1252
+ owner {
1253
+ ...RPC_OBJECT_OWNER_FIELDS
1254
+ }
1255
+ digest
1256
+ version
1257
+ address
1258
+ }
1259
+ gasSummary {
1260
+ storageCost
1261
+ storageRebate
1262
+ nonRefundableStorageFee
1263
+ computationCost
1264
+ }
1265
+ }
1266
+ executedEpoch: epoch @include(if: $showEffects) {
1267
+ epochId
1268
+ }
1269
+ objectChanges @include(if: $showEffects) {
1270
+ pageInfo {
1271
+ hasNextPage
1272
+ endCursor
1273
+ }
1274
+ nodes {
1275
+ idCreated
1276
+ idDeleted
1277
+ inputState {
1278
+ version
1279
+ digest
1280
+ address
1281
+ }
1282
+ outputState {
1283
+ version
1284
+ digest
1285
+ address
1286
+ owner {
1287
+ ...RPC_OBJECT_OWNER_FIELDS
1288
+ }
1289
+ }
1290
+ }
1291
+ }
1292
+ objectChanges @include(if: $showObjectChanges) {
1293
+ pageInfo {
1294
+ hasNextPage
1295
+ endCursor
1296
+ }
1297
+ nodes {
1298
+ idCreated
1299
+ idDeleted
1300
+ inputState {
1301
+ version
1302
+ digest
1303
+ address
1304
+ asMoveObject {
1305
+ contents {
1306
+ type {
1307
+ repr
1308
+ }
1309
+ }
1310
+ }
1311
+ owner {
1312
+ ...RPC_OBJECT_OWNER_FIELDS
1313
+ }
1314
+ }
1315
+ outputState {
1316
+ version
1317
+ digest
1318
+ address
1319
+ asMoveObject {
1320
+ contents {
1321
+ type {
1322
+ repr
1323
+ }
1324
+ }
1325
+ }
1326
+ owner {
1327
+ ...RPC_OBJECT_OWNER_FIELDS
1328
+ }
1329
+ }
1330
+ }
1331
+ }
1332
+ }
1333
+ }`);
1334
+ const ExecuteTransactionBlockDocument = new TypedDocumentString(`
1335
+ mutation executeTransactionBlock($txBytes: String!, $signatures: [String!]!, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false) {
1336
+ executeTransactionBlock(txBytes: $txBytes, signatures: $signatures) {
1337
+ errors
1338
+ effects {
1339
+ transactionBlock {
1340
+ ...RPC_TRANSACTION_FIELDS
1341
+ }
1342
+ }
1343
+ }
1344
+ }
1345
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
1346
+ __typename
1347
+ ... on AddressOwner {
1348
+ owner {
1349
+ asObject {
1350
+ address
1351
+ }
1352
+ asAddress {
1353
+ address
1354
+ }
1355
+ }
1356
+ }
1357
+ ... on Parent {
1358
+ parent {
1359
+ address
1360
+ }
1361
+ }
1362
+ ... on Shared {
1363
+ initialSharedVersion
1364
+ }
1365
+ }
1366
+ fragment RPC_EVENTS_FIELDS on Event {
1367
+ sendingModule {
1368
+ package {
1369
+ address
1370
+ }
1371
+ name
1372
+ }
1373
+ sender {
1374
+ address
1375
+ }
1376
+ type {
1377
+ repr
1378
+ }
1379
+ json
1380
+ bcs
1381
+ timestamp
1382
+ }
1383
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
1384
+ digest
1385
+ rawTransaction: bcs @include(if: $showInput)
1386
+ rawTransaction: bcs @include(if: $showRawInput)
1387
+ sender {
1388
+ address
1389
+ }
1390
+ signatures
1391
+ effects {
1392
+ events @include(if: $showEvents) {
1393
+ pageInfo {
1394
+ hasNextPage
1395
+ endCursor
1396
+ }
1397
+ nodes {
1398
+ ...RPC_EVENTS_FIELDS
1399
+ }
1400
+ }
1401
+ checkpoint {
1402
+ sequenceNumber
1403
+ }
1404
+ timestamp
1405
+ balanceChanges @include(if: $showBalanceChanges) {
1406
+ pageInfo {
1407
+ hasNextPage
1408
+ endCursor
1409
+ }
1410
+ nodes {
1411
+ coinType {
1412
+ repr
1413
+ }
1414
+ owner {
1415
+ asObject {
1416
+ address
1417
+ }
1418
+ asAddress {
1419
+ address
1420
+ }
1421
+ }
1422
+ amount
1423
+ }
1424
+ }
1425
+ dependencies @include(if: $showEffects) {
1426
+ pageInfo {
1427
+ hasNextPage
1428
+ endCursor
1429
+ }
1430
+ nodes {
1431
+ digest
1432
+ }
1433
+ }
1434
+ status @include(if: $showEffects)
1435
+ gasEffects @include(if: $showEffects) {
1436
+ gasObject {
1437
+ owner {
1438
+ ...RPC_OBJECT_OWNER_FIELDS
1439
+ }
1440
+ digest
1441
+ version
1442
+ address
1443
+ }
1444
+ gasSummary {
1445
+ storageCost
1446
+ storageRebate
1447
+ nonRefundableStorageFee
1448
+ computationCost
1449
+ }
1450
+ }
1451
+ executedEpoch: epoch @include(if: $showEffects) {
1452
+ epochId
1453
+ }
1454
+ objectChanges @include(if: $showEffects) {
1455
+ pageInfo {
1456
+ hasNextPage
1457
+ endCursor
1458
+ }
1459
+ nodes {
1460
+ idCreated
1461
+ idDeleted
1462
+ inputState {
1463
+ version
1464
+ digest
1465
+ address
1466
+ }
1467
+ outputState {
1468
+ version
1469
+ digest
1470
+ address
1471
+ owner {
1472
+ ...RPC_OBJECT_OWNER_FIELDS
1473
+ }
1474
+ }
1475
+ }
1476
+ }
1477
+ objectChanges @include(if: $showObjectChanges) {
1478
+ pageInfo {
1479
+ hasNextPage
1480
+ endCursor
1481
+ }
1482
+ nodes {
1483
+ idCreated
1484
+ idDeleted
1485
+ inputState {
1486
+ version
1487
+ digest
1488
+ address
1489
+ asMoveObject {
1490
+ contents {
1491
+ type {
1492
+ repr
1493
+ }
1494
+ }
1495
+ }
1496
+ owner {
1497
+ ...RPC_OBJECT_OWNER_FIELDS
1498
+ }
1499
+ }
1500
+ outputState {
1501
+ version
1502
+ digest
1503
+ address
1504
+ asMoveObject {
1505
+ contents {
1506
+ type {
1507
+ repr
1508
+ }
1509
+ }
1510
+ }
1511
+ owner {
1512
+ ...RPC_OBJECT_OWNER_FIELDS
1513
+ }
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ }`);
1519
+ const GetAllBalancesDocument = new TypedDocumentString(`
1520
+ query getAllBalances($owner: IotaAddress!, $limit: Int, $cursor: String) {
1521
+ address(address: $owner) {
1522
+ balances(first: $limit, after: $cursor) {
1523
+ pageInfo {
1524
+ hasNextPage
1525
+ endCursor
1526
+ }
1527
+ nodes {
1528
+ coinType {
1529
+ repr
1530
+ }
1531
+ coinObjectCount
1532
+ totalBalance
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+ `);
1538
+ const GetBalanceDocument = new TypedDocumentString(`
1539
+ query getBalance($owner: IotaAddress!, $type: String = "0x2::iota::IOTA") {
1540
+ address(address: $owner) {
1541
+ balance(type: $type) {
1542
+ coinType {
1543
+ repr
1544
+ }
1545
+ coinObjectCount
1546
+ totalBalance
1547
+ }
1548
+ }
1549
+ }
1550
+ `);
1551
+ const GetChainIdentifierDocument = new TypedDocumentString(`
1552
+ query getChainIdentifier {
1553
+ chainIdentifier
1554
+ }
1555
+ `);
1556
+ const GetCoinMetadataDocument = new TypedDocumentString(`
1557
+ query getCoinMetadata($coinType: String!) {
1558
+ coinMetadata(coinType: $coinType) {
1559
+ decimals
1560
+ name
1561
+ symbol
1562
+ description
1563
+ iconUrl
1564
+ address
1565
+ }
1566
+ }
1567
+ `);
1568
+ const GetCoinsDocument = new TypedDocumentString(`
1569
+ query getCoins($owner: IotaAddress!, $first: Int, $cursor: String, $type: String = "0x2::iota::IOTA") {
1570
+ address(address: $owner) {
1571
+ address
1572
+ coins(first: $first, after: $cursor, type: $type) {
1573
+ pageInfo {
1574
+ hasNextPage
1575
+ endCursor
1576
+ }
1577
+ nodes {
1578
+ coinBalance
1579
+ contents {
1580
+ type {
1581
+ repr
1582
+ }
1583
+ }
1584
+ address
1585
+ version
1586
+ digest
1587
+ previousTransactionBlock {
1588
+ digest
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ }
1594
+ `);
1595
+ const GetCommitteeInfoDocument = new TypedDocumentString(`
1596
+ query getCommitteeInfo($epochId: Int, $after: String) {
1597
+ epoch(id: $epochId) {
1598
+ epochId
1599
+ validatorSet {
1600
+ activeValidators(after: $after) {
1601
+ pageInfo {
1602
+ hasNextPage
1603
+ endCursor
1604
+ }
1605
+ nodes {
1606
+ credentials {
1607
+ protocolPubKey
1608
+ }
1609
+ votingPower
1610
+ }
1611
+ }
1612
+ }
1613
+ }
1614
+ }
1615
+ `);
1616
+ const GetCurrentEpochDocument = new TypedDocumentString(`
1617
+ query getCurrentEpoch {
1618
+ epoch {
1619
+ epochId
1620
+ validatorSet {
1621
+ activeValidators {
1622
+ pageInfo {
1623
+ hasNextPage
1624
+ endCursor
1625
+ }
1626
+ nodes {
1627
+ ...RPC_VALIDATOR_FIELDS
1628
+ }
1629
+ }
1630
+ }
1631
+ firstCheckpoint: checkpoints(first: 1) {
1632
+ nodes {
1633
+ sequenceNumber
1634
+ }
1635
+ }
1636
+ startTimestamp
1637
+ endTimestamp
1638
+ referenceGasPrice
1639
+ }
1640
+ }
1641
+ fragment RPC_VALIDATOR_FIELDS on Validator {
1642
+ atRisk
1643
+ commissionRate
1644
+ exchangeRatesSize
1645
+ exchangeRates {
1646
+ contents {
1647
+ json
1648
+ }
1649
+ address
1650
+ }
1651
+ description
1652
+ gasPrice
1653
+ imageUrl
1654
+ name
1655
+ credentials {
1656
+ ...RPC_CREDENTIAL_FIELDS
1657
+ }
1658
+ nextEpochCommissionRate
1659
+ nextEpochGasPrice
1660
+ nextEpochCredentials {
1661
+ ...RPC_CREDENTIAL_FIELDS
1662
+ }
1663
+ nextEpochStake
1664
+ nextEpochCommissionRate
1665
+ operationCap {
1666
+ address
1667
+ }
1668
+ pendingPoolTokenWithdraw
1669
+ pendingStake
1670
+ pendingTotalIotaWithdraw
1671
+ poolTokenBalance
1672
+ projectUrl
1673
+ rewardsPool
1674
+ stakingPool {
1675
+ address
1676
+ }
1677
+ stakingPoolActivationEpoch
1678
+ stakingPoolIotaBalance
1679
+ address {
1680
+ address
1681
+ }
1682
+ votingPower
1683
+ }
1684
+ fragment RPC_CREDENTIAL_FIELDS on ValidatorCredentials {
1685
+ netAddress
1686
+ networkPubKey
1687
+ p2PAddress
1688
+ primaryAddress
1689
+ workerPubKey
1690
+ workerAddress
1691
+ proofOfPossession
1692
+ protocolPubKey
1693
+ }`);
1694
+ const PaginateEpochValidatorsDocument = new TypedDocumentString(`
1695
+ query paginateEpochValidators($id: Int!, $after: String) {
1696
+ epoch(id: $id) {
1697
+ validatorSet {
1698
+ activeValidators(after: $after) {
1699
+ pageInfo {
1700
+ hasNextPage
1701
+ endCursor
1702
+ }
1703
+ nodes {
1704
+ ...RPC_VALIDATOR_FIELDS
1705
+ }
1706
+ }
1707
+ }
1708
+ }
1709
+ }
1710
+ fragment RPC_VALIDATOR_FIELDS on Validator {
1711
+ atRisk
1712
+ commissionRate
1713
+ exchangeRatesSize
1714
+ exchangeRates {
1715
+ contents {
1716
+ json
1717
+ }
1718
+ address
1719
+ }
1720
+ description
1721
+ gasPrice
1722
+ imageUrl
1723
+ name
1724
+ credentials {
1725
+ ...RPC_CREDENTIAL_FIELDS
1726
+ }
1727
+ nextEpochCommissionRate
1728
+ nextEpochGasPrice
1729
+ nextEpochCredentials {
1730
+ ...RPC_CREDENTIAL_FIELDS
1731
+ }
1732
+ nextEpochStake
1733
+ nextEpochCommissionRate
1734
+ operationCap {
1735
+ address
1736
+ }
1737
+ pendingPoolTokenWithdraw
1738
+ pendingStake
1739
+ pendingTotalIotaWithdraw
1740
+ poolTokenBalance
1741
+ projectUrl
1742
+ rewardsPool
1743
+ stakingPool {
1744
+ address
1745
+ }
1746
+ stakingPoolActivationEpoch
1747
+ stakingPoolIotaBalance
1748
+ address {
1749
+ address
1750
+ }
1751
+ votingPower
1752
+ }
1753
+ fragment RPC_CREDENTIAL_FIELDS on ValidatorCredentials {
1754
+ netAddress
1755
+ networkPubKey
1756
+ p2PAddress
1757
+ primaryAddress
1758
+ workerPubKey
1759
+ workerAddress
1760
+ proofOfPossession
1761
+ protocolPubKey
1762
+ }`);
1763
+ const GetTypeLayoutDocument = new TypedDocumentString(`
1764
+ query getTypeLayout($type: String!) {
1765
+ type(type: $type) {
1766
+ layout
1767
+ }
1768
+ }
1769
+ `);
1770
+ const GetDynamicFieldObjectDocument = new TypedDocumentString(`
1771
+ query getDynamicFieldObject($parentId: IotaAddress!, $name: DynamicFieldName!) {
1772
+ object(address: $parentId) {
1773
+ dynamicObjectField(name: $name) {
1774
+ value {
1775
+ __typename
1776
+ ... on MoveObject {
1777
+ owner {
1778
+ __typename
1779
+ ... on Parent {
1780
+ parent {
1781
+ address
1782
+ digest
1783
+ version
1784
+ storageRebate
1785
+ owner {
1786
+ __typename
1787
+ ... on Parent {
1788
+ parent {
1789
+ address
1790
+ }
1791
+ }
1792
+ }
1793
+ previousTransactionBlock {
1794
+ digest
1795
+ }
1796
+ asMoveObject {
1797
+ contents {
1798
+ data
1799
+ type {
1800
+ repr
1801
+ layout
1802
+ }
1803
+ }
1804
+ hasPublicTransfer
1805
+ }
1806
+ }
1807
+ }
1808
+ }
1809
+ }
1810
+ }
1811
+ }
1812
+ }
1813
+ }
1814
+ `);
1815
+ const GetDynamicFieldsDocument = new TypedDocumentString(`
1816
+ query getDynamicFields($parentId: IotaAddress!, $first: Int, $cursor: String) {
1817
+ object(address: $parentId) {
1818
+ dynamicFields(first: $first, after: $cursor) {
1819
+ pageInfo {
1820
+ hasNextPage
1821
+ endCursor
1822
+ }
1823
+ nodes {
1824
+ name {
1825
+ bcs
1826
+ json
1827
+ type {
1828
+ layout
1829
+ repr
1830
+ }
1831
+ }
1832
+ value {
1833
+ __typename
1834
+ ... on MoveValue {
1835
+ json
1836
+ type {
1837
+ repr
1838
+ }
1839
+ }
1840
+ ... on MoveObject {
1841
+ contents {
1842
+ type {
1843
+ repr
1844
+ }
1845
+ json
1846
+ }
1847
+ address
1848
+ digest
1849
+ version
1850
+ }
1851
+ }
1852
+ }
1853
+ }
1854
+ }
1855
+ }
1856
+ `);
1857
+ const GetLatestCheckpointSequenceNumberDocument = new TypedDocumentString(`
1858
+ query getLatestCheckpointSequenceNumber {
1859
+ checkpoint {
1860
+ sequenceNumber
1861
+ }
1862
+ }
1863
+ `);
1864
+ const GetLatestIotaSystemStateDocument = new TypedDocumentString(`
1865
+ query getLatestIotaSystemState {
1866
+ epoch {
1867
+ epochId
1868
+ startTimestamp
1869
+ endTimestamp
1870
+ referenceGasPrice
1871
+ safeMode {
1872
+ enabled
1873
+ gasSummary {
1874
+ computationCost
1875
+ nonRefundableStorageFee
1876
+ storageCost
1877
+ storageRebate
1878
+ }
1879
+ }
1880
+ storageFund {
1881
+ nonRefundableBalance
1882
+ totalObjectStorageRebates
1883
+ }
1884
+ systemStateVersion
1885
+ iotaTotalSupply
1886
+ systemParameters {
1887
+ minValidatorCount
1888
+ maxValidatorCount
1889
+ minValidatorJoiningStake
1890
+ durationMs
1891
+ validatorLowStakeThreshold
1892
+ validatorLowStakeGracePeriod
1893
+ validatorVeryLowStakeThreshold
1894
+ }
1895
+ protocolConfigs {
1896
+ protocolVersion
1897
+ }
1898
+ validatorSet {
1899
+ activeValidators {
1900
+ pageInfo {
1901
+ hasNextPage
1902
+ endCursor
1903
+ }
1904
+ nodes {
1905
+ ...RPC_VALIDATOR_FIELDS
1906
+ }
1907
+ }
1908
+ inactivePoolsSize
1909
+ pendingActiveValidatorsSize
1910
+ stakingPoolMappingsSize
1911
+ validatorCandidatesSize
1912
+ pendingRemovals
1913
+ totalStake
1914
+ }
1915
+ }
1916
+ }
1917
+ fragment RPC_VALIDATOR_FIELDS on Validator {
1918
+ atRisk
1919
+ commissionRate
1920
+ exchangeRatesSize
1921
+ exchangeRates {
1922
+ contents {
1923
+ json
1924
+ }
1925
+ address
1926
+ }
1927
+ description
1928
+ gasPrice
1929
+ imageUrl
1930
+ name
1931
+ credentials {
1932
+ ...RPC_CREDENTIAL_FIELDS
1933
+ }
1934
+ nextEpochCommissionRate
1935
+ nextEpochGasPrice
1936
+ nextEpochCredentials {
1937
+ ...RPC_CREDENTIAL_FIELDS
1938
+ }
1939
+ nextEpochStake
1940
+ nextEpochCommissionRate
1941
+ operationCap {
1942
+ address
1943
+ }
1944
+ pendingPoolTokenWithdraw
1945
+ pendingStake
1946
+ pendingTotalIotaWithdraw
1947
+ poolTokenBalance
1948
+ projectUrl
1949
+ rewardsPool
1950
+ stakingPool {
1951
+ address
1952
+ }
1953
+ stakingPoolActivationEpoch
1954
+ stakingPoolIotaBalance
1955
+ address {
1956
+ address
1957
+ }
1958
+ votingPower
1959
+ }
1960
+ fragment RPC_CREDENTIAL_FIELDS on ValidatorCredentials {
1961
+ netAddress
1962
+ networkPubKey
1963
+ p2PAddress
1964
+ primaryAddress
1965
+ workerPubKey
1966
+ workerAddress
1967
+ proofOfPossession
1968
+ protocolPubKey
1969
+ }`);
1970
+ const GetMoveFunctionArgTypesDocument = new TypedDocumentString(`
1971
+ query getMoveFunctionArgTypes($packageId: IotaAddress!, $module: String!, $function: String!) {
1972
+ object(address: $packageId) {
1973
+ asMovePackage {
1974
+ module(name: $module) {
1975
+ fileFormatVersion
1976
+ function(name: $function) {
1977
+ parameters {
1978
+ signature
1979
+ }
1980
+ }
1981
+ }
1982
+ }
1983
+ }
1984
+ }
1985
+ `);
1986
+ const GetNormalizedMoveFunctionDocument = new TypedDocumentString(`
1987
+ query getNormalizedMoveFunction($packageId: IotaAddress!, $module: String!, $function: String!) {
1988
+ object(address: $packageId) {
1989
+ address
1990
+ asMovePackage {
1991
+ module(name: $module) {
1992
+ fileFormatVersion
1993
+ function(name: $function) {
1994
+ ...RPC_MOVE_FUNCTION_FIELDS
1995
+ }
1996
+ }
1997
+ }
1998
+ }
1999
+ }
2000
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
2001
+ name
2002
+ visibility
2003
+ isEntry
2004
+ parameters {
2005
+ signature
2006
+ }
2007
+ typeParameters {
2008
+ constraints
2009
+ }
2010
+ return {
2011
+ repr
2012
+ signature
2013
+ }
2014
+ }`);
2015
+ const GetNormalizedMoveModuleDocument = new TypedDocumentString(`
2016
+ query getNormalizedMoveModule($packageId: IotaAddress!, $module: String!) {
2017
+ object(address: $packageId) {
2018
+ asMovePackage {
2019
+ module(name: $module) {
2020
+ ...RPC_MOVE_MODULE_FIELDS
2021
+ }
2022
+ }
2023
+ }
2024
+ }
2025
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
2026
+ name
2027
+ visibility
2028
+ isEntry
2029
+ parameters {
2030
+ signature
2031
+ }
2032
+ typeParameters {
2033
+ constraints
2034
+ }
2035
+ return {
2036
+ repr
2037
+ signature
2038
+ }
2039
+ }
2040
+ fragment RPC_MOVE_MODULE_FIELDS on MoveModule {
2041
+ name
2042
+ friends {
2043
+ pageInfo {
2044
+ hasNextPage
2045
+ endCursor
2046
+ }
2047
+ nodes {
2048
+ name
2049
+ package {
2050
+ address
2051
+ }
2052
+ }
2053
+ }
2054
+ structs {
2055
+ pageInfo {
2056
+ hasNextPage
2057
+ endCursor
2058
+ }
2059
+ nodes {
2060
+ ...RPC_MOVE_STRUCT_FIELDS
2061
+ }
2062
+ }
2063
+ fileFormatVersion
2064
+ functions {
2065
+ pageInfo {
2066
+ hasNextPage
2067
+ endCursor
2068
+ }
2069
+ nodes {
2070
+ ...RPC_MOVE_FUNCTION_FIELDS
2071
+ }
2072
+ }
2073
+ }
2074
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
2075
+ name
2076
+ abilities
2077
+ fields {
2078
+ name
2079
+ type {
2080
+ signature
2081
+ }
2082
+ }
2083
+ typeParameters {
2084
+ isPhantom
2085
+ constraints
2086
+ }
2087
+ }`);
2088
+ const PaginateMoveModuleListsDocument = new TypedDocumentString(`
2089
+ query paginateMoveModuleLists($packageId: IotaAddress!, $module: String!, $hasMoreFriends: Boolean!, $hasMoreStructs: Boolean!, $hasMoreFunctions: Boolean!, $afterFriends: String, $afterStructs: String, $afterFunctions: String) {
2090
+ object(address: $packageId) {
2091
+ asMovePackage {
2092
+ module(name: $module) {
2093
+ friends(after: $afterFriends) @include(if: $hasMoreFriends) {
2094
+ pageInfo {
2095
+ hasNextPage
2096
+ endCursor
2097
+ }
2098
+ nodes {
2099
+ name
2100
+ package {
2101
+ address
2102
+ }
2103
+ }
2104
+ }
2105
+ structs(after: $afterStructs) @include(if: $hasMoreStructs) {
2106
+ pageInfo {
2107
+ hasNextPage
2108
+ endCursor
2109
+ }
2110
+ nodes {
2111
+ ...RPC_MOVE_STRUCT_FIELDS
2112
+ }
2113
+ }
2114
+ functions(after: $afterFunctions) @include(if: $hasMoreFunctions) {
2115
+ pageInfo {
2116
+ hasNextPage
2117
+ endCursor
2118
+ }
2119
+ nodes {
2120
+ ...RPC_MOVE_FUNCTION_FIELDS
2121
+ }
2122
+ }
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
2128
+ name
2129
+ visibility
2130
+ isEntry
2131
+ parameters {
2132
+ signature
2133
+ }
2134
+ typeParameters {
2135
+ constraints
2136
+ }
2137
+ return {
2138
+ repr
2139
+ signature
2140
+ }
2141
+ }
2142
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
2143
+ name
2144
+ abilities
2145
+ fields {
2146
+ name
2147
+ type {
2148
+ signature
2149
+ }
2150
+ }
2151
+ typeParameters {
2152
+ isPhantom
2153
+ constraints
2154
+ }
2155
+ }`);
2156
+ const GetNormalizedMoveModulesByPackageDocument = new TypedDocumentString(`
2157
+ query getNormalizedMoveModulesByPackage($packageId: IotaAddress!, $cursor: String) {
2158
+ object(address: $packageId) {
2159
+ asMovePackage {
2160
+ address
2161
+ modules(after: $cursor) {
2162
+ pageInfo {
2163
+ hasNextPage
2164
+ endCursor
2165
+ }
2166
+ nodes {
2167
+ ...RPC_MOVE_MODULE_FIELDS
2168
+ }
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+ fragment RPC_MOVE_FUNCTION_FIELDS on MoveFunction {
2174
+ name
2175
+ visibility
2176
+ isEntry
2177
+ parameters {
2178
+ signature
2179
+ }
2180
+ typeParameters {
2181
+ constraints
2182
+ }
2183
+ return {
2184
+ repr
2185
+ signature
2186
+ }
2187
+ }
2188
+ fragment RPC_MOVE_MODULE_FIELDS on MoveModule {
2189
+ name
2190
+ friends {
2191
+ pageInfo {
2192
+ hasNextPage
2193
+ endCursor
2194
+ }
2195
+ nodes {
2196
+ name
2197
+ package {
2198
+ address
2199
+ }
2200
+ }
2201
+ }
2202
+ structs {
2203
+ pageInfo {
2204
+ hasNextPage
2205
+ endCursor
2206
+ }
2207
+ nodes {
2208
+ ...RPC_MOVE_STRUCT_FIELDS
2209
+ }
2210
+ }
2211
+ fileFormatVersion
2212
+ functions {
2213
+ pageInfo {
2214
+ hasNextPage
2215
+ endCursor
2216
+ }
2217
+ nodes {
2218
+ ...RPC_MOVE_FUNCTION_FIELDS
2219
+ }
2220
+ }
2221
+ }
2222
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
2223
+ name
2224
+ abilities
2225
+ fields {
2226
+ name
2227
+ type {
2228
+ signature
2229
+ }
2230
+ }
2231
+ typeParameters {
2232
+ isPhantom
2233
+ constraints
2234
+ }
2235
+ }`);
2236
+ const GetNormalizedMoveStructDocument = new TypedDocumentString(`
2237
+ query getNormalizedMoveStruct($packageId: IotaAddress!, $module: String!, $struct: String!) {
2238
+ object(address: $packageId) {
2239
+ asMovePackage {
2240
+ address
2241
+ module(name: $module) {
2242
+ fileFormatVersion
2243
+ struct(name: $struct) {
2244
+ ...RPC_MOVE_STRUCT_FIELDS
2245
+ }
2246
+ }
2247
+ }
2248
+ }
2249
+ }
2250
+ fragment RPC_MOVE_STRUCT_FIELDS on MoveStruct {
2251
+ name
2252
+ abilities
2253
+ fields {
2254
+ name
2255
+ type {
2256
+ signature
2257
+ }
2258
+ }
2259
+ typeParameters {
2260
+ isPhantom
2261
+ constraints
2262
+ }
2263
+ }`);
2264
+ const GetProtocolConfigDocument = new TypedDocumentString(`
2265
+ query getProtocolConfig($protocolVersion: Int) {
2266
+ protocolConfig(protocolVersion: $protocolVersion) {
2267
+ protocolVersion
2268
+ configs {
2269
+ key
2270
+ value
2271
+ }
2272
+ featureFlags {
2273
+ key
2274
+ value
2275
+ }
2276
+ }
2277
+ }
2278
+ `);
2279
+ const GetReferenceGasPriceDocument = new TypedDocumentString(`
2280
+ query getReferenceGasPrice {
2281
+ epoch {
2282
+ referenceGasPrice
2283
+ }
2284
+ }
2285
+ `);
2286
+ const GetTotalSupplyDocument = new TypedDocumentString(`
2287
+ query getTotalSupply($coinType: String!) {
2288
+ coinMetadata(coinType: $coinType) {
2289
+ supply
2290
+ decimals
2291
+ }
2292
+ }
2293
+ `);
2294
+ const GetTotalTransactionBlocksDocument = new TypedDocumentString(`
2295
+ query getTotalTransactionBlocks {
2296
+ checkpoint {
2297
+ networkTotalTransactions
2298
+ }
2299
+ }
2300
+ `);
2301
+ const GetValidatorsApyDocument = new TypedDocumentString(`
2302
+ query getValidatorsApy {
2303
+ epoch {
2304
+ epochId
2305
+ validatorSet {
2306
+ activeValidators {
2307
+ pageInfo {
2308
+ hasNextPage
2309
+ endCursor
2310
+ }
2311
+ nodes {
2312
+ address {
2313
+ address
2314
+ }
2315
+ apy
2316
+ }
2317
+ }
2318
+ }
2319
+ }
2320
+ }
2321
+ `);
2322
+ const ResolveNameServiceAddressDocument = new TypedDocumentString(`
2323
+ query resolveNameServiceAddress($domain: String!) {
2324
+ resolveIotansAddress(domain: $domain) {
2325
+ address
2326
+ }
2327
+ }
2328
+ `);
2329
+ const ResolveNameServiceNamesDocument = new TypedDocumentString(`
2330
+ query resolveNameServiceNames($address: IotaAddress!, $limit: Int, $cursor: String) {
2331
+ address(address: $address) {
2332
+ iotansRegistrations(first: $limit, after: $cursor) {
2333
+ pageInfo {
2334
+ hasNextPage
2335
+ endCursor
2336
+ }
2337
+ nodes {
2338
+ domain
2339
+ }
2340
+ }
2341
+ }
2342
+ }
2343
+ `);
2344
+ const GetOwnedObjectsDocument = new TypedDocumentString(`
2345
+ query getOwnedObjects($owner: IotaAddress!, $limit: Int, $cursor: String, $showBcs: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showStorageRebate: Boolean = false, $filter: ObjectFilter) {
2346
+ address(address: $owner) {
2347
+ objects(first: $limit, after: $cursor, filter: $filter) {
2348
+ pageInfo {
2349
+ hasNextPage
2350
+ endCursor
2351
+ }
2352
+ nodes {
2353
+ ...RPC_MOVE_OBJECT_FIELDS
2354
+ }
2355
+ }
2356
+ }
2357
+ }
2358
+ fragment RPC_MOVE_OBJECT_FIELDS on MoveObject {
2359
+ objectId: address
2360
+ bcs @include(if: $showBcs)
2361
+ contents @include(if: $showType) {
2362
+ type {
2363
+ repr
2364
+ }
2365
+ }
2366
+ hasPublicTransfer @include(if: $showContent)
2367
+ contents @include(if: $showContent) {
2368
+ data
2369
+ type {
2370
+ repr
2371
+ layout
2372
+ signature
2373
+ }
2374
+ }
2375
+ hasPublicTransfer @include(if: $showBcs)
2376
+ contents @include(if: $showBcs) {
2377
+ bcs
2378
+ type {
2379
+ repr
2380
+ }
2381
+ }
2382
+ owner @include(if: $showOwner) {
2383
+ ...RPC_OBJECT_OWNER_FIELDS
2384
+ }
2385
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
2386
+ digest
2387
+ }
2388
+ storageRebate @include(if: $showStorageRebate)
2389
+ digest
2390
+ version
2391
+ display @include(if: $showDisplay) {
2392
+ key
2393
+ value
2394
+ error
2395
+ }
2396
+ }
2397
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2398
+ __typename
2399
+ ... on AddressOwner {
2400
+ owner {
2401
+ asObject {
2402
+ address
2403
+ }
2404
+ asAddress {
2405
+ address
2406
+ }
2407
+ }
2408
+ }
2409
+ ... on Parent {
2410
+ parent {
2411
+ address
2412
+ }
2413
+ }
2414
+ ... on Shared {
2415
+ initialSharedVersion
2416
+ }
2417
+ }`);
2418
+ const GetObjectDocument = new TypedDocumentString(`
2419
+ query getObject($id: IotaAddress!, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
2420
+ object(address: $id) {
2421
+ ...RPC_OBJECT_FIELDS
2422
+ }
2423
+ }
2424
+ fragment RPC_OBJECT_FIELDS on Object {
2425
+ objectId: address
2426
+ version
2427
+ asMoveObject @include(if: $showType) {
2428
+ contents {
2429
+ type {
2430
+ repr
2431
+ }
2432
+ }
2433
+ }
2434
+ asMoveObject @include(if: $showContent) {
2435
+ hasPublicTransfer
2436
+ contents {
2437
+ data
2438
+ type {
2439
+ repr
2440
+ layout
2441
+ signature
2442
+ }
2443
+ }
2444
+ }
2445
+ asMoveObject @include(if: $showBcs) {
2446
+ hasPublicTransfer
2447
+ contents {
2448
+ bcs
2449
+ type {
2450
+ repr
2451
+ }
2452
+ }
2453
+ }
2454
+ owner @include(if: $showOwner) {
2455
+ ...RPC_OBJECT_OWNER_FIELDS
2456
+ }
2457
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
2458
+ digest
2459
+ }
2460
+ storageRebate @include(if: $showStorageRebate)
2461
+ digest
2462
+ version
2463
+ display @include(if: $showDisplay) {
2464
+ key
2465
+ value
2466
+ error
2467
+ }
2468
+ }
2469
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2470
+ __typename
2471
+ ... on AddressOwner {
2472
+ owner {
2473
+ asObject {
2474
+ address
2475
+ }
2476
+ asAddress {
2477
+ address
2478
+ }
2479
+ }
2480
+ }
2481
+ ... on Parent {
2482
+ parent {
2483
+ address
2484
+ }
2485
+ }
2486
+ ... on Shared {
2487
+ initialSharedVersion
2488
+ }
2489
+ }`);
2490
+ const TryGetPastObjectDocument = new TypedDocumentString(`
2491
+ query tryGetPastObject($id: IotaAddress!, $version: Int, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
2492
+ current: object(address: $id) {
2493
+ address
2494
+ version
2495
+ }
2496
+ object(address: $id, version: $version) {
2497
+ ...RPC_OBJECT_FIELDS
2498
+ }
2499
+ }
2500
+ fragment RPC_OBJECT_FIELDS on Object {
2501
+ objectId: address
2502
+ version
2503
+ asMoveObject @include(if: $showType) {
2504
+ contents {
2505
+ type {
2506
+ repr
2507
+ }
2508
+ }
2509
+ }
2510
+ asMoveObject @include(if: $showContent) {
2511
+ hasPublicTransfer
2512
+ contents {
2513
+ data
2514
+ type {
2515
+ repr
2516
+ layout
2517
+ signature
2518
+ }
2519
+ }
2520
+ }
2521
+ asMoveObject @include(if: $showBcs) {
2522
+ hasPublicTransfer
2523
+ contents {
2524
+ bcs
2525
+ type {
2526
+ repr
2527
+ }
2528
+ }
2529
+ }
2530
+ owner @include(if: $showOwner) {
2531
+ ...RPC_OBJECT_OWNER_FIELDS
2532
+ }
2533
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
2534
+ digest
2535
+ }
2536
+ storageRebate @include(if: $showStorageRebate)
2537
+ digest
2538
+ version
2539
+ display @include(if: $showDisplay) {
2540
+ key
2541
+ value
2542
+ error
2543
+ }
2544
+ }
2545
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2546
+ __typename
2547
+ ... on AddressOwner {
2548
+ owner {
2549
+ asObject {
2550
+ address
2551
+ }
2552
+ asAddress {
2553
+ address
2554
+ }
2555
+ }
2556
+ }
2557
+ ... on Parent {
2558
+ parent {
2559
+ address
2560
+ }
2561
+ }
2562
+ ... on Shared {
2563
+ initialSharedVersion
2564
+ }
2565
+ }`);
2566
+ const MultiGetObjectsDocument = new TypedDocumentString(`
2567
+ query multiGetObjects($ids: [IotaAddress!]!, $limit: Int, $cursor: String, $showBcs: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showStorageRebate: Boolean = false) {
2568
+ objects(first: $limit, after: $cursor, filter: {objectIds: $ids}) {
2569
+ pageInfo {
2570
+ hasNextPage
2571
+ endCursor
2572
+ }
2573
+ nodes {
2574
+ ...RPC_OBJECT_FIELDS
2575
+ }
2576
+ }
2577
+ }
2578
+ fragment RPC_OBJECT_FIELDS on Object {
2579
+ objectId: address
2580
+ version
2581
+ asMoveObject @include(if: $showType) {
2582
+ contents {
2583
+ type {
2584
+ repr
2585
+ }
2586
+ }
2587
+ }
2588
+ asMoveObject @include(if: $showContent) {
2589
+ hasPublicTransfer
2590
+ contents {
2591
+ data
2592
+ type {
2593
+ repr
2594
+ layout
2595
+ signature
2596
+ }
2597
+ }
2598
+ }
2599
+ asMoveObject @include(if: $showBcs) {
2600
+ hasPublicTransfer
2601
+ contents {
2602
+ bcs
2603
+ type {
2604
+ repr
2605
+ }
2606
+ }
2607
+ }
2608
+ owner @include(if: $showOwner) {
2609
+ ...RPC_OBJECT_OWNER_FIELDS
2610
+ }
2611
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
2612
+ digest
2613
+ }
2614
+ storageRebate @include(if: $showStorageRebate)
2615
+ digest
2616
+ version
2617
+ display @include(if: $showDisplay) {
2618
+ key
2619
+ value
2620
+ error
2621
+ }
2622
+ }
2623
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2624
+ __typename
2625
+ ... on AddressOwner {
2626
+ owner {
2627
+ asObject {
2628
+ address
2629
+ }
2630
+ asAddress {
2631
+ address
2632
+ }
2633
+ }
2634
+ }
2635
+ ... on Parent {
2636
+ parent {
2637
+ address
2638
+ }
2639
+ }
2640
+ ... on Shared {
2641
+ initialSharedVersion
2642
+ }
2643
+ }`);
2644
+ const QueryEventsDocument = new TypedDocumentString(`
2645
+ query queryEvents($filter: EventFilter!, $before: String, $after: String, $first: Int, $last: Int) {
2646
+ events(
2647
+ filter: $filter
2648
+ first: $first
2649
+ after: $after
2650
+ last: $last
2651
+ before: $before
2652
+ ) {
2653
+ pageInfo {
2654
+ hasNextPage
2655
+ hasPreviousPage
2656
+ endCursor
2657
+ startCursor
2658
+ }
2659
+ nodes {
2660
+ ...RPC_EVENTS_FIELDS
2661
+ }
2662
+ }
2663
+ }
2664
+ fragment RPC_EVENTS_FIELDS on Event {
2665
+ sendingModule {
2666
+ package {
2667
+ address
2668
+ }
2669
+ name
2670
+ }
2671
+ sender {
2672
+ address
2673
+ }
2674
+ type {
2675
+ repr
2676
+ }
2677
+ json
2678
+ bcs
2679
+ timestamp
2680
+ }`);
2681
+ const GetStakesDocument = new TypedDocumentString(`
2682
+ query getStakes($owner: IotaAddress!, $limit: Int, $cursor: String) {
2683
+ address(address: $owner) {
2684
+ stakedIotas(first: $limit, after: $cursor) {
2685
+ pageInfo {
2686
+ hasNextPage
2687
+ endCursor
2688
+ }
2689
+ nodes {
2690
+ ...RPC_STAKE_FIELDS
2691
+ }
2692
+ }
2693
+ }
2694
+ }
2695
+ fragment RPC_STAKE_FIELDS on StakedIota {
2696
+ principal
2697
+ activatedEpoch {
2698
+ epochId
2699
+ referenceGasPrice
2700
+ }
2701
+ stakeStatus
2702
+ requestedEpoch {
2703
+ epochId
2704
+ }
2705
+ activatedEpoch {
2706
+ epochId
2707
+ }
2708
+ contents {
2709
+ json
2710
+ }
2711
+ address
2712
+ estimatedReward
2713
+ }`);
2714
+ const GetStakesByIdsDocument = new TypedDocumentString(`
2715
+ query getStakesByIds($ids: [IotaAddress!]!, $limit: Int, $cursor: String) {
2716
+ objects(first: $limit, after: $cursor, filter: {objectIds: $ids}) {
2717
+ pageInfo {
2718
+ hasNextPage
2719
+ endCursor
2720
+ }
2721
+ nodes {
2722
+ asMoveObject {
2723
+ asStakedIota {
2724
+ ...RPC_STAKE_FIELDS
2725
+ }
2726
+ }
2727
+ }
2728
+ }
2729
+ }
2730
+ fragment RPC_STAKE_FIELDS on StakedIota {
2731
+ principal
2732
+ activatedEpoch {
2733
+ epochId
2734
+ referenceGasPrice
2735
+ }
2736
+ stakeStatus
2737
+ requestedEpoch {
2738
+ epochId
2739
+ }
2740
+ activatedEpoch {
2741
+ epochId
2742
+ }
2743
+ contents {
2744
+ json
2745
+ }
2746
+ address
2747
+ estimatedReward
2748
+ }`);
2749
+ const QueryTransactionBlocksDocument = new TypedDocumentString(`
2750
+ query queryTransactionBlocks($first: Int, $last: Int, $before: String, $after: String, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false, $filter: TransactionBlockFilter) {
2751
+ transactionBlocks(
2752
+ first: $first
2753
+ after: $after
2754
+ last: $last
2755
+ before: $before
2756
+ filter: $filter
2757
+ ) {
2758
+ pageInfo {
2759
+ hasNextPage
2760
+ hasPreviousPage
2761
+ startCursor
2762
+ endCursor
2763
+ }
2764
+ nodes {
2765
+ ...RPC_TRANSACTION_FIELDS
2766
+ }
2767
+ }
2768
+ }
2769
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2770
+ __typename
2771
+ ... on AddressOwner {
2772
+ owner {
2773
+ asObject {
2774
+ address
2775
+ }
2776
+ asAddress {
2777
+ address
2778
+ }
2779
+ }
2780
+ }
2781
+ ... on Parent {
2782
+ parent {
2783
+ address
2784
+ }
2785
+ }
2786
+ ... on Shared {
2787
+ initialSharedVersion
2788
+ }
2789
+ }
2790
+ fragment RPC_EVENTS_FIELDS on Event {
2791
+ sendingModule {
2792
+ package {
2793
+ address
2794
+ }
2795
+ name
2796
+ }
2797
+ sender {
2798
+ address
2799
+ }
2800
+ type {
2801
+ repr
2802
+ }
2803
+ json
2804
+ bcs
2805
+ timestamp
2806
+ }
2807
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
2808
+ digest
2809
+ rawTransaction: bcs @include(if: $showInput)
2810
+ rawTransaction: bcs @include(if: $showRawInput)
2811
+ sender {
2812
+ address
2813
+ }
2814
+ signatures
2815
+ effects {
2816
+ events @include(if: $showEvents) {
2817
+ pageInfo {
2818
+ hasNextPage
2819
+ endCursor
2820
+ }
2821
+ nodes {
2822
+ ...RPC_EVENTS_FIELDS
2823
+ }
2824
+ }
2825
+ checkpoint {
2826
+ sequenceNumber
2827
+ }
2828
+ timestamp
2829
+ balanceChanges @include(if: $showBalanceChanges) {
2830
+ pageInfo {
2831
+ hasNextPage
2832
+ endCursor
2833
+ }
2834
+ nodes {
2835
+ coinType {
2836
+ repr
2837
+ }
2838
+ owner {
2839
+ asObject {
2840
+ address
2841
+ }
2842
+ asAddress {
2843
+ address
2844
+ }
2845
+ }
2846
+ amount
2847
+ }
2848
+ }
2849
+ dependencies @include(if: $showEffects) {
2850
+ pageInfo {
2851
+ hasNextPage
2852
+ endCursor
2853
+ }
2854
+ nodes {
2855
+ digest
2856
+ }
2857
+ }
2858
+ status @include(if: $showEffects)
2859
+ gasEffects @include(if: $showEffects) {
2860
+ gasObject {
2861
+ owner {
2862
+ ...RPC_OBJECT_OWNER_FIELDS
2863
+ }
2864
+ digest
2865
+ version
2866
+ address
2867
+ }
2868
+ gasSummary {
2869
+ storageCost
2870
+ storageRebate
2871
+ nonRefundableStorageFee
2872
+ computationCost
2873
+ }
2874
+ }
2875
+ executedEpoch: epoch @include(if: $showEffects) {
2876
+ epochId
2877
+ }
2878
+ objectChanges @include(if: $showEffects) {
2879
+ pageInfo {
2880
+ hasNextPage
2881
+ endCursor
2882
+ }
2883
+ nodes {
2884
+ idCreated
2885
+ idDeleted
2886
+ inputState {
2887
+ version
2888
+ digest
2889
+ address
2890
+ }
2891
+ outputState {
2892
+ version
2893
+ digest
2894
+ address
2895
+ owner {
2896
+ ...RPC_OBJECT_OWNER_FIELDS
2897
+ }
2898
+ }
2899
+ }
2900
+ }
2901
+ objectChanges @include(if: $showObjectChanges) {
2902
+ pageInfo {
2903
+ hasNextPage
2904
+ endCursor
2905
+ }
2906
+ nodes {
2907
+ idCreated
2908
+ idDeleted
2909
+ inputState {
2910
+ version
2911
+ digest
2912
+ address
2913
+ asMoveObject {
2914
+ contents {
2915
+ type {
2916
+ repr
2917
+ }
2918
+ }
2919
+ }
2920
+ owner {
2921
+ ...RPC_OBJECT_OWNER_FIELDS
2922
+ }
2923
+ }
2924
+ outputState {
2925
+ version
2926
+ digest
2927
+ address
2928
+ asMoveObject {
2929
+ contents {
2930
+ type {
2931
+ repr
2932
+ }
2933
+ }
2934
+ }
2935
+ owner {
2936
+ ...RPC_OBJECT_OWNER_FIELDS
2937
+ }
2938
+ }
2939
+ }
2940
+ }
2941
+ }
2942
+ }`);
2943
+ const GetTransactionBlockDocument = new TypedDocumentString(`
2944
+ query getTransactionBlock($digest: String!, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false) {
2945
+ transactionBlock(digest: $digest) {
2946
+ ...RPC_TRANSACTION_FIELDS
2947
+ }
2948
+ }
2949
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
2950
+ __typename
2951
+ ... on AddressOwner {
2952
+ owner {
2953
+ asObject {
2954
+ address
2955
+ }
2956
+ asAddress {
2957
+ address
2958
+ }
2959
+ }
2960
+ }
2961
+ ... on Parent {
2962
+ parent {
2963
+ address
2964
+ }
2965
+ }
2966
+ ... on Shared {
2967
+ initialSharedVersion
2968
+ }
2969
+ }
2970
+ fragment RPC_EVENTS_FIELDS on Event {
2971
+ sendingModule {
2972
+ package {
2973
+ address
2974
+ }
2975
+ name
2976
+ }
2977
+ sender {
2978
+ address
2979
+ }
2980
+ type {
2981
+ repr
2982
+ }
2983
+ json
2984
+ bcs
2985
+ timestamp
2986
+ }
2987
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
2988
+ digest
2989
+ rawTransaction: bcs @include(if: $showInput)
2990
+ rawTransaction: bcs @include(if: $showRawInput)
2991
+ sender {
2992
+ address
2993
+ }
2994
+ signatures
2995
+ effects {
2996
+ events @include(if: $showEvents) {
2997
+ pageInfo {
2998
+ hasNextPage
2999
+ endCursor
3000
+ }
3001
+ nodes {
3002
+ ...RPC_EVENTS_FIELDS
3003
+ }
3004
+ }
3005
+ checkpoint {
3006
+ sequenceNumber
3007
+ }
3008
+ timestamp
3009
+ balanceChanges @include(if: $showBalanceChanges) {
3010
+ pageInfo {
3011
+ hasNextPage
3012
+ endCursor
3013
+ }
3014
+ nodes {
3015
+ coinType {
3016
+ repr
3017
+ }
3018
+ owner {
3019
+ asObject {
3020
+ address
3021
+ }
3022
+ asAddress {
3023
+ address
3024
+ }
3025
+ }
3026
+ amount
3027
+ }
3028
+ }
3029
+ dependencies @include(if: $showEffects) {
3030
+ pageInfo {
3031
+ hasNextPage
3032
+ endCursor
3033
+ }
3034
+ nodes {
3035
+ digest
3036
+ }
3037
+ }
3038
+ status @include(if: $showEffects)
3039
+ gasEffects @include(if: $showEffects) {
3040
+ gasObject {
3041
+ owner {
3042
+ ...RPC_OBJECT_OWNER_FIELDS
3043
+ }
3044
+ digest
3045
+ version
3046
+ address
3047
+ }
3048
+ gasSummary {
3049
+ storageCost
3050
+ storageRebate
3051
+ nonRefundableStorageFee
3052
+ computationCost
3053
+ }
3054
+ }
3055
+ executedEpoch: epoch @include(if: $showEffects) {
3056
+ epochId
3057
+ }
3058
+ objectChanges @include(if: $showEffects) {
3059
+ pageInfo {
3060
+ hasNextPage
3061
+ endCursor
3062
+ }
3063
+ nodes {
3064
+ idCreated
3065
+ idDeleted
3066
+ inputState {
3067
+ version
3068
+ digest
3069
+ address
3070
+ }
3071
+ outputState {
3072
+ version
3073
+ digest
3074
+ address
3075
+ owner {
3076
+ ...RPC_OBJECT_OWNER_FIELDS
3077
+ }
3078
+ }
3079
+ }
3080
+ }
3081
+ objectChanges @include(if: $showObjectChanges) {
3082
+ pageInfo {
3083
+ hasNextPage
3084
+ endCursor
3085
+ }
3086
+ nodes {
3087
+ idCreated
3088
+ idDeleted
3089
+ inputState {
3090
+ version
3091
+ digest
3092
+ address
3093
+ asMoveObject {
3094
+ contents {
3095
+ type {
3096
+ repr
3097
+ }
3098
+ }
3099
+ }
3100
+ owner {
3101
+ ...RPC_OBJECT_OWNER_FIELDS
3102
+ }
3103
+ }
3104
+ outputState {
3105
+ version
3106
+ digest
3107
+ address
3108
+ asMoveObject {
3109
+ contents {
3110
+ type {
3111
+ repr
3112
+ }
3113
+ }
3114
+ }
3115
+ owner {
3116
+ ...RPC_OBJECT_OWNER_FIELDS
3117
+ }
3118
+ }
3119
+ }
3120
+ }
3121
+ }
3122
+ }`);
3123
+ const MultiGetTransactionBlocksDocument = new TypedDocumentString(`
3124
+ query multiGetTransactionBlocks($digests: [String!]!, $limit: Int, $cursor: String, $showBalanceChanges: Boolean = false, $showEffects: Boolean = false, $showEvents: Boolean = false, $showInput: Boolean = false, $showObjectChanges: Boolean = false, $showRawInput: Boolean = false) {
3125
+ transactionBlocks(
3126
+ first: $limit
3127
+ after: $cursor
3128
+ filter: {transactionIds: $digests}
3129
+ ) {
3130
+ pageInfo {
3131
+ hasNextPage
3132
+ hasPreviousPage
3133
+ startCursor
3134
+ endCursor
3135
+ }
3136
+ nodes {
3137
+ ...RPC_TRANSACTION_FIELDS
3138
+ }
3139
+ }
3140
+ }
3141
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
3142
+ __typename
3143
+ ... on AddressOwner {
3144
+ owner {
3145
+ asObject {
3146
+ address
3147
+ }
3148
+ asAddress {
3149
+ address
3150
+ }
3151
+ }
3152
+ }
3153
+ ... on Parent {
3154
+ parent {
3155
+ address
3156
+ }
3157
+ }
3158
+ ... on Shared {
3159
+ initialSharedVersion
3160
+ }
3161
+ }
3162
+ fragment RPC_EVENTS_FIELDS on Event {
3163
+ sendingModule {
3164
+ package {
3165
+ address
3166
+ }
3167
+ name
3168
+ }
3169
+ sender {
3170
+ address
3171
+ }
3172
+ type {
3173
+ repr
3174
+ }
3175
+ json
3176
+ bcs
3177
+ timestamp
3178
+ }
3179
+ fragment RPC_TRANSACTION_FIELDS on TransactionBlock {
3180
+ digest
3181
+ rawTransaction: bcs @include(if: $showInput)
3182
+ rawTransaction: bcs @include(if: $showRawInput)
3183
+ sender {
3184
+ address
3185
+ }
3186
+ signatures
3187
+ effects {
3188
+ events @include(if: $showEvents) {
3189
+ pageInfo {
3190
+ hasNextPage
3191
+ endCursor
3192
+ }
3193
+ nodes {
3194
+ ...RPC_EVENTS_FIELDS
3195
+ }
3196
+ }
3197
+ checkpoint {
3198
+ sequenceNumber
3199
+ }
3200
+ timestamp
3201
+ balanceChanges @include(if: $showBalanceChanges) {
3202
+ pageInfo {
3203
+ hasNextPage
3204
+ endCursor
3205
+ }
3206
+ nodes {
3207
+ coinType {
3208
+ repr
3209
+ }
3210
+ owner {
3211
+ asObject {
3212
+ address
3213
+ }
3214
+ asAddress {
3215
+ address
3216
+ }
3217
+ }
3218
+ amount
3219
+ }
3220
+ }
3221
+ dependencies @include(if: $showEffects) {
3222
+ pageInfo {
3223
+ hasNextPage
3224
+ endCursor
3225
+ }
3226
+ nodes {
3227
+ digest
3228
+ }
3229
+ }
3230
+ status @include(if: $showEffects)
3231
+ gasEffects @include(if: $showEffects) {
3232
+ gasObject {
3233
+ owner {
3234
+ ...RPC_OBJECT_OWNER_FIELDS
3235
+ }
3236
+ digest
3237
+ version
3238
+ address
3239
+ }
3240
+ gasSummary {
3241
+ storageCost
3242
+ storageRebate
3243
+ nonRefundableStorageFee
3244
+ computationCost
3245
+ }
3246
+ }
3247
+ executedEpoch: epoch @include(if: $showEffects) {
3248
+ epochId
3249
+ }
3250
+ objectChanges @include(if: $showEffects) {
3251
+ pageInfo {
3252
+ hasNextPage
3253
+ endCursor
3254
+ }
3255
+ nodes {
3256
+ idCreated
3257
+ idDeleted
3258
+ inputState {
3259
+ version
3260
+ digest
3261
+ address
3262
+ }
3263
+ outputState {
3264
+ version
3265
+ digest
3266
+ address
3267
+ owner {
3268
+ ...RPC_OBJECT_OWNER_FIELDS
3269
+ }
3270
+ }
3271
+ }
3272
+ }
3273
+ objectChanges @include(if: $showObjectChanges) {
3274
+ pageInfo {
3275
+ hasNextPage
3276
+ endCursor
3277
+ }
3278
+ nodes {
3279
+ idCreated
3280
+ idDeleted
3281
+ inputState {
3282
+ version
3283
+ digest
3284
+ address
3285
+ asMoveObject {
3286
+ contents {
3287
+ type {
3288
+ repr
3289
+ }
3290
+ }
3291
+ }
3292
+ owner {
3293
+ ...RPC_OBJECT_OWNER_FIELDS
3294
+ }
3295
+ }
3296
+ outputState {
3297
+ version
3298
+ digest
3299
+ address
3300
+ asMoveObject {
3301
+ contents {
3302
+ type {
3303
+ repr
3304
+ }
3305
+ }
3306
+ }
3307
+ owner {
3308
+ ...RPC_OBJECT_OWNER_FIELDS
3309
+ }
3310
+ }
3311
+ }
3312
+ }
3313
+ }
3314
+ }`);
3315
+ const PaginateTransactionBlockListsDocument = new TypedDocumentString(`
3316
+ query paginateTransactionBlockLists($digest: String!, $hasMoreEvents: Boolean!, $hasMoreBalanceChanges: Boolean!, $hasMoreObjectChanges: Boolean!, $hasMoreDependencies: Boolean!, $afterEvents: String, $afterBalanceChanges: String, $afterObjectChanges: String, $afterDependencies: String) {
3317
+ transactionBlock(digest: $digest) {
3318
+ ...PAGINATE_TRANSACTION_LISTS
3319
+ }
3320
+ }
3321
+ fragment RPC_OBJECT_OWNER_FIELDS on ObjectOwner {
3322
+ __typename
3323
+ ... on AddressOwner {
3324
+ owner {
3325
+ asObject {
3326
+ address
3327
+ }
3328
+ asAddress {
3329
+ address
3330
+ }
3331
+ }
3332
+ }
3333
+ ... on Parent {
3334
+ parent {
3335
+ address
3336
+ }
3337
+ }
3338
+ ... on Shared {
3339
+ initialSharedVersion
3340
+ }
3341
+ }
3342
+ fragment RPC_EVENTS_FIELDS on Event {
3343
+ sendingModule {
3344
+ package {
3345
+ address
3346
+ }
3347
+ name
3348
+ }
3349
+ sender {
3350
+ address
3351
+ }
3352
+ type {
3353
+ repr
3354
+ }
3355
+ json
3356
+ bcs
3357
+ timestamp
3358
+ }
3359
+ fragment PAGINATE_TRANSACTION_LISTS on TransactionBlock {
3360
+ effects {
3361
+ events(after: $afterEvents) @include(if: $hasMoreEvents) {
3362
+ pageInfo {
3363
+ hasNextPage
3364
+ endCursor
3365
+ }
3366
+ nodes {
3367
+ ...RPC_EVENTS_FIELDS
3368
+ }
3369
+ }
3370
+ balanceChanges(after: $afterBalanceChanges) @include(if: $hasMoreBalanceChanges) {
3371
+ pageInfo {
3372
+ hasNextPage
3373
+ endCursor
3374
+ }
3375
+ nodes {
3376
+ coinType {
3377
+ repr
3378
+ }
3379
+ owner {
3380
+ asObject {
3381
+ address
3382
+ }
3383
+ asAddress {
3384
+ address
3385
+ }
3386
+ }
3387
+ amount
3388
+ }
3389
+ }
3390
+ dependencies(after: $afterDependencies) @include(if: $hasMoreDependencies) {
3391
+ pageInfo {
3392
+ hasNextPage
3393
+ endCursor
3394
+ }
3395
+ nodes {
3396
+ digest
3397
+ }
3398
+ }
3399
+ objectChanges(after: $afterObjectChanges) @include(if: $hasMoreObjectChanges) {
3400
+ pageInfo {
3401
+ hasNextPage
3402
+ endCursor
3403
+ }
3404
+ nodes {
3405
+ idCreated
3406
+ idDeleted
3407
+ inputState {
3408
+ version
3409
+ digest
3410
+ address
3411
+ asMoveObject {
3412
+ contents {
3413
+ type {
3414
+ repr
3415
+ }
3416
+ }
3417
+ }
3418
+ owner {
3419
+ ...RPC_OBJECT_OWNER_FIELDS
3420
+ }
3421
+ }
3422
+ outputState {
3423
+ version
3424
+ digest
3425
+ address
3426
+ asMoveObject {
3427
+ contents {
3428
+ type {
3429
+ repr
3430
+ }
3431
+ }
3432
+ }
3433
+ owner {
3434
+ ...RPC_OBJECT_OWNER_FIELDS
3435
+ }
3436
+ }
3437
+ }
3438
+ }
3439
+ }
3440
+ }`);
3441
+ export {
3442
+ AddressTransactionBlockRelationship,
3443
+ DevInspectTransactionBlockDocument,
3444
+ DomainFormat,
3445
+ DryRunTransactionBlockDocument,
3446
+ ExecuteTransactionBlockDocument,
3447
+ ExecutionStatus,
3448
+ Feature,
3449
+ GetAllBalancesDocument,
3450
+ GetBalanceDocument,
3451
+ GetChainIdentifierDocument,
3452
+ GetCheckpointDocument,
3453
+ GetCheckpointsDocument,
3454
+ GetCoinMetadataDocument,
3455
+ GetCoinsDocument,
3456
+ GetCommitteeInfoDocument,
3457
+ GetCurrentEpochDocument,
3458
+ GetDynamicFieldObjectDocument,
3459
+ GetDynamicFieldsDocument,
3460
+ GetLatestCheckpointSequenceNumberDocument,
3461
+ GetLatestIotaSystemStateDocument,
3462
+ GetMoveFunctionArgTypesDocument,
3463
+ GetNormalizedMoveFunctionDocument,
3464
+ GetNormalizedMoveModuleDocument,
3465
+ GetNormalizedMoveModulesByPackageDocument,
3466
+ GetNormalizedMoveStructDocument,
3467
+ GetObjectDocument,
3468
+ GetOwnedObjectsDocument,
3469
+ GetProtocolConfigDocument,
3470
+ GetReferenceGasPriceDocument,
3471
+ GetStakesByIdsDocument,
3472
+ GetStakesDocument,
3473
+ GetTotalSupplyDocument,
3474
+ GetTotalTransactionBlocksDocument,
3475
+ GetTransactionBlockDocument,
3476
+ GetTypeLayoutDocument,
3477
+ GetValidatorsApyDocument,
3478
+ MoveAbility,
3479
+ MoveVisibility,
3480
+ MultiGetObjectsDocument,
3481
+ MultiGetTransactionBlocksDocument,
3482
+ ObjectKind,
3483
+ PaginateCheckpointTransactionBlocksDocument,
3484
+ PaginateEpochValidatorsDocument,
3485
+ PaginateMoveModuleListsDocument,
3486
+ PaginateTransactionBlockListsDocument,
3487
+ Paginate_Transaction_ListsFragmentDoc,
3488
+ QueryEventsDocument,
3489
+ QueryTransactionBlocksDocument,
3490
+ ResolveNameServiceAddressDocument,
3491
+ ResolveNameServiceNamesDocument,
3492
+ Rpc_Checkpoint_FieldsFragmentDoc,
3493
+ Rpc_Credential_FieldsFragmentDoc,
3494
+ Rpc_Events_FieldsFragmentDoc,
3495
+ Rpc_Move_Function_FieldsFragmentDoc,
3496
+ Rpc_Move_Module_FieldsFragmentDoc,
3497
+ Rpc_Move_Object_FieldsFragmentDoc,
3498
+ Rpc_Move_Struct_FieldsFragmentDoc,
3499
+ Rpc_Object_FieldsFragmentDoc,
3500
+ Rpc_Object_Owner_FieldsFragmentDoc,
3501
+ Rpc_Stake_FieldsFragmentDoc,
3502
+ Rpc_Transaction_FieldsFragmentDoc,
3503
+ Rpc_Validator_FieldsFragmentDoc,
3504
+ StakeStatus,
3505
+ TransactionBlockKindInput,
3506
+ TryGetPastObjectDocument,
3507
+ TypedDocumentString,
3508
+ ZkLoginIntentScope
3509
+ };
3510
+ //# sourceMappingURL=queries.js.map