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