@cityofzion/bs-neox 1.4.7 → 1.5.1

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.
@@ -0,0 +1,805 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KEY_MANAGEMENT_ABI = void 0;
4
+ exports.KEY_MANAGEMENT_ABI = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'address',
9
+ name: 'target',
10
+ type: 'address',
11
+ },
12
+ ],
13
+ name: 'AddressEmptyCode',
14
+ type: 'error',
15
+ },
16
+ {
17
+ inputs: [
18
+ {
19
+ internalType: 'address',
20
+ name: 'implementation',
21
+ type: 'address',
22
+ },
23
+ ],
24
+ name: 'ERC1967InvalidImplementation',
25
+ type: 'error',
26
+ },
27
+ {
28
+ inputs: [],
29
+ name: 'ERC1967NonPayable',
30
+ type: 'error',
31
+ },
32
+ {
33
+ inputs: [],
34
+ name: 'FailedCall',
35
+ type: 'error',
36
+ },
37
+ {
38
+ inputs: [],
39
+ name: 'IndexOutOfRange',
40
+ type: 'error',
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: 'InvalidInitialization',
45
+ type: 'error',
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: 'InvalidMessageAmount',
50
+ type: 'error',
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: 'InvalidMessageKey',
55
+ type: 'error',
56
+ },
57
+ {
58
+ inputs: [],
59
+ name: 'InvalidPVSS',
60
+ type: 'error',
61
+ },
62
+ {
63
+ inputs: [],
64
+ name: 'InvalidRoundNumber',
65
+ type: 'error',
66
+ },
67
+ {
68
+ inputs: [],
69
+ name: 'MessageExists',
70
+ type: 'error',
71
+ },
72
+ {
73
+ inputs: [],
74
+ name: 'NoNeedForRecover',
75
+ type: 'error',
76
+ },
77
+ {
78
+ inputs: [],
79
+ name: 'NotAdmin',
80
+ type: 'error',
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: 'NotInitializing',
85
+ type: 'error',
86
+ },
87
+ {
88
+ inputs: [],
89
+ name: 'NotShareMember',
90
+ type: 'error',
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: 'OnlyEOA',
95
+ type: 'error',
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: 'PeriodEnded',
100
+ type: 'error',
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: 'PeriodNotStarted',
105
+ type: 'error',
106
+ },
107
+ {
108
+ inputs: [],
109
+ name: 'SideCallNotAllowed',
110
+ type: 'error',
111
+ },
112
+ {
113
+ inputs: [],
114
+ name: 'UUPSUnauthorizedCallContext',
115
+ type: 'error',
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: 'bytes32',
121
+ name: 'slot',
122
+ type: 'bytes32',
123
+ },
124
+ ],
125
+ name: 'UUPSUnsupportedProxiableUUID',
126
+ type: 'error',
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: false,
133
+ internalType: 'uint64',
134
+ name: 'version',
135
+ type: 'uint64',
136
+ },
137
+ ],
138
+ name: 'Initialized',
139
+ type: 'event',
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
144
+ {
145
+ indexed: true,
146
+ internalType: 'uint256',
147
+ name: 'targetEpochHeight',
148
+ type: 'uint256',
149
+ },
150
+ {
151
+ indexed: true,
152
+ internalType: 'uint256',
153
+ name: 'index',
154
+ type: 'uint256',
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: 'address',
159
+ name: 'sender',
160
+ type: 'address',
161
+ },
162
+ ],
163
+ name: 'Recover',
164
+ type: 'event',
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ {
170
+ indexed: true,
171
+ internalType: 'uint256',
172
+ name: 'targetEpochHeight',
173
+ type: 'uint256',
174
+ },
175
+ {
176
+ indexed: true,
177
+ internalType: 'uint256',
178
+ name: 'index',
179
+ type: 'uint256',
180
+ },
181
+ {
182
+ indexed: true,
183
+ internalType: 'address',
184
+ name: 'sender',
185
+ type: 'address',
186
+ },
187
+ ],
188
+ name: 'Reshare',
189
+ type: 'event',
190
+ },
191
+ {
192
+ anonymous: false,
193
+ inputs: [
194
+ {
195
+ indexed: true,
196
+ internalType: 'uint256',
197
+ name: 'targetEpochHeight',
198
+ type: 'uint256',
199
+ },
200
+ {
201
+ indexed: true,
202
+ internalType: 'uint256',
203
+ name: 'index',
204
+ type: 'uint256',
205
+ },
206
+ {
207
+ indexed: true,
208
+ internalType: 'address',
209
+ name: 'sender',
210
+ type: 'address',
211
+ },
212
+ ],
213
+ name: 'Share',
214
+ type: 'event',
215
+ },
216
+ {
217
+ anonymous: false,
218
+ inputs: [
219
+ {
220
+ indexed: true,
221
+ internalType: 'address',
222
+ name: 'implementation',
223
+ type: 'address',
224
+ },
225
+ ],
226
+ name: 'Upgraded',
227
+ type: 'event',
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: 'GOV',
232
+ outputs: [
233
+ {
234
+ internalType: 'address',
235
+ name: '',
236
+ type: 'address',
237
+ },
238
+ ],
239
+ stateMutability: 'view',
240
+ type: 'function',
241
+ },
242
+ {
243
+ inputs: [],
244
+ name: 'GOV_ADMIN',
245
+ outputs: [
246
+ {
247
+ internalType: 'address',
248
+ name: '',
249
+ type: 'address',
250
+ },
251
+ ],
252
+ stateMutability: 'view',
253
+ type: 'function',
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: 'SELF',
258
+ outputs: [
259
+ {
260
+ internalType: 'address',
261
+ name: '',
262
+ type: 'address',
263
+ },
264
+ ],
265
+ stateMutability: 'view',
266
+ type: 'function',
267
+ },
268
+ {
269
+ inputs: [],
270
+ name: 'SYS_CALL',
271
+ outputs: [
272
+ {
273
+ internalType: 'address',
274
+ name: '',
275
+ type: 'address',
276
+ },
277
+ ],
278
+ stateMutability: 'view',
279
+ type: 'function',
280
+ },
281
+ {
282
+ inputs: [],
283
+ name: 'UPGRADE_INTERFACE_VERSION',
284
+ outputs: [
285
+ {
286
+ internalType: 'string',
287
+ name: '',
288
+ type: 'string',
289
+ },
290
+ ],
291
+ stateMutability: 'view',
292
+ type: 'function',
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: 'uint256',
298
+ name: '',
299
+ type: 'uint256',
300
+ },
301
+ ],
302
+ name: 'aggregatedCommitments',
303
+ outputs: [
304
+ {
305
+ internalType: 'bytes',
306
+ name: '',
307
+ type: 'bytes',
308
+ },
309
+ ],
310
+ stateMutability: 'view',
311
+ type: 'function',
312
+ },
313
+ {
314
+ inputs: [
315
+ {
316
+ internalType: 'uint256',
317
+ name: 'height',
318
+ type: 'uint256',
319
+ },
320
+ {
321
+ internalType: 'uint256',
322
+ name: 'index',
323
+ type: 'uint256',
324
+ },
325
+ ],
326
+ name: 'getReshareMsgs',
327
+ outputs: [
328
+ {
329
+ internalType: 'bytes[]',
330
+ name: '',
331
+ type: 'bytes[]',
332
+ },
333
+ ],
334
+ stateMutability: 'view',
335
+ type: 'function',
336
+ },
337
+ {
338
+ inputs: [
339
+ {
340
+ internalType: 'uint256',
341
+ name: 'height',
342
+ type: 'uint256',
343
+ },
344
+ {
345
+ internalType: 'uint256',
346
+ name: 'index',
347
+ type: 'uint256',
348
+ },
349
+ ],
350
+ name: 'getShareMsgs',
351
+ outputs: [
352
+ {
353
+ internalType: 'bytes[]',
354
+ name: '',
355
+ type: 'bytes[]',
356
+ },
357
+ ],
358
+ stateMutability: 'view',
359
+ type: 'function',
360
+ },
361
+ {
362
+ inputs: [],
363
+ name: 'indexCurrentNeedRecovering',
364
+ outputs: [
365
+ {
366
+ internalType: 'uint256[]',
367
+ name: '',
368
+ type: 'uint256[]',
369
+ },
370
+ ],
371
+ stateMutability: 'view',
372
+ type: 'function',
373
+ },
374
+ {
375
+ inputs: [
376
+ {
377
+ internalType: 'address',
378
+ name: 'addr',
379
+ type: 'address',
380
+ },
381
+ ],
382
+ name: 'indexOfResharing',
383
+ outputs: [
384
+ {
385
+ internalType: 'uint256',
386
+ name: '',
387
+ type: 'uint256',
388
+ },
389
+ ],
390
+ stateMutability: 'view',
391
+ type: 'function',
392
+ },
393
+ {
394
+ inputs: [
395
+ {
396
+ internalType: 'address',
397
+ name: 'addr',
398
+ type: 'address',
399
+ },
400
+ ],
401
+ name: 'indexOfSharing',
402
+ outputs: [
403
+ {
404
+ internalType: 'uint256',
405
+ name: '',
406
+ type: 'uint256',
407
+ },
408
+ ],
409
+ stateMutability: 'view',
410
+ type: 'function',
411
+ },
412
+ {
413
+ inputs: [
414
+ {
415
+ internalType: 'uint256',
416
+ name: 'epochHeight',
417
+ type: 'uint256',
418
+ },
419
+ {
420
+ internalType: 'uint256',
421
+ name: 'lastEpochHeight',
422
+ type: 'uint256',
423
+ },
424
+ ],
425
+ name: 'isRoundNumberIncreased',
426
+ outputs: [
427
+ {
428
+ internalType: 'bool',
429
+ name: '',
430
+ type: 'bool',
431
+ },
432
+ ],
433
+ stateMutability: 'view',
434
+ type: 'function',
435
+ },
436
+ {
437
+ inputs: [],
438
+ name: 'isShareReady',
439
+ outputs: [
440
+ {
441
+ internalType: 'bool',
442
+ name: '',
443
+ type: 'bool',
444
+ },
445
+ ],
446
+ stateMutability: 'view',
447
+ type: 'function',
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: 'address',
453
+ name: '',
454
+ type: 'address',
455
+ },
456
+ ],
457
+ name: 'messagePubkeys',
458
+ outputs: [
459
+ {
460
+ internalType: 'bytes',
461
+ name: '',
462
+ type: 'bytes',
463
+ },
464
+ ],
465
+ stateMutability: 'view',
466
+ type: 'function',
467
+ },
468
+ {
469
+ inputs: [],
470
+ name: 'numberAndThreshold',
471
+ outputs: [
472
+ {
473
+ internalType: 'uint256',
474
+ name: '',
475
+ type: 'uint256',
476
+ },
477
+ {
478
+ internalType: 'uint256',
479
+ name: '',
480
+ type: 'uint256',
481
+ },
482
+ ],
483
+ stateMutability: 'view',
484
+ type: 'function',
485
+ },
486
+ {
487
+ inputs: [],
488
+ name: 'onPersistV2',
489
+ outputs: [],
490
+ stateMutability: 'nonpayable',
491
+ type: 'function',
492
+ },
493
+ {
494
+ inputs: [],
495
+ name: 'proxiableUUID',
496
+ outputs: [
497
+ {
498
+ internalType: 'bytes32',
499
+ name: '',
500
+ type: 'bytes32',
501
+ },
502
+ ],
503
+ stateMutability: 'view',
504
+ type: 'function',
505
+ },
506
+ {
507
+ inputs: [
508
+ {
509
+ internalType: 'uint256[]',
510
+ name: 'idxs',
511
+ type: 'uint256[]',
512
+ },
513
+ {
514
+ internalType: 'bytes[]',
515
+ name: 'messages',
516
+ type: 'bytes[]',
517
+ },
518
+ ],
519
+ name: 'recover',
520
+ outputs: [],
521
+ stateMutability: 'nonpayable',
522
+ type: 'function',
523
+ },
524
+ {
525
+ inputs: [
526
+ {
527
+ internalType: 'uint256',
528
+ name: '',
529
+ type: 'uint256',
530
+ },
531
+ {
532
+ internalType: 'uint256',
533
+ name: '',
534
+ type: 'uint256',
535
+ },
536
+ {
537
+ internalType: 'uint256',
538
+ name: '',
539
+ type: 'uint256',
540
+ },
541
+ ],
542
+ name: 'recoverMsgs',
543
+ outputs: [
544
+ {
545
+ internalType: 'bytes',
546
+ name: '',
547
+ type: 'bytes',
548
+ },
549
+ ],
550
+ stateMutability: 'view',
551
+ type: 'function',
552
+ },
553
+ {
554
+ inputs: [
555
+ {
556
+ internalType: 'address',
557
+ name: 'candidate',
558
+ type: 'address',
559
+ },
560
+ {
561
+ internalType: 'bytes',
562
+ name: 'pubkey',
563
+ type: 'bytes',
564
+ },
565
+ ],
566
+ name: 'registerMessageKey',
567
+ outputs: [],
568
+ stateMutability: 'nonpayable',
569
+ type: 'function',
570
+ },
571
+ {
572
+ inputs: [
573
+ {
574
+ internalType: 'bytes',
575
+ name: 'pvss',
576
+ type: 'bytes',
577
+ },
578
+ {
579
+ internalType: 'bytes[]',
580
+ name: 'messages',
581
+ type: 'bytes[]',
582
+ },
583
+ ],
584
+ name: 'reshare',
585
+ outputs: [],
586
+ stateMutability: 'nonpayable',
587
+ type: 'function',
588
+ },
589
+ {
590
+ inputs: [
591
+ {
592
+ internalType: 'uint256',
593
+ name: '',
594
+ type: 'uint256',
595
+ },
596
+ {
597
+ internalType: 'uint256',
598
+ name: '',
599
+ type: 'uint256',
600
+ },
601
+ {
602
+ internalType: 'uint256',
603
+ name: '',
604
+ type: 'uint256',
605
+ },
606
+ ],
607
+ name: 'reshareMsgs',
608
+ outputs: [
609
+ {
610
+ internalType: 'bytes',
611
+ name: '',
612
+ type: 'bytes',
613
+ },
614
+ ],
615
+ stateMutability: 'view',
616
+ type: 'function',
617
+ },
618
+ {
619
+ inputs: [
620
+ {
621
+ internalType: 'bytes',
622
+ name: 'pvss',
623
+ type: 'bytes',
624
+ },
625
+ {
626
+ internalType: 'bytes[]',
627
+ name: 'messages',
628
+ type: 'bytes[]',
629
+ },
630
+ ],
631
+ name: 'reshareRecovered',
632
+ outputs: [],
633
+ stateMutability: 'nonpayable',
634
+ type: 'function',
635
+ },
636
+ {
637
+ inputs: [],
638
+ name: 'roundNumber',
639
+ outputs: [
640
+ {
641
+ internalType: 'uint256',
642
+ name: '',
643
+ type: 'uint256',
644
+ },
645
+ ],
646
+ stateMutability: 'view',
647
+ type: 'function',
648
+ },
649
+ {
650
+ inputs: [
651
+ {
652
+ internalType: 'uint256',
653
+ name: '',
654
+ type: 'uint256',
655
+ },
656
+ ],
657
+ name: 'roundNumberOfEpochs',
658
+ outputs: [
659
+ {
660
+ internalType: 'uint256',
661
+ name: '',
662
+ type: 'uint256',
663
+ },
664
+ ],
665
+ stateMutability: 'view',
666
+ type: 'function',
667
+ },
668
+ {
669
+ inputs: [
670
+ {
671
+ internalType: 'uint256',
672
+ name: '',
673
+ type: 'uint256',
674
+ },
675
+ {
676
+ internalType: 'uint256',
677
+ name: '',
678
+ type: 'uint256',
679
+ },
680
+ ],
681
+ name: 'rpvsses',
682
+ outputs: [
683
+ {
684
+ internalType: 'bytes',
685
+ name: '',
686
+ type: 'bytes',
687
+ },
688
+ ],
689
+ stateMutability: 'view',
690
+ type: 'function',
691
+ },
692
+ {
693
+ inputs: [
694
+ {
695
+ internalType: 'bytes',
696
+ name: 'pvss',
697
+ type: 'bytes',
698
+ },
699
+ {
700
+ internalType: 'bytes[]',
701
+ name: 'messages',
702
+ type: 'bytes[]',
703
+ },
704
+ ],
705
+ name: 'share',
706
+ outputs: [],
707
+ stateMutability: 'nonpayable',
708
+ type: 'function',
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: 'uint256',
714
+ name: '',
715
+ type: 'uint256',
716
+ },
717
+ {
718
+ internalType: 'uint256',
719
+ name: '',
720
+ type: 'uint256',
721
+ },
722
+ {
723
+ internalType: 'uint256',
724
+ name: '',
725
+ type: 'uint256',
726
+ },
727
+ ],
728
+ name: 'shareMsgs',
729
+ outputs: [
730
+ {
731
+ internalType: 'bytes',
732
+ name: '',
733
+ type: 'bytes',
734
+ },
735
+ ],
736
+ stateMutability: 'view',
737
+ type: 'function',
738
+ },
739
+ {
740
+ inputs: [
741
+ {
742
+ internalType: 'uint256',
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
+ {
747
+ internalType: 'uint256',
748
+ name: '',
749
+ type: 'uint256',
750
+ },
751
+ ],
752
+ name: 'sharedPubs',
753
+ outputs: [
754
+ {
755
+ internalType: 'bytes',
756
+ name: '',
757
+ type: 'bytes',
758
+ },
759
+ ],
760
+ stateMutability: 'view',
761
+ type: 'function',
762
+ },
763
+ {
764
+ inputs: [
765
+ {
766
+ internalType: 'uint256',
767
+ name: '',
768
+ type: 'uint256',
769
+ },
770
+ {
771
+ internalType: 'uint256',
772
+ name: '',
773
+ type: 'uint256',
774
+ },
775
+ ],
776
+ name: 'spvsses',
777
+ outputs: [
778
+ {
779
+ internalType: 'bytes',
780
+ name: '',
781
+ type: 'bytes',
782
+ },
783
+ ],
784
+ stateMutability: 'view',
785
+ type: 'function',
786
+ },
787
+ {
788
+ inputs: [
789
+ {
790
+ internalType: 'address',
791
+ name: 'newImplementation',
792
+ type: 'address',
793
+ },
794
+ {
795
+ internalType: 'bytes',
796
+ name: 'data',
797
+ type: 'bytes',
798
+ },
799
+ ],
800
+ name: 'upgradeToAndCall',
801
+ outputs: [],
802
+ stateMutability: 'payable',
803
+ type: 'function',
804
+ },
805
+ ];