@nexusmutual/sdk 0.0.1

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