@iota/graphql-transport 0.0.0-dev-20251015065834

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