@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.
@@ -0,0 +1,657 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_nxmTokenAddress",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_wethAddress",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_internalSolver",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "ExpiredCoverCannotBeRenewed",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "InvalidBuyerAddress",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "InvalidOwnerAddress",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "NotOrderOwner",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "OnlyInternalSolver",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "OrderAlreadyCancelled",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "OrderCannotBeExecutedYet",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "OrderCannotBeRenewedYet",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "OrderExpired",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "OrderPriceNotMet",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "RenewablePeriodBeforeExpirationExceedsMaximum",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "RenewalExpired",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "anonymous": false,
85
+ "inputs": [
86
+ {
87
+ "indexed": false,
88
+ "internalType": "bytes32",
89
+ "name": "id",
90
+ "type": "bytes32"
91
+ }
92
+ ],
93
+ "name": "OrderCancelled",
94
+ "type": "event"
95
+ },
96
+ {
97
+ "anonymous": false,
98
+ "inputs": [
99
+ {
100
+ "indexed": false,
101
+ "internalType": "address",
102
+ "name": "owner",
103
+ "type": "address"
104
+ },
105
+ {
106
+ "indexed": false,
107
+ "internalType": "uint256",
108
+ "name": "coverId",
109
+ "type": "uint256"
110
+ },
111
+ {
112
+ "indexed": false,
113
+ "internalType": "bytes32",
114
+ "name": "id",
115
+ "type": "bytes32"
116
+ }
117
+ ],
118
+ "name": "OrderExecuted",
119
+ "type": "event"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "MAX_RENEWABLE_PERIOD_BEFORE_EXPIRATION",
124
+ "outputs": [
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "inputs": [
136
+ {
137
+ "components": [
138
+ {
139
+ "internalType": "uint256",
140
+ "name": "coverId",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "internalType": "address",
145
+ "name": "owner",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "uint24",
150
+ "name": "productId",
151
+ "type": "uint24"
152
+ },
153
+ {
154
+ "internalType": "uint8",
155
+ "name": "coverAsset",
156
+ "type": "uint8"
157
+ },
158
+ {
159
+ "internalType": "uint96",
160
+ "name": "amount",
161
+ "type": "uint96"
162
+ },
163
+ {
164
+ "internalType": "uint32",
165
+ "name": "period",
166
+ "type": "uint32"
167
+ },
168
+ {
169
+ "internalType": "uint256",
170
+ "name": "maxPremiumInAsset",
171
+ "type": "uint256"
172
+ },
173
+ {
174
+ "internalType": "uint8",
175
+ "name": "paymentAsset",
176
+ "type": "uint8"
177
+ },
178
+ {
179
+ "internalType": "uint16",
180
+ "name": "commissionRatio",
181
+ "type": "uint16"
182
+ },
183
+ {
184
+ "internalType": "address",
185
+ "name": "commissionDestination",
186
+ "type": "address"
187
+ },
188
+ {
189
+ "internalType": "string",
190
+ "name": "ipfsData",
191
+ "type": "string"
192
+ }
193
+ ],
194
+ "internalType": "struct BuyCoverParams",
195
+ "name": "params",
196
+ "type": "tuple"
197
+ },
198
+ {
199
+ "components": [
200
+ {
201
+ "internalType": "address",
202
+ "name": "buyer",
203
+ "type": "address"
204
+ },
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "notExecutableBefore",
208
+ "type": "uint256"
209
+ },
210
+ {
211
+ "internalType": "uint256",
212
+ "name": "executableUntil",
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "renewableUntil",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "renewablePeriodBeforeExpiration",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "maxPremiumInAsset",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "internalType": "struct ExecutionDetails",
232
+ "name": "executionDetails",
233
+ "type": "tuple"
234
+ },
235
+ {
236
+ "internalType": "bytes",
237
+ "name": "signature",
238
+ "type": "bytes"
239
+ }
240
+ ],
241
+ "name": "cancelOrder",
242
+ "outputs": [],
243
+ "stateMutability": "nonpayable",
244
+ "type": "function"
245
+ },
246
+ {
247
+ "inputs": [],
248
+ "name": "changeDependentContractAddress",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ {
256
+ "internalType": "address",
257
+ "name": "masterAddress",
258
+ "type": "address"
259
+ }
260
+ ],
261
+ "name": "changeMasterAddress",
262
+ "outputs": [],
263
+ "stateMutability": "nonpayable",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "uint256",
272
+ "name": "coverId",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "address",
277
+ "name": "owner",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "internalType": "uint24",
282
+ "name": "productId",
283
+ "type": "uint24"
284
+ },
285
+ {
286
+ "internalType": "uint8",
287
+ "name": "coverAsset",
288
+ "type": "uint8"
289
+ },
290
+ {
291
+ "internalType": "uint96",
292
+ "name": "amount",
293
+ "type": "uint96"
294
+ },
295
+ {
296
+ "internalType": "uint32",
297
+ "name": "period",
298
+ "type": "uint32"
299
+ },
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "maxPremiumInAsset",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "internalType": "uint8",
307
+ "name": "paymentAsset",
308
+ "type": "uint8"
309
+ },
310
+ {
311
+ "internalType": "uint16",
312
+ "name": "commissionRatio",
313
+ "type": "uint16"
314
+ },
315
+ {
316
+ "internalType": "address",
317
+ "name": "commissionDestination",
318
+ "type": "address"
319
+ },
320
+ {
321
+ "internalType": "string",
322
+ "name": "ipfsData",
323
+ "type": "string"
324
+ }
325
+ ],
326
+ "internalType": "struct BuyCoverParams",
327
+ "name": "params",
328
+ "type": "tuple"
329
+ },
330
+ {
331
+ "components": [
332
+ {
333
+ "internalType": "uint256",
334
+ "name": "poolId",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "internalType": "uint256",
339
+ "name": "coverAmountInAsset",
340
+ "type": "uint256"
341
+ }
342
+ ],
343
+ "internalType": "struct PoolAllocationRequest[]",
344
+ "name": "poolAllocationRequests",
345
+ "type": "tuple[]"
346
+ },
347
+ {
348
+ "components": [
349
+ {
350
+ "internalType": "address",
351
+ "name": "buyer",
352
+ "type": "address"
353
+ },
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "notExecutableBefore",
357
+ "type": "uint256"
358
+ },
359
+ {
360
+ "internalType": "uint256",
361
+ "name": "executableUntil",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "renewableUntil",
367
+ "type": "uint256"
368
+ },
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "renewablePeriodBeforeExpiration",
372
+ "type": "uint256"
373
+ },
374
+ {
375
+ "internalType": "uint256",
376
+ "name": "maxPremiumInAsset",
377
+ "type": "uint256"
378
+ }
379
+ ],
380
+ "internalType": "struct ExecutionDetails",
381
+ "name": "executionDetails",
382
+ "type": "tuple"
383
+ },
384
+ {
385
+ "internalType": "bytes",
386
+ "name": "signature",
387
+ "type": "bytes"
388
+ },
389
+ {
390
+ "components": [
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "fee",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "internalType": "address",
398
+ "name": "feeDestination",
399
+ "type": "address"
400
+ }
401
+ ],
402
+ "internalType": "struct SettlementDetails",
403
+ "name": "settlementDetails",
404
+ "type": "tuple"
405
+ }
406
+ ],
407
+ "name": "executeOrder",
408
+ "outputs": [
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "coverId",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "stateMutability": "nonpayable",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [
420
+ {
421
+ "components": [
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "coverId",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "internalType": "address",
429
+ "name": "owner",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "internalType": "uint24",
434
+ "name": "productId",
435
+ "type": "uint24"
436
+ },
437
+ {
438
+ "internalType": "uint8",
439
+ "name": "coverAsset",
440
+ "type": "uint8"
441
+ },
442
+ {
443
+ "internalType": "uint96",
444
+ "name": "amount",
445
+ "type": "uint96"
446
+ },
447
+ {
448
+ "internalType": "uint32",
449
+ "name": "period",
450
+ "type": "uint32"
451
+ },
452
+ {
453
+ "internalType": "uint256",
454
+ "name": "maxPremiumInAsset",
455
+ "type": "uint256"
456
+ },
457
+ {
458
+ "internalType": "uint8",
459
+ "name": "paymentAsset",
460
+ "type": "uint8"
461
+ },
462
+ {
463
+ "internalType": "uint16",
464
+ "name": "commissionRatio",
465
+ "type": "uint16"
466
+ },
467
+ {
468
+ "internalType": "address",
469
+ "name": "commissionDestination",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "string",
474
+ "name": "ipfsData",
475
+ "type": "string"
476
+ }
477
+ ],
478
+ "internalType": "struct BuyCoverParams",
479
+ "name": "params",
480
+ "type": "tuple"
481
+ },
482
+ {
483
+ "components": [
484
+ {
485
+ "internalType": "address",
486
+ "name": "buyer",
487
+ "type": "address"
488
+ },
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "notExecutableBefore",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "executableUntil",
497
+ "type": "uint256"
498
+ },
499
+ {
500
+ "internalType": "uint256",
501
+ "name": "renewableUntil",
502
+ "type": "uint256"
503
+ },
504
+ {
505
+ "internalType": "uint256",
506
+ "name": "renewablePeriodBeforeExpiration",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "maxPremiumInAsset",
512
+ "type": "uint256"
513
+ }
514
+ ],
515
+ "internalType": "struct ExecutionDetails",
516
+ "name": "executionDetails",
517
+ "type": "tuple"
518
+ }
519
+ ],
520
+ "name": "getOrderId",
521
+ "outputs": [
522
+ {
523
+ "internalType": "bytes32",
524
+ "name": "structHash",
525
+ "type": "bytes32"
526
+ }
527
+ ],
528
+ "stateMutability": "view",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "uint256",
535
+ "name": "",
536
+ "type": "uint256"
537
+ }
538
+ ],
539
+ "name": "internalContracts",
540
+ "outputs": [
541
+ {
542
+ "internalType": "address payable",
543
+ "name": "",
544
+ "type": "address"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [],
552
+ "name": "internalSolver",
553
+ "outputs": [
554
+ {
555
+ "internalType": "address",
556
+ "name": "",
557
+ "type": "address"
558
+ }
559
+ ],
560
+ "stateMutability": "view",
561
+ "type": "function"
562
+ },
563
+ {
564
+ "inputs": [],
565
+ "name": "master",
566
+ "outputs": [
567
+ {
568
+ "internalType": "contract INXMMaster",
569
+ "name": "",
570
+ "type": "address"
571
+ }
572
+ ],
573
+ "stateMutability": "view",
574
+ "type": "function"
575
+ },
576
+ {
577
+ "inputs": [
578
+ {
579
+ "internalType": "contract IERC20",
580
+ "name": "erc20",
581
+ "type": "address"
582
+ }
583
+ ],
584
+ "name": "maxApproveCoverContract",
585
+ "outputs": [],
586
+ "stateMutability": "nonpayable",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [],
591
+ "name": "maxApproveTokenControllerContract",
592
+ "outputs": [],
593
+ "stateMutability": "nonpayable",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [],
598
+ "name": "nxmToken",
599
+ "outputs": [
600
+ {
601
+ "internalType": "contract INXMToken",
602
+ "name": "",
603
+ "type": "address"
604
+ }
605
+ ],
606
+ "stateMutability": "view",
607
+ "type": "function"
608
+ },
609
+ {
610
+ "inputs": [
611
+ {
612
+ "internalType": "bytes32",
613
+ "name": "",
614
+ "type": "bytes32"
615
+ }
616
+ ],
617
+ "name": "orderStatus",
618
+ "outputs": [
619
+ {
620
+ "internalType": "uint32",
621
+ "name": "coverId",
622
+ "type": "uint32"
623
+ },
624
+ {
625
+ "internalType": "bool",
626
+ "name": "isCancelled",
627
+ "type": "bool"
628
+ }
629
+ ],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [],
635
+ "name": "weth",
636
+ "outputs": [
637
+ {
638
+ "internalType": "contract IWeth",
639
+ "name": "",
640
+ "type": "address"
641
+ }
642
+ ],
643
+ "stateMutability": "view",
644
+ "type": "function"
645
+ },
646
+ {
647
+ "inputs": [],
648
+ "name": "whitelistSelf",
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable",
651
+ "type": "function"
652
+ },
653
+ {
654
+ "stateMutability": "payable",
655
+ "type": "receive"
656
+ }
657
+ ]