@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.
- package/dist/data/abis/{Assessment.json → Assessments.json} +365 -416
- package/dist/data/abis/{IndividualClaims.json → Claims.json} +320 -264
- package/dist/data/abis/Cover.json +7 -2
- package/dist/data/abis/CoverBroker.json +74 -34
- package/dist/data/abis/CoverProducts.json +55 -0
- package/dist/data/abis/Governor.json +817 -0
- package/dist/data/abis/LimitOrders.json +0 -7
- package/dist/data/abis/NXMaster.json +37 -223
- package/dist/data/abis/Pool.json +410 -229
- package/dist/data/abis/Ramm.json +92 -67
- package/dist/data/abis/{MemberRoles.json → Registry.json} +553 -249
- package/dist/data/abis/SafeTracker.json +89 -58
- package/dist/data/abis/StakingProducts.json +1 -14
- package/dist/data/abis/StakingViewer.json +82 -24
- package/dist/data/abis/SwapOperator.json +360 -209
- package/dist/data/abis/TokenController.json +72 -303
- package/dist/data/addresses.json +6 -10
- package/dist/data/product-types.json +24 -24
- package/dist/data/products.json +40 -40
- package/dist/data/version.json +1 -1
- package/dist/index.d.mts +12381 -12935
- package/dist/index.d.ts +12381 -12935
- package/dist/index.js +72 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
- package/dist/data/abis/AssessmentViewer.json +0 -106
- package/dist/data/abis/MCR.json +0 -321
- package/dist/data/abis/NexusViewer.json +0 -199
- package/dist/data/abis/PriceFeedOracle.json +0 -312
- package/dist/data/abis/ProposalCategory.json +0 -653
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "address"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"internalType": "
|
|
15
|
+
"internalType": "address",
|
|
16
16
|
"name": "_stakingPoolFactory",
|
|
17
17
|
"type": "address"
|
|
18
18
|
},
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"name": "CoverAmountIsZero",
|
|
47
47
|
"type": "error"
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [],
|
|
51
|
+
"name": "CoverAssetMismatch",
|
|
52
|
+
"type": "error"
|
|
53
|
+
},
|
|
49
54
|
{
|
|
50
55
|
"inputs": [],
|
|
51
56
|
"name": "CoverAssetNotSupported",
|
|
@@ -1059,7 +1064,7 @@
|
|
|
1059
1064
|
"name": "stakingPoolFactory",
|
|
1060
1065
|
"outputs": [
|
|
1061
1066
|
{
|
|
1062
|
-
"internalType": "
|
|
1067
|
+
"internalType": "address",
|
|
1063
1068
|
"name": "",
|
|
1064
1069
|
"type": "address"
|
|
1065
1070
|
}
|
|
@@ -3,22 +3,7 @@
|
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
5
|
"internalType": "address",
|
|
6
|
-
"name": "
|
|
7
|
-
"type": "address"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"internalType": "address",
|
|
11
|
-
"name": "_memberRoles",
|
|
12
|
-
"type": "address"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "_nxmToken",
|
|
17
|
-
"type": "address"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"internalType": "address",
|
|
21
|
-
"name": "_master",
|
|
6
|
+
"name": "_registry",
|
|
22
7
|
"type": "address"
|
|
23
8
|
},
|
|
24
9
|
{
|
|
@@ -45,6 +30,27 @@
|
|
|
45
30
|
"name": "InvalidPaymentAsset",
|
|
46
31
|
"type": "error"
|
|
47
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "OnlyMember",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "currentState",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "checks",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "Paused",
|
|
52
|
+
"type": "error"
|
|
53
|
+
},
|
|
48
54
|
{
|
|
49
55
|
"inputs": [
|
|
50
56
|
{
|
|
@@ -66,6 +72,27 @@
|
|
|
66
72
|
"name": "TransferFailed",
|
|
67
73
|
"type": "error"
|
|
68
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "address",
|
|
79
|
+
"name": "caller",
|
|
80
|
+
"type": "address"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "uint256",
|
|
84
|
+
"name": "callerIndex",
|
|
85
|
+
"type": "uint256"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "authorizedBitmap",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "Unauthorized",
|
|
94
|
+
"type": "error"
|
|
95
|
+
},
|
|
69
96
|
{
|
|
70
97
|
"inputs": [
|
|
71
98
|
{
|
|
@@ -216,37 +243,37 @@
|
|
|
216
243
|
"type": "function"
|
|
217
244
|
},
|
|
218
245
|
{
|
|
219
|
-
"inputs": [
|
|
220
|
-
"name": "master",
|
|
221
|
-
"outputs": [
|
|
246
|
+
"inputs": [
|
|
222
247
|
{
|
|
223
|
-
"internalType": "contract
|
|
224
|
-
"name": "",
|
|
248
|
+
"internalType": "contract IERC20",
|
|
249
|
+
"name": "erc20",
|
|
225
250
|
"type": "address"
|
|
226
251
|
}
|
|
227
252
|
],
|
|
228
|
-
"
|
|
253
|
+
"name": "maxApproveCoverContract",
|
|
254
|
+
"outputs": [],
|
|
255
|
+
"stateMutability": "nonpayable",
|
|
229
256
|
"type": "function"
|
|
230
257
|
},
|
|
231
258
|
{
|
|
232
|
-
"inputs": [
|
|
259
|
+
"inputs": [],
|
|
260
|
+
"name": "nxmToken",
|
|
261
|
+
"outputs": [
|
|
233
262
|
{
|
|
234
|
-
"internalType": "contract
|
|
235
|
-
"name": "
|
|
263
|
+
"internalType": "contract INXMToken",
|
|
264
|
+
"name": "",
|
|
236
265
|
"type": "address"
|
|
237
266
|
}
|
|
238
267
|
],
|
|
239
|
-
"
|
|
240
|
-
"outputs": [],
|
|
241
|
-
"stateMutability": "nonpayable",
|
|
268
|
+
"stateMutability": "view",
|
|
242
269
|
"type": "function"
|
|
243
270
|
},
|
|
244
271
|
{
|
|
245
272
|
"inputs": [],
|
|
246
|
-
"name": "
|
|
273
|
+
"name": "owner",
|
|
247
274
|
"outputs": [
|
|
248
275
|
{
|
|
249
|
-
"internalType": "
|
|
276
|
+
"internalType": "address",
|
|
250
277
|
"name": "",
|
|
251
278
|
"type": "address"
|
|
252
279
|
}
|
|
@@ -256,10 +283,10 @@
|
|
|
256
283
|
},
|
|
257
284
|
{
|
|
258
285
|
"inputs": [],
|
|
259
|
-
"name": "
|
|
286
|
+
"name": "pool",
|
|
260
287
|
"outputs": [
|
|
261
288
|
{
|
|
262
|
-
"internalType": "contract
|
|
289
|
+
"internalType": "contract IPool",
|
|
263
290
|
"name": "",
|
|
264
291
|
"type": "address"
|
|
265
292
|
}
|
|
@@ -269,10 +296,10 @@
|
|
|
269
296
|
},
|
|
270
297
|
{
|
|
271
298
|
"inputs": [],
|
|
272
|
-
"name": "
|
|
299
|
+
"name": "registry",
|
|
273
300
|
"outputs": [
|
|
274
301
|
{
|
|
275
|
-
"internalType": "
|
|
302
|
+
"internalType": "contract IRegistry",
|
|
276
303
|
"name": "",
|
|
277
304
|
"type": "address"
|
|
278
305
|
}
|
|
@@ -313,6 +340,19 @@
|
|
|
313
340
|
"stateMutability": "nonpayable",
|
|
314
341
|
"type": "function"
|
|
315
342
|
},
|
|
343
|
+
{
|
|
344
|
+
"inputs": [],
|
|
345
|
+
"name": "tokenController",
|
|
346
|
+
"outputs": [
|
|
347
|
+
{
|
|
348
|
+
"internalType": "address",
|
|
349
|
+
"name": "",
|
|
350
|
+
"type": "address"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"stateMutability": "view",
|
|
354
|
+
"type": "function"
|
|
355
|
+
},
|
|
316
356
|
{
|
|
317
357
|
"inputs": [
|
|
318
358
|
{
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"name": "CapacityReductionRatioAbove100Percent",
|
|
5
5
|
"type": "error"
|
|
6
6
|
},
|
|
7
|
+
{
|
|
8
|
+
"inputs": [],
|
|
9
|
+
"name": "ClaimMethodMismatch",
|
|
10
|
+
"type": "error"
|
|
11
|
+
},
|
|
7
12
|
{
|
|
8
13
|
"inputs": [],
|
|
9
14
|
"name": "InitialPriceRatioAbove100Percent",
|
|
@@ -419,6 +424,16 @@
|
|
|
419
424
|
"internalType": "uint32",
|
|
420
425
|
"name": "gracePeriod",
|
|
421
426
|
"type": "uint32"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"internalType": "uint32",
|
|
430
|
+
"name": "assessmentCooldownPeriod",
|
|
431
|
+
"type": "uint32"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"internalType": "uint32",
|
|
435
|
+
"name": "payoutRedemptionPeriod",
|
|
436
|
+
"type": "uint32"
|
|
422
437
|
}
|
|
423
438
|
],
|
|
424
439
|
"internalType": "struct ProductType",
|
|
@@ -513,6 +528,16 @@
|
|
|
513
528
|
"internalType": "uint32",
|
|
514
529
|
"name": "gracePeriod",
|
|
515
530
|
"type": "uint32"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"internalType": "uint32",
|
|
534
|
+
"name": "assessmentCooldownPeriod",
|
|
535
|
+
"type": "uint32"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"internalType": "uint32",
|
|
539
|
+
"name": "payoutRedemptionPeriod",
|
|
540
|
+
"type": "uint32"
|
|
516
541
|
}
|
|
517
542
|
],
|
|
518
543
|
"internalType": "struct ProductType",
|
|
@@ -538,6 +563,16 @@
|
|
|
538
563
|
"internalType": "uint32",
|
|
539
564
|
"name": "gracePeriod",
|
|
540
565
|
"type": "uint32"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"internalType": "uint32",
|
|
569
|
+
"name": "assessmentCooldownPeriod",
|
|
570
|
+
"type": "uint32"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"internalType": "uint32",
|
|
574
|
+
"name": "payoutRedemptionPeriod",
|
|
575
|
+
"type": "uint32"
|
|
541
576
|
}
|
|
542
577
|
],
|
|
543
578
|
"internalType": "struct ProductType[]",
|
|
@@ -616,6 +651,16 @@
|
|
|
616
651
|
"internalType": "uint32",
|
|
617
652
|
"name": "gracePeriod",
|
|
618
653
|
"type": "uint32"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"internalType": "uint32",
|
|
657
|
+
"name": "assessmentCooldownPeriod",
|
|
658
|
+
"type": "uint32"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"internalType": "uint32",
|
|
662
|
+
"name": "payoutRedemptionPeriod",
|
|
663
|
+
"type": "uint32"
|
|
619
664
|
}
|
|
620
665
|
],
|
|
621
666
|
"internalType": "struct ProductType",
|
|
@@ -867,6 +912,16 @@
|
|
|
867
912
|
"internalType": "uint32",
|
|
868
913
|
"name": "gracePeriod",
|
|
869
914
|
"type": "uint32"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"internalType": "uint32",
|
|
918
|
+
"name": "assessmentCooldownPeriod",
|
|
919
|
+
"type": "uint32"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"internalType": "uint32",
|
|
923
|
+
"name": "payoutRedemptionPeriod",
|
|
924
|
+
"type": "uint32"
|
|
870
925
|
}
|
|
871
926
|
],
|
|
872
927
|
"internalType": "struct ProductType",
|