@nexusmutual/sdk 1.12.0-rc.3 → 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 +12360 -12932
- package/dist/index.d.ts +12360 -12932
- package/dist/index.js +65 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
5
|
"internalType": "address",
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "_registry",
|
|
7
7
|
"type": "address"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"inputs": [],
|
|
15
|
-
"name": "
|
|
15
|
+
"name": "AlreadyInitialized",
|
|
16
16
|
"type": "error"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"inputs": [],
|
|
20
|
-
"name": "
|
|
20
|
+
"name": "AssessmentDepositNotExact",
|
|
21
21
|
"type": "error"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"inputs": [],
|
|
25
|
-
"name": "
|
|
25
|
+
"name": "AssessmentDepositTransferToPoolFailed",
|
|
26
26
|
"type": "error"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"inputs": [],
|
|
35
|
-
"name": "
|
|
35
|
+
"name": "ClaimAlreadyPaidOut",
|
|
36
36
|
"type": "error"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"name": "ClaimIsBeingAssessed",
|
|
41
41
|
"type": "error"
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"name": "ClaimNotADraw",
|
|
46
|
+
"type": "error"
|
|
47
|
+
},
|
|
43
48
|
{
|
|
44
49
|
"inputs": [],
|
|
45
50
|
"name": "ClaimNotAccepted",
|
|
@@ -47,7 +52,7 @@
|
|
|
47
52
|
},
|
|
48
53
|
{
|
|
49
54
|
"inputs": [],
|
|
50
|
-
"name": "
|
|
55
|
+
"name": "ClaimNotRedeemable",
|
|
51
56
|
"type": "error"
|
|
52
57
|
},
|
|
53
58
|
{
|
|
@@ -55,11 +60,21 @@
|
|
|
55
60
|
"name": "CoveredAmountExceeded",
|
|
56
61
|
"type": "error"
|
|
57
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [],
|
|
65
|
+
"name": "DepositAlreadyRetrieved",
|
|
66
|
+
"type": "error"
|
|
67
|
+
},
|
|
58
68
|
{
|
|
59
69
|
"inputs": [],
|
|
60
70
|
"name": "GracePeriodPassed",
|
|
61
71
|
"type": "error"
|
|
62
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [],
|
|
75
|
+
"name": "InvalidClaimId",
|
|
76
|
+
"type": "error"
|
|
77
|
+
},
|
|
63
78
|
{
|
|
64
79
|
"inputs": [],
|
|
65
80
|
"name": "InvalidClaimMethod",
|
|
@@ -67,12 +82,28 @@
|
|
|
67
82
|
},
|
|
68
83
|
{
|
|
69
84
|
"inputs": [],
|
|
70
|
-
"name": "
|
|
85
|
+
"name": "NotCoverOwner",
|
|
71
86
|
"type": "error"
|
|
72
87
|
},
|
|
73
88
|
{
|
|
74
89
|
"inputs": [],
|
|
75
|
-
"name": "
|
|
90
|
+
"name": "OnlyMember",
|
|
91
|
+
"type": "error"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "uint256",
|
|
97
|
+
"name": "currentState",
|
|
98
|
+
"type": "uint256"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"internalType": "uint256",
|
|
102
|
+
"name": "checks",
|
|
103
|
+
"type": "uint256"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"name": "Paused",
|
|
76
107
|
"type": "error"
|
|
77
108
|
},
|
|
78
109
|
{
|
|
@@ -81,10 +112,45 @@
|
|
|
81
112
|
"type": "error"
|
|
82
113
|
},
|
|
83
114
|
{
|
|
84
|
-
"inputs": [
|
|
85
|
-
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "address",
|
|
118
|
+
"name": "caller",
|
|
119
|
+
"type": "address"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"internalType": "uint256",
|
|
123
|
+
"name": "callerIndex",
|
|
124
|
+
"type": "uint256"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "authorizedBitmap",
|
|
129
|
+
"type": "uint256"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"name": "Unauthorized",
|
|
86
133
|
"type": "error"
|
|
87
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"anonymous": false,
|
|
137
|
+
"inputs": [
|
|
138
|
+
{
|
|
139
|
+
"indexed": true,
|
|
140
|
+
"internalType": "uint256",
|
|
141
|
+
"name": "claimId",
|
|
142
|
+
"type": "uint256"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"indexed": true,
|
|
146
|
+
"internalType": "address",
|
|
147
|
+
"name": "user",
|
|
148
|
+
"type": "address"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"name": "ClaimDepositRetrieved",
|
|
152
|
+
"type": "event"
|
|
153
|
+
},
|
|
88
154
|
{
|
|
89
155
|
"anonymous": false,
|
|
90
156
|
"inputs": [
|
|
@@ -158,9 +224,9 @@
|
|
|
158
224
|
},
|
|
159
225
|
{
|
|
160
226
|
"indexed": false,
|
|
161
|
-
"internalType": "
|
|
227
|
+
"internalType": "bytes32",
|
|
162
228
|
"name": "ipfsMetadata",
|
|
163
|
-
"type": "
|
|
229
|
+
"type": "bytes32"
|
|
164
230
|
}
|
|
165
231
|
],
|
|
166
232
|
"name": "MetadataSubmitted",
|
|
@@ -168,7 +234,7 @@
|
|
|
168
234
|
},
|
|
169
235
|
{
|
|
170
236
|
"inputs": [],
|
|
171
|
-
"name": "
|
|
237
|
+
"name": "CLAIM_DEPOSIT_IN_ETH",
|
|
172
238
|
"outputs": [
|
|
173
239
|
{
|
|
174
240
|
"internalType": "uint256",
|
|
@@ -181,51 +247,12 @@
|
|
|
181
247
|
},
|
|
182
248
|
{
|
|
183
249
|
"inputs": [],
|
|
184
|
-
"name": "
|
|
250
|
+
"name": "assessments",
|
|
185
251
|
"outputs": [
|
|
186
252
|
{
|
|
187
|
-
"internalType": "
|
|
253
|
+
"internalType": "contract IAssessments",
|
|
188
254
|
"name": "",
|
|
189
|
-
"type": "
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"stateMutability": "view",
|
|
193
|
-
"type": "function"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"inputs": [],
|
|
197
|
-
"name": "MIN_ASSESSMENT_DEPOSIT_RATIO",
|
|
198
|
-
"outputs": [
|
|
199
|
-
{
|
|
200
|
-
"internalType": "uint256",
|
|
201
|
-
"name": "",
|
|
202
|
-
"type": "uint256"
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
"stateMutability": "view",
|
|
206
|
-
"type": "function"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"inputs": [],
|
|
210
|
-
"name": "ONE_NXM",
|
|
211
|
-
"outputs": [
|
|
212
|
-
{
|
|
213
|
-
"internalType": "uint256",
|
|
214
|
-
"name": "",
|
|
215
|
-
"type": "uint256"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"stateMutability": "view",
|
|
219
|
-
"type": "function"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"inputs": [],
|
|
223
|
-
"name": "PAYOUT_REDEMPTION_PERIOD",
|
|
224
|
-
"outputs": [
|
|
225
|
-
{
|
|
226
|
-
"internalType": "uint256",
|
|
227
|
-
"name": "",
|
|
228
|
-
"type": "uint256"
|
|
255
|
+
"type": "address"
|
|
229
256
|
}
|
|
230
257
|
],
|
|
231
258
|
"stateMutability": "view",
|
|
@@ -233,12 +260,12 @@
|
|
|
233
260
|
},
|
|
234
261
|
{
|
|
235
262
|
"inputs": [],
|
|
236
|
-
"name": "
|
|
263
|
+
"name": "cover",
|
|
237
264
|
"outputs": [
|
|
238
265
|
{
|
|
239
|
-
"internalType": "
|
|
266
|
+
"internalType": "contract ICover",
|
|
240
267
|
"name": "",
|
|
241
|
-
"type": "
|
|
268
|
+
"type": "address"
|
|
242
269
|
}
|
|
243
270
|
],
|
|
244
271
|
"stateMutability": "view",
|
|
@@ -246,87 +273,23 @@
|
|
|
246
273
|
},
|
|
247
274
|
{
|
|
248
275
|
"inputs": [],
|
|
249
|
-
"name": "
|
|
276
|
+
"name": "coverNFT",
|
|
250
277
|
"outputs": [
|
|
251
278
|
{
|
|
252
|
-
"internalType": "
|
|
279
|
+
"internalType": "contract ICoverNFT",
|
|
253
280
|
"name": "",
|
|
254
|
-
"type": "uint256"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"stateMutability": "view",
|
|
258
|
-
"type": "function"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"inputs": [],
|
|
262
|
-
"name": "changeDependentContractAddress",
|
|
263
|
-
"outputs": [],
|
|
264
|
-
"stateMutability": "nonpayable",
|
|
265
|
-
"type": "function"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"inputs": [
|
|
269
|
-
{
|
|
270
|
-
"internalType": "address",
|
|
271
|
-
"name": "masterAddress",
|
|
272
281
|
"type": "address"
|
|
273
282
|
}
|
|
274
283
|
],
|
|
275
|
-
"name": "changeMasterAddress",
|
|
276
|
-
"outputs": [],
|
|
277
|
-
"stateMutability": "nonpayable",
|
|
278
|
-
"type": "function"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"inputs": [
|
|
282
|
-
{
|
|
283
|
-
"internalType": "uint256",
|
|
284
|
-
"name": "",
|
|
285
|
-
"type": "uint256"
|
|
286
|
-
}
|
|
287
|
-
],
|
|
288
|
-
"name": "claims",
|
|
289
|
-
"outputs": [
|
|
290
|
-
{
|
|
291
|
-
"internalType": "uint80",
|
|
292
|
-
"name": "assessmentId",
|
|
293
|
-
"type": "uint80"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"internalType": "uint32",
|
|
297
|
-
"name": "coverId",
|
|
298
|
-
"type": "uint32"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"internalType": "uint16",
|
|
302
|
-
"name": "segmentId",
|
|
303
|
-
"type": "uint16"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"internalType": "uint96",
|
|
307
|
-
"name": "amount",
|
|
308
|
-
"type": "uint96"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"internalType": "uint8",
|
|
312
|
-
"name": "coverAsset",
|
|
313
|
-
"type": "uint8"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"internalType": "bool",
|
|
317
|
-
"name": "payoutRedeemed",
|
|
318
|
-
"type": "bool"
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
284
|
"stateMutability": "view",
|
|
322
285
|
"type": "function"
|
|
323
286
|
},
|
|
324
287
|
{
|
|
325
288
|
"inputs": [],
|
|
326
|
-
"name": "
|
|
289
|
+
"name": "coverProducts",
|
|
327
290
|
"outputs": [
|
|
328
291
|
{
|
|
329
|
-
"internalType": "contract
|
|
292
|
+
"internalType": "contract ICoverProducts",
|
|
330
293
|
"name": "",
|
|
331
294
|
"type": "address"
|
|
332
295
|
}
|
|
@@ -338,130 +301,215 @@
|
|
|
338
301
|
"inputs": [
|
|
339
302
|
{
|
|
340
303
|
"internalType": "uint256",
|
|
341
|
-
"name": "
|
|
342
|
-
"type": "uint256"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"internalType": "uint256",
|
|
346
|
-
"name": "coverPeriod",
|
|
347
|
-
"type": "uint256"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"internalType": "uint256",
|
|
351
|
-
"name": "coverAsset",
|
|
304
|
+
"name": "claimId",
|
|
352
305
|
"type": "uint256"
|
|
353
306
|
}
|
|
354
307
|
],
|
|
355
|
-
"name": "
|
|
308
|
+
"name": "getClaim",
|
|
356
309
|
"outputs": [
|
|
357
310
|
{
|
|
358
|
-
"
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
311
|
+
"components": [
|
|
312
|
+
{
|
|
313
|
+
"internalType": "uint32",
|
|
314
|
+
"name": "coverId",
|
|
315
|
+
"type": "uint32"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"internalType": "uint96",
|
|
319
|
+
"name": "amount",
|
|
320
|
+
"type": "uint96"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"internalType": "uint8",
|
|
324
|
+
"name": "coverAsset",
|
|
325
|
+
"type": "uint8"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"internalType": "uint32",
|
|
329
|
+
"name": "payoutRedemptionPeriod",
|
|
330
|
+
"type": "uint32"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"internalType": "bool",
|
|
334
|
+
"name": "payoutRedeemed",
|
|
335
|
+
"type": "bool"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bool",
|
|
339
|
+
"name": "depositRetrieved",
|
|
340
|
+
"type": "bool"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"internalType": "struct IClaims.Claim",
|
|
364
344
|
"name": "",
|
|
365
|
-
"type": "
|
|
345
|
+
"type": "tuple"
|
|
366
346
|
}
|
|
367
347
|
],
|
|
368
348
|
"stateMutability": "view",
|
|
369
349
|
"type": "function"
|
|
370
350
|
},
|
|
371
351
|
{
|
|
372
|
-
"inputs": [
|
|
373
|
-
"name": "getClaimsCount",
|
|
374
|
-
"outputs": [
|
|
352
|
+
"inputs": [
|
|
375
353
|
{
|
|
376
354
|
"internalType": "uint256",
|
|
377
|
-
"name": "",
|
|
355
|
+
"name": "claimId",
|
|
378
356
|
"type": "uint256"
|
|
379
357
|
}
|
|
380
358
|
],
|
|
381
|
-
"
|
|
382
|
-
"type": "function"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"inputs": [
|
|
386
|
-
{
|
|
387
|
-
"internalType": "uint256[]",
|
|
388
|
-
"name": "ids",
|
|
389
|
-
"type": "uint256[]"
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"name": "getClaimsToDisplay",
|
|
359
|
+
"name": "getClaimDetails",
|
|
393
360
|
"outputs": [
|
|
394
361
|
{
|
|
395
362
|
"components": [
|
|
396
363
|
{
|
|
397
364
|
"internalType": "uint256",
|
|
398
|
-
"name": "
|
|
365
|
+
"name": "claimId",
|
|
399
366
|
"type": "uint256"
|
|
400
367
|
},
|
|
401
368
|
{
|
|
402
|
-
"
|
|
403
|
-
|
|
404
|
-
|
|
369
|
+
"components": [
|
|
370
|
+
{
|
|
371
|
+
"internalType": "uint32",
|
|
372
|
+
"name": "coverId",
|
|
373
|
+
"type": "uint32"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"internalType": "uint96",
|
|
377
|
+
"name": "amount",
|
|
378
|
+
"type": "uint96"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"internalType": "uint8",
|
|
382
|
+
"name": "coverAsset",
|
|
383
|
+
"type": "uint8"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"internalType": "uint32",
|
|
387
|
+
"name": "payoutRedemptionPeriod",
|
|
388
|
+
"type": "uint32"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"internalType": "bool",
|
|
392
|
+
"name": "payoutRedeemed",
|
|
393
|
+
"type": "bool"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"internalType": "bool",
|
|
397
|
+
"name": "depositRetrieved",
|
|
398
|
+
"type": "bool"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"internalType": "struct IClaims.Claim",
|
|
402
|
+
"name": "claim",
|
|
403
|
+
"type": "tuple"
|
|
405
404
|
},
|
|
406
405
|
{
|
|
407
|
-
"
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
"components": [
|
|
407
|
+
{
|
|
408
|
+
"internalType": "uint24",
|
|
409
|
+
"name": "productId",
|
|
410
|
+
"type": "uint24"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"internalType": "uint8",
|
|
414
|
+
"name": "coverAsset",
|
|
415
|
+
"type": "uint8"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"internalType": "uint96",
|
|
419
|
+
"name": "amount",
|
|
420
|
+
"type": "uint96"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"internalType": "uint32",
|
|
424
|
+
"name": "start",
|
|
425
|
+
"type": "uint32"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"internalType": "uint32",
|
|
429
|
+
"name": "period",
|
|
430
|
+
"type": "uint32"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"internalType": "uint32",
|
|
434
|
+
"name": "gracePeriod",
|
|
435
|
+
"type": "uint32"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"internalType": "uint16",
|
|
439
|
+
"name": "rewardsRatio",
|
|
440
|
+
"type": "uint16"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"internalType": "uint16",
|
|
444
|
+
"name": "capacityRatio",
|
|
445
|
+
"type": "uint16"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"internalType": "struct CoverData",
|
|
449
|
+
"name": "cover",
|
|
450
|
+
"type": "tuple"
|
|
410
451
|
},
|
|
411
452
|
{
|
|
412
|
-
"
|
|
413
|
-
|
|
414
|
-
|
|
453
|
+
"components": [
|
|
454
|
+
{
|
|
455
|
+
"internalType": "uint16",
|
|
456
|
+
"name": "assessingGroupId",
|
|
457
|
+
"type": "uint16"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"internalType": "uint32",
|
|
461
|
+
"name": "cooldownPeriod",
|
|
462
|
+
"type": "uint32"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"internalType": "uint32",
|
|
466
|
+
"name": "start",
|
|
467
|
+
"type": "uint32"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"internalType": "uint32",
|
|
471
|
+
"name": "votingEnd",
|
|
472
|
+
"type": "uint32"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"internalType": "uint8",
|
|
476
|
+
"name": "acceptVotes",
|
|
477
|
+
"type": "uint8"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"internalType": "uint8",
|
|
481
|
+
"name": "denyVotes",
|
|
482
|
+
"type": "uint8"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"internalType": "struct Assessment",
|
|
486
|
+
"name": "assessment",
|
|
487
|
+
"type": "tuple"
|
|
415
488
|
},
|
|
416
489
|
{
|
|
417
|
-
"internalType": "
|
|
418
|
-
"name": "
|
|
419
|
-
"type": "
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"internalType": "string",
|
|
423
|
-
"name": "assetSymbol",
|
|
424
|
-
"type": "string"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"internalType": "uint256",
|
|
428
|
-
"name": "assetIndex",
|
|
429
|
-
"type": "uint256"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"internalType": "uint256",
|
|
433
|
-
"name": "coverStart",
|
|
434
|
-
"type": "uint256"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"internalType": "uint256",
|
|
438
|
-
"name": "coverEnd",
|
|
439
|
-
"type": "uint256"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"internalType": "uint256",
|
|
443
|
-
"name": "pollStart",
|
|
444
|
-
"type": "uint256"
|
|
490
|
+
"internalType": "enum AssessmentStatus",
|
|
491
|
+
"name": "status",
|
|
492
|
+
"type": "uint8"
|
|
445
493
|
},
|
|
446
494
|
{
|
|
447
|
-
"internalType": "
|
|
448
|
-
"name": "
|
|
449
|
-
"type": "
|
|
495
|
+
"internalType": "enum AssessmentOutcome",
|
|
496
|
+
"name": "outcome",
|
|
497
|
+
"type": "uint8"
|
|
450
498
|
},
|
|
451
499
|
{
|
|
452
|
-
"internalType": "
|
|
453
|
-
"name": "
|
|
454
|
-
"type": "
|
|
500
|
+
"internalType": "bool",
|
|
501
|
+
"name": "redeemable",
|
|
502
|
+
"type": "bool"
|
|
455
503
|
},
|
|
456
504
|
{
|
|
457
|
-
"internalType": "
|
|
458
|
-
"name": "
|
|
459
|
-
"type": "
|
|
505
|
+
"internalType": "bytes32",
|
|
506
|
+
"name": "ipfsMetadata",
|
|
507
|
+
"type": "bytes32"
|
|
460
508
|
}
|
|
461
509
|
],
|
|
462
|
-
"internalType": "struct
|
|
510
|
+
"internalType": "struct IClaims.ClaimDetails",
|
|
463
511
|
"name": "",
|
|
464
|
-
"type": "tuple
|
|
512
|
+
"type": "tuple"
|
|
465
513
|
}
|
|
466
514
|
],
|
|
467
515
|
"stateMutability": "view",
|
|
@@ -469,7 +517,7 @@
|
|
|
469
517
|
},
|
|
470
518
|
{
|
|
471
519
|
"inputs": [],
|
|
472
|
-
"name": "
|
|
520
|
+
"name": "getClaimsCount",
|
|
473
521
|
"outputs": [
|
|
474
522
|
{
|
|
475
523
|
"internalType": "uint256",
|
|
@@ -477,60 +525,66 @@
|
|
|
477
525
|
"type": "uint256"
|
|
478
526
|
}
|
|
479
527
|
],
|
|
480
|
-
"stateMutability": "
|
|
528
|
+
"stateMutability": "view",
|
|
481
529
|
"type": "function"
|
|
482
530
|
},
|
|
483
531
|
{
|
|
484
|
-
"inputs": [
|
|
485
|
-
"name": "getMinAssessmentDepositRatio",
|
|
486
|
-
"outputs": [
|
|
532
|
+
"inputs": [
|
|
487
533
|
{
|
|
488
534
|
"internalType": "uint256",
|
|
489
|
-
"name": "",
|
|
535
|
+
"name": "memberId",
|
|
490
536
|
"type": "uint256"
|
|
491
537
|
}
|
|
492
538
|
],
|
|
493
|
-
"
|
|
494
|
-
"type": "function"
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"inputs": [],
|
|
498
|
-
"name": "getPayoutRedemptionPeriod",
|
|
539
|
+
"name": "getMemberClaims",
|
|
499
540
|
"outputs": [
|
|
500
541
|
{
|
|
501
|
-
"internalType": "uint256",
|
|
542
|
+
"internalType": "uint256[]",
|
|
502
543
|
"name": "",
|
|
503
|
-
"type": "uint256"
|
|
544
|
+
"type": "uint256[]"
|
|
504
545
|
}
|
|
505
546
|
],
|
|
506
|
-
"stateMutability": "
|
|
547
|
+
"stateMutability": "view",
|
|
507
548
|
"type": "function"
|
|
508
549
|
},
|
|
509
550
|
{
|
|
510
|
-
"inputs": [
|
|
511
|
-
"name": "getRewardRatio",
|
|
512
|
-
"outputs": [
|
|
551
|
+
"inputs": [
|
|
513
552
|
{
|
|
514
553
|
"internalType": "uint256",
|
|
515
|
-
"name": "",
|
|
554
|
+
"name": "lastClaimId",
|
|
516
555
|
"type": "uint256"
|
|
517
556
|
}
|
|
518
557
|
],
|
|
519
|
-
"
|
|
558
|
+
"name": "initialize",
|
|
559
|
+
"outputs": [],
|
|
560
|
+
"stateMutability": "nonpayable",
|
|
520
561
|
"type": "function"
|
|
521
562
|
},
|
|
522
563
|
{
|
|
523
564
|
"inputs": [
|
|
524
565
|
{
|
|
525
566
|
"internalType": "uint256",
|
|
526
|
-
"name": "",
|
|
567
|
+
"name": "coverId",
|
|
568
|
+
"type": "uint256"
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"name": "lastClaimSubmissionOnCover",
|
|
572
|
+
"outputs": [
|
|
573
|
+
{
|
|
574
|
+
"internalType": "uint256",
|
|
575
|
+
"name": "claimId",
|
|
527
576
|
"type": "uint256"
|
|
528
577
|
}
|
|
529
578
|
],
|
|
530
|
-
"
|
|
579
|
+
"stateMutability": "view",
|
|
580
|
+
"type": "function"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"inputs": [],
|
|
584
|
+
"name": "pool",
|
|
531
585
|
"outputs": [
|
|
532
586
|
{
|
|
533
|
-
"internalType": "
|
|
587
|
+
"internalType": "contract IPool",
|
|
534
588
|
"name": "",
|
|
535
589
|
"type": "address"
|
|
536
590
|
}
|
|
@@ -539,35 +593,37 @@
|
|
|
539
593
|
"type": "function"
|
|
540
594
|
},
|
|
541
595
|
{
|
|
542
|
-
"inputs": [
|
|
596
|
+
"inputs": [],
|
|
597
|
+
"name": "ramm",
|
|
598
|
+
"outputs": [
|
|
543
599
|
{
|
|
544
|
-
"internalType": "
|
|
600
|
+
"internalType": "contract IRamm",
|
|
545
601
|
"name": "",
|
|
546
|
-
"type": "
|
|
602
|
+
"type": "address"
|
|
547
603
|
}
|
|
548
604
|
],
|
|
549
|
-
"
|
|
550
|
-
"
|
|
605
|
+
"stateMutability": "view",
|
|
606
|
+
"type": "function"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"inputs": [
|
|
551
610
|
{
|
|
552
|
-
"internalType": "
|
|
611
|
+
"internalType": "uint256",
|
|
553
612
|
"name": "claimId",
|
|
554
|
-
"type": "
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"internalType": "bool",
|
|
558
|
-
"name": "exists",
|
|
559
|
-
"type": "bool"
|
|
613
|
+
"type": "uint256"
|
|
560
614
|
}
|
|
561
615
|
],
|
|
562
|
-
"
|
|
616
|
+
"name": "redeemClaimPayout",
|
|
617
|
+
"outputs": [],
|
|
618
|
+
"stateMutability": "nonpayable",
|
|
563
619
|
"type": "function"
|
|
564
620
|
},
|
|
565
621
|
{
|
|
566
622
|
"inputs": [],
|
|
567
|
-
"name": "
|
|
623
|
+
"name": "registry",
|
|
568
624
|
"outputs": [
|
|
569
625
|
{
|
|
570
|
-
"internalType": "contract
|
|
626
|
+
"internalType": "contract IRegistry",
|
|
571
627
|
"name": "",
|
|
572
628
|
"type": "address"
|
|
573
629
|
}
|
|
@@ -578,12 +634,12 @@
|
|
|
578
634
|
{
|
|
579
635
|
"inputs": [
|
|
580
636
|
{
|
|
581
|
-
"internalType": "
|
|
637
|
+
"internalType": "uint256",
|
|
582
638
|
"name": "claimId",
|
|
583
|
-
"type": "
|
|
639
|
+
"type": "uint256"
|
|
584
640
|
}
|
|
585
641
|
],
|
|
586
|
-
"name": "
|
|
642
|
+
"name": "retrieveDeposit",
|
|
587
643
|
"outputs": [],
|
|
588
644
|
"stateMutability": "nonpayable",
|
|
589
645
|
"type": "function"
|
|
@@ -601,30 +657,20 @@
|
|
|
601
657
|
"type": "uint96"
|
|
602
658
|
},
|
|
603
659
|
{
|
|
604
|
-
"internalType": "
|
|
660
|
+
"internalType": "bytes32",
|
|
605
661
|
"name": "ipfsMetadata",
|
|
606
|
-
"type": "
|
|
662
|
+
"type": "bytes32"
|
|
607
663
|
}
|
|
608
664
|
],
|
|
609
665
|
"name": "submitClaim",
|
|
610
666
|
"outputs": [
|
|
611
667
|
{
|
|
612
668
|
"components": [
|
|
613
|
-
{
|
|
614
|
-
"internalType": "uint80",
|
|
615
|
-
"name": "assessmentId",
|
|
616
|
-
"type": "uint80"
|
|
617
|
-
},
|
|
618
669
|
{
|
|
619
670
|
"internalType": "uint32",
|
|
620
671
|
"name": "coverId",
|
|
621
672
|
"type": "uint32"
|
|
622
673
|
},
|
|
623
|
-
{
|
|
624
|
-
"internalType": "uint16",
|
|
625
|
-
"name": "segmentId",
|
|
626
|
-
"type": "uint16"
|
|
627
|
-
},
|
|
628
674
|
{
|
|
629
675
|
"internalType": "uint96",
|
|
630
676
|
"name": "amount",
|
|
@@ -635,13 +681,23 @@
|
|
|
635
681
|
"name": "coverAsset",
|
|
636
682
|
"type": "uint8"
|
|
637
683
|
},
|
|
684
|
+
{
|
|
685
|
+
"internalType": "uint32",
|
|
686
|
+
"name": "payoutRedemptionPeriod",
|
|
687
|
+
"type": "uint32"
|
|
688
|
+
},
|
|
638
689
|
{
|
|
639
690
|
"internalType": "bool",
|
|
640
691
|
"name": "payoutRedeemed",
|
|
641
692
|
"type": "bool"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"internalType": "bool",
|
|
696
|
+
"name": "depositRetrieved",
|
|
697
|
+
"type": "bool"
|
|
642
698
|
}
|
|
643
699
|
],
|
|
644
|
-
"internalType": "struct
|
|
700
|
+
"internalType": "struct IClaims.Claim",
|
|
645
701
|
"name": "claim",
|
|
646
702
|
"type": "tuple"
|
|
647
703
|
}
|