@witnet/sdk 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +103 -0
  3. package/dist/package.json +72 -0
  4. package/dist/src/bin/helpers.d.ts +91 -0
  5. package/dist/src/bin/helpers.d.ts.map +1 -0
  6. package/dist/src/bin/helpers.js +816 -0
  7. package/dist/src/index.d.ts +5 -0
  8. package/dist/src/index.d.ts.map +1 -0
  9. package/dist/src/index.js +47 -0
  10. package/dist/src/lib/crypto/account.d.ts +32 -0
  11. package/dist/src/lib/crypto/account.d.ts.map +1 -0
  12. package/dist/src/lib/crypto/account.js +106 -0
  13. package/dist/src/lib/crypto/coinbase.d.ts +10 -0
  14. package/dist/src/lib/crypto/coinbase.d.ts.map +1 -0
  15. package/dist/src/lib/crypto/coinbase.js +28 -0
  16. package/dist/src/lib/crypto/index.d.ts +8 -0
  17. package/dist/src/lib/crypto/index.d.ts.map +1 -0
  18. package/dist/src/lib/crypto/index.js +30 -0
  19. package/dist/src/lib/crypto/interfaces.d.ts +85 -0
  20. package/dist/src/lib/crypto/interfaces.d.ts.map +1 -0
  21. package/dist/src/lib/crypto/interfaces.js +3 -0
  22. package/dist/src/lib/crypto/payloads/DataRequestPayload.d.ts +55 -0
  23. package/dist/src/lib/crypto/payloads/DataRequestPayload.d.ts.map +1 -0
  24. package/dist/src/lib/crypto/payloads/DataRequestPayload.js +339 -0
  25. package/dist/src/lib/crypto/payloads/StakePayload.d.ts +28 -0
  26. package/dist/src/lib/crypto/payloads/StakePayload.d.ts.map +1 -0
  27. package/dist/src/lib/crypto/payloads/StakePayload.js +142 -0
  28. package/dist/src/lib/crypto/payloads/UnstakePayload.d.ts +36 -0
  29. package/dist/src/lib/crypto/payloads/UnstakePayload.d.ts.map +1 -0
  30. package/dist/src/lib/crypto/payloads/UnstakePayload.js +154 -0
  31. package/dist/src/lib/crypto/payloads/ValueTransferPayload.d.ts +25 -0
  32. package/dist/src/lib/crypto/payloads/ValueTransferPayload.d.ts.map +1 -0
  33. package/dist/src/lib/crypto/payloads/ValueTransferPayload.js +128 -0
  34. package/dist/src/lib/crypto/payloads.d.ts +57 -0
  35. package/dist/src/lib/crypto/payloads.d.ts.map +1 -0
  36. package/dist/src/lib/crypto/payloads.js +170 -0
  37. package/dist/src/lib/crypto/signer.d.ts +33 -0
  38. package/dist/src/lib/crypto/signer.d.ts.map +1 -0
  39. package/dist/src/lib/crypto/signer.js +194 -0
  40. package/dist/src/lib/crypto/transmitters/DataRequests.d.ts +15 -0
  41. package/dist/src/lib/crypto/transmitters/DataRequests.d.ts.map +1 -0
  42. package/dist/src/lib/crypto/transmitters/DataRequests.js +23 -0
  43. package/dist/src/lib/crypto/transmitters/StakeDeposits.d.ts +12 -0
  44. package/dist/src/lib/crypto/transmitters/StakeDeposits.d.ts.map +1 -0
  45. package/dist/src/lib/crypto/transmitters/StakeDeposits.js +17 -0
  46. package/dist/src/lib/crypto/transmitters/StakeWithdrawals.d.ts +18 -0
  47. package/dist/src/lib/crypto/transmitters/StakeWithdrawals.d.ts.map +1 -0
  48. package/dist/src/lib/crypto/transmitters/StakeWithdrawals.js +53 -0
  49. package/dist/src/lib/crypto/transmitters/ValueTransfers.d.ts +11 -0
  50. package/dist/src/lib/crypto/transmitters/ValueTransfers.d.ts.map +1 -0
  51. package/dist/src/lib/crypto/transmitters/ValueTransfers.js +16 -0
  52. package/dist/src/lib/crypto/transmitters.d.ts +47 -0
  53. package/dist/src/lib/crypto/transmitters.d.ts.map +1 -0
  54. package/dist/src/lib/crypto/transmitters.js +416 -0
  55. package/dist/src/lib/crypto/types.d.ts +161 -0
  56. package/dist/src/lib/crypto/types.d.ts.map +1 -0
  57. package/dist/src/lib/crypto/types.js +273 -0
  58. package/dist/src/lib/crypto/utils.d.ts +21 -0
  59. package/dist/src/lib/crypto/utils.d.ts.map +1 -0
  60. package/dist/src/lib/crypto/utils.js +156 -0
  61. package/dist/src/lib/crypto/wallet.d.ts +120 -0
  62. package/dist/src/lib/crypto/wallet.d.ts.map +1 -0
  63. package/dist/src/lib/crypto/wallet.js +258 -0
  64. package/dist/src/lib/index.d.ts +5 -0
  65. package/dist/src/lib/index.d.ts.map +1 -0
  66. package/dist/src/lib/index.js +44 -0
  67. package/dist/src/lib/radon/ccdr/eth.d.ts +160 -0
  68. package/dist/src/lib/radon/ccdr/eth.d.ts.map +1 -0
  69. package/dist/src/lib/radon/ccdr/eth.js +272 -0
  70. package/dist/src/lib/radon/ccdr/index.d.ts +14 -0
  71. package/dist/src/lib/radon/ccdr/index.d.ts.map +1 -0
  72. package/dist/src/lib/radon/ccdr/index.js +39 -0
  73. package/dist/src/lib/radon/ccdr/wit.d.ts +23 -0
  74. package/dist/src/lib/radon/ccdr/wit.d.ts.map +1 -0
  75. package/dist/src/lib/radon/ccdr/wit.js +35 -0
  76. package/dist/src/lib/radon/filters.d.ts +14 -0
  77. package/dist/src/lib/radon/filters.d.ts.map +1 -0
  78. package/dist/src/lib/radon/filters.js +45 -0
  79. package/dist/src/lib/radon/index.d.ts +296 -0
  80. package/dist/src/lib/radon/index.d.ts.map +1 -0
  81. package/dist/src/lib/radon/index.js +707 -0
  82. package/dist/src/lib/radon/reducers.d.ts +29 -0
  83. package/dist/src/lib/radon/reducers.d.ts.map +1 -0
  84. package/dist/src/lib/radon/reducers.js +66 -0
  85. package/dist/src/lib/radon/types.d.ts +521 -0
  86. package/dist/src/lib/radon/types.d.ts.map +1 -0
  87. package/dist/src/lib/radon/types.js +936 -0
  88. package/dist/src/lib/radon/utils.d.ts +53 -0
  89. package/dist/src/lib/radon/utils.d.ts.map +1 -0
  90. package/dist/src/lib/radon/utils.js +153 -0
  91. package/dist/src/lib/rpc/index.d.ts +3 -0
  92. package/dist/src/lib/rpc/index.d.ts.map +1 -0
  93. package/dist/src/lib/rpc/index.js +19 -0
  94. package/dist/src/lib/rpc/nodes.d.ts +40 -0
  95. package/dist/src/lib/rpc/nodes.d.ts.map +1 -0
  96. package/dist/src/lib/rpc/nodes.js +293 -0
  97. package/dist/src/lib/rpc/provider.d.ts +88 -0
  98. package/dist/src/lib/rpc/provider.d.ts.map +1 -0
  99. package/dist/src/lib/rpc/provider.js +336 -0
  100. package/dist/src/lib/rpc/reporter.d.ts +18 -0
  101. package/dist/src/lib/rpc/reporter.d.ts.map +1 -0
  102. package/dist/src/lib/rpc/reporter.js +30 -0
  103. package/dist/src/lib/rpc/types.d.ts +409 -0
  104. package/dist/src/lib/rpc/types.d.ts.map +1 -0
  105. package/dist/src/lib/rpc/types.js +81 -0
  106. package/dist/src/lib/types.d.ts +18 -0
  107. package/dist/src/lib/types.d.ts.map +1 -0
  108. package/dist/src/lib/types.js +7 -0
  109. package/dist/src/lib/utils.d.ts +13 -0
  110. package/dist/src/lib/utils.d.ts.map +1 -0
  111. package/dist/src/lib/utils.js +97 -0
  112. package/dist/witnet/assets/index.d.ts +30 -0
  113. package/dist/witnet/assets/index.d.ts.map +1 -0
  114. package/dist/witnet/assets/index.js +6 -0
  115. package/dist/witnet/assets/modals/index.d.ts +18 -0
  116. package/dist/witnet/assets/modals/index.d.ts.map +1 -0
  117. package/dist/witnet/assets/modals/index.js +21 -0
  118. package/dist/witnet/assets/modals/web3/eth.d.ts +5 -0
  119. package/dist/witnet/assets/modals/web3/eth.d.ts.map +1 -0
  120. package/dist/witnet/assets/modals/web3/eth.js +26 -0
  121. package/dist/witnet/assets/modals/web3/wit.d.ts +4 -0
  122. package/dist/witnet/assets/modals/web3/wit.d.ts.map +1 -0
  123. package/dist/witnet/assets/modals/web3/wit.js +20 -0
  124. package/dist/witnet/assets/requests.d.ts +11 -0
  125. package/dist/witnet/assets/requests.d.ts.map +1 -0
  126. package/dist/witnet/assets/requests.js +88 -0
  127. package/dist/witnet/witnet.proto.json +1325 -0
  128. package/package.json +72 -0
  129. package/src/bin/cli/history.js +31 -0
  130. package/src/bin/cli/inspect.js +359 -0
  131. package/src/bin/cli/network.js +592 -0
  132. package/src/bin/cli/nodes.js +364 -0
  133. package/src/bin/cli/radon.js +814 -0
  134. package/src/bin/cli/wallet.js +1000 -0
  135. package/src/bin/helpers.js +829 -0
  136. package/src/bin/postinstall.js +9 -0
  137. package/src/bin/toolkit.js +294 -0
  138. package/witnet/assets/_index.js +8 -0
  139. package/witnet/assets/_requests.js +25 -0
  140. package/witnet/assets/_sources.js +36 -0
  141. package/witnet/assets/_templates.js +36 -0
  142. package/witnet/assets/index.js +4 -0
  143. package/witnet/assets/modals/index.js +25 -0
  144. package/witnet/assets/modals/web3/btc.js +0 -0
  145. package/witnet/assets/modals/web3/eth.js +29 -0
  146. package/witnet/assets/modals/web3/sol.js +0 -0
  147. package/witnet/assets/modals/web3/wit.js +23 -0
  148. package/witnet/assets/requests.js +94 -0
  149. package/witnet/witnet.proto.json +1325 -0
@@ -0,0 +1,1325 @@
1
+ {
2
+ "options": {
3
+ "syntax": "proto3"
4
+ },
5
+ "nested": {
6
+ "witnet": {
7
+ "nested": {
8
+ "LegacyMessage": {
9
+ "fields": {
10
+ "magic": {
11
+ "type": "uint32",
12
+ "id": 1
13
+ },
14
+ "kind": {
15
+ "type": "LegacyCommand",
16
+ "id": 2
17
+ }
18
+ },
19
+ "nested": {
20
+ "LegacyCommand": {
21
+ "oneofs": {
22
+ "kind": {
23
+ "oneof": [
24
+ "Version",
25
+ "Verack",
26
+ "GetPeers",
27
+ "Peers",
28
+ "Block",
29
+ "InventoryAnnouncement",
30
+ "InventoryRequest",
31
+ "LastBeacon",
32
+ "Transaction",
33
+ "SuperBlockVote",
34
+ "SuperBlock"
35
+ ]
36
+ }
37
+ },
38
+ "fields": {
39
+ "Version": {
40
+ "type": "Version",
41
+ "id": 1
42
+ },
43
+ "Verack": {
44
+ "type": "Verack",
45
+ "id": 2
46
+ },
47
+ "GetPeers": {
48
+ "type": "GetPeers",
49
+ "id": 3
50
+ },
51
+ "Peers": {
52
+ "type": "Peers",
53
+ "id": 4
54
+ },
55
+ "Block": {
56
+ "type": "LegacyBlock",
57
+ "id": 5
58
+ },
59
+ "InventoryAnnouncement": {
60
+ "type": "InventoryAnnouncement",
61
+ "id": 6
62
+ },
63
+ "InventoryRequest": {
64
+ "type": "InventoryRequest",
65
+ "id": 7
66
+ },
67
+ "LastBeacon": {
68
+ "type": "LastBeacon",
69
+ "id": 8
70
+ },
71
+ "Transaction": {
72
+ "type": "Transaction",
73
+ "id": 9
74
+ },
75
+ "SuperBlockVote": {
76
+ "type": "SuperBlockVote",
77
+ "id": 10
78
+ },
79
+ "SuperBlock": {
80
+ "type": "SuperBlock",
81
+ "id": 11
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "Message": {
88
+ "fields": {
89
+ "magic": {
90
+ "type": "uint32",
91
+ "id": 1
92
+ },
93
+ "kind": {
94
+ "type": "Command",
95
+ "id": 2
96
+ }
97
+ },
98
+ "nested": {
99
+ "Command": {
100
+ "oneofs": {
101
+ "kind": {
102
+ "oneof": [
103
+ "Version",
104
+ "Verack",
105
+ "GetPeers",
106
+ "Peers",
107
+ "Block",
108
+ "InventoryAnnouncement",
109
+ "InventoryRequest",
110
+ "LastBeacon",
111
+ "Transaction",
112
+ "SuperBlockVote",
113
+ "SuperBlock"
114
+ ]
115
+ }
116
+ },
117
+ "fields": {
118
+ "Version": {
119
+ "type": "Version",
120
+ "id": 1
121
+ },
122
+ "Verack": {
123
+ "type": "Verack",
124
+ "id": 2
125
+ },
126
+ "GetPeers": {
127
+ "type": "GetPeers",
128
+ "id": 3
129
+ },
130
+ "Peers": {
131
+ "type": "Peers",
132
+ "id": 4
133
+ },
134
+ "Block": {
135
+ "type": "Block",
136
+ "id": 5
137
+ },
138
+ "InventoryAnnouncement": {
139
+ "type": "InventoryAnnouncement",
140
+ "id": 6
141
+ },
142
+ "InventoryRequest": {
143
+ "type": "InventoryRequest",
144
+ "id": 7
145
+ },
146
+ "LastBeacon": {
147
+ "type": "LastBeacon",
148
+ "id": 8
149
+ },
150
+ "Transaction": {
151
+ "type": "Transaction",
152
+ "id": 9
153
+ },
154
+ "SuperBlockVote": {
155
+ "type": "SuperBlockVote",
156
+ "id": 10
157
+ },
158
+ "SuperBlock": {
159
+ "type": "SuperBlock",
160
+ "id": 11
161
+ }
162
+ }
163
+ }
164
+ }
165
+ },
166
+ "Version": {
167
+ "fields": {
168
+ "version": {
169
+ "type": "uint32",
170
+ "id": 1
171
+ },
172
+ "timestamp": {
173
+ "type": "int64",
174
+ "id": 2
175
+ },
176
+ "capabilities": {
177
+ "type": "fixed64",
178
+ "id": 3
179
+ },
180
+ "senderAddress": {
181
+ "type": "Address",
182
+ "id": 4
183
+ },
184
+ "receiverAddress": {
185
+ "type": "Address",
186
+ "id": 5
187
+ },
188
+ "userAgent": {
189
+ "type": "string",
190
+ "id": 6
191
+ },
192
+ "nonce": {
193
+ "type": "fixed64",
194
+ "id": 7
195
+ },
196
+ "beacon": {
197
+ "type": "LastBeacon",
198
+ "id": 8
199
+ }
200
+ }
201
+ },
202
+ "Verack": {
203
+ "fields": {}
204
+ },
205
+ "GetPeers": {
206
+ "fields": {}
207
+ },
208
+ "Peers": {
209
+ "fields": {
210
+ "peers": {
211
+ "rule": "repeated",
212
+ "type": "Address",
213
+ "id": 1
214
+ }
215
+ }
216
+ },
217
+ "BlockEligibilityClaim": {
218
+ "fields": {
219
+ "proof": {
220
+ "type": "VrfProof",
221
+ "id": 1
222
+ }
223
+ }
224
+ },
225
+ "LegacyBlock": {
226
+ "fields": {
227
+ "blockHeader": {
228
+ "type": "LegacyBlockHeader",
229
+ "id": 1
230
+ },
231
+ "blockSig": {
232
+ "type": "KeyedSignature",
233
+ "id": 2
234
+ },
235
+ "txns": {
236
+ "type": "LegacyBlockTransactions",
237
+ "id": 3
238
+ }
239
+ },
240
+ "nested": {
241
+ "LegacyBlockHeader": {
242
+ "fields": {
243
+ "signals": {
244
+ "type": "uint32",
245
+ "id": 1
246
+ },
247
+ "beacon": {
248
+ "type": "CheckpointBeacon",
249
+ "id": 2
250
+ },
251
+ "merkleRoots": {
252
+ "type": "LegacyBlockMerkleRoots",
253
+ "id": 3
254
+ },
255
+ "proof": {
256
+ "type": "BlockEligibilityClaim",
257
+ "id": 4
258
+ },
259
+ "bn256PublicKey": {
260
+ "type": "Bn256PublicKey",
261
+ "id": 5
262
+ }
263
+ },
264
+ "nested": {
265
+ "LegacyBlockMerkleRoots": {
266
+ "fields": {
267
+ "mintHash": {
268
+ "type": "Hash",
269
+ "id": 1
270
+ },
271
+ "vtHashMerkleRoot": {
272
+ "type": "Hash",
273
+ "id": 2
274
+ },
275
+ "drHashMerkleRoot": {
276
+ "type": "Hash",
277
+ "id": 3
278
+ },
279
+ "commitHashMerkleRoot": {
280
+ "type": "Hash",
281
+ "id": 4
282
+ },
283
+ "revealHashMerkleRoot": {
284
+ "type": "Hash",
285
+ "id": 5
286
+ },
287
+ "tallyHashMerkleRoot": {
288
+ "type": "Hash",
289
+ "id": 6
290
+ }
291
+ }
292
+ }
293
+ }
294
+ },
295
+ "LegacyBlockTransactions": {
296
+ "fields": {
297
+ "mint": {
298
+ "type": "MintTransaction",
299
+ "id": 1
300
+ },
301
+ "valueTransferTxns": {
302
+ "rule": "repeated",
303
+ "type": "VTTransaction",
304
+ "id": 2
305
+ },
306
+ "dataRequestTxns": {
307
+ "rule": "repeated",
308
+ "type": "DRTransaction",
309
+ "id": 3
310
+ },
311
+ "commitTxns": {
312
+ "rule": "repeated",
313
+ "type": "CommitTransaction",
314
+ "id": 4
315
+ },
316
+ "revealTxns": {
317
+ "rule": "repeated",
318
+ "type": "RevealTransaction",
319
+ "id": 5
320
+ },
321
+ "tallyTxns": {
322
+ "rule": "repeated",
323
+ "type": "TallyTransaction",
324
+ "id": 6
325
+ }
326
+ }
327
+ }
328
+ }
329
+ },
330
+ "Block": {
331
+ "fields": {
332
+ "blockHeader": {
333
+ "type": "BlockHeader",
334
+ "id": 1
335
+ },
336
+ "blockSig": {
337
+ "type": "KeyedSignature",
338
+ "id": 2
339
+ },
340
+ "txns": {
341
+ "type": "BlockTransactions",
342
+ "id": 3
343
+ }
344
+ },
345
+ "nested": {
346
+ "BlockHeader": {
347
+ "fields": {
348
+ "signals": {
349
+ "type": "uint32",
350
+ "id": 1
351
+ },
352
+ "beacon": {
353
+ "type": "CheckpointBeacon",
354
+ "id": 2
355
+ },
356
+ "merkleRoots": {
357
+ "type": "BlockMerkleRoots",
358
+ "id": 3
359
+ },
360
+ "proof": {
361
+ "type": "BlockEligibilityClaim",
362
+ "id": 4
363
+ },
364
+ "bn256PublicKey": {
365
+ "type": "Bn256PublicKey",
366
+ "id": 5
367
+ }
368
+ },
369
+ "nested": {
370
+ "BlockMerkleRoots": {
371
+ "fields": {
372
+ "mintHash": {
373
+ "type": "Hash",
374
+ "id": 1
375
+ },
376
+ "vtHashMerkleRoot": {
377
+ "type": "Hash",
378
+ "id": 2
379
+ },
380
+ "drHashMerkleRoot": {
381
+ "type": "Hash",
382
+ "id": 3
383
+ },
384
+ "commitHashMerkleRoot": {
385
+ "type": "Hash",
386
+ "id": 4
387
+ },
388
+ "revealHashMerkleRoot": {
389
+ "type": "Hash",
390
+ "id": 5
391
+ },
392
+ "tallyHashMerkleRoot": {
393
+ "type": "Hash",
394
+ "id": 6
395
+ },
396
+ "stakeHashMerkleRoot": {
397
+ "type": "Hash",
398
+ "id": 7
399
+ },
400
+ "unstakeHashMerkleRoot": {
401
+ "type": "Hash",
402
+ "id": 8
403
+ }
404
+ }
405
+ }
406
+ }
407
+ },
408
+ "BlockTransactions": {
409
+ "fields": {
410
+ "mint": {
411
+ "type": "MintTransaction",
412
+ "id": 1
413
+ },
414
+ "valueTransferTxns": {
415
+ "rule": "repeated",
416
+ "type": "VTTransaction",
417
+ "id": 2
418
+ },
419
+ "dataRequestTxns": {
420
+ "rule": "repeated",
421
+ "type": "DRTransaction",
422
+ "id": 3
423
+ },
424
+ "commitTxns": {
425
+ "rule": "repeated",
426
+ "type": "CommitTransaction",
427
+ "id": 4
428
+ },
429
+ "revealTxns": {
430
+ "rule": "repeated",
431
+ "type": "RevealTransaction",
432
+ "id": 5
433
+ },
434
+ "tallyTxns": {
435
+ "rule": "repeated",
436
+ "type": "TallyTransaction",
437
+ "id": 6
438
+ },
439
+ "stakeTxns": {
440
+ "rule": "repeated",
441
+ "type": "StakeTransaction",
442
+ "id": 7
443
+ },
444
+ "unstakeTxns": {
445
+ "rule": "repeated",
446
+ "type": "UnstakeTransaction",
447
+ "id": 8
448
+ }
449
+ }
450
+ }
451
+ }
452
+ },
453
+ "SuperBlock": {
454
+ "fields": {
455
+ "signingCommitteeLength": {
456
+ "type": "uint32",
457
+ "id": 1
458
+ },
459
+ "arsRoot": {
460
+ "type": "Hash",
461
+ "id": 2
462
+ },
463
+ "dataRequestRoot": {
464
+ "type": "Hash",
465
+ "id": 3
466
+ },
467
+ "index": {
468
+ "type": "uint32",
469
+ "id": 4
470
+ },
471
+ "lastBlock": {
472
+ "type": "Hash",
473
+ "id": 5
474
+ },
475
+ "lastBlockInPreviousSuperblock": {
476
+ "type": "Hash",
477
+ "id": 6
478
+ },
479
+ "tallyRoot": {
480
+ "type": "Hash",
481
+ "id": 7
482
+ }
483
+ }
484
+ },
485
+ "InventoryAnnouncement": {
486
+ "fields": {
487
+ "inventory": {
488
+ "rule": "repeated",
489
+ "type": "InventoryEntry",
490
+ "id": 1
491
+ }
492
+ }
493
+ },
494
+ "InventoryRequest": {
495
+ "fields": {
496
+ "inventory": {
497
+ "rule": "repeated",
498
+ "type": "InventoryEntry",
499
+ "id": 1
500
+ }
501
+ }
502
+ },
503
+ "LastBeacon": {
504
+ "fields": {
505
+ "highestBlockCheckpoint": {
506
+ "type": "CheckpointBeacon",
507
+ "id": 1
508
+ },
509
+ "highestSuperblockCheckpoint": {
510
+ "type": "CheckpointBeacon",
511
+ "id": 2
512
+ }
513
+ }
514
+ },
515
+ "OutputPointer": {
516
+ "fields": {
517
+ "transactionId": {
518
+ "type": "Hash",
519
+ "id": 1
520
+ },
521
+ "outputIndex": {
522
+ "type": "uint32",
523
+ "id": 2
524
+ }
525
+ }
526
+ },
527
+ "ValueTransferOutput": {
528
+ "fields": {
529
+ "pkh": {
530
+ "type": "PublicKeyHash",
531
+ "id": 1
532
+ },
533
+ "value": {
534
+ "type": "uint64",
535
+ "id": 2
536
+ },
537
+ "timeLock": {
538
+ "type": "uint64",
539
+ "id": 3
540
+ }
541
+ }
542
+ },
543
+ "DataRequestOutput": {
544
+ "fields": {
545
+ "dataRequest": {
546
+ "type": "RADRequest",
547
+ "id": 1
548
+ },
549
+ "witnessReward": {
550
+ "type": "uint64",
551
+ "id": 2
552
+ },
553
+ "witnesses": {
554
+ "type": "uint32",
555
+ "id": 3
556
+ },
557
+ "commitAndRevealFee": {
558
+ "type": "uint64",
559
+ "id": 4
560
+ },
561
+ "minConsensusPercentage": {
562
+ "type": "uint32",
563
+ "id": 5
564
+ },
565
+ "collateral": {
566
+ "type": "uint64",
567
+ "id": 6
568
+ }
569
+ },
570
+ "nested": {
571
+ "RADRequest": {
572
+ "fields": {
573
+ "timeLock": {
574
+ "type": "uint64",
575
+ "id": 1
576
+ },
577
+ "retrieve": {
578
+ "rule": "repeated",
579
+ "type": "RADRetrieve",
580
+ "id": 2
581
+ },
582
+ "aggregate": {
583
+ "type": "RADAggregate",
584
+ "id": 3
585
+ },
586
+ "tally": {
587
+ "type": "RADTally",
588
+ "id": 4
589
+ }
590
+ },
591
+ "nested": {
592
+ "RADType": {
593
+ "values": {
594
+ "Unknown": 0,
595
+ "HttpGet": 1,
596
+ "Rng": 2,
597
+ "HttpPost": 3,
598
+ "HttpHead": 4
599
+ }
600
+ },
601
+ "RADFilter": {
602
+ "fields": {
603
+ "op": {
604
+ "type": "uint32",
605
+ "id": 1
606
+ },
607
+ "args": {
608
+ "type": "bytes",
609
+ "id": 2
610
+ }
611
+ }
612
+ },
613
+ "RADRetrieve": {
614
+ "fields": {
615
+ "kind": {
616
+ "type": "RADType",
617
+ "id": 1
618
+ },
619
+ "url": {
620
+ "type": "string",
621
+ "id": 2
622
+ },
623
+ "script": {
624
+ "type": "bytes",
625
+ "id": 3
626
+ },
627
+ "body": {
628
+ "type": "bytes",
629
+ "id": 4
630
+ },
631
+ "headers": {
632
+ "rule": "repeated",
633
+ "type": "StringPair",
634
+ "id": 5
635
+ }
636
+ }
637
+ },
638
+ "RADAggregate": {
639
+ "fields": {
640
+ "filters": {
641
+ "rule": "repeated",
642
+ "type": "RADFilter",
643
+ "id": 1
644
+ },
645
+ "reducer": {
646
+ "type": "uint32",
647
+ "id": 2
648
+ }
649
+ }
650
+ },
651
+ "RADTally": {
652
+ "fields": {
653
+ "filters": {
654
+ "rule": "repeated",
655
+ "type": "RADFilter",
656
+ "id": 1
657
+ },
658
+ "reducer": {
659
+ "type": "uint32",
660
+ "id": 2
661
+ }
662
+ }
663
+ }
664
+ }
665
+ }
666
+ }
667
+ },
668
+ "StringPair": {
669
+ "fields": {
670
+ "left": {
671
+ "type": "string",
672
+ "id": 1
673
+ },
674
+ "right": {
675
+ "type": "string",
676
+ "id": 2
677
+ }
678
+ }
679
+ },
680
+ "Input": {
681
+ "fields": {
682
+ "outputPointer": {
683
+ "type": "OutputPointer",
684
+ "id": 1
685
+ }
686
+ }
687
+ },
688
+ "VTTransactionBody": {
689
+ "fields": {
690
+ "inputs": {
691
+ "rule": "repeated",
692
+ "type": "Input",
693
+ "id": 1
694
+ },
695
+ "outputs": {
696
+ "rule": "repeated",
697
+ "type": "ValueTransferOutput",
698
+ "id": 2
699
+ }
700
+ }
701
+ },
702
+ "VTTransaction": {
703
+ "fields": {
704
+ "body": {
705
+ "type": "VTTransactionBody",
706
+ "id": 1
707
+ },
708
+ "signatures": {
709
+ "rule": "repeated",
710
+ "type": "KeyedSignature",
711
+ "id": 2
712
+ }
713
+ }
714
+ },
715
+ "DRTransactionBody": {
716
+ "fields": {
717
+ "inputs": {
718
+ "rule": "repeated",
719
+ "type": "Input",
720
+ "id": 1
721
+ },
722
+ "outputs": {
723
+ "rule": "repeated",
724
+ "type": "ValueTransferOutput",
725
+ "id": 2
726
+ },
727
+ "drOutput": {
728
+ "type": "DataRequestOutput",
729
+ "id": 3
730
+ }
731
+ }
732
+ },
733
+ "DRTransaction": {
734
+ "fields": {
735
+ "body": {
736
+ "type": "DRTransactionBody",
737
+ "id": 1
738
+ },
739
+ "signatures": {
740
+ "rule": "repeated",
741
+ "type": "KeyedSignature",
742
+ "id": 2
743
+ }
744
+ }
745
+ },
746
+ "CommitTransactionBody": {
747
+ "fields": {
748
+ "drPointer": {
749
+ "type": "Hash",
750
+ "id": 1
751
+ },
752
+ "commitment": {
753
+ "type": "Hash",
754
+ "id": 2
755
+ },
756
+ "proof": {
757
+ "type": "DataRequestEligibilityClaim",
758
+ "id": 3
759
+ },
760
+ "collateral": {
761
+ "rule": "repeated",
762
+ "type": "Input",
763
+ "id": 4
764
+ },
765
+ "outputs": {
766
+ "rule": "repeated",
767
+ "type": "ValueTransferOutput",
768
+ "id": 5
769
+ },
770
+ "bn256PublicKey": {
771
+ "type": "Bn256PublicKey",
772
+ "id": 6
773
+ }
774
+ }
775
+ },
776
+ "CommitTransaction": {
777
+ "fields": {
778
+ "body": {
779
+ "type": "CommitTransactionBody",
780
+ "id": 1
781
+ },
782
+ "signatures": {
783
+ "rule": "repeated",
784
+ "type": "KeyedSignature",
785
+ "id": 2
786
+ }
787
+ }
788
+ },
789
+ "RevealTransactionBody": {
790
+ "fields": {
791
+ "drPointer": {
792
+ "type": "Hash",
793
+ "id": 1
794
+ },
795
+ "reveal": {
796
+ "type": "bytes",
797
+ "id": 2
798
+ },
799
+ "pkh": {
800
+ "type": "PublicKeyHash",
801
+ "id": 3
802
+ }
803
+ }
804
+ },
805
+ "RevealTransaction": {
806
+ "fields": {
807
+ "body": {
808
+ "type": "RevealTransactionBody",
809
+ "id": 1
810
+ },
811
+ "signatures": {
812
+ "rule": "repeated",
813
+ "type": "KeyedSignature",
814
+ "id": 2
815
+ }
816
+ }
817
+ },
818
+ "TallyTransaction": {
819
+ "fields": {
820
+ "drPointer": {
821
+ "type": "Hash",
822
+ "id": 1
823
+ },
824
+ "tally": {
825
+ "type": "bytes",
826
+ "id": 2
827
+ },
828
+ "outputs": {
829
+ "rule": "repeated",
830
+ "type": "ValueTransferOutput",
831
+ "id": 3
832
+ },
833
+ "outOfConsensus": {
834
+ "rule": "repeated",
835
+ "type": "PublicKeyHash",
836
+ "id": 4
837
+ },
838
+ "errorCommitters": {
839
+ "rule": "repeated",
840
+ "type": "PublicKeyHash",
841
+ "id": 5
842
+ }
843
+ }
844
+ },
845
+ "MintTransaction": {
846
+ "fields": {
847
+ "epoch": {
848
+ "type": "fixed32",
849
+ "id": 1
850
+ },
851
+ "outputs": {
852
+ "rule": "repeated",
853
+ "type": "ValueTransferOutput",
854
+ "id": 2
855
+ }
856
+ }
857
+ },
858
+ "StakeKey": {
859
+ "fields": {
860
+ "validator": {
861
+ "type": "PublicKeyHash",
862
+ "id": 1
863
+ },
864
+ "withdrawer": {
865
+ "type": "PublicKeyHash",
866
+ "id": 2
867
+ }
868
+ }
869
+ },
870
+ "StakeOutput": {
871
+ "fields": {
872
+ "value": {
873
+ "type": "uint64",
874
+ "id": 1
875
+ },
876
+ "key": {
877
+ "type": "StakeKey",
878
+ "id": 2
879
+ },
880
+ "authorization": {
881
+ "type": "KeyedSignature",
882
+ "id": 3
883
+ }
884
+ }
885
+ },
886
+ "StakeTransactionBody": {
887
+ "fields": {
888
+ "inputs": {
889
+ "rule": "repeated",
890
+ "type": "Input",
891
+ "id": 1
892
+ },
893
+ "output": {
894
+ "type": "StakeOutput",
895
+ "id": 2
896
+ },
897
+ "change": {
898
+ "type": "ValueTransferOutput",
899
+ "id": 3
900
+ }
901
+ }
902
+ },
903
+ "StakeTransaction": {
904
+ "fields": {
905
+ "body": {
906
+ "type": "StakeTransactionBody",
907
+ "id": 1
908
+ },
909
+ "signatures": {
910
+ "rule": "repeated",
911
+ "type": "KeyedSignature",
912
+ "id": 2
913
+ }
914
+ }
915
+ },
916
+ "UnstakeTransactionBody": {
917
+ "fields": {
918
+ "operator": {
919
+ "type": "PublicKeyHash",
920
+ "id": 1
921
+ },
922
+ "withdrawal": {
923
+ "type": "ValueTransferOutput",
924
+ "id": 2
925
+ },
926
+ "fee": {
927
+ "type": "uint64",
928
+ "id": 3
929
+ },
930
+ "nonce": {
931
+ "type": "uint64",
932
+ "id": 4
933
+ }
934
+ }
935
+ },
936
+ "UnstakeTransaction": {
937
+ "fields": {
938
+ "body": {
939
+ "type": "UnstakeTransactionBody",
940
+ "id": 1
941
+ },
942
+ "signature": {
943
+ "type": "KeyedSignature",
944
+ "id": 2
945
+ }
946
+ }
947
+ },
948
+ "Transaction": {
949
+ "oneofs": {
950
+ "kind": {
951
+ "oneof": [
952
+ "ValueTransfer",
953
+ "DataRequest",
954
+ "Commit",
955
+ "Reveal",
956
+ "Tally",
957
+ "Mint",
958
+ "Stake",
959
+ "Unstake"
960
+ ]
961
+ }
962
+ },
963
+ "fields": {
964
+ "ValueTransfer": {
965
+ "type": "VTTransaction",
966
+ "id": 1
967
+ },
968
+ "DataRequest": {
969
+ "type": "DRTransaction",
970
+ "id": 2
971
+ },
972
+ "Commit": {
973
+ "type": "CommitTransaction",
974
+ "id": 3
975
+ },
976
+ "Reveal": {
977
+ "type": "RevealTransaction",
978
+ "id": 4
979
+ },
980
+ "Tally": {
981
+ "type": "TallyTransaction",
982
+ "id": 5
983
+ },
984
+ "Mint": {
985
+ "type": "MintTransaction",
986
+ "id": 6
987
+ },
988
+ "Stake": {
989
+ "type": "StakeTransaction",
990
+ "id": 7
991
+ },
992
+ "Unstake": {
993
+ "type": "UnstakeTransaction",
994
+ "id": 8
995
+ }
996
+ }
997
+ },
998
+ "Hash": {
999
+ "oneofs": {
1000
+ "kind": {
1001
+ "oneof": [
1002
+ "SHA256"
1003
+ ]
1004
+ }
1005
+ },
1006
+ "fields": {
1007
+ "SHA256": {
1008
+ "type": "bytes",
1009
+ "id": 1
1010
+ }
1011
+ }
1012
+ },
1013
+ "Secp256k1Signature": {
1014
+ "fields": {
1015
+ "der": {
1016
+ "type": "bytes",
1017
+ "id": 1
1018
+ }
1019
+ }
1020
+ },
1021
+ "Signature": {
1022
+ "oneofs": {
1023
+ "kind": {
1024
+ "oneof": [
1025
+ "Secp256k1"
1026
+ ]
1027
+ }
1028
+ },
1029
+ "fields": {
1030
+ "Secp256k1": {
1031
+ "type": "Secp256k1Signature",
1032
+ "id": 1
1033
+ }
1034
+ }
1035
+ },
1036
+ "Bn256Signature": {
1037
+ "fields": {
1038
+ "signature": {
1039
+ "type": "bytes",
1040
+ "id": 1
1041
+ }
1042
+ }
1043
+ },
1044
+ "PublicKey": {
1045
+ "fields": {
1046
+ "publicKey": {
1047
+ "type": "bytes",
1048
+ "id": 1
1049
+ }
1050
+ }
1051
+ },
1052
+ "Bn256PublicKey": {
1053
+ "fields": {
1054
+ "publicKey": {
1055
+ "type": "bytes",
1056
+ "id": 1
1057
+ }
1058
+ }
1059
+ },
1060
+ "PublicKeyHash": {
1061
+ "fields": {
1062
+ "hash": {
1063
+ "type": "bytes",
1064
+ "id": 1
1065
+ }
1066
+ }
1067
+ },
1068
+ "KeyedSignature": {
1069
+ "fields": {
1070
+ "signature": {
1071
+ "type": "Signature",
1072
+ "id": 1
1073
+ },
1074
+ "publicKey": {
1075
+ "type": "PublicKey",
1076
+ "id": 2
1077
+ }
1078
+ }
1079
+ },
1080
+ "Bn256KeyedSignature": {
1081
+ "fields": {
1082
+ "signature": {
1083
+ "type": "Bn256Signature",
1084
+ "id": 1
1085
+ },
1086
+ "publicKey": {
1087
+ "type": "Bn256PublicKey",
1088
+ "id": 2
1089
+ }
1090
+ }
1091
+ },
1092
+ "Address": {
1093
+ "fields": {
1094
+ "address": {
1095
+ "type": "bytes",
1096
+ "id": 1
1097
+ }
1098
+ }
1099
+ },
1100
+ "CheckpointBeacon": {
1101
+ "fields": {
1102
+ "checkpoint": {
1103
+ "type": "fixed32",
1104
+ "id": 1
1105
+ },
1106
+ "hashPrevBlock": {
1107
+ "type": "Hash",
1108
+ "id": 2
1109
+ }
1110
+ }
1111
+ },
1112
+ "CheckpointVRF": {
1113
+ "fields": {
1114
+ "checkpoint": {
1115
+ "type": "fixed32",
1116
+ "id": 1
1117
+ },
1118
+ "hashPrevVrf": {
1119
+ "type": "Hash",
1120
+ "id": 2
1121
+ }
1122
+ }
1123
+ },
1124
+ "InventoryEntry": {
1125
+ "oneofs": {
1126
+ "kind": {
1127
+ "oneof": [
1128
+ "Block",
1129
+ "Tx",
1130
+ "SuperBlock"
1131
+ ]
1132
+ }
1133
+ },
1134
+ "fields": {
1135
+ "Block": {
1136
+ "type": "Hash",
1137
+ "id": 1
1138
+ },
1139
+ "Tx": {
1140
+ "type": "Hash",
1141
+ "id": 2
1142
+ },
1143
+ "SuperBlock": {
1144
+ "type": "uint32",
1145
+ "id": 3
1146
+ }
1147
+ }
1148
+ },
1149
+ "ConsensusConstants": {
1150
+ "fields": {
1151
+ "checkpointZeroTimestamp": {
1152
+ "type": "int64",
1153
+ "id": 1
1154
+ },
1155
+ "checkpointsPeriod": {
1156
+ "type": "uint32",
1157
+ "id": 2
1158
+ },
1159
+ "bootstrapHash": {
1160
+ "type": "Hash",
1161
+ "id": 3
1162
+ },
1163
+ "genesisHash": {
1164
+ "type": "Hash",
1165
+ "id": 4
1166
+ },
1167
+ "maxVtWeight": {
1168
+ "type": "uint32",
1169
+ "id": 5
1170
+ },
1171
+ "maxDrWeight": {
1172
+ "type": "uint32",
1173
+ "id": 6
1174
+ },
1175
+ "activityPeriod": {
1176
+ "type": "uint32",
1177
+ "id": 7
1178
+ },
1179
+ "reputationExpireAlphaDiff": {
1180
+ "type": "uint32",
1181
+ "id": 8
1182
+ },
1183
+ "reputationIssuance": {
1184
+ "type": "uint32",
1185
+ "id": 9
1186
+ },
1187
+ "reputationIssuanceStop": {
1188
+ "type": "uint32",
1189
+ "id": 10
1190
+ },
1191
+ "reputationPenalizationFactor": {
1192
+ "type": "double",
1193
+ "id": 11
1194
+ },
1195
+ "miningBackupFactor": {
1196
+ "type": "uint32",
1197
+ "id": 12
1198
+ },
1199
+ "miningReplicationFactor": {
1200
+ "type": "uint32",
1201
+ "id": 13
1202
+ },
1203
+ "collateralMinimum": {
1204
+ "type": "uint64",
1205
+ "id": 14
1206
+ },
1207
+ "collateralAge": {
1208
+ "type": "uint32",
1209
+ "id": 15
1210
+ },
1211
+ "superblockPeriod": {
1212
+ "type": "uint32",
1213
+ "id": 16
1214
+ },
1215
+ "extraRounds": {
1216
+ "type": "uint32",
1217
+ "id": 17
1218
+ },
1219
+ "minimumDifficulty": {
1220
+ "type": "uint32",
1221
+ "id": 18
1222
+ },
1223
+ "epochsWithMinimumDifficulty": {
1224
+ "type": "uint32",
1225
+ "id": 19
1226
+ },
1227
+ "bootstrappingCommittee": {
1228
+ "rule": "repeated",
1229
+ "type": "string",
1230
+ "id": 20
1231
+ },
1232
+ "superblockSigningCommitteeSize": {
1233
+ "type": "uint32",
1234
+ "id": 21
1235
+ },
1236
+ "superblockCommitteeDecreasingPeriod": {
1237
+ "type": "uint32",
1238
+ "id": 22
1239
+ },
1240
+ "superblockCommitteeDecreasingStep": {
1241
+ "type": "uint32",
1242
+ "id": 23
1243
+ },
1244
+ "initialBlockReward": {
1245
+ "type": "uint64",
1246
+ "id": 24
1247
+ },
1248
+ "halvingPeriod": {
1249
+ "type": "uint32",
1250
+ "id": 25
1251
+ }
1252
+ }
1253
+ },
1254
+ "ConsensusConstantsWit2": {
1255
+ "fields": {
1256
+ "checkpointZeroTimestamp": {
1257
+ "type": "int64",
1258
+ "id": 1
1259
+ },
1260
+ "checkpointsPeriod": {
1261
+ "type": "uint32",
1262
+ "id": 2
1263
+ }
1264
+ }
1265
+ },
1266
+ "VrfProof": {
1267
+ "fields": {
1268
+ "proof": {
1269
+ "type": "bytes",
1270
+ "id": 1
1271
+ },
1272
+ "publicKey": {
1273
+ "type": "PublicKey",
1274
+ "id": 2
1275
+ }
1276
+ }
1277
+ },
1278
+ "DataRequestVrfMessage": {
1279
+ "fields": {
1280
+ "vrfInput": {
1281
+ "type": "CheckpointVRF",
1282
+ "id": 1
1283
+ },
1284
+ "drHash": {
1285
+ "type": "Hash",
1286
+ "id": 2
1287
+ },
1288
+ "withdrawer": {
1289
+ "type": "PublicKeyHash",
1290
+ "id": 3
1291
+ }
1292
+ }
1293
+ },
1294
+ "DataRequestEligibilityClaim": {
1295
+ "fields": {
1296
+ "proof": {
1297
+ "type": "VrfProof",
1298
+ "id": 1
1299
+ }
1300
+ }
1301
+ },
1302
+ "SuperBlockVote": {
1303
+ "fields": {
1304
+ "bn256Signature": {
1305
+ "type": "Bn256Signature",
1306
+ "id": 1
1307
+ },
1308
+ "secp256k1Signature": {
1309
+ "type": "KeyedSignature",
1310
+ "id": 2
1311
+ },
1312
+ "superblockHash": {
1313
+ "type": "Hash",
1314
+ "id": 3
1315
+ },
1316
+ "superblockIndex": {
1317
+ "type": "fixed32",
1318
+ "id": 4
1319
+ }
1320
+ }
1321
+ }
1322
+ }
1323
+ }
1324
+ }
1325
+ }