@midnightntwrk/wallet-sdk-indexer-client 1.2.3

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 (78) hide show
  1. package/README.md +86 -0
  2. package/dist/effect/Backpressure.d.ts +97 -0
  3. package/dist/effect/Backpressure.js +146 -0
  4. package/dist/effect/ConnectionHelper.d.ts +4 -0
  5. package/dist/effect/ConnectionHelper.js +41 -0
  6. package/dist/effect/HttpQueryClient.d.ts +4 -0
  7. package/dist/effect/HttpQueryClient.js +50 -0
  8. package/dist/effect/Query.d.ts +39 -0
  9. package/dist/effect/Query.js +47 -0
  10. package/dist/effect/QueryClient.d.ts +15 -0
  11. package/dist/effect/QueryClient.js +15 -0
  12. package/dist/effect/QueryRunner.d.ts +11 -0
  13. package/dist/effect/QueryRunner.js +23 -0
  14. package/dist/effect/Subscription.d.ts +25 -0
  15. package/dist/effect/Subscription.js +56 -0
  16. package/dist/effect/SubscriptionClient.d.ts +23 -0
  17. package/dist/effect/SubscriptionClient.js +15 -0
  18. package/dist/effect/WsSubscriptionClient.d.ts +4 -0
  19. package/dist/effect/WsSubscriptionClient.js +89 -0
  20. package/dist/effect/index.d.ts +8 -0
  21. package/dist/effect/index.js +20 -0
  22. package/dist/effect/test/backpressure.test.d.ts +1 -0
  23. package/dist/effect/test/backpressure.test.js +146 -0
  24. package/dist/effect/test/connectionHelper.test.d.ts +1 -0
  25. package/dist/effect/test/connectionHelper.test.js +34 -0
  26. package/dist/effect/test/httpQueryClient.spied.test.d.ts +1 -0
  27. package/dist/effect/test/httpQueryClient.spied.test.js +37 -0
  28. package/dist/effect/test/httpQueryClient.test.d.ts +1 -0
  29. package/dist/effect/test/httpQueryClient.test.js +32 -0
  30. package/dist/effect/test/queryRunner.spied.test.d.ts +1 -0
  31. package/dist/effect/test/queryRunner.spied.test.js +46 -0
  32. package/dist/effect/test/wsSubscriptionClient.spied.test.d.ts +1 -0
  33. package/dist/effect/test/wsSubscriptionClient.spied.test.js +37 -0
  34. package/dist/effect/test/wsSubscriptionClient.test.d.ts +1 -0
  35. package/dist/effect/test/wsSubscriptionClient.test.js +32 -0
  36. package/dist/graphql/generated/fragment-masking.d.ts +19 -0
  37. package/dist/graphql/generated/fragment-masking.js +16 -0
  38. package/dist/graphql/generated/gql.d.ts +61 -0
  39. package/dist/graphql/generated/gql.js +17 -0
  40. package/dist/graphql/generated/graphql.d.ts +1021 -0
  41. package/dist/graphql/generated/graphql.js +700 -0
  42. package/dist/graphql/generated/index.d.ts +2 -0
  43. package/dist/graphql/generated/index.js +2 -0
  44. package/dist/graphql/queries/BlockHash.d.ts +6 -0
  45. package/dist/graphql/queries/BlockHash.js +24 -0
  46. package/dist/graphql/queries/Connect.d.ts +6 -0
  47. package/dist/graphql/queries/Connect.js +19 -0
  48. package/dist/graphql/queries/Disconnect.d.ts +6 -0
  49. package/dist/graphql/queries/Disconnect.js +19 -0
  50. package/dist/graphql/queries/FetchTermsAndConditions.d.ts +6 -0
  51. package/dist/graphql/queries/FetchTermsAndConditions.js +26 -0
  52. package/dist/graphql/queries/TransactionHistoryDetail.d.ts +6 -0
  53. package/dist/graphql/queries/TransactionHistoryDetail.js +30 -0
  54. package/dist/graphql/queries/TransactionStatus.d.ts +6 -0
  55. package/dist/graphql/queries/TransactionStatus.js +34 -0
  56. package/dist/graphql/queries/index.d.ts +6 -0
  57. package/dist/graphql/queries/index.js +18 -0
  58. package/dist/graphql/queries/test/BlockHash.test.d.ts +1 -0
  59. package/dist/graphql/queries/test/BlockHash.test.js +84 -0
  60. package/dist/graphql/subscriptions/DustLedgerEvents.d.ts +6 -0
  61. package/dist/graphql/subscriptions/DustLedgerEvents.js +24 -0
  62. package/dist/graphql/subscriptions/ShieldedTransactions.d.ts +8 -0
  63. package/dist/graphql/subscriptions/ShieldedTransactions.js +54 -0
  64. package/dist/graphql/subscriptions/UnshieldedTransactions.d.ts +8 -0
  65. package/dist/graphql/subscriptions/UnshieldedTransactions.js +68 -0
  66. package/dist/graphql/subscriptions/ZswapEvents.d.ts +6 -0
  67. package/dist/graphql/subscriptions/ZswapEvents.js +24 -0
  68. package/dist/graphql/subscriptions/index.d.ts +4 -0
  69. package/dist/graphql/subscriptions/index.js +16 -0
  70. package/dist/graphql/subscriptions/test/ShieldedTransactions.test.d.ts +1 -0
  71. package/dist/graphql/subscriptions/test/ShieldedTransactions.test.js +55 -0
  72. package/dist/graphql/subscriptions/test/UnshieldedTransactions.test.d.ts +1 -0
  73. package/dist/graphql/subscriptions/test/UnshieldedTransactions.test.js +52 -0
  74. package/dist/graphql/subscriptions/test/ZswapEvents.test.d.ts +1 -0
  75. package/dist/graphql/subscriptions/test/ZswapEvents.test.js +50 -0
  76. package/dist/index.d.ts +3 -0
  77. package/dist/index.js +15 -0
  78. package/package.json +57 -0
@@ -0,0 +1,700 @@
1
+ export const BlockHashDocument = {
2
+ kind: 'Document',
3
+ definitions: [
4
+ {
5
+ kind: 'OperationDefinition',
6
+ operation: 'query',
7
+ name: { kind: 'Name', value: 'BlockHash' },
8
+ variableDefinitions: [
9
+ {
10
+ kind: 'VariableDefinition',
11
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
12
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'BlockOffset' } },
13
+ },
14
+ ],
15
+ selectionSet: {
16
+ kind: 'SelectionSet',
17
+ selections: [
18
+ {
19
+ kind: 'Field',
20
+ name: { kind: 'Name', value: 'block' },
21
+ arguments: [
22
+ {
23
+ kind: 'Argument',
24
+ name: { kind: 'Name', value: 'offset' },
25
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
26
+ },
27
+ ],
28
+ selectionSet: {
29
+ kind: 'SelectionSet',
30
+ selections: [
31
+ { kind: 'Field', name: { kind: 'Name', value: 'height' } },
32
+ { kind: 'Field', name: { kind: 'Name', value: 'hash' } },
33
+ { kind: 'Field', name: { kind: 'Name', value: 'ledgerParameters' } },
34
+ { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } },
35
+ ],
36
+ },
37
+ },
38
+ ],
39
+ },
40
+ },
41
+ ],
42
+ };
43
+ export const ConnectDocument = {
44
+ kind: 'Document',
45
+ definitions: [
46
+ {
47
+ kind: 'OperationDefinition',
48
+ operation: 'mutation',
49
+ name: { kind: 'Name', value: 'Connect' },
50
+ variableDefinitions: [
51
+ {
52
+ kind: 'VariableDefinition',
53
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'viewingKey' } },
54
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'ViewingKey' } } },
55
+ },
56
+ ],
57
+ selectionSet: {
58
+ kind: 'SelectionSet',
59
+ selections: [
60
+ {
61
+ kind: 'Field',
62
+ name: { kind: 'Name', value: 'connect' },
63
+ arguments: [
64
+ {
65
+ kind: 'Argument',
66
+ name: { kind: 'Name', value: 'viewingKey' },
67
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'viewingKey' } },
68
+ },
69
+ ],
70
+ },
71
+ ],
72
+ },
73
+ },
74
+ ],
75
+ };
76
+ export const DisconnectDocument = {
77
+ kind: 'Document',
78
+ definitions: [
79
+ {
80
+ kind: 'OperationDefinition',
81
+ operation: 'mutation',
82
+ name: { kind: 'Name', value: 'Disconnect' },
83
+ variableDefinitions: [
84
+ {
85
+ kind: 'VariableDefinition',
86
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sessionId' } },
87
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'HexEncoded' } } },
88
+ },
89
+ ],
90
+ selectionSet: {
91
+ kind: 'SelectionSet',
92
+ selections: [
93
+ {
94
+ kind: 'Field',
95
+ name: { kind: 'Name', value: 'disconnect' },
96
+ arguments: [
97
+ {
98
+ kind: 'Argument',
99
+ name: { kind: 'Name', value: 'sessionId' },
100
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sessionId' } },
101
+ },
102
+ ],
103
+ },
104
+ ],
105
+ },
106
+ },
107
+ ],
108
+ };
109
+ export const FetchTermsAndConditionsDocument = {
110
+ kind: 'Document',
111
+ definitions: [
112
+ {
113
+ kind: 'OperationDefinition',
114
+ operation: 'query',
115
+ name: { kind: 'Name', value: 'FetchTermsAndConditions' },
116
+ selectionSet: {
117
+ kind: 'SelectionSet',
118
+ selections: [
119
+ {
120
+ kind: 'Field',
121
+ name: { kind: 'Name', value: 'block' },
122
+ selectionSet: {
123
+ kind: 'SelectionSet',
124
+ selections: [
125
+ {
126
+ kind: 'Field',
127
+ name: { kind: 'Name', value: 'systemParameters' },
128
+ selectionSet: {
129
+ kind: 'SelectionSet',
130
+ selections: [
131
+ {
132
+ kind: 'Field',
133
+ name: { kind: 'Name', value: 'termsAndConditions' },
134
+ selectionSet: {
135
+ kind: 'SelectionSet',
136
+ selections: [
137
+ { kind: 'Field', name: { kind: 'Name', value: 'hash' } },
138
+ { kind: 'Field', name: { kind: 'Name', value: 'url' } },
139
+ ],
140
+ },
141
+ },
142
+ ],
143
+ },
144
+ },
145
+ ],
146
+ },
147
+ },
148
+ ],
149
+ },
150
+ },
151
+ ],
152
+ };
153
+ export const TransactionHistoryDetailDocument = {
154
+ kind: 'Document',
155
+ definitions: [
156
+ {
157
+ kind: 'OperationDefinition',
158
+ operation: 'query',
159
+ name: { kind: 'Name', value: 'TransactionHistoryDetail' },
160
+ variableDefinitions: [
161
+ {
162
+ kind: 'VariableDefinition',
163
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'transactionHash' } },
164
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'HexEncoded' } } },
165
+ },
166
+ ],
167
+ selectionSet: {
168
+ kind: 'SelectionSet',
169
+ selections: [
170
+ {
171
+ kind: 'Field',
172
+ name: { kind: 'Name', value: 'transactions' },
173
+ arguments: [
174
+ {
175
+ kind: 'Argument',
176
+ name: { kind: 'Name', value: 'offset' },
177
+ value: {
178
+ kind: 'ObjectValue',
179
+ fields: [
180
+ {
181
+ kind: 'ObjectField',
182
+ name: { kind: 'Name', value: 'hash' },
183
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'transactionHash' } },
184
+ },
185
+ ],
186
+ },
187
+ },
188
+ ],
189
+ selectionSet: {
190
+ kind: 'SelectionSet',
191
+ selections: [
192
+ { kind: 'Field', name: { kind: 'Name', value: '__typename' } },
193
+ { kind: 'Field', name: { kind: 'Name', value: 'hash' } },
194
+ {
195
+ kind: 'Field',
196
+ name: { kind: 'Name', value: 'block' },
197
+ selectionSet: {
198
+ kind: 'SelectionSet',
199
+ selections: [{ kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }],
200
+ },
201
+ },
202
+ {
203
+ kind: 'InlineFragment',
204
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegularTransaction' } },
205
+ selectionSet: {
206
+ kind: 'SelectionSet',
207
+ selections: [
208
+ {
209
+ kind: 'Field',
210
+ name: { kind: 'Name', value: 'transactionResult' },
211
+ selectionSet: {
212
+ kind: 'SelectionSet',
213
+ selections: [{ kind: 'Field', name: { kind: 'Name', value: 'status' } }],
214
+ },
215
+ },
216
+ ],
217
+ },
218
+ },
219
+ ],
220
+ },
221
+ },
222
+ ],
223
+ },
224
+ },
225
+ ],
226
+ };
227
+ export const TransactionStatusDocument = {
228
+ kind: 'Document',
229
+ definitions: [
230
+ {
231
+ kind: 'OperationDefinition',
232
+ operation: 'query',
233
+ name: { kind: 'Name', value: 'TransactionStatus' },
234
+ variableDefinitions: [
235
+ {
236
+ kind: 'VariableDefinition',
237
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
238
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'HexEncoded' } } },
239
+ },
240
+ ],
241
+ selectionSet: {
242
+ kind: 'SelectionSet',
243
+ selections: [
244
+ {
245
+ kind: 'Field',
246
+ name: { kind: 'Name', value: 'transactions' },
247
+ arguments: [
248
+ {
249
+ kind: 'Argument',
250
+ name: { kind: 'Name', value: 'offset' },
251
+ value: {
252
+ kind: 'ObjectValue',
253
+ fields: [
254
+ {
255
+ kind: 'ObjectField',
256
+ name: { kind: 'Name', value: 'identifier' },
257
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
258
+ },
259
+ ],
260
+ },
261
+ },
262
+ ],
263
+ selectionSet: {
264
+ kind: 'SelectionSet',
265
+ selections: [
266
+ { kind: 'Field', name: { kind: 'Name', value: '__typename' } },
267
+ {
268
+ kind: 'InlineFragment',
269
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegularTransaction' } },
270
+ selectionSet: {
271
+ kind: 'SelectionSet',
272
+ selections: [
273
+ { kind: 'Field', name: { kind: 'Name', value: 'identifiers' } },
274
+ {
275
+ kind: 'Field',
276
+ name: { kind: 'Name', value: 'transactionResult' },
277
+ selectionSet: {
278
+ kind: 'SelectionSet',
279
+ selections: [
280
+ {
281
+ kind: 'Field',
282
+ name: { kind: 'Name', value: 'segments' },
283
+ selectionSet: {
284
+ kind: 'SelectionSet',
285
+ selections: [
286
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
287
+ { kind: 'Field', name: { kind: 'Name', value: 'success' } },
288
+ ],
289
+ },
290
+ },
291
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
292
+ { kind: 'Field', name: { kind: 'Name', value: '__typename' } },
293
+ ],
294
+ },
295
+ },
296
+ ],
297
+ },
298
+ },
299
+ ],
300
+ },
301
+ },
302
+ ],
303
+ },
304
+ },
305
+ ],
306
+ };
307
+ export const DustLedgerEventsDocument = {
308
+ kind: 'Document',
309
+ definitions: [
310
+ {
311
+ kind: 'OperationDefinition',
312
+ operation: 'subscription',
313
+ name: { kind: 'Name', value: 'DustLedgerEvents' },
314
+ variableDefinitions: [
315
+ {
316
+ kind: 'VariableDefinition',
317
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
318
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
319
+ },
320
+ ],
321
+ selectionSet: {
322
+ kind: 'SelectionSet',
323
+ selections: [
324
+ {
325
+ kind: 'Field',
326
+ name: { kind: 'Name', value: 'dustLedgerEvents' },
327
+ arguments: [
328
+ {
329
+ kind: 'Argument',
330
+ name: { kind: 'Name', value: 'id' },
331
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
332
+ },
333
+ ],
334
+ selectionSet: {
335
+ kind: 'SelectionSet',
336
+ selections: [
337
+ { kind: 'Field', alias: { kind: 'Name', value: 'type' }, name: { kind: 'Name', value: '__typename' } },
338
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
339
+ { kind: 'Field', name: { kind: 'Name', value: 'raw' } },
340
+ { kind: 'Field', name: { kind: 'Name', value: 'maxId' } },
341
+ ],
342
+ },
343
+ },
344
+ ],
345
+ },
346
+ },
347
+ ],
348
+ };
349
+ export const ShieldedTransactionsDocument = {
350
+ kind: 'Document',
351
+ definitions: [
352
+ {
353
+ kind: 'OperationDefinition',
354
+ operation: 'subscription',
355
+ name: { kind: 'Name', value: 'ShieldedTransactions' },
356
+ variableDefinitions: [
357
+ {
358
+ kind: 'VariableDefinition',
359
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sessionId' } },
360
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'HexEncoded' } } },
361
+ },
362
+ {
363
+ kind: 'VariableDefinition',
364
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'index' } },
365
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
366
+ },
367
+ ],
368
+ selectionSet: {
369
+ kind: 'SelectionSet',
370
+ selections: [
371
+ {
372
+ kind: 'Field',
373
+ name: { kind: 'Name', value: 'shieldedTransactions' },
374
+ arguments: [
375
+ {
376
+ kind: 'Argument',
377
+ name: { kind: 'Name', value: 'sessionId' },
378
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sessionId' } },
379
+ },
380
+ {
381
+ kind: 'Argument',
382
+ name: { kind: 'Name', value: 'index' },
383
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'index' } },
384
+ },
385
+ ],
386
+ selectionSet: {
387
+ kind: 'SelectionSet',
388
+ selections: [
389
+ { kind: 'Field', name: { kind: 'Name', value: '__typename' } },
390
+ {
391
+ kind: 'InlineFragment',
392
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ShieldedTransactionsProgress' } },
393
+ selectionSet: {
394
+ kind: 'SelectionSet',
395
+ selections: [
396
+ { kind: 'Field', name: { kind: 'Name', value: 'highestEndIndex' } },
397
+ { kind: 'Field', name: { kind: 'Name', value: 'highestCheckedEndIndex' } },
398
+ { kind: 'Field', name: { kind: 'Name', value: 'highestRelevantEndIndex' } },
399
+ ],
400
+ },
401
+ },
402
+ {
403
+ kind: 'InlineFragment',
404
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RelevantTransaction' } },
405
+ selectionSet: {
406
+ kind: 'SelectionSet',
407
+ selections: [
408
+ {
409
+ kind: 'Field',
410
+ name: { kind: 'Name', value: 'transaction' },
411
+ selectionSet: {
412
+ kind: 'SelectionSet',
413
+ selections: [
414
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
415
+ { kind: 'Field', name: { kind: 'Name', value: 'raw' } },
416
+ { kind: 'Field', name: { kind: 'Name', value: 'hash' } },
417
+ { kind: 'Field', name: { kind: 'Name', value: 'protocolVersion' } },
418
+ { kind: 'Field', name: { kind: 'Name', value: 'identifiers' } },
419
+ { kind: 'Field', name: { kind: 'Name', value: 'startIndex' } },
420
+ { kind: 'Field', name: { kind: 'Name', value: 'endIndex' } },
421
+ {
422
+ kind: 'Field',
423
+ name: { kind: 'Name', value: 'fees' },
424
+ selectionSet: {
425
+ kind: 'SelectionSet',
426
+ selections: [
427
+ { kind: 'Field', name: { kind: 'Name', value: 'paidFees' } },
428
+ { kind: 'Field', name: { kind: 'Name', value: 'estimatedFees' } },
429
+ ],
430
+ },
431
+ },
432
+ {
433
+ kind: 'Field',
434
+ name: { kind: 'Name', value: 'transactionResult' },
435
+ selectionSet: {
436
+ kind: 'SelectionSet',
437
+ selections: [
438
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
439
+ {
440
+ kind: 'Field',
441
+ name: { kind: 'Name', value: 'segments' },
442
+ selectionSet: {
443
+ kind: 'SelectionSet',
444
+ selections: [
445
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
446
+ { kind: 'Field', name: { kind: 'Name', value: 'success' } },
447
+ ],
448
+ },
449
+ },
450
+ ],
451
+ },
452
+ },
453
+ ],
454
+ },
455
+ },
456
+ {
457
+ kind: 'Field',
458
+ name: { kind: 'Name', value: 'collapsedMerkleTree' },
459
+ selectionSet: {
460
+ kind: 'SelectionSet',
461
+ selections: [
462
+ { kind: 'Field', name: { kind: 'Name', value: 'startIndex' } },
463
+ { kind: 'Field', name: { kind: 'Name', value: 'endIndex' } },
464
+ { kind: 'Field', name: { kind: 'Name', value: 'update' } },
465
+ { kind: 'Field', name: { kind: 'Name', value: 'protocolVersion' } },
466
+ ],
467
+ },
468
+ },
469
+ ],
470
+ },
471
+ },
472
+ ],
473
+ },
474
+ },
475
+ ],
476
+ },
477
+ },
478
+ ],
479
+ };
480
+ export const UnshieldedTransactionsDocument = {
481
+ kind: 'Document',
482
+ definitions: [
483
+ {
484
+ kind: 'OperationDefinition',
485
+ operation: 'subscription',
486
+ name: { kind: 'Name', value: 'UnshieldedTransactions' },
487
+ variableDefinitions: [
488
+ {
489
+ kind: 'VariableDefinition',
490
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'address' } },
491
+ type: {
492
+ kind: 'NonNullType',
493
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'UnshieldedAddress' } },
494
+ },
495
+ },
496
+ {
497
+ kind: 'VariableDefinition',
498
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
499
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
500
+ },
501
+ ],
502
+ selectionSet: {
503
+ kind: 'SelectionSet',
504
+ selections: [
505
+ {
506
+ kind: 'Field',
507
+ name: { kind: 'Name', value: 'unshieldedTransactions' },
508
+ arguments: [
509
+ {
510
+ kind: 'Argument',
511
+ name: { kind: 'Name', value: 'address' },
512
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'address' } },
513
+ },
514
+ {
515
+ kind: 'Argument',
516
+ name: { kind: 'Name', value: 'transactionId' },
517
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
518
+ },
519
+ ],
520
+ selectionSet: {
521
+ kind: 'SelectionSet',
522
+ selections: [
523
+ {
524
+ kind: 'InlineFragment',
525
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'UnshieldedTransaction' } },
526
+ selectionSet: {
527
+ kind: 'SelectionSet',
528
+ selections: [
529
+ {
530
+ kind: 'Field',
531
+ alias: { kind: 'Name', value: 'type' },
532
+ name: { kind: 'Name', value: '__typename' },
533
+ },
534
+ {
535
+ kind: 'Field',
536
+ name: { kind: 'Name', value: 'transaction' },
537
+ selectionSet: {
538
+ kind: 'SelectionSet',
539
+ selections: [
540
+ {
541
+ kind: 'Field',
542
+ alias: { kind: 'Name', value: 'type' },
543
+ name: { kind: 'Name', value: '__typename' },
544
+ },
545
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
546
+ { kind: 'Field', name: { kind: 'Name', value: 'hash' } },
547
+ { kind: 'Field', name: { kind: 'Name', value: 'protocolVersion' } },
548
+ {
549
+ kind: 'Field',
550
+ name: { kind: 'Name', value: 'block' },
551
+ selectionSet: {
552
+ kind: 'SelectionSet',
553
+ selections: [{ kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }],
554
+ },
555
+ },
556
+ {
557
+ kind: 'InlineFragment',
558
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegularTransaction' } },
559
+ selectionSet: {
560
+ kind: 'SelectionSet',
561
+ selections: [
562
+ { kind: 'Field', name: { kind: 'Name', value: 'identifiers' } },
563
+ {
564
+ kind: 'Field',
565
+ name: { kind: 'Name', value: 'fees' },
566
+ selectionSet: {
567
+ kind: 'SelectionSet',
568
+ selections: [
569
+ { kind: 'Field', name: { kind: 'Name', value: 'paidFees' } },
570
+ { kind: 'Field', name: { kind: 'Name', value: 'estimatedFees' } },
571
+ ],
572
+ },
573
+ },
574
+ {
575
+ kind: 'Field',
576
+ name: { kind: 'Name', value: 'transactionResult' },
577
+ selectionSet: {
578
+ kind: 'SelectionSet',
579
+ selections: [
580
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
581
+ {
582
+ kind: 'Field',
583
+ name: { kind: 'Name', value: 'segments' },
584
+ selectionSet: {
585
+ kind: 'SelectionSet',
586
+ selections: [
587
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
588
+ { kind: 'Field', name: { kind: 'Name', value: 'success' } },
589
+ ],
590
+ },
591
+ },
592
+ ],
593
+ },
594
+ },
595
+ ],
596
+ },
597
+ },
598
+ ],
599
+ },
600
+ },
601
+ {
602
+ kind: 'Field',
603
+ name: { kind: 'Name', value: 'createdUtxos' },
604
+ selectionSet: {
605
+ kind: 'SelectionSet',
606
+ selections: [
607
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
608
+ { kind: 'Field', name: { kind: 'Name', value: 'tokenType' } },
609
+ { kind: 'Field', name: { kind: 'Name', value: 'value' } },
610
+ { kind: 'Field', name: { kind: 'Name', value: 'outputIndex' } },
611
+ { kind: 'Field', name: { kind: 'Name', value: 'intentHash' } },
612
+ { kind: 'Field', name: { kind: 'Name', value: 'ctime' } },
613
+ { kind: 'Field', name: { kind: 'Name', value: 'registeredForDustGeneration' } },
614
+ ],
615
+ },
616
+ },
617
+ {
618
+ kind: 'Field',
619
+ name: { kind: 'Name', value: 'spentUtxos' },
620
+ selectionSet: {
621
+ kind: 'SelectionSet',
622
+ selections: [
623
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
624
+ { kind: 'Field', name: { kind: 'Name', value: 'tokenType' } },
625
+ { kind: 'Field', name: { kind: 'Name', value: 'value' } },
626
+ { kind: 'Field', name: { kind: 'Name', value: 'outputIndex' } },
627
+ { kind: 'Field', name: { kind: 'Name', value: 'intentHash' } },
628
+ { kind: 'Field', name: { kind: 'Name', value: 'ctime' } },
629
+ { kind: 'Field', name: { kind: 'Name', value: 'registeredForDustGeneration' } },
630
+ ],
631
+ },
632
+ },
633
+ ],
634
+ },
635
+ },
636
+ {
637
+ kind: 'InlineFragment',
638
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'UnshieldedTransactionsProgress' } },
639
+ selectionSet: {
640
+ kind: 'SelectionSet',
641
+ selections: [
642
+ {
643
+ kind: 'Field',
644
+ alias: { kind: 'Name', value: 'type' },
645
+ name: { kind: 'Name', value: '__typename' },
646
+ },
647
+ { kind: 'Field', name: { kind: 'Name', value: 'highestTransactionId' } },
648
+ ],
649
+ },
650
+ },
651
+ ],
652
+ },
653
+ },
654
+ ],
655
+ },
656
+ },
657
+ ],
658
+ };
659
+ export const ZswapEventsDocument = {
660
+ kind: 'Document',
661
+ definitions: [
662
+ {
663
+ kind: 'OperationDefinition',
664
+ operation: 'subscription',
665
+ name: { kind: 'Name', value: 'ZswapEvents' },
666
+ variableDefinitions: [
667
+ {
668
+ kind: 'VariableDefinition',
669
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
670
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
671
+ },
672
+ ],
673
+ selectionSet: {
674
+ kind: 'SelectionSet',
675
+ selections: [
676
+ {
677
+ kind: 'Field',
678
+ name: { kind: 'Name', value: 'zswapLedgerEvents' },
679
+ arguments: [
680
+ {
681
+ kind: 'Argument',
682
+ name: { kind: 'Name', value: 'id' },
683
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
684
+ },
685
+ ],
686
+ selectionSet: {
687
+ kind: 'SelectionSet',
688
+ selections: [
689
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
690
+ { kind: 'Field', name: { kind: 'Name', value: 'raw' } },
691
+ { kind: 'Field', name: { kind: 'Name', value: 'protocolVersion' } },
692
+ { kind: 'Field', name: { kind: 'Name', value: 'maxId' } },
693
+ ],
694
+ },
695
+ },
696
+ ],
697
+ },
698
+ },
699
+ ],
700
+ };