@nexusmutual/sdk 0.3.23 → 0.4.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.
@@ -1,588 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "_quotationData",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "_tokenAddress",
12
- "type": "address"
13
- }
14
- ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "DAI",
21
- "outputs": [
22
- {
23
- "internalType": "address",
24
- "name": "",
25
- "type": "address"
26
- }
27
- ],
28
- "stateMutability": "view",
29
- "type": "function"
30
- },
31
- {
32
- "inputs": [],
33
- "name": "ETH",
34
- "outputs": [
35
- {
36
- "internalType": "address",
37
- "name": "",
38
- "type": "address"
39
- }
40
- ],
41
- "stateMutability": "view",
42
- "type": "function"
43
- },
44
- {
45
- "inputs": [],
46
- "name": "_unused_claims",
47
- "outputs": [
48
- {
49
- "internalType": "address",
50
- "name": "",
51
- "type": "address"
52
- }
53
- ],
54
- "stateMutability": "view",
55
- "type": "function"
56
- },
57
- {
58
- "inputs": [],
59
- "name": "_unused_claimsData",
60
- "outputs": [
61
- {
62
- "internalType": "address",
63
- "name": "",
64
- "type": "address"
65
- }
66
- ],
67
- "stateMutability": "view",
68
- "type": "function"
69
- },
70
- {
71
- "inputs": [],
72
- "name": "_unused_coverMigrator",
73
- "outputs": [
74
- {
75
- "internalType": "address",
76
- "name": "",
77
- "type": "address"
78
- }
79
- ],
80
- "stateMutability": "view",
81
- "type": "function"
82
- },
83
- {
84
- "inputs": [],
85
- "name": "_unused_incidents",
86
- "outputs": [
87
- {
88
- "internalType": "address",
89
- "name": "",
90
- "type": "address"
91
- }
92
- ],
93
- "stateMutability": "view",
94
- "type": "function"
95
- },
96
- {
97
- "inputs": [],
98
- "name": "_unused_memberRoles",
99
- "outputs": [
100
- {
101
- "internalType": "address",
102
- "name": "",
103
- "type": "address"
104
- }
105
- ],
106
- "stateMutability": "view",
107
- "type": "function"
108
- },
109
- {
110
- "inputs": [],
111
- "name": "_unused_nxmToken",
112
- "outputs": [
113
- {
114
- "internalType": "address",
115
- "name": "",
116
- "type": "address"
117
- }
118
- ],
119
- "stateMutability": "view",
120
- "type": "function"
121
- },
122
- {
123
- "inputs": [],
124
- "name": "_unused_pool",
125
- "outputs": [
126
- {
127
- "internalType": "address",
128
- "name": "",
129
- "type": "address"
130
- }
131
- ],
132
- "stateMutability": "view",
133
- "type": "function"
134
- },
135
- {
136
- "inputs": [],
137
- "name": "_unused_quotationData",
138
- "outputs": [
139
- {
140
- "internalType": "address",
141
- "name": "",
142
- "type": "address"
143
- }
144
- ],
145
- "stateMutability": "view",
146
- "type": "function"
147
- },
148
- {
149
- "inputs": [],
150
- "name": "_unused_tokenController",
151
- "outputs": [
152
- {
153
- "internalType": "address",
154
- "name": "",
155
- "type": "address"
156
- }
157
- ],
158
- "stateMutability": "view",
159
- "type": "function"
160
- },
161
- {
162
- "inputs": [
163
- {
164
- "internalType": "address",
165
- "name": "asset",
166
- "type": "address"
167
- }
168
- ],
169
- "name": "assetDecimals",
170
- "outputs": [
171
- {
172
- "internalType": "uint256",
173
- "name": "",
174
- "type": "uint256"
175
- }
176
- ],
177
- "stateMutability": "view",
178
- "type": "function"
179
- },
180
- {
181
- "inputs": [
182
- {
183
- "internalType": "address",
184
- "name": "",
185
- "type": "address"
186
- },
187
- {
188
- "internalType": "address",
189
- "name": "",
190
- "type": "address"
191
- },
192
- {
193
- "internalType": "uint256",
194
- "name": "",
195
- "type": "uint256"
196
- },
197
- {
198
- "internalType": "uint16",
199
- "name": "",
200
- "type": "uint16"
201
- },
202
- {
203
- "internalType": "enum IGateway.CoverType",
204
- "name": "",
205
- "type": "uint8"
206
- },
207
- {
208
- "internalType": "bytes",
209
- "name": "",
210
- "type": "bytes"
211
- }
212
- ],
213
- "name": "buyCover",
214
- "outputs": [
215
- {
216
- "internalType": "uint256",
217
- "name": "",
218
- "type": "uint256"
219
- }
220
- ],
221
- "stateMutability": "payable",
222
- "type": "function"
223
- },
224
- {
225
- "inputs": [],
226
- "name": "changeDependentContractAddress",
227
- "outputs": [],
228
- "stateMutability": "nonpayable",
229
- "type": "function"
230
- },
231
- {
232
- "inputs": [
233
- {
234
- "internalType": "address",
235
- "name": "masterAddress",
236
- "type": "address"
237
- }
238
- ],
239
- "name": "changeMasterAddress",
240
- "outputs": [],
241
- "stateMutability": "nonpayable",
242
- "type": "function"
243
- },
244
- {
245
- "inputs": [
246
- {
247
- "internalType": "uint256",
248
- "name": "",
249
- "type": "uint256"
250
- },
251
- {
252
- "internalType": "uint256",
253
- "name": "",
254
- "type": "uint256"
255
- },
256
- {
257
- "internalType": "uint256",
258
- "name": "",
259
- "type": "uint256"
260
- },
261
- {
262
- "internalType": "address",
263
- "name": "",
264
- "type": "address"
265
- }
266
- ],
267
- "name": "claimTokens",
268
- "outputs": [
269
- {
270
- "internalType": "uint256",
271
- "name": "",
272
- "type": "uint256"
273
- },
274
- {
275
- "internalType": "uint256",
276
- "name": "",
277
- "type": "uint256"
278
- },
279
- {
280
- "internalType": "address",
281
- "name": "",
282
- "type": "address"
283
- }
284
- ],
285
- "stateMutability": "nonpayable",
286
- "type": "function"
287
- },
288
- {
289
- "inputs": [
290
- {
291
- "internalType": "uint256",
292
- "name": "",
293
- "type": "uint256"
294
- },
295
- {
296
- "internalType": "uint8",
297
- "name": "",
298
- "type": "uint8"
299
- },
300
- {
301
- "internalType": "bytes",
302
- "name": "",
303
- "type": "bytes"
304
- }
305
- ],
306
- "name": "executeCoverAction",
307
- "outputs": [
308
- {
309
- "internalType": "bytes",
310
- "name": "",
311
- "type": "bytes"
312
- },
313
- {
314
- "internalType": "uint256",
315
- "name": "",
316
- "type": "uint256"
317
- }
318
- ],
319
- "stateMutability": "payable",
320
- "type": "function"
321
- },
322
- {
323
- "inputs": [
324
- {
325
- "internalType": "uint256",
326
- "name": "",
327
- "type": "uint256"
328
- }
329
- ],
330
- "name": "getClaimCoverId",
331
- "outputs": [
332
- {
333
- "internalType": "uint256",
334
- "name": "",
335
- "type": "uint256"
336
- }
337
- ],
338
- "stateMutability": "view",
339
- "type": "function"
340
- },
341
- {
342
- "inputs": [
343
- {
344
- "internalType": "uint256",
345
- "name": "coverId",
346
- "type": "uint256"
347
- }
348
- ],
349
- "name": "getCover",
350
- "outputs": [
351
- {
352
- "internalType": "uint8",
353
- "name": "status",
354
- "type": "uint8"
355
- },
356
- {
357
- "internalType": "uint256",
358
- "name": "sumAssured",
359
- "type": "uint256"
360
- },
361
- {
362
- "internalType": "uint16",
363
- "name": "coverPeriod",
364
- "type": "uint16"
365
- },
366
- {
367
- "internalType": "uint256",
368
- "name": "validUntil",
369
- "type": "uint256"
370
- },
371
- {
372
- "internalType": "address",
373
- "name": "contractAddress",
374
- "type": "address"
375
- },
376
- {
377
- "internalType": "address",
378
- "name": "coverAsset",
379
- "type": "address"
380
- },
381
- {
382
- "internalType": "uint256",
383
- "name": "premiumInNXM",
384
- "type": "uint256"
385
- },
386
- {
387
- "internalType": "address",
388
- "name": "memberAddress",
389
- "type": "address"
390
- }
391
- ],
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [
397
- {
398
- "internalType": "address",
399
- "name": "",
400
- "type": "address"
401
- },
402
- {
403
- "internalType": "address",
404
- "name": "",
405
- "type": "address"
406
- },
407
- {
408
- "internalType": "uint256",
409
- "name": "",
410
- "type": "uint256"
411
- },
412
- {
413
- "internalType": "uint16",
414
- "name": "",
415
- "type": "uint16"
416
- },
417
- {
418
- "internalType": "enum IGateway.CoverType",
419
- "name": "",
420
- "type": "uint8"
421
- },
422
- {
423
- "internalType": "bytes",
424
- "name": "",
425
- "type": "bytes"
426
- }
427
- ],
428
- "name": "getCoverPrice",
429
- "outputs": [
430
- {
431
- "internalType": "uint256",
432
- "name": "",
433
- "type": "uint256"
434
- }
435
- ],
436
- "stateMutability": "view",
437
- "type": "function"
438
- },
439
- {
440
- "inputs": [
441
- {
442
- "internalType": "bytes4",
443
- "name": "currency",
444
- "type": "bytes4"
445
- }
446
- ],
447
- "name": "getCurrencyAssetAddress",
448
- "outputs": [
449
- {
450
- "internalType": "address",
451
- "name": "",
452
- "type": "address"
453
- }
454
- ],
455
- "stateMutability": "view",
456
- "type": "function"
457
- },
458
- {
459
- "inputs": [
460
- {
461
- "internalType": "address",
462
- "name": "asset",
463
- "type": "address"
464
- }
465
- ],
466
- "name": "getCurrencyFromAssetAddress",
467
- "outputs": [
468
- {
469
- "internalType": "bytes4",
470
- "name": "",
471
- "type": "bytes4"
472
- }
473
- ],
474
- "stateMutability": "view",
475
- "type": "function"
476
- },
477
- {
478
- "inputs": [
479
- {
480
- "internalType": "uint256",
481
- "name": "",
482
- "type": "uint256"
483
- }
484
- ],
485
- "name": "getPayoutOutcome",
486
- "outputs": [
487
- {
488
- "internalType": "enum IGateway.ClaimStatus",
489
- "name": "",
490
- "type": "uint8"
491
- },
492
- {
493
- "internalType": "uint256",
494
- "name": "",
495
- "type": "uint256"
496
- },
497
- {
498
- "internalType": "address",
499
- "name": "",
500
- "type": "address"
501
- }
502
- ],
503
- "stateMutability": "view",
504
- "type": "function"
505
- },
506
- {
507
- "inputs": [
508
- {
509
- "internalType": "uint256",
510
- "name": "",
511
- "type": "uint256"
512
- }
513
- ],
514
- "name": "internalContracts",
515
- "outputs": [
516
- {
517
- "internalType": "address payable",
518
- "name": "",
519
- "type": "address"
520
- }
521
- ],
522
- "stateMutability": "view",
523
- "type": "function"
524
- },
525
- {
526
- "inputs": [],
527
- "name": "master",
528
- "outputs": [
529
- {
530
- "internalType": "contract INXMMaster",
531
- "name": "",
532
- "type": "address"
533
- }
534
- ],
535
- "stateMutability": "view",
536
- "type": "function"
537
- },
538
- {
539
- "inputs": [],
540
- "name": "quotationData",
541
- "outputs": [
542
- {
543
- "internalType": "contract IQuotationData",
544
- "name": "",
545
- "type": "address"
546
- }
547
- ],
548
- "stateMutability": "view",
549
- "type": "function"
550
- },
551
- {
552
- "inputs": [
553
- {
554
- "internalType": "uint256",
555
- "name": "coverId",
556
- "type": "uint256"
557
- },
558
- {
559
- "internalType": "bytes",
560
- "name": "",
561
- "type": "bytes"
562
- }
563
- ],
564
- "name": "submitClaim",
565
- "outputs": [
566
- {
567
- "internalType": "uint256",
568
- "name": "",
569
- "type": "uint256"
570
- }
571
- ],
572
- "stateMutability": "nonpayable",
573
- "type": "function"
574
- },
575
- {
576
- "inputs": [
577
- {
578
- "internalType": "address",
579
- "name": "newAddress",
580
- "type": "address"
581
- }
582
- ],
583
- "name": "switchMembership",
584
- "outputs": [],
585
- "stateMutability": "nonpayable",
586
- "type": "function"
587
- }
588
- ]
@@ -1,21 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "legacyProductId",
7
- "type": "address"
8
- }
9
- ],
10
- "name": "getNewProductId",
11
- "outputs": [
12
- {
13
- "internalType": "uint256",
14
- "name": "",
15
- "type": "uint256"
16
- }
17
- ],
18
- "stateMutability": "pure",
19
- "type": "function"
20
- }
21
- ]