@nexusmutual/sdk 0.13.1 → 0.14.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.
@@ -10,6 +10,91 @@
10
10
  "stateMutability": "nonpayable",
11
11
  "type": "constructor"
12
12
  },
13
+ {
14
+ "inputs": [],
15
+ "name": "AddressIsAlreadyMember",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "CantBeStakingPoolManager",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "HasNXMStakedInClaimAssessmentV1",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "InvalidSignature",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "LockedForVoting",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "MemberAlreadyHasRole",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "MemberDoesntHaveRole",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "MemberHasAssessmentStake",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "MemberHasPendingRewardsInTokenController",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "NewAddressIsAlreadyMember",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "NotAuthorized",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "OnlyMember",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "Paused",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "SignatureAlreadyUsed",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "TransactionValueDifferentFromJoiningFee",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "TransferToPoolFailed",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "UserAddressCantBeZero",
96
+ "type": "error"
97
+ },
13
98
  {
14
99
  "anonymous": false,
15
100
  "inputs": [
@@ -535,19 +620,6 @@
535
620
  "stateMutability": "nonpayable",
536
621
  "type": "function"
537
622
  },
538
- {
539
- "inputs": [
540
- {
541
- "internalType": "address[]",
542
- "name": "payoutAddresses",
543
- "type": "address[]"
544
- }
545
- ],
546
- "name": "storageCleanup",
547
- "outputs": [],
548
- "stateMutability": "nonpayable",
549
- "type": "function"
550
- },
551
623
  {
552
624
  "inputs": [
553
625
  {
@@ -91,25 +91,10 @@
91
91
  "name": "managerTotalRewards",
92
92
  "type": "uint256"
93
93
  },
94
- {
95
- "internalType": "uint256",
96
- "name": "legacyPooledStakeRewards",
97
- "type": "uint256"
98
- },
99
- {
100
- "internalType": "uint256",
101
- "name": "legacyPooledStakeDeposits",
102
- "type": "uint256"
103
- },
104
94
  {
105
95
  "internalType": "uint256",
106
96
  "name": "legacyClaimAssessmentTokens",
107
97
  "type": "uint256"
108
- },
109
- {
110
- "internalType": "uint256",
111
- "name": "legacyCoverNoteDeposits",
112
- "type": "uint256"
113
98
  }
114
99
  ],
115
100
  "internalType": "struct INexusViewer.ClaimableNXM",
@@ -56,6 +56,11 @@
56
56
  "name": "InsufficientDepositAmount",
57
57
  "type": "error"
58
58
  },
59
+ {
60
+ "inputs": [],
61
+ "name": "InvalidAllocationId",
62
+ "type": "error"
63
+ },
59
64
  {
60
65
  "inputs": [],
61
66
  "name": "InvalidStakingPoolForToken",
@@ -152,6 +157,25 @@
152
157
  "name": "SystemPaused",
153
158
  "type": "error"
154
159
  },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": false,
165
+ "internalType": "uint256",
166
+ "name": "activeStake",
167
+ "type": "uint256"
168
+ },
169
+ {
170
+ "indexed": false,
171
+ "internalType": "uint256",
172
+ "name": "stakeSharesSupply",
173
+ "type": "uint256"
174
+ }
175
+ ],
176
+ "name": "ActiveStakeUpdated",
177
+ "type": "event"
178
+ },
155
179
  {
156
180
  "anonymous": false,
157
181
  "inputs": [
@@ -171,7 +195,7 @@
171
195
  {
172
196
  "indexed": false,
173
197
  "internalType": "uint256",
174
- "name": "productId",
198
+ "name": "allocationId",
175
199
  "type": "uint256"
176
200
  }
177
201
  ],
@@ -215,6 +239,37 @@
215
239
  "name": "DepositExtended",
216
240
  "type": "event"
217
241
  },
242
+ {
243
+ "anonymous": false,
244
+ "inputs": [
245
+ {
246
+ "indexed": false,
247
+ "internalType": "uint256",
248
+ "name": "tokenId",
249
+ "type": "uint256"
250
+ },
251
+ {
252
+ "indexed": false,
253
+ "internalType": "uint256",
254
+ "name": "trancheId",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "indexed": false,
259
+ "internalType": "uint256",
260
+ "name": "stakeShares",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "indexed": false,
265
+ "internalType": "uint256",
266
+ "name": "stakeSharesSupply",
267
+ "type": "uint256"
268
+ }
269
+ ],
270
+ "name": "DepositUpdated",
271
+ "type": "event"
272
+ },
218
273
  {
219
274
  "anonymous": false,
220
275
  "inputs": [
@@ -310,6 +365,31 @@
310
365
  "name": "TrancheExpired",
311
366
  "type": "event"
312
367
  },
368
+ {
369
+ "anonymous": false,
370
+ "inputs": [
371
+ {
372
+ "indexed": false,
373
+ "internalType": "uint256",
374
+ "name": "trancheId",
375
+ "type": "uint256"
376
+ },
377
+ {
378
+ "indexed": false,
379
+ "internalType": "uint256",
380
+ "name": "stakeShares",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "indexed": false,
385
+ "internalType": "uint256",
386
+ "name": "stakeSharesSupply",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "name": "TrancheUpdated",
391
+ "type": "event"
392
+ },
313
393
  {
314
394
  "anonymous": false,
315
395
  "inputs": [
@@ -548,6 +628,19 @@
548
628
  "stateMutability": "nonpayable",
549
629
  "type": "function"
550
630
  },
631
+ {
632
+ "inputs": [],
633
+ "name": "coverContract",
634
+ "outputs": [
635
+ {
636
+ "internalType": "address",
637
+ "name": "",
638
+ "type": "address"
639
+ }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
551
644
  {
552
645
  "inputs": [
553
646
  {
@@ -1104,6 +1197,19 @@
1104
1197
  "stateMutability": "view",
1105
1198
  "type": "function"
1106
1199
  },
1200
+ {
1201
+ "inputs": [],
1202
+ "name": "masterContract",
1203
+ "outputs": [
1204
+ {
1205
+ "internalType": "contract INXMMaster",
1206
+ "name": "",
1207
+ "type": "address"
1208
+ }
1209
+ ],
1210
+ "stateMutability": "view",
1211
+ "type": "function"
1212
+ },
1107
1213
  {
1108
1214
  "inputs": [
1109
1215
  {
@@ -1123,6 +1229,19 @@
1123
1229
  "stateMutability": "nonpayable",
1124
1230
  "type": "function"
1125
1231
  },
1232
+ {
1233
+ "inputs": [],
1234
+ "name": "nxm",
1235
+ "outputs": [
1236
+ {
1237
+ "internalType": "contract INXMToken",
1238
+ "name": "",
1239
+ "type": "address"
1240
+ }
1241
+ ],
1242
+ "stateMutability": "view",
1243
+ "type": "function"
1244
+ },
1126
1245
  {
1127
1246
  "inputs": [
1128
1247
  {
@@ -1143,11 +1262,6 @@
1143
1262
  "name": "amount",
1144
1263
  "type": "uint256"
1145
1264
  },
1146
- {
1147
- "internalType": "uint256",
1148
- "name": "previousPremium",
1149
- "type": "uint256"
1150
- },
1151
1265
  {
1152
1266
  "components": [
1153
1267
  {
@@ -1160,11 +1274,6 @@
1160
1274
  "name": "coverId",
1161
1275
  "type": "uint256"
1162
1276
  },
1163
- {
1164
- "internalType": "uint256",
1165
- "name": "allocationId",
1166
- "type": "uint256"
1167
- },
1168
1277
  {
1169
1278
  "internalType": "uint256",
1170
1279
  "name": "period",
@@ -1182,22 +1291,7 @@
1182
1291
  },
1183
1292
  {
1184
1293
  "internalType": "uint256",
1185
- "name": "previousStart",
1186
- "type": "uint256"
1187
- },
1188
- {
1189
- "internalType": "uint256",
1190
- "name": "previousExpiration",
1191
- "type": "uint256"
1192
- },
1193
- {
1194
- "internalType": "uint256",
1195
- "name": "previousRewardsRatio",
1196
- "type": "uint256"
1197
- },
1198
- {
1199
- "internalType": "uint256",
1200
- "name": "globalCapacityRatio",
1294
+ "name": "capacityRatio",
1201
1295
  "type": "uint256"
1202
1296
  },
1203
1297
  {
@@ -1237,6 +1331,51 @@
1237
1331
  "stateMutability": "nonpayable",
1238
1332
  "type": "function"
1239
1333
  },
1334
+ {
1335
+ "inputs": [
1336
+ {
1337
+ "components": [
1338
+ {
1339
+ "internalType": "uint256",
1340
+ "name": "allocationId",
1341
+ "type": "uint256"
1342
+ },
1343
+ {
1344
+ "internalType": "uint256",
1345
+ "name": "productId",
1346
+ "type": "uint256"
1347
+ },
1348
+ {
1349
+ "internalType": "uint256",
1350
+ "name": "premium",
1351
+ "type": "uint256"
1352
+ },
1353
+ {
1354
+ "internalType": "uint256",
1355
+ "name": "start",
1356
+ "type": "uint256"
1357
+ },
1358
+ {
1359
+ "internalType": "uint256",
1360
+ "name": "period",
1361
+ "type": "uint256"
1362
+ },
1363
+ {
1364
+ "internalType": "uint256",
1365
+ "name": "rewardsRatio",
1366
+ "type": "uint256"
1367
+ }
1368
+ ],
1369
+ "internalType": "struct DeallocationRequest",
1370
+ "name": "request",
1371
+ "type": "tuple"
1372
+ }
1373
+ ],
1374
+ "name": "requestDeallocation",
1375
+ "outputs": [],
1376
+ "stateMutability": "nonpayable",
1377
+ "type": "function"
1378
+ },
1240
1379
  {
1241
1380
  "inputs": [
1242
1381
  {
@@ -1282,6 +1421,45 @@
1282
1421
  "stateMutability": "nonpayable",
1283
1422
  "type": "function"
1284
1423
  },
1424
+ {
1425
+ "inputs": [],
1426
+ "name": "stakingNFT",
1427
+ "outputs": [
1428
+ {
1429
+ "internalType": "contract IStakingNFT",
1430
+ "name": "",
1431
+ "type": "address"
1432
+ }
1433
+ ],
1434
+ "stateMutability": "view",
1435
+ "type": "function"
1436
+ },
1437
+ {
1438
+ "inputs": [],
1439
+ "name": "stakingProducts",
1440
+ "outputs": [
1441
+ {
1442
+ "internalType": "contract IStakingProducts",
1443
+ "name": "",
1444
+ "type": "address"
1445
+ }
1446
+ ],
1447
+ "stateMutability": "view",
1448
+ "type": "function"
1449
+ },
1450
+ {
1451
+ "inputs": [],
1452
+ "name": "tokenController",
1453
+ "outputs": [
1454
+ {
1455
+ "internalType": "contract ITokenController",
1456
+ "name": "",
1457
+ "type": "address"
1458
+ }
1459
+ ],
1460
+ "stateMutability": "view",
1461
+ "type": "function"
1462
+ },
1285
1463
  {
1286
1464
  "inputs": [
1287
1465
  {