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