@witnet/sdk 1.2.2 → 1.2.4

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