@nexusmutual/sdk 1.19.0 → 1.20.0-rc.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 +17 -17
- package/dist/index.d.mts +14024 -13632
- package/dist/index.d.ts +14024 -13632
- package/dist/index.js +9569 -9300
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9568 -9299
- 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
|
@@ -2,23 +2,18 @@
|
|
|
2
2
|
{
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
|
-
"internalType": "
|
|
6
|
-
"name": "
|
|
7
|
-
"type": "address"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"internalType": "contract IStakingNFT",
|
|
11
|
-
"name": "_stakingNFT",
|
|
5
|
+
"internalType": "address",
|
|
6
|
+
"name": "_registry",
|
|
12
7
|
"type": "address"
|
|
13
8
|
},
|
|
14
9
|
{
|
|
15
|
-
"internalType": "
|
|
16
|
-
"name": "
|
|
10
|
+
"internalType": "address",
|
|
11
|
+
"name": "_stakingPoolImplementation",
|
|
17
12
|
"type": "address"
|
|
18
13
|
},
|
|
19
14
|
{
|
|
20
15
|
"internalType": "address",
|
|
21
|
-
"name": "
|
|
16
|
+
"name": "_verifyingAddress",
|
|
22
17
|
"type": "address"
|
|
23
18
|
}
|
|
24
19
|
],
|
|
@@ -46,6 +41,11 @@
|
|
|
46
41
|
"name": "CoverAmountIsZero",
|
|
47
42
|
"type": "error"
|
|
48
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [],
|
|
46
|
+
"name": "CoverAssetMismatch",
|
|
47
|
+
"type": "error"
|
|
48
|
+
},
|
|
49
49
|
{
|
|
50
50
|
"inputs": [],
|
|
51
51
|
"name": "CoverAssetNotSupported",
|
|
@@ -64,17 +64,28 @@
|
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"inputs": [],
|
|
67
|
-
"name": "
|
|
67
|
+
"name": "CoverPeriodTooLong",
|
|
68
68
|
"type": "error"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"inputs": [],
|
|
72
|
-
"name": "
|
|
72
|
+
"name": "CoverPeriodTooShort",
|
|
73
73
|
"type": "error"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"inputs": [
|
|
77
|
-
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "address",
|
|
79
|
+
"name": "to",
|
|
80
|
+
"type": "address"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "uint256",
|
|
84
|
+
"name": "amount",
|
|
85
|
+
"type": "uint256"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "ETHTransferFailed",
|
|
78
89
|
"type": "error"
|
|
79
90
|
},
|
|
80
91
|
{
|
|
@@ -102,6 +113,21 @@
|
|
|
102
113
|
"name": "InvalidPaymentAsset",
|
|
103
114
|
"type": "error"
|
|
104
115
|
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [],
|
|
118
|
+
"name": "InvalidRiConfig",
|
|
119
|
+
"type": "error"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"inputs": [],
|
|
123
|
+
"name": "InvalidSignature",
|
|
124
|
+
"type": "error"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"inputs": [],
|
|
128
|
+
"name": "IpfsMetadataAlreadySet",
|
|
129
|
+
"type": "error"
|
|
130
|
+
},
|
|
105
131
|
{
|
|
106
132
|
"inputs": [
|
|
107
133
|
{
|
|
@@ -113,11 +139,37 @@
|
|
|
113
139
|
"name": "MustBeOriginalCoverId",
|
|
114
140
|
"type": "error"
|
|
115
141
|
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "OnlyAdvisoryBoard",
|
|
145
|
+
"type": "error"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"inputs": [],
|
|
149
|
+
"name": "OnlyMember",
|
|
150
|
+
"type": "error"
|
|
151
|
+
},
|
|
116
152
|
{
|
|
117
153
|
"inputs": [],
|
|
118
154
|
"name": "OnlyOwnerOrApproved",
|
|
119
155
|
"type": "error"
|
|
120
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [
|
|
159
|
+
{
|
|
160
|
+
"internalType": "uint256",
|
|
161
|
+
"name": "currentState",
|
|
162
|
+
"type": "uint256"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "uint256",
|
|
166
|
+
"name": "checks",
|
|
167
|
+
"type": "uint256"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"name": "Paused",
|
|
171
|
+
"type": "error"
|
|
172
|
+
},
|
|
121
173
|
{
|
|
122
174
|
"inputs": [],
|
|
123
175
|
"name": "PriceExceedsMaxPremiumInAsset",
|
|
@@ -135,7 +187,7 @@
|
|
|
135
187
|
},
|
|
136
188
|
{
|
|
137
189
|
"inputs": [],
|
|
138
|
-
"name": "
|
|
190
|
+
"name": "ReentrantCall",
|
|
139
191
|
"type": "error"
|
|
140
192
|
},
|
|
141
193
|
{
|
|
@@ -151,17 +203,28 @@
|
|
|
151
203
|
},
|
|
152
204
|
{
|
|
153
205
|
"inputs": [],
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "error"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"inputs": [],
|
|
159
|
-
"name": "SendingEthToPoolFailed",
|
|
206
|
+
"name": "RiAmountIsZero",
|
|
160
207
|
"type": "error"
|
|
161
208
|
},
|
|
162
209
|
{
|
|
163
|
-
"inputs": [
|
|
164
|
-
|
|
210
|
+
"inputs": [
|
|
211
|
+
{
|
|
212
|
+
"internalType": "address",
|
|
213
|
+
"name": "caller",
|
|
214
|
+
"type": "address"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "callerIndex",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"internalType": "uint256",
|
|
223
|
+
"name": "authorizedBitmap",
|
|
224
|
+
"type": "uint256"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"name": "Unauthorized",
|
|
165
228
|
"type": "error"
|
|
166
229
|
},
|
|
167
230
|
{
|
|
@@ -171,12 +234,12 @@
|
|
|
171
234
|
},
|
|
172
235
|
{
|
|
173
236
|
"inputs": [],
|
|
174
|
-
"name": "
|
|
237
|
+
"name": "UnexpectedRiPremium",
|
|
175
238
|
"type": "error"
|
|
176
239
|
},
|
|
177
240
|
{
|
|
178
241
|
"inputs": [],
|
|
179
|
-
"name": "
|
|
242
|
+
"name": "WrongCoverEditEntrypoint",
|
|
180
243
|
"type": "error"
|
|
181
244
|
},
|
|
182
245
|
{
|
|
@@ -195,72 +258,42 @@
|
|
|
195
258
|
"type": "uint256"
|
|
196
259
|
},
|
|
197
260
|
{
|
|
198
|
-
"indexed":
|
|
261
|
+
"indexed": true,
|
|
199
262
|
"internalType": "uint256",
|
|
200
|
-
"name": "
|
|
263
|
+
"name": "buyerMemberId",
|
|
201
264
|
"type": "uint256"
|
|
202
265
|
},
|
|
203
|
-
{
|
|
204
|
-
"indexed": true,
|
|
205
|
-
"internalType": "address",
|
|
206
|
-
"name": "buyer",
|
|
207
|
-
"type": "address"
|
|
208
|
-
},
|
|
209
266
|
{
|
|
210
267
|
"indexed": false,
|
|
211
|
-
"internalType": "
|
|
212
|
-
"name": "
|
|
213
|
-
"type": "
|
|
268
|
+
"internalType": "uint256",
|
|
269
|
+
"name": "productId",
|
|
270
|
+
"type": "uint256"
|
|
214
271
|
}
|
|
215
272
|
],
|
|
216
273
|
"name": "CoverBought",
|
|
217
274
|
"type": "event"
|
|
218
275
|
},
|
|
219
276
|
{
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
"indexed": true,
|
|
224
|
-
"internalType": "uint256",
|
|
225
|
-
"name": "coverId",
|
|
226
|
-
"type": "uint256"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"indexed": true,
|
|
230
|
-
"internalType": "uint256",
|
|
231
|
-
"name": "productId",
|
|
232
|
-
"type": "uint256"
|
|
233
|
-
},
|
|
277
|
+
"inputs": [],
|
|
278
|
+
"name": "DEFAULT_MIN_PRICE_RATIO",
|
|
279
|
+
"outputs": [
|
|
234
280
|
{
|
|
235
|
-
"indexed": true,
|
|
236
281
|
"internalType": "uint256",
|
|
237
|
-
"name": "
|
|
282
|
+
"name": "",
|
|
238
283
|
"type": "uint256"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"indexed": false,
|
|
242
|
-
"internalType": "address",
|
|
243
|
-
"name": "buyer",
|
|
244
|
-
"type": "address"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"indexed": false,
|
|
248
|
-
"internalType": "string",
|
|
249
|
-
"name": "ipfsMetadata",
|
|
250
|
-
"type": "string"
|
|
251
284
|
}
|
|
252
285
|
],
|
|
253
|
-
"
|
|
254
|
-
"type": "
|
|
286
|
+
"stateMutability": "view",
|
|
287
|
+
"type": "function"
|
|
255
288
|
},
|
|
256
289
|
{
|
|
257
290
|
"inputs": [],
|
|
258
|
-
"name": "
|
|
291
|
+
"name": "DOMAIN_SEPARATOR",
|
|
259
292
|
"outputs": [
|
|
260
293
|
{
|
|
261
|
-
"internalType": "
|
|
294
|
+
"internalType": "bytes32",
|
|
262
295
|
"name": "",
|
|
263
|
-
"type": "
|
|
296
|
+
"type": "bytes32"
|
|
264
297
|
}
|
|
265
298
|
],
|
|
266
299
|
"stateMutability": "view",
|
|
@@ -330,14 +363,101 @@
|
|
|
330
363
|
}
|
|
331
364
|
],
|
|
332
365
|
"name": "burnStake",
|
|
366
|
+
"outputs": [],
|
|
367
|
+
"stateMutability": "nonpayable",
|
|
368
|
+
"type": "function"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"inputs": [
|
|
372
|
+
{
|
|
373
|
+
"components": [
|
|
374
|
+
{
|
|
375
|
+
"internalType": "uint256",
|
|
376
|
+
"name": "coverId",
|
|
377
|
+
"type": "uint256"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"internalType": "address",
|
|
381
|
+
"name": "owner",
|
|
382
|
+
"type": "address"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"internalType": "uint24",
|
|
386
|
+
"name": "productId",
|
|
387
|
+
"type": "uint24"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"internalType": "uint8",
|
|
391
|
+
"name": "coverAsset",
|
|
392
|
+
"type": "uint8"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"internalType": "uint96",
|
|
396
|
+
"name": "amount",
|
|
397
|
+
"type": "uint96"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "uint32",
|
|
401
|
+
"name": "period",
|
|
402
|
+
"type": "uint32"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"internalType": "uint256",
|
|
406
|
+
"name": "maxPremiumInAsset",
|
|
407
|
+
"type": "uint256"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"internalType": "uint8",
|
|
411
|
+
"name": "paymentAsset",
|
|
412
|
+
"type": "uint8"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"internalType": "uint16",
|
|
416
|
+
"name": "commissionRatio",
|
|
417
|
+
"type": "uint16"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"internalType": "address",
|
|
421
|
+
"name": "commissionDestination",
|
|
422
|
+
"type": "address"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"internalType": "string",
|
|
426
|
+
"name": "ipfsData",
|
|
427
|
+
"type": "string"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"internalType": "struct BuyCoverParams",
|
|
431
|
+
"name": "params",
|
|
432
|
+
"type": "tuple"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"components": [
|
|
436
|
+
{
|
|
437
|
+
"internalType": "uint256",
|
|
438
|
+
"name": "poolId",
|
|
439
|
+
"type": "uint256"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"internalType": "uint256",
|
|
443
|
+
"name": "coverAmountInAsset",
|
|
444
|
+
"type": "uint256"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"internalType": "struct PoolAllocationRequest[]",
|
|
448
|
+
"name": "poolAllocationRequests",
|
|
449
|
+
"type": "tuple[]"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"name": "buyCover",
|
|
333
453
|
"outputs": [
|
|
334
454
|
{
|
|
335
|
-
"internalType": "
|
|
336
|
-
"name": "",
|
|
337
|
-
"type": "
|
|
455
|
+
"internalType": "uint256",
|
|
456
|
+
"name": "coverId",
|
|
457
|
+
"type": "uint256"
|
|
338
458
|
}
|
|
339
459
|
],
|
|
340
|
-
"stateMutability": "
|
|
460
|
+
"stateMutability": "payable",
|
|
341
461
|
"type": "function"
|
|
342
462
|
},
|
|
343
463
|
{
|
|
@@ -420,9 +540,36 @@
|
|
|
420
540
|
"internalType": "struct PoolAllocationRequest[]",
|
|
421
541
|
"name": "poolAllocationRequests",
|
|
422
542
|
"type": "tuple[]"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"components": [
|
|
546
|
+
{
|
|
547
|
+
"internalType": "uint256",
|
|
548
|
+
"name": "providerId",
|
|
549
|
+
"type": "uint256"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"internalType": "uint256",
|
|
553
|
+
"name": "amount",
|
|
554
|
+
"type": "uint256"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"internalType": "uint256",
|
|
558
|
+
"name": "premium",
|
|
559
|
+
"type": "uint256"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"internalType": "bytes",
|
|
563
|
+
"name": "signature",
|
|
564
|
+
"type": "bytes"
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"internalType": "struct RiRequest",
|
|
568
|
+
"name": "riRequest",
|
|
569
|
+
"type": "tuple"
|
|
423
570
|
}
|
|
424
571
|
],
|
|
425
|
-
"name": "
|
|
572
|
+
"name": "buyCoverWithRi",
|
|
426
573
|
"outputs": [
|
|
427
574
|
{
|
|
428
575
|
"internalType": "uint256",
|
|
@@ -446,37 +593,30 @@
|
|
|
446
593
|
"stateMutability": "nonpayable",
|
|
447
594
|
"type": "function"
|
|
448
595
|
},
|
|
449
|
-
{
|
|
450
|
-
"inputs": [],
|
|
451
|
-
"name": "changeDependentContractAddress",
|
|
452
|
-
"outputs": [],
|
|
453
|
-
"stateMutability": "nonpayable",
|
|
454
|
-
"type": "function"
|
|
455
|
-
},
|
|
456
596
|
{
|
|
457
597
|
"inputs": [
|
|
458
598
|
{
|
|
459
599
|
"internalType": "address",
|
|
460
|
-
"name": "
|
|
600
|
+
"name": "_stakingNFTDescriptor",
|
|
461
601
|
"type": "address"
|
|
462
602
|
}
|
|
463
603
|
],
|
|
464
|
-
"name": "
|
|
604
|
+
"name": "changeStakingNFTDescriptor",
|
|
465
605
|
"outputs": [],
|
|
466
606
|
"stateMutability": "nonpayable",
|
|
467
607
|
"type": "function"
|
|
468
608
|
},
|
|
469
609
|
{
|
|
470
|
-
"inputs": [
|
|
610
|
+
"inputs": [],
|
|
611
|
+
"name": "claims",
|
|
612
|
+
"outputs": [
|
|
471
613
|
{
|
|
472
614
|
"internalType": "address",
|
|
473
|
-
"name": "
|
|
615
|
+
"name": "",
|
|
474
616
|
"type": "address"
|
|
475
617
|
}
|
|
476
618
|
],
|
|
477
|
-
"
|
|
478
|
-
"outputs": [],
|
|
479
|
-
"stateMutability": "nonpayable",
|
|
619
|
+
"stateMutability": "view",
|
|
480
620
|
"type": "function"
|
|
481
621
|
},
|
|
482
622
|
{
|
|
@@ -492,6 +632,19 @@
|
|
|
492
632
|
"stateMutability": "view",
|
|
493
633
|
"type": "function"
|
|
494
634
|
},
|
|
635
|
+
{
|
|
636
|
+
"inputs": [],
|
|
637
|
+
"name": "coverProducts",
|
|
638
|
+
"outputs": [
|
|
639
|
+
{
|
|
640
|
+
"internalType": "contract ICoverProducts",
|
|
641
|
+
"name": "",
|
|
642
|
+
"type": "address"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"stateMutability": "view",
|
|
646
|
+
"type": "function"
|
|
647
|
+
},
|
|
495
648
|
{
|
|
496
649
|
"inputs": [
|
|
497
650
|
{
|
|
@@ -755,6 +908,103 @@
|
|
|
755
908
|
"stateMutability": "view",
|
|
756
909
|
"type": "function"
|
|
757
910
|
},
|
|
911
|
+
{
|
|
912
|
+
"inputs": [
|
|
913
|
+
{
|
|
914
|
+
"internalType": "uint256",
|
|
915
|
+
"name": "coverId",
|
|
916
|
+
"type": "uint256"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"name": "getCoverDataWithRi",
|
|
920
|
+
"outputs": [
|
|
921
|
+
{
|
|
922
|
+
"components": [
|
|
923
|
+
{
|
|
924
|
+
"internalType": "uint24",
|
|
925
|
+
"name": "productId",
|
|
926
|
+
"type": "uint24"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"internalType": "uint8",
|
|
930
|
+
"name": "coverAsset",
|
|
931
|
+
"type": "uint8"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"internalType": "uint96",
|
|
935
|
+
"name": "amount",
|
|
936
|
+
"type": "uint96"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"internalType": "uint32",
|
|
940
|
+
"name": "start",
|
|
941
|
+
"type": "uint32"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"internalType": "uint32",
|
|
945
|
+
"name": "period",
|
|
946
|
+
"type": "uint32"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"internalType": "uint32",
|
|
950
|
+
"name": "gracePeriod",
|
|
951
|
+
"type": "uint32"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"internalType": "uint16",
|
|
955
|
+
"name": "rewardsRatio",
|
|
956
|
+
"type": "uint16"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"internalType": "uint16",
|
|
960
|
+
"name": "capacityRatio",
|
|
961
|
+
"type": "uint16"
|
|
962
|
+
}
|
|
963
|
+
],
|
|
964
|
+
"internalType": "struct CoverData",
|
|
965
|
+
"name": "",
|
|
966
|
+
"type": "tuple"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"components": [
|
|
970
|
+
{
|
|
971
|
+
"internalType": "uint24",
|
|
972
|
+
"name": "providerId",
|
|
973
|
+
"type": "uint24"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"internalType": "uint96",
|
|
977
|
+
"name": "amount",
|
|
978
|
+
"type": "uint96"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"internalType": "struct Ri",
|
|
982
|
+
"name": "",
|
|
983
|
+
"type": "tuple"
|
|
984
|
+
}
|
|
985
|
+
],
|
|
986
|
+
"stateMutability": "view",
|
|
987
|
+
"type": "function"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"inputs": [
|
|
991
|
+
{
|
|
992
|
+
"internalType": "uint256",
|
|
993
|
+
"name": "coverId",
|
|
994
|
+
"type": "uint256"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"name": "getCoverMetadata",
|
|
998
|
+
"outputs": [
|
|
999
|
+
{
|
|
1000
|
+
"internalType": "string",
|
|
1001
|
+
"name": "",
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
"stateMutability": "view",
|
|
1006
|
+
"type": "function"
|
|
1007
|
+
},
|
|
758
1008
|
{
|
|
759
1009
|
"inputs": [
|
|
760
1010
|
{
|
|
@@ -786,6 +1036,37 @@
|
|
|
786
1036
|
"stateMutability": "view",
|
|
787
1037
|
"type": "function"
|
|
788
1038
|
},
|
|
1039
|
+
{
|
|
1040
|
+
"inputs": [
|
|
1041
|
+
{
|
|
1042
|
+
"internalType": "uint256",
|
|
1043
|
+
"name": "coverId",
|
|
1044
|
+
"type": "uint256"
|
|
1045
|
+
}
|
|
1046
|
+
],
|
|
1047
|
+
"name": "getCoverRi",
|
|
1048
|
+
"outputs": [
|
|
1049
|
+
{
|
|
1050
|
+
"components": [
|
|
1051
|
+
{
|
|
1052
|
+
"internalType": "uint24",
|
|
1053
|
+
"name": "providerId",
|
|
1054
|
+
"type": "uint24"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"internalType": "uint96",
|
|
1058
|
+
"name": "amount",
|
|
1059
|
+
"type": "uint96"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"internalType": "struct Ri",
|
|
1063
|
+
"name": "",
|
|
1064
|
+
"type": "tuple"
|
|
1065
|
+
}
|
|
1066
|
+
],
|
|
1067
|
+
"stateMutability": "view",
|
|
1068
|
+
"type": "function"
|
|
1069
|
+
},
|
|
789
1070
|
{
|
|
790
1071
|
"inputs": [],
|
|
791
1072
|
"name": "getDefaultMinPriceRatio",
|
|
@@ -948,28 +1229,28 @@
|
|
|
948
1229
|
{
|
|
949
1230
|
"inputs": [
|
|
950
1231
|
{
|
|
951
|
-
"internalType": "
|
|
952
|
-
"name": "",
|
|
953
|
-
"type": "
|
|
1232
|
+
"internalType": "bytes[]",
|
|
1233
|
+
"name": "data",
|
|
1234
|
+
"type": "bytes[]"
|
|
954
1235
|
}
|
|
955
1236
|
],
|
|
956
|
-
"name": "
|
|
1237
|
+
"name": "multicall",
|
|
957
1238
|
"outputs": [
|
|
958
1239
|
{
|
|
959
|
-
"internalType": "
|
|
960
|
-
"name": "",
|
|
961
|
-
"type": "
|
|
1240
|
+
"internalType": "bytes[]",
|
|
1241
|
+
"name": "results",
|
|
1242
|
+
"type": "bytes[]"
|
|
962
1243
|
}
|
|
963
1244
|
],
|
|
964
|
-
"stateMutability": "
|
|
1245
|
+
"stateMutability": "nonpayable",
|
|
965
1246
|
"type": "function"
|
|
966
1247
|
},
|
|
967
1248
|
{
|
|
968
1249
|
"inputs": [],
|
|
969
|
-
"name": "
|
|
1250
|
+
"name": "pool",
|
|
970
1251
|
"outputs": [
|
|
971
1252
|
{
|
|
972
|
-
"internalType": "contract
|
|
1253
|
+
"internalType": "contract IPool",
|
|
973
1254
|
"name": "",
|
|
974
1255
|
"type": "address"
|
|
975
1256
|
}
|
|
@@ -983,9 +1264,14 @@
|
|
|
983
1264
|
"internalType": "uint256[]",
|
|
984
1265
|
"name": "coverIds",
|
|
985
1266
|
"type": "uint256[]"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"internalType": "string[]",
|
|
1270
|
+
"name": "ipfsMetadata",
|
|
1271
|
+
"type": "string[]"
|
|
986
1272
|
}
|
|
987
1273
|
],
|
|
988
|
-
"name": "
|
|
1274
|
+
"name": "populateIpfsMetadata",
|
|
989
1275
|
"outputs": [],
|
|
990
1276
|
"stateMutability": "nonpayable",
|
|
991
1277
|
"type": "function"
|
|
@@ -993,31 +1279,69 @@
|
|
|
993
1279
|
{
|
|
994
1280
|
"inputs": [
|
|
995
1281
|
{
|
|
996
|
-
"internalType": "
|
|
997
|
-
"name": "
|
|
998
|
-
"type": "
|
|
1282
|
+
"internalType": "uint256",
|
|
1283
|
+
"name": "coverAsset",
|
|
1284
|
+
"type": "uint256"
|
|
999
1285
|
}
|
|
1000
1286
|
],
|
|
1001
|
-
"name": "
|
|
1287
|
+
"name": "recalculateActiveCoverInAsset",
|
|
1288
|
+
"outputs": [],
|
|
1289
|
+
"stateMutability": "nonpayable",
|
|
1290
|
+
"type": "function"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"inputs": [],
|
|
1294
|
+
"name": "registry",
|
|
1002
1295
|
"outputs": [
|
|
1003
1296
|
{
|
|
1004
|
-
"internalType": "
|
|
1005
|
-
"name": "
|
|
1006
|
-
"type": "
|
|
1297
|
+
"internalType": "contract IRegistry",
|
|
1298
|
+
"name": "",
|
|
1299
|
+
"type": "address"
|
|
1007
1300
|
}
|
|
1008
1301
|
],
|
|
1009
|
-
"stateMutability": "
|
|
1302
|
+
"stateMutability": "view",
|
|
1303
|
+
"type": "function"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"inputs": [],
|
|
1307
|
+
"name": "riSigner",
|
|
1308
|
+
"outputs": [
|
|
1309
|
+
{
|
|
1310
|
+
"internalType": "address",
|
|
1311
|
+
"name": "",
|
|
1312
|
+
"type": "address"
|
|
1313
|
+
}
|
|
1314
|
+
],
|
|
1315
|
+
"stateMutability": "view",
|
|
1010
1316
|
"type": "function"
|
|
1011
1317
|
},
|
|
1012
1318
|
{
|
|
1013
1319
|
"inputs": [
|
|
1014
1320
|
{
|
|
1015
1321
|
"internalType": "uint256",
|
|
1016
|
-
"name": "
|
|
1322
|
+
"name": "providerId",
|
|
1017
1323
|
"type": "uint256"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"internalType": "address",
|
|
1327
|
+
"name": "premiumDestination",
|
|
1328
|
+
"type": "address"
|
|
1018
1329
|
}
|
|
1019
1330
|
],
|
|
1020
|
-
"name": "
|
|
1331
|
+
"name": "setRiConfig",
|
|
1332
|
+
"outputs": [],
|
|
1333
|
+
"stateMutability": "nonpayable",
|
|
1334
|
+
"type": "function"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"inputs": [
|
|
1338
|
+
{
|
|
1339
|
+
"internalType": "address",
|
|
1340
|
+
"name": "_riSigner",
|
|
1341
|
+
"type": "address"
|
|
1342
|
+
}
|
|
1343
|
+
],
|
|
1344
|
+
"name": "setRiSigner",
|
|
1021
1345
|
"outputs": [],
|
|
1022
1346
|
"stateMutability": "nonpayable",
|
|
1023
1347
|
"type": "function"
|
|
@@ -1059,7 +1383,7 @@
|
|
|
1059
1383
|
"name": "stakingPoolFactory",
|
|
1060
1384
|
"outputs": [
|
|
1061
1385
|
{
|
|
1062
|
-
"internalType": "
|
|
1386
|
+
"internalType": "address",
|
|
1063
1387
|
"name": "",
|
|
1064
1388
|
"type": "address"
|
|
1065
1389
|
}
|
|
@@ -1080,6 +1404,19 @@
|
|
|
1080
1404
|
"stateMutability": "view",
|
|
1081
1405
|
"type": "function"
|
|
1082
1406
|
},
|
|
1407
|
+
{
|
|
1408
|
+
"inputs": [],
|
|
1409
|
+
"name": "tokenController",
|
|
1410
|
+
"outputs": [
|
|
1411
|
+
{
|
|
1412
|
+
"internalType": "contract ITokenController",
|
|
1413
|
+
"name": "",
|
|
1414
|
+
"type": "address"
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
"stateMutability": "view",
|
|
1418
|
+
"type": "function"
|
|
1419
|
+
},
|
|
1083
1420
|
{
|
|
1084
1421
|
"inputs": [
|
|
1085
1422
|
{
|