@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
package/dist/data/abis/Pool.json
CHANGED
|
@@ -3,36 +3,125 @@
|
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
5
|
"internalType": "address",
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "_registry",
|
|
7
7
|
"type": "address"
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"stateMutability": "nonpayable",
|
|
11
|
+
"type": "constructor"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [],
|
|
15
|
+
"name": "AggregatorMustNotBeZeroAddress",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [],
|
|
20
|
+
"name": "AlreadyMigrated",
|
|
21
|
+
"type": "error"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "AssetAlreadyExists",
|
|
26
|
+
"type": "error"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [],
|
|
30
|
+
"name": "AssetMustNotBeZeroAddress",
|
|
31
|
+
"type": "error"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "AssetNotFound",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
9
40
|
{
|
|
10
41
|
"internalType": "address",
|
|
11
|
-
"name": "
|
|
42
|
+
"name": "to",
|
|
12
43
|
"type": "address"
|
|
13
44
|
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "amount",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "EthTransferFailed",
|
|
52
|
+
"type": "error"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [
|
|
14
56
|
{
|
|
15
57
|
"internalType": "address",
|
|
16
|
-
"name": "
|
|
58
|
+
"name": "aggregator",
|
|
17
59
|
"type": "address"
|
|
18
60
|
},
|
|
19
61
|
{
|
|
20
|
-
"internalType": "
|
|
21
|
-
"name": "
|
|
22
|
-
"type": "
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "expectedDecimals",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "aggregatorDecimals",
|
|
69
|
+
"type": "uint256"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"name": "IncompatibleAggregatorDecimals",
|
|
73
|
+
"type": "error"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [],
|
|
77
|
+
"name": "InvalidAssetId",
|
|
78
|
+
"type": "error"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"internalType": "enum AggregatorType",
|
|
84
|
+
"name": "actual",
|
|
85
|
+
"type": "uint8"
|
|
23
86
|
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "enum AggregatorType",
|
|
89
|
+
"name": "expected",
|
|
90
|
+
"type": "uint8"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "InvalidEthAggregatorType",
|
|
94
|
+
"type": "error"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [],
|
|
98
|
+
"name": "NoSwapAssetAmountFound",
|
|
99
|
+
"type": "error"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [
|
|
24
103
|
{
|
|
25
104
|
"internalType": "address",
|
|
26
|
-
"name": "
|
|
105
|
+
"name": "aggregator",
|
|
27
106
|
"type": "address"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"internalType": "int256",
|
|
110
|
+
"name": "rate",
|
|
111
|
+
"type": "int256"
|
|
28
112
|
}
|
|
29
113
|
],
|
|
30
|
-
"
|
|
31
|
-
"type": "
|
|
114
|
+
"name": "NonPositiveRate",
|
|
115
|
+
"type": "error"
|
|
32
116
|
},
|
|
33
117
|
{
|
|
34
118
|
"inputs": [],
|
|
35
|
-
"name": "
|
|
119
|
+
"name": "OnlyAdvisoryBoard",
|
|
120
|
+
"type": "error"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [],
|
|
124
|
+
"name": "OnlyMember",
|
|
36
125
|
"type": "error"
|
|
37
126
|
},
|
|
38
127
|
{
|
|
@@ -44,25 +133,51 @@
|
|
|
44
133
|
"inputs": [
|
|
45
134
|
{
|
|
46
135
|
"internalType": "uint256",
|
|
47
|
-
"name": "
|
|
136
|
+
"name": "currentState",
|
|
137
|
+
"type": "uint256"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"internalType": "uint256",
|
|
141
|
+
"name": "checks",
|
|
48
142
|
"type": "uint256"
|
|
49
143
|
}
|
|
50
144
|
],
|
|
51
|
-
"name": "
|
|
145
|
+
"name": "Paused",
|
|
52
146
|
"type": "error"
|
|
53
147
|
},
|
|
54
148
|
{
|
|
55
149
|
"inputs": [],
|
|
56
|
-
"name": "
|
|
150
|
+
"name": "ReentrantCall",
|
|
151
|
+
"type": "error"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"inputs": [
|
|
155
|
+
{
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "caller",
|
|
158
|
+
"type": "address"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"internalType": "uint256",
|
|
162
|
+
"name": "callerIndex",
|
|
163
|
+
"type": "uint256"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"internalType": "uint256",
|
|
167
|
+
"name": "authorizedBitmap",
|
|
168
|
+
"type": "uint256"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"name": "Unauthorized",
|
|
57
172
|
"type": "error"
|
|
58
173
|
},
|
|
59
174
|
{
|
|
60
175
|
"anonymous": false,
|
|
61
176
|
"inputs": [
|
|
62
177
|
{
|
|
63
|
-
"indexed":
|
|
178
|
+
"indexed": false,
|
|
64
179
|
"internalType": "address",
|
|
65
|
-
"name": "
|
|
180
|
+
"name": "assetAddress",
|
|
66
181
|
"type": "address"
|
|
67
182
|
},
|
|
68
183
|
{
|
|
@@ -72,7 +187,63 @@
|
|
|
72
187
|
"type": "uint256"
|
|
73
188
|
}
|
|
74
189
|
],
|
|
75
|
-
"name": "
|
|
190
|
+
"name": "AssetsTransferredToSafe",
|
|
191
|
+
"type": "event"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"anonymous": false,
|
|
195
|
+
"inputs": [
|
|
196
|
+
{
|
|
197
|
+
"indexed": false,
|
|
198
|
+
"internalType": "address",
|
|
199
|
+
"name": "assetAddress",
|
|
200
|
+
"type": "address"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"indexed": false,
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "amount",
|
|
206
|
+
"type": "uint256"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"name": "AssetsTransferredToSwapOperator",
|
|
210
|
+
"type": "event"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"anonymous": false,
|
|
214
|
+
"inputs": [
|
|
215
|
+
{
|
|
216
|
+
"indexed": false,
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "mcr",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"indexed": false,
|
|
223
|
+
"internalType": "uint256",
|
|
224
|
+
"name": "desiredMCR",
|
|
225
|
+
"type": "uint256"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"indexed": false,
|
|
229
|
+
"internalType": "uint256",
|
|
230
|
+
"name": "mcrFloor",
|
|
231
|
+
"type": "uint256"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"indexed": false,
|
|
235
|
+
"internalType": "uint256",
|
|
236
|
+
"name": "mcrETHWithGear",
|
|
237
|
+
"type": "uint256"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"indexed": false,
|
|
241
|
+
"internalType": "uint256",
|
|
242
|
+
"name": "totalSumAssured",
|
|
243
|
+
"type": "uint256"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"name": "MCRUpdated",
|
|
76
247
|
"type": "event"
|
|
77
248
|
},
|
|
78
249
|
{
|
|
@@ -100,6 +271,19 @@
|
|
|
100
271
|
"name": "Payout",
|
|
101
272
|
"type": "event"
|
|
102
273
|
},
|
|
274
|
+
{
|
|
275
|
+
"inputs": [],
|
|
276
|
+
"name": "BASIS_PRECISION",
|
|
277
|
+
"outputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "uint256",
|
|
280
|
+
"name": "",
|
|
281
|
+
"type": "uint256"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"stateMutability": "view",
|
|
285
|
+
"type": "function"
|
|
286
|
+
},
|
|
103
287
|
{
|
|
104
288
|
"inputs": [],
|
|
105
289
|
"name": "ETH",
|
|
@@ -113,6 +297,58 @@
|
|
|
113
297
|
"stateMutability": "view",
|
|
114
298
|
"type": "function"
|
|
115
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"inputs": [],
|
|
302
|
+
"name": "GEARING_FACTOR",
|
|
303
|
+
"outputs": [
|
|
304
|
+
{
|
|
305
|
+
"internalType": "uint256",
|
|
306
|
+
"name": "",
|
|
307
|
+
"type": "uint256"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"stateMutability": "view",
|
|
311
|
+
"type": "function"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"inputs": [],
|
|
315
|
+
"name": "MAX_MCR_ADJUSTMENT",
|
|
316
|
+
"outputs": [
|
|
317
|
+
{
|
|
318
|
+
"internalType": "uint256",
|
|
319
|
+
"name": "",
|
|
320
|
+
"type": "uint256"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"stateMutability": "view",
|
|
324
|
+
"type": "function"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"inputs": [],
|
|
328
|
+
"name": "MAX_MCR_INCREMENT",
|
|
329
|
+
"outputs": [
|
|
330
|
+
{
|
|
331
|
+
"internalType": "uint256",
|
|
332
|
+
"name": "",
|
|
333
|
+
"type": "uint256"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"stateMutability": "view",
|
|
337
|
+
"type": "function"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"inputs": [],
|
|
341
|
+
"name": "MAX_SLIPPAGE_DENOMINATOR",
|
|
342
|
+
"outputs": [
|
|
343
|
+
{
|
|
344
|
+
"internalType": "uint256",
|
|
345
|
+
"name": "",
|
|
346
|
+
"type": "uint256"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"stateMutability": "view",
|
|
350
|
+
"type": "function"
|
|
351
|
+
},
|
|
116
352
|
{
|
|
117
353
|
"inputs": [],
|
|
118
354
|
"name": "MCR_RATIO_DECIMALS",
|
|
@@ -126,6 +362,19 @@
|
|
|
126
362
|
"stateMutability": "view",
|
|
127
363
|
"type": "function"
|
|
128
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"inputs": [],
|
|
367
|
+
"name": "MIN_UPDATE_TIME",
|
|
368
|
+
"outputs": [
|
|
369
|
+
{
|
|
370
|
+
"internalType": "uint256",
|
|
371
|
+
"name": "",
|
|
372
|
+
"type": "uint256"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"stateMutability": "view",
|
|
376
|
+
"type": "function"
|
|
377
|
+
},
|
|
129
378
|
{
|
|
130
379
|
"inputs": [
|
|
131
380
|
{
|
|
@@ -139,19 +388,14 @@
|
|
|
139
388
|
"type": "bool"
|
|
140
389
|
},
|
|
141
390
|
{
|
|
142
|
-
"internalType": "
|
|
143
|
-
"name": "
|
|
144
|
-
"type": "
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"internalType": "uint256",
|
|
148
|
-
"name": "_max",
|
|
149
|
-
"type": "uint256"
|
|
391
|
+
"internalType": "contract Aggregator",
|
|
392
|
+
"name": "aggregator",
|
|
393
|
+
"type": "address"
|
|
150
394
|
},
|
|
151
395
|
{
|
|
152
|
-
"internalType": "
|
|
153
|
-
"name": "
|
|
154
|
-
"type": "
|
|
396
|
+
"internalType": "enum AggregatorType",
|
|
397
|
+
"name": "aggregatorType",
|
|
398
|
+
"type": "uint8"
|
|
155
399
|
}
|
|
156
400
|
],
|
|
157
401
|
"name": "addAsset",
|
|
@@ -164,9 +408,14 @@
|
|
|
164
408
|
"name": "assetInSwapOperator",
|
|
165
409
|
"outputs": [
|
|
166
410
|
{
|
|
167
|
-
"internalType": "
|
|
168
|
-
"name": "",
|
|
169
|
-
"type": "
|
|
411
|
+
"internalType": "address",
|
|
412
|
+
"name": "assetAddress",
|
|
413
|
+
"type": "address"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"internalType": "uint96",
|
|
417
|
+
"name": "amount",
|
|
418
|
+
"type": "uint96"
|
|
170
419
|
}
|
|
171
420
|
],
|
|
172
421
|
"stateMutability": "view",
|
|
@@ -201,33 +450,30 @@
|
|
|
201
450
|
"stateMutability": "view",
|
|
202
451
|
"type": "function"
|
|
203
452
|
},
|
|
204
|
-
{
|
|
205
|
-
"inputs": [],
|
|
206
|
-
"name": "assetsInSwapOperatorBitmap",
|
|
207
|
-
"outputs": [
|
|
208
|
-
{
|
|
209
|
-
"internalType": "uint32",
|
|
210
|
-
"name": "",
|
|
211
|
-
"type": "uint32"
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"stateMutability": "view",
|
|
215
|
-
"type": "function"
|
|
216
|
-
},
|
|
217
453
|
{
|
|
218
454
|
"inputs": [
|
|
219
455
|
{
|
|
220
456
|
"internalType": "uint256",
|
|
221
|
-
"name": "
|
|
457
|
+
"name": "stored",
|
|
458
|
+
"type": "uint256"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"internalType": "uint256",
|
|
462
|
+
"name": "desired",
|
|
222
463
|
"type": "uint256"
|
|
223
464
|
},
|
|
224
465
|
{
|
|
225
466
|
"internalType": "uint256",
|
|
226
|
-
"name": "
|
|
467
|
+
"name": "updatedAt",
|
|
468
|
+
"type": "uint256"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"internalType": "uint256",
|
|
472
|
+
"name": "_now",
|
|
227
473
|
"type": "uint256"
|
|
228
474
|
}
|
|
229
475
|
],
|
|
230
|
-
"name": "
|
|
476
|
+
"name": "calculateCurrentMCR",
|
|
231
477
|
"outputs": [
|
|
232
478
|
{
|
|
233
479
|
"internalType": "uint256",
|
|
@@ -239,23 +485,29 @@
|
|
|
239
485
|
"type": "function"
|
|
240
486
|
},
|
|
241
487
|
{
|
|
242
|
-
"inputs": [
|
|
243
|
-
|
|
488
|
+
"inputs": [
|
|
489
|
+
{
|
|
490
|
+
"internalType": "address",
|
|
491
|
+
"name": "assetAddress",
|
|
492
|
+
"type": "address"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"name": "clearSwapAssetAmount",
|
|
244
496
|
"outputs": [],
|
|
245
497
|
"stateMutability": "nonpayable",
|
|
246
498
|
"type": "function"
|
|
247
499
|
},
|
|
248
500
|
{
|
|
249
|
-
"inputs": [
|
|
501
|
+
"inputs": [],
|
|
502
|
+
"name": "cover",
|
|
503
|
+
"outputs": [
|
|
250
504
|
{
|
|
251
|
-
"internalType": "
|
|
252
|
-
"name": "
|
|
505
|
+
"internalType": "contract ICover",
|
|
506
|
+
"name": "",
|
|
253
507
|
"type": "address"
|
|
254
508
|
}
|
|
255
509
|
],
|
|
256
|
-
"
|
|
257
|
-
"outputs": [],
|
|
258
|
-
"stateMutability": "nonpayable",
|
|
510
|
+
"stateMutability": "view",
|
|
259
511
|
"type": "function"
|
|
260
512
|
},
|
|
261
513
|
{
|
|
@@ -300,9 +552,14 @@
|
|
|
300
552
|
"internalType": "address",
|
|
301
553
|
"name": "assetAddress",
|
|
302
554
|
"type": "address"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"internalType": "uint256",
|
|
558
|
+
"name": "ethIn",
|
|
559
|
+
"type": "uint256"
|
|
303
560
|
}
|
|
304
561
|
],
|
|
305
|
-
"name": "
|
|
562
|
+
"name": "getAssetForEth",
|
|
306
563
|
"outputs": [
|
|
307
564
|
{
|
|
308
565
|
"internalType": "uint256",
|
|
@@ -321,34 +578,12 @@
|
|
|
321
578
|
"type": "address"
|
|
322
579
|
}
|
|
323
580
|
],
|
|
324
|
-
"name": "
|
|
581
|
+
"name": "getAssetId",
|
|
325
582
|
"outputs": [
|
|
326
583
|
{
|
|
327
|
-
"
|
|
328
|
-
{
|
|
329
|
-
"internalType": "uint104",
|
|
330
|
-
"name": "minAmount",
|
|
331
|
-
"type": "uint104"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"internalType": "uint104",
|
|
335
|
-
"name": "maxAmount",
|
|
336
|
-
"type": "uint104"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"internalType": "uint32",
|
|
340
|
-
"name": "lastSwapTime",
|
|
341
|
-
"type": "uint32"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"internalType": "uint16",
|
|
345
|
-
"name": "maxSlippageRatio",
|
|
346
|
-
"type": "uint16"
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
"internalType": "struct SwapDetails",
|
|
584
|
+
"internalType": "uint256",
|
|
350
585
|
"name": "",
|
|
351
|
-
"type": "
|
|
586
|
+
"type": "uint256"
|
|
352
587
|
}
|
|
353
588
|
],
|
|
354
589
|
"stateMutability": "view",
|
|
@@ -384,6 +619,30 @@
|
|
|
384
619
|
"stateMutability": "view",
|
|
385
620
|
"type": "function"
|
|
386
621
|
},
|
|
622
|
+
{
|
|
623
|
+
"inputs": [
|
|
624
|
+
{
|
|
625
|
+
"internalType": "address",
|
|
626
|
+
"name": "assetAddress",
|
|
627
|
+
"type": "address"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"internalType": "uint256",
|
|
631
|
+
"name": "amount",
|
|
632
|
+
"type": "uint256"
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"name": "getEthForAsset",
|
|
636
|
+
"outputs": [
|
|
637
|
+
{
|
|
638
|
+
"internalType": "uint256",
|
|
639
|
+
"name": "",
|
|
640
|
+
"type": "uint256"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"stateMutability": "view",
|
|
644
|
+
"type": "function"
|
|
645
|
+
},
|
|
387
646
|
{
|
|
388
647
|
"inputs": [
|
|
389
648
|
{
|
|
@@ -422,6 +681,19 @@
|
|
|
422
681
|
"stateMutability": "nonpayable",
|
|
423
682
|
"type": "function"
|
|
424
683
|
},
|
|
684
|
+
{
|
|
685
|
+
"inputs": [],
|
|
686
|
+
"name": "getMCR",
|
|
687
|
+
"outputs": [
|
|
688
|
+
{
|
|
689
|
+
"internalType": "uint256",
|
|
690
|
+
"name": "",
|
|
691
|
+
"type": "uint256"
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"stateMutability": "view",
|
|
695
|
+
"type": "function"
|
|
696
|
+
},
|
|
425
697
|
{
|
|
426
698
|
"inputs": [],
|
|
427
699
|
"name": "getMCRRatio",
|
|
@@ -462,19 +734,60 @@
|
|
|
462
734
|
"type": "function"
|
|
463
735
|
},
|
|
464
736
|
{
|
|
465
|
-
"inputs": [
|
|
737
|
+
"inputs": [],
|
|
738
|
+
"name": "getTotalActiveCoverAmount",
|
|
739
|
+
"outputs": [
|
|
466
740
|
{
|
|
467
741
|
"internalType": "uint256",
|
|
468
742
|
"name": "",
|
|
469
743
|
"type": "uint256"
|
|
470
744
|
}
|
|
471
745
|
],
|
|
472
|
-
"
|
|
746
|
+
"stateMutability": "view",
|
|
747
|
+
"type": "function"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"inputs": [
|
|
751
|
+
{
|
|
752
|
+
"internalType": "address",
|
|
753
|
+
"name": "_previousPool",
|
|
754
|
+
"type": "address"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"internalType": "address",
|
|
758
|
+
"name": "_previousMCR",
|
|
759
|
+
"type": "address"
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"name": "migrate",
|
|
763
|
+
"outputs": [],
|
|
764
|
+
"stateMutability": "nonpayable",
|
|
765
|
+
"type": "function"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"inputs": [
|
|
769
|
+
{
|
|
770
|
+
"internalType": "address",
|
|
771
|
+
"name": "assetAddress",
|
|
772
|
+
"type": "address"
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
"name": "oracles",
|
|
473
776
|
"outputs": [
|
|
474
777
|
{
|
|
475
|
-
"internalType": "
|
|
476
|
-
"name": "",
|
|
778
|
+
"internalType": "contract Aggregator",
|
|
779
|
+
"name": "aggregator",
|
|
477
780
|
"type": "address"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"internalType": "enum AggregatorType",
|
|
784
|
+
"name": "aggregatorType",
|
|
785
|
+
"type": "uint8"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"internalType": "uint8",
|
|
789
|
+
"name": "assetDecimals",
|
|
790
|
+
"type": "uint8"
|
|
478
791
|
}
|
|
479
792
|
],
|
|
480
793
|
"stateMutability": "view",
|
|
@@ -482,10 +795,10 @@
|
|
|
482
795
|
},
|
|
483
796
|
{
|
|
484
797
|
"inputs": [],
|
|
485
|
-
"name": "
|
|
798
|
+
"name": "ramm",
|
|
486
799
|
"outputs": [
|
|
487
800
|
{
|
|
488
|
-
"internalType": "contract
|
|
801
|
+
"internalType": "contract IRamm",
|
|
489
802
|
"name": "",
|
|
490
803
|
"type": "address"
|
|
491
804
|
}
|
|
@@ -495,10 +808,10 @@
|
|
|
495
808
|
},
|
|
496
809
|
{
|
|
497
810
|
"inputs": [],
|
|
498
|
-
"name": "
|
|
811
|
+
"name": "registry",
|
|
499
812
|
"outputs": [
|
|
500
813
|
{
|
|
501
|
-
"internalType": "contract
|
|
814
|
+
"internalType": "contract IRegistry",
|
|
502
815
|
"name": "",
|
|
503
816
|
"type": "address"
|
|
504
817
|
}
|
|
@@ -508,10 +821,10 @@
|
|
|
508
821
|
},
|
|
509
822
|
{
|
|
510
823
|
"inputs": [],
|
|
511
|
-
"name": "
|
|
824
|
+
"name": "safeTracker",
|
|
512
825
|
"outputs": [
|
|
513
826
|
{
|
|
514
|
-
"internalType": "
|
|
827
|
+
"internalType": "address",
|
|
515
828
|
"name": "",
|
|
516
829
|
"type": "address"
|
|
517
830
|
}
|
|
@@ -522,7 +835,7 @@
|
|
|
522
835
|
{
|
|
523
836
|
"inputs": [
|
|
524
837
|
{
|
|
525
|
-
"internalType": "address",
|
|
838
|
+
"internalType": "address payable",
|
|
526
839
|
"name": "member",
|
|
527
840
|
"type": "address"
|
|
528
841
|
},
|
|
@@ -556,7 +869,7 @@
|
|
|
556
869
|
},
|
|
557
870
|
{
|
|
558
871
|
"internalType": "uint256",
|
|
559
|
-
"name": "
|
|
872
|
+
"name": "depositInETH",
|
|
560
873
|
"type": "uint256"
|
|
561
874
|
}
|
|
562
875
|
],
|
|
@@ -588,104 +901,6 @@
|
|
|
588
901
|
"stateMutability": "nonpayable",
|
|
589
902
|
"type": "function"
|
|
590
903
|
},
|
|
591
|
-
{
|
|
592
|
-
"inputs": [
|
|
593
|
-
{
|
|
594
|
-
"internalType": "address",
|
|
595
|
-
"name": "assetAddress",
|
|
596
|
-
"type": "address"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"internalType": "uint256",
|
|
600
|
-
"name": "value",
|
|
601
|
-
"type": "uint256"
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
"name": "setSwapAssetAmount",
|
|
605
|
-
"outputs": [],
|
|
606
|
-
"stateMutability": "nonpayable",
|
|
607
|
-
"type": "function"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"inputs": [
|
|
611
|
-
{
|
|
612
|
-
"internalType": "address",
|
|
613
|
-
"name": "assetAddress",
|
|
614
|
-
"type": "address"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"internalType": "uint256",
|
|
618
|
-
"name": "_min",
|
|
619
|
-
"type": "uint256"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"internalType": "uint256",
|
|
623
|
-
"name": "_max",
|
|
624
|
-
"type": "uint256"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"internalType": "uint256",
|
|
628
|
-
"name": "_maxSlippageRatio",
|
|
629
|
-
"type": "uint256"
|
|
630
|
-
}
|
|
631
|
-
],
|
|
632
|
-
"name": "setSwapDetails",
|
|
633
|
-
"outputs": [],
|
|
634
|
-
"stateMutability": "nonpayable",
|
|
635
|
-
"type": "function"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"inputs": [
|
|
639
|
-
{
|
|
640
|
-
"internalType": "address",
|
|
641
|
-
"name": "assetAddress",
|
|
642
|
-
"type": "address"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"internalType": "uint32",
|
|
646
|
-
"name": "lastSwapTime",
|
|
647
|
-
"type": "uint32"
|
|
648
|
-
}
|
|
649
|
-
],
|
|
650
|
-
"name": "setSwapDetailsLastSwapTime",
|
|
651
|
-
"outputs": [],
|
|
652
|
-
"stateMutability": "nonpayable",
|
|
653
|
-
"type": "function"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"inputs": [
|
|
657
|
-
{
|
|
658
|
-
"internalType": "address",
|
|
659
|
-
"name": "",
|
|
660
|
-
"type": "address"
|
|
661
|
-
}
|
|
662
|
-
],
|
|
663
|
-
"name": "swapDetails",
|
|
664
|
-
"outputs": [
|
|
665
|
-
{
|
|
666
|
-
"internalType": "uint104",
|
|
667
|
-
"name": "minAmount",
|
|
668
|
-
"type": "uint104"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"internalType": "uint104",
|
|
672
|
-
"name": "maxAmount",
|
|
673
|
-
"type": "uint104"
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"internalType": "uint32",
|
|
677
|
-
"name": "lastSwapTime",
|
|
678
|
-
"type": "uint32"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"internalType": "uint16",
|
|
682
|
-
"name": "maxSlippageRatio",
|
|
683
|
-
"type": "uint16"
|
|
684
|
-
}
|
|
685
|
-
],
|
|
686
|
-
"stateMutability": "view",
|
|
687
|
-
"type": "function"
|
|
688
|
-
},
|
|
689
904
|
{
|
|
690
905
|
"inputs": [],
|
|
691
906
|
"name": "swapOperator",
|
|
@@ -707,8 +922,8 @@
|
|
|
707
922
|
"type": "address"
|
|
708
923
|
},
|
|
709
924
|
{
|
|
710
|
-
"internalType": "address
|
|
711
|
-
"name": "
|
|
925
|
+
"internalType": "address",
|
|
926
|
+
"name": "safeAddress",
|
|
712
927
|
"type": "address"
|
|
713
928
|
},
|
|
714
929
|
{
|
|
@@ -717,7 +932,7 @@
|
|
|
717
932
|
"type": "uint256"
|
|
718
933
|
}
|
|
719
934
|
],
|
|
720
|
-
"name": "
|
|
935
|
+
"name": "transferAssetToSafe",
|
|
721
936
|
"outputs": [],
|
|
722
937
|
"stateMutability": "nonpayable",
|
|
723
938
|
"type": "function"
|
|
@@ -741,19 +956,8 @@
|
|
|
741
956
|
"type": "function"
|
|
742
957
|
},
|
|
743
958
|
{
|
|
744
|
-
"inputs": [
|
|
745
|
-
|
|
746
|
-
"internalType": "bytes8",
|
|
747
|
-
"name": "code",
|
|
748
|
-
"type": "bytes8"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"internalType": "address",
|
|
752
|
-
"name": "value",
|
|
753
|
-
"type": "address"
|
|
754
|
-
}
|
|
755
|
-
],
|
|
756
|
-
"name": "updateAddressParameters",
|
|
959
|
+
"inputs": [],
|
|
960
|
+
"name": "updateMCR",
|
|
757
961
|
"outputs": [],
|
|
758
962
|
"stateMutability": "nonpayable",
|
|
759
963
|
"type": "function"
|
|
@@ -761,30 +965,12 @@
|
|
|
761
965
|
{
|
|
762
966
|
"inputs": [
|
|
763
967
|
{
|
|
764
|
-
"internalType": "
|
|
765
|
-
"name": "",
|
|
766
|
-
"type": "
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"internalType": "uint256",
|
|
770
|
-
"name": "",
|
|
771
|
-
"type": "uint256"
|
|
772
|
-
}
|
|
773
|
-
],
|
|
774
|
-
"name": "updateUintParameters",
|
|
775
|
-
"outputs": [],
|
|
776
|
-
"stateMutability": "view",
|
|
777
|
-
"type": "function"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"inputs": [
|
|
781
|
-
{
|
|
782
|
-
"internalType": "address payable",
|
|
783
|
-
"name": "newPoolAddress",
|
|
784
|
-
"type": "address"
|
|
968
|
+
"internalType": "bool",
|
|
969
|
+
"name": "forceUpdate",
|
|
970
|
+
"type": "bool"
|
|
785
971
|
}
|
|
786
972
|
],
|
|
787
|
-
"name": "
|
|
973
|
+
"name": "updateMCRInternal",
|
|
788
974
|
"outputs": [],
|
|
789
975
|
"stateMutability": "nonpayable",
|
|
790
976
|
"type": "function"
|