@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.
- package/README.md +22 -16
- package/dist/data/abis/{Assessment.json → Assessments.json} +370 -416
- package/dist/data/abis/{IndividualClaims.json → Claims.json} +325 -264
- package/dist/data/abis/Cover.json +447 -110
- package/dist/data/abis/CoverBroker.json +79 -34
- package/dist/data/abis/CoverProducts.json +55 -0
- package/dist/data/abis/Governor.json +803 -0
- package/dist/data/abis/LimitOrders.json +0 -7
- package/dist/data/abis/NXMaster.json +37 -223
- package/dist/data/abis/Pool.json +415 -229
- package/dist/data/abis/Ramm.json +97 -67
- package/dist/data/abis/{MemberRoles.json → Registry.json} +553 -249
- package/dist/data/abis/SafeTracker.json +94 -58
- package/dist/data/abis/StakingProducts.json +1 -14
- package/dist/data/abis/StakingViewer.json +87 -24
- package/dist/data/abis/SwapOperator.json +365 -209
- package/dist/data/abis/TokenController.json +77 -303
- package/dist/data/abis/VotePower.json +170 -0
- package/dist/data/addresses.json +9 -12
- package/dist/data/product-types.json +76 -26
- package/dist/data/products.json +13 -13
- package/dist/data/version.json +1 -1
- package/dist/index.d.mts +14024 -13632
- package/dist/index.d.ts +14024 -13632
- package/dist/index.js +9436 -9167
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9435 -9166
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -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
|
@@ -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,32 @@
|
|
|
45
30
|
"name": "InvalidPaymentAsset",
|
|
46
31
|
"type": "error"
|
|
47
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "OnlyAdvisoryBoard",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [],
|
|
40
|
+
"name": "OnlyMember",
|
|
41
|
+
"type": "error"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "currentState",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "checks",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "Paused",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
48
59
|
{
|
|
49
60
|
"inputs": [
|
|
50
61
|
{
|
|
@@ -66,6 +77,27 @@
|
|
|
66
77
|
"name": "TransferFailed",
|
|
67
78
|
"type": "error"
|
|
68
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "caller",
|
|
85
|
+
"type": "address"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "callerIndex",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"internalType": "uint256",
|
|
94
|
+
"name": "authorizedBitmap",
|
|
95
|
+
"type": "uint256"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "Unauthorized",
|
|
99
|
+
"type": "error"
|
|
100
|
+
},
|
|
69
101
|
{
|
|
70
102
|
"inputs": [
|
|
71
103
|
{
|
|
@@ -216,37 +248,37 @@
|
|
|
216
248
|
"type": "function"
|
|
217
249
|
},
|
|
218
250
|
{
|
|
219
|
-
"inputs": [
|
|
220
|
-
"name": "master",
|
|
221
|
-
"outputs": [
|
|
251
|
+
"inputs": [
|
|
222
252
|
{
|
|
223
|
-
"internalType": "contract
|
|
224
|
-
"name": "",
|
|
253
|
+
"internalType": "contract IERC20",
|
|
254
|
+
"name": "erc20",
|
|
225
255
|
"type": "address"
|
|
226
256
|
}
|
|
227
257
|
],
|
|
228
|
-
"
|
|
258
|
+
"name": "maxApproveCoverContract",
|
|
259
|
+
"outputs": [],
|
|
260
|
+
"stateMutability": "nonpayable",
|
|
229
261
|
"type": "function"
|
|
230
262
|
},
|
|
231
263
|
{
|
|
232
|
-
"inputs": [
|
|
264
|
+
"inputs": [],
|
|
265
|
+
"name": "nxmToken",
|
|
266
|
+
"outputs": [
|
|
233
267
|
{
|
|
234
|
-
"internalType": "contract
|
|
235
|
-
"name": "
|
|
268
|
+
"internalType": "contract INXMToken",
|
|
269
|
+
"name": "",
|
|
236
270
|
"type": "address"
|
|
237
271
|
}
|
|
238
272
|
],
|
|
239
|
-
"
|
|
240
|
-
"outputs": [],
|
|
241
|
-
"stateMutability": "nonpayable",
|
|
273
|
+
"stateMutability": "view",
|
|
242
274
|
"type": "function"
|
|
243
275
|
},
|
|
244
276
|
{
|
|
245
277
|
"inputs": [],
|
|
246
|
-
"name": "
|
|
278
|
+
"name": "owner",
|
|
247
279
|
"outputs": [
|
|
248
280
|
{
|
|
249
|
-
"internalType": "
|
|
281
|
+
"internalType": "address",
|
|
250
282
|
"name": "",
|
|
251
283
|
"type": "address"
|
|
252
284
|
}
|
|
@@ -256,10 +288,10 @@
|
|
|
256
288
|
},
|
|
257
289
|
{
|
|
258
290
|
"inputs": [],
|
|
259
|
-
"name": "
|
|
291
|
+
"name": "pool",
|
|
260
292
|
"outputs": [
|
|
261
293
|
{
|
|
262
|
-
"internalType": "contract
|
|
294
|
+
"internalType": "contract IPool",
|
|
263
295
|
"name": "",
|
|
264
296
|
"type": "address"
|
|
265
297
|
}
|
|
@@ -269,10 +301,10 @@
|
|
|
269
301
|
},
|
|
270
302
|
{
|
|
271
303
|
"inputs": [],
|
|
272
|
-
"name": "
|
|
304
|
+
"name": "registry",
|
|
273
305
|
"outputs": [
|
|
274
306
|
{
|
|
275
|
-
"internalType": "
|
|
307
|
+
"internalType": "contract IRegistry",
|
|
276
308
|
"name": "",
|
|
277
309
|
"type": "address"
|
|
278
310
|
}
|
|
@@ -313,6 +345,19 @@
|
|
|
313
345
|
"stateMutability": "nonpayable",
|
|
314
346
|
"type": "function"
|
|
315
347
|
},
|
|
348
|
+
{
|
|
349
|
+
"inputs": [],
|
|
350
|
+
"name": "tokenController",
|
|
351
|
+
"outputs": [
|
|
352
|
+
{
|
|
353
|
+
"internalType": "address",
|
|
354
|
+
"name": "",
|
|
355
|
+
"type": "address"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"stateMutability": "view",
|
|
359
|
+
"type": "function"
|
|
360
|
+
},
|
|
316
361
|
{
|
|
317
362
|
"inputs": [
|
|
318
363
|
{
|
|
@@ -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",
|