@nexusmutual/sdk 1.19.0 → 1.20.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 +13 -13
  22. package/dist/data/version.json +1 -1
  23. package/dist/index.d.mts +14024 -13632
  24. package/dist/index.d.ts +14024 -13632
  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
@@ -3,17 +3,7 @@
3
3
  "inputs": [
4
4
  {
5
5
  "internalType": "address",
6
- "name": "stakingPoolFactoryAddress",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "tokenAddress",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "stakingNFTAddress",
6
+ "name": "_registry",
17
7
  "type": "address"
18
8
  }
19
9
  ],
@@ -35,11 +25,31 @@
35
25
  "name": "ManagerIsLockedForVoting",
36
26
  "type": "error"
37
27
  },
28
+ {
29
+ "inputs": [],
30
+ "name": "MemberBalanceNotZero",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "MemberHasStakingPools",
36
+ "type": "error"
37
+ },
38
38
  {
39
39
  "inputs": [],
40
40
  "name": "NoWithdrawableGovernanceRewards",
41
41
  "type": "error"
42
42
  },
43
+ {
44
+ "inputs": [],
45
+ "name": "OnlyAdvisoryBoard",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "OnlyMember",
51
+ "type": "error"
52
+ },
43
53
  {
44
54
  "inputs": [],
45
55
  "name": "OnlyProposedManager",
@@ -61,60 +71,41 @@
61
71
  "type": "error"
62
72
  },
63
73
  {
64
- "anonymous": false,
65
74
  "inputs": [
66
75
  {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "_of",
70
- "type": "address"
71
- },
72
- {
73
- "indexed": true,
74
- "internalType": "bytes32",
75
- "name": "_reason",
76
- "type": "bytes32"
77
- },
78
- {
79
- "indexed": false,
80
76
  "internalType": "uint256",
81
- "name": "_amount",
77
+ "name": "currentState",
82
78
  "type": "uint256"
83
79
  },
84
80
  {
85
- "indexed": false,
86
81
  "internalType": "uint256",
87
- "name": "_validity",
82
+ "name": "checks",
88
83
  "type": "uint256"
89
84
  }
90
85
  ],
91
- "name": "Locked",
92
- "type": "event"
86
+ "name": "Paused",
87
+ "type": "error"
93
88
  },
94
89
  {
95
- "anonymous": false,
96
90
  "inputs": [
97
91
  {
98
- "indexed": true,
99
92
  "internalType": "address",
100
- "name": "_of",
93
+ "name": "caller",
101
94
  "type": "address"
102
95
  },
103
96
  {
104
- "indexed": true,
105
- "internalType": "bytes32",
106
- "name": "_reason",
107
- "type": "bytes32"
97
+ "internalType": "uint256",
98
+ "name": "callerIndex",
99
+ "type": "uint256"
108
100
  },
109
101
  {
110
- "indexed": false,
111
102
  "internalType": "uint256",
112
- "name": "_amount",
103
+ "name": "authorizedBitmap",
113
104
  "type": "uint256"
114
105
  }
115
106
  ],
116
- "name": "Unlocked",
117
- "type": "event"
107
+ "name": "Unauthorized",
108
+ "type": "error"
118
109
  },
119
110
  {
120
111
  "inputs": [
@@ -233,26 +224,6 @@
233
224
  "stateMutability": "nonpayable",
234
225
  "type": "function"
235
226
  },
236
- {
237
- "inputs": [],
238
- "name": "changeDependentContractAddress",
239
- "outputs": [],
240
- "stateMutability": "nonpayable",
241
- "type": "function"
242
- },
243
- {
244
- "inputs": [
245
- {
246
- "internalType": "address",
247
- "name": "masterAddress",
248
- "type": "address"
249
- }
250
- ],
251
- "name": "changeMasterAddress",
252
- "outputs": [],
253
- "stateMutability": "nonpayable",
254
- "type": "function"
255
- },
256
227
  {
257
228
  "inputs": [
258
229
  {
@@ -312,25 +283,6 @@
312
283
  "stateMutability": "nonpayable",
313
284
  "type": "function"
314
285
  },
315
- {
316
- "inputs": [
317
- {
318
- "internalType": "address",
319
- "name": "_of",
320
- "type": "address"
321
- }
322
- ],
323
- "name": "getLockReasons",
324
- "outputs": [
325
- {
326
- "internalType": "bytes32[]",
327
- "name": "reasons",
328
- "type": "bytes32[]"
329
- }
330
- ],
331
- "stateMutability": "view",
332
- "type": "function"
333
- },
334
286
  {
335
287
  "inputs": [
336
288
  {
@@ -350,25 +302,6 @@
350
302
  "stateMutability": "view",
351
303
  "type": "function"
352
304
  },
353
- {
354
- "inputs": [
355
- {
356
- "internalType": "address",
357
- "name": "member",
358
- "type": "address"
359
- }
360
- ],
361
- "name": "getPendingRewards",
362
- "outputs": [
363
- {
364
- "internalType": "uint256",
365
- "name": "",
366
- "type": "uint256"
367
- }
368
- ],
369
- "stateMutability": "view",
370
- "type": "function"
371
- },
372
305
  {
373
306
  "inputs": [
374
307
  {
@@ -425,25 +358,6 @@
425
358
  "stateMutability": "view",
426
359
  "type": "function"
427
360
  },
428
- {
429
- "inputs": [
430
- {
431
- "internalType": "uint256",
432
- "name": "",
433
- "type": "uint256"
434
- }
435
- ],
436
- "name": "internalContracts",
437
- "outputs": [
438
- {
439
- "internalType": "address payable",
440
- "name": "",
441
- "type": "address"
442
- }
443
- ],
444
- "stateMutability": "view",
445
- "type": "function"
446
- },
447
361
  {
448
362
  "inputs": [
449
363
  {
@@ -481,77 +395,6 @@
481
395
  "stateMutability": "nonpayable",
482
396
  "type": "function"
483
397
  },
484
- {
485
- "inputs": [
486
- {
487
- "internalType": "address",
488
- "name": "",
489
- "type": "address"
490
- },
491
- {
492
- "internalType": "uint256",
493
- "name": "",
494
- "type": "uint256"
495
- }
496
- ],
497
- "name": "lockReason",
498
- "outputs": [
499
- {
500
- "internalType": "bytes32",
501
- "name": "",
502
- "type": "bytes32"
503
- }
504
- ],
505
- "stateMutability": "view",
506
- "type": "function"
507
- },
508
- {
509
- "inputs": [
510
- {
511
- "internalType": "address",
512
- "name": "",
513
- "type": "address"
514
- },
515
- {
516
- "internalType": "bytes32",
517
- "name": "",
518
- "type": "bytes32"
519
- }
520
- ],
521
- "name": "locked",
522
- "outputs": [
523
- {
524
- "internalType": "uint256",
525
- "name": "amount",
526
- "type": "uint256"
527
- },
528
- {
529
- "internalType": "uint256",
530
- "name": "validity",
531
- "type": "uint256"
532
- },
533
- {
534
- "internalType": "bool",
535
- "name": "claimed",
536
- "type": "bool"
537
- }
538
- ],
539
- "stateMutability": "view",
540
- "type": "function"
541
- },
542
- {
543
- "inputs": [],
544
- "name": "master",
545
- "outputs": [
546
- {
547
- "internalType": "contract INXMMaster",
548
- "name": "",
549
- "type": "address"
550
- }
551
- ],
552
- "stateMutability": "view",
553
- "type": "function"
554
- },
555
398
  {
556
399
  "inputs": [
557
400
  {
@@ -617,6 +460,32 @@
617
460
  "stateMutability": "nonpayable",
618
461
  "type": "function"
619
462
  },
463
+ {
464
+ "inputs": [],
465
+ "name": "pool",
466
+ "outputs": [
467
+ {
468
+ "internalType": "contract IPool",
469
+ "name": "",
470
+ "type": "address"
471
+ }
472
+ ],
473
+ "stateMutability": "view",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [],
478
+ "name": "registry",
479
+ "outputs": [
480
+ {
481
+ "internalType": "contract IRegistry",
482
+ "name": "",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "stateMutability": "view",
487
+ "type": "function"
488
+ },
620
489
  {
621
490
  "inputs": [
622
491
  {
@@ -681,37 +550,36 @@
681
550
  "type": "function"
682
551
  },
683
552
  {
684
- "inputs": [],
685
- "name": "token",
686
- "outputs": [
553
+ "inputs": [
687
554
  {
688
- "internalType": "contract INXMToken",
689
- "name": "",
555
+ "internalType": "address",
556
+ "name": "from",
690
557
  "type": "address"
691
- }
692
- ],
693
- "stateMutability": "view",
694
- "type": "function"
695
- },
696
- {
697
- "inputs": [
558
+ },
698
559
  {
699
560
  "internalType": "address",
700
- "name": "_of",
561
+ "name": "to",
701
562
  "type": "address"
702
563
  },
703
564
  {
704
- "internalType": "bytes32",
705
- "name": "_reason",
706
- "type": "bytes32"
565
+ "internalType": "bool",
566
+ "name": "includeNxmTokens",
567
+ "type": "bool"
707
568
  }
708
569
  ],
709
- "name": "tokensLocked",
570
+ "name": "switchMembership",
571
+ "outputs": [],
572
+ "stateMutability": "nonpayable",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [],
577
+ "name": "token",
710
578
  "outputs": [
711
579
  {
712
- "internalType": "uint256",
713
- "name": "amount",
714
- "type": "uint256"
580
+ "internalType": "contract INXMToken",
581
+ "name": "",
582
+ "type": "address"
715
583
  }
716
584
  ],
717
585
  "stateMutability": "view",
@@ -770,90 +638,6 @@
770
638
  },
771
639
  {
772
640
  "inputs": [
773
- {
774
- "internalType": "address",
775
- "name": "from",
776
- "type": "address"
777
- },
778
- {
779
- "internalType": "address",
780
- "name": "to",
781
- "type": "address"
782
- }
783
- ],
784
- "name": "transferStakingPoolsOwnership",
785
- "outputs": [],
786
- "stateMutability": "nonpayable",
787
- "type": "function"
788
- },
789
- {
790
- "inputs": [
791
- {
792
- "internalType": "address[]",
793
- "name": "users",
794
- "type": "address[]"
795
- }
796
- ],
797
- "name": "withdrawClaimAssessmentTokens",
798
- "outputs": [],
799
- "stateMutability": "nonpayable",
800
- "type": "function"
801
- },
802
- {
803
- "inputs": [
804
- {
805
- "internalType": "address",
806
- "name": "memberAddress",
807
- "type": "address"
808
- },
809
- {
810
- "internalType": "uint256",
811
- "name": "batchSize",
812
- "type": "uint256"
813
- }
814
- ],
815
- "name": "withdrawGovernanceRewards",
816
- "outputs": [],
817
- "stateMutability": "nonpayable",
818
- "type": "function"
819
- },
820
- {
821
- "inputs": [
822
- {
823
- "internalType": "address",
824
- "name": "destination",
825
- "type": "address"
826
- },
827
- {
828
- "internalType": "uint256",
829
- "name": "batchSize",
830
- "type": "uint256"
831
- }
832
- ],
833
- "name": "withdrawGovernanceRewardsTo",
834
- "outputs": [],
835
- "stateMutability": "nonpayable",
836
- "type": "function"
837
- },
838
- {
839
- "inputs": [
840
- {
841
- "components": [
842
- {
843
- "internalType": "bool",
844
- "name": "stake",
845
- "type": "bool"
846
- },
847
- {
848
- "internalType": "bool",
849
- "name": "rewards",
850
- "type": "bool"
851
- }
852
- ],
853
- "internalType": "struct ITokenController.WithdrawAssessment",
854
- "name": "withdrawAssessment",
855
- "type": "tuple"
856
- },
857
641
  {
858
642
  "components": [
859
643
  {
@@ -887,16 +671,6 @@
887
671
  "internalType": "struct ITokenController.StakingPoolManagerReward[]",
888
672
  "name": "stakingPoolManagerRewards",
889
673
  "type": "tuple[]"
890
- },
891
- {
892
- "internalType": "uint256",
893
- "name": "assessmentRewardsBatchSize",
894
- "type": "uint256"
895
- },
896
- {
897
- "internalType": "uint256",
898
- "name": "govRewardsBatchSize",
899
- "type": "uint256"
900
674
  }
901
675
  ],
902
676
  "name": "withdrawNXM",
@@ -0,0 +1,170 @@
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": "OnlyAdvisoryBoard",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "OnlyMember",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "currentState",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "checks",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "name": "Paused",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "caller",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "internalType": "uint256",
48
+ "name": "callerIndex",
49
+ "type": "uint256"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "authorizedBitmap",
54
+ "type": "uint256"
55
+ }
56
+ ],
57
+ "name": "Unauthorized",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "address",
64
+ "name": "member",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "balanceOf",
69
+ "outputs": [
70
+ {
71
+ "internalType": "uint256",
72
+ "name": "",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "stateMutability": "view",
77
+ "type": "function"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "decimals",
82
+ "outputs": [
83
+ {
84
+ "internalType": "uint8",
85
+ "name": "",
86
+ "type": "uint8"
87
+ }
88
+ ],
89
+ "stateMutability": "view",
90
+ "type": "function"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "governor",
95
+ "outputs": [
96
+ {
97
+ "internalType": "contract IGovernor",
98
+ "name": "",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "stateMutability": "view",
103
+ "type": "function"
104
+ },
105
+ {
106
+ "inputs": [],
107
+ "name": "name",
108
+ "outputs": [
109
+ {
110
+ "internalType": "string",
111
+ "name": "",
112
+ "type": "string"
113
+ }
114
+ ],
115
+ "stateMutability": "view",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "registry",
121
+ "outputs": [
122
+ {
123
+ "internalType": "contract IRegistry",
124
+ "name": "",
125
+ "type": "address"
126
+ }
127
+ ],
128
+ "stateMutability": "view",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [],
133
+ "name": "symbol",
134
+ "outputs": [
135
+ {
136
+ "internalType": "string",
137
+ "name": "",
138
+ "type": "string"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "token",
147
+ "outputs": [
148
+ {
149
+ "internalType": "contract INXMToken",
150
+ "name": "",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "stateMutability": "view",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "totalSupply",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ }
170
+ ]