@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,528 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "nxmAddress"
9
+ },
10
+ {
11
+ "type": "address",
12
+ "name": "coverNFTAddress"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "type": "event",
18
+ "anonymous": false,
19
+ "name": "ClaimPayoutRedeemed",
20
+ "inputs": [
21
+ {
22
+ "type": "address",
23
+ "name": "user",
24
+ "indexed": true
25
+ },
26
+ {
27
+ "type": "uint256",
28
+ "name": "amount",
29
+ "indexed": false
30
+ },
31
+ {
32
+ "type": "uint256",
33
+ "name": "claimId",
34
+ "indexed": false
35
+ },
36
+ {
37
+ "type": "uint256",
38
+ "name": "coverId",
39
+ "indexed": false
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "type": "event",
45
+ "anonymous": false,
46
+ "name": "ClaimSubmitted",
47
+ "inputs": [
48
+ {
49
+ "type": "address",
50
+ "name": "user",
51
+ "indexed": true
52
+ },
53
+ {
54
+ "type": "uint256",
55
+ "name": "claimId",
56
+ "indexed": false
57
+ },
58
+ {
59
+ "type": "uint256",
60
+ "name": "coverId",
61
+ "indexed": true
62
+ },
63
+ {
64
+ "type": "uint256",
65
+ "name": "productId",
66
+ "indexed": false
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "type": "event",
72
+ "anonymous": false,
73
+ "name": "MetadataSubmitted",
74
+ "inputs": [
75
+ {
76
+ "type": "uint256",
77
+ "name": "claimId",
78
+ "indexed": true
79
+ },
80
+ {
81
+ "type": "string",
82
+ "name": "ipfsMetadata",
83
+ "indexed": false
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "function",
89
+ "name": "changeDependentContractAddress",
90
+ "constant": false,
91
+ "payable": false,
92
+
93
+ "inputs": [],
94
+ "outputs": []
95
+ },
96
+ {
97
+ "type": "function",
98
+ "name": "changeMasterAddress",
99
+ "constant": false,
100
+ "payable": false,
101
+
102
+ "inputs": [
103
+ {
104
+ "type": "address",
105
+ "name": "masterAddress"
106
+ }
107
+ ],
108
+ "outputs": []
109
+ },
110
+ {
111
+ "type": "function",
112
+ "name": "claims",
113
+ "constant": true,
114
+ "stateMutability": "view",
115
+ "payable": false,
116
+
117
+ "inputs": [
118
+ {
119
+ "type": "uint256"
120
+ }
121
+ ],
122
+ "outputs": [
123
+ {
124
+ "type": "uint80",
125
+ "name": "assessmentId"
126
+ },
127
+ {
128
+ "type": "uint32",
129
+ "name": "coverId"
130
+ },
131
+ {
132
+ "type": "uint16",
133
+ "name": "segmentId"
134
+ },
135
+ {
136
+ "type": "uint96",
137
+ "name": "amount"
138
+ },
139
+ {
140
+ "type": "uint8",
141
+ "name": "coverAsset"
142
+ },
143
+ {
144
+ "type": "bool",
145
+ "name": "payoutRedeemed"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "type": "function",
151
+ "name": "config",
152
+ "constant": true,
153
+ "stateMutability": "view",
154
+ "payable": false,
155
+
156
+ "inputs": [],
157
+ "outputs": [
158
+ {
159
+ "type": "uint8",
160
+ "name": "payoutRedemptionPeriodInDays"
161
+ },
162
+ {
163
+ "type": "uint16",
164
+ "name": "minAssessmentDepositRatio"
165
+ },
166
+ {
167
+ "type": "uint16",
168
+ "name": "maxRewardInNXMWad"
169
+ },
170
+ {
171
+ "type": "uint16",
172
+ "name": "rewardRatio"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "type": "function",
178
+ "name": "coverNFT",
179
+ "constant": true,
180
+ "stateMutability": "view",
181
+ "payable": false,
182
+
183
+ "inputs": [],
184
+ "outputs": [
185
+ {
186
+ "type": "address"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "type": "function",
192
+ "name": "getAssessmentDepositAndReward",
193
+ "constant": true,
194
+ "stateMutability": "view",
195
+ "payable": false,
196
+
197
+ "inputs": [
198
+ {
199
+ "type": "uint256",
200
+ "name": "requestedAmount"
201
+ },
202
+ {
203
+ "type": "uint256",
204
+ "name": "segmentPeriod"
205
+ },
206
+ {
207
+ "type": "uint256",
208
+ "name": "coverAsset"
209
+ }
210
+ ],
211
+ "outputs": [
212
+ {
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "type": "uint256"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "function",
222
+ "name": "getClaimsCount",
223
+ "constant": true,
224
+ "stateMutability": "view",
225
+ "payable": false,
226
+
227
+ "inputs": [],
228
+ "outputs": [
229
+ {
230
+ "type": "uint256"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "getClaimsToDisplay",
237
+ "constant": true,
238
+ "stateMutability": "view",
239
+ "payable": false,
240
+
241
+ "inputs": [
242
+ {
243
+ "type": "uint256[]",
244
+ "name": "ids"
245
+ }
246
+ ],
247
+ "outputs": [
248
+ {
249
+ "type": "tuple[]",
250
+ "components": [
251
+ {
252
+ "type": "uint256",
253
+ "name": "id"
254
+ },
255
+ {
256
+ "type": "uint256",
257
+ "name": "productId"
258
+ },
259
+ {
260
+ "type": "uint256",
261
+ "name": "coverId"
262
+ },
263
+ {
264
+ "type": "uint256",
265
+ "name": "assessmentId"
266
+ },
267
+ {
268
+ "type": "uint256",
269
+ "name": "amount"
270
+ },
271
+ {
272
+ "type": "string",
273
+ "name": "assetSymbol"
274
+ },
275
+ {
276
+ "type": "uint256",
277
+ "name": "assetIndex"
278
+ },
279
+ {
280
+ "type": "uint256",
281
+ "name": "coverStart"
282
+ },
283
+ {
284
+ "type": "uint256",
285
+ "name": "coverEnd"
286
+ },
287
+ {
288
+ "type": "uint256",
289
+ "name": "pollStart"
290
+ },
291
+ {
292
+ "type": "uint256",
293
+ "name": "pollEnd"
294
+ },
295
+ {
296
+ "type": "uint256",
297
+ "name": "claimStatus"
298
+ },
299
+ {
300
+ "type": "uint256",
301
+ "name": "payoutStatus"
302
+ }
303
+ ]
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "type": "function",
309
+ "name": "internalContracts",
310
+ "constant": true,
311
+ "stateMutability": "view",
312
+ "payable": false,
313
+
314
+ "inputs": [
315
+ {
316
+ "type": "uint256"
317
+ }
318
+ ],
319
+ "outputs": [
320
+ {
321
+ "type": "address"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "type": "function",
327
+ "name": "lastClaimSubmissionOnCover",
328
+ "constant": true,
329
+ "stateMutability": "view",
330
+ "payable": false,
331
+
332
+ "inputs": [
333
+ {
334
+ "type": "uint256"
335
+ }
336
+ ],
337
+ "outputs": [
338
+ {
339
+ "type": "uint80",
340
+ "name": "claimId"
341
+ },
342
+ {
343
+ "type": "bool",
344
+ "name": "exists"
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "type": "function",
350
+ "name": "master",
351
+ "constant": true,
352
+ "stateMutability": "view",
353
+ "payable": false,
354
+
355
+ "inputs": [],
356
+ "outputs": [
357
+ {
358
+ "type": "address"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "type": "function",
364
+ "name": "nxm",
365
+ "constant": true,
366
+ "stateMutability": "view",
367
+ "payable": false,
368
+
369
+ "inputs": [],
370
+ "outputs": [
371
+ {
372
+ "type": "address"
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "type": "function",
378
+ "name": "redeemClaimPayout",
379
+ "constant": false,
380
+ "payable": false,
381
+
382
+ "inputs": [
383
+ {
384
+ "type": "uint104",
385
+ "name": "claimId"
386
+ }
387
+ ],
388
+ "outputs": []
389
+ },
390
+ {
391
+ "type": "function",
392
+ "name": "submitClaim",
393
+ "constant": false,
394
+ "stateMutability": "payable",
395
+ "payable": true,
396
+
397
+ "inputs": [
398
+ {
399
+ "type": "uint32",
400
+ "name": "coverId"
401
+ },
402
+ {
403
+ "type": "uint16",
404
+ "name": "segmentId"
405
+ },
406
+ {
407
+ "type": "uint96",
408
+ "name": "requestedAmount"
409
+ },
410
+ {
411
+ "type": "string",
412
+ "name": "ipfsMetadata"
413
+ }
414
+ ],
415
+ "outputs": [
416
+ {
417
+ "type": "tuple",
418
+ "name": "claim",
419
+ "components": [
420
+ {
421
+ "type": "uint80",
422
+ "name": "assessmentId"
423
+ },
424
+ {
425
+ "type": "uint32",
426
+ "name": "coverId"
427
+ },
428
+ {
429
+ "type": "uint16",
430
+ "name": "segmentId"
431
+ },
432
+ {
433
+ "type": "uint96",
434
+ "name": "amount"
435
+ },
436
+ {
437
+ "type": "uint8",
438
+ "name": "coverAsset"
439
+ },
440
+ {
441
+ "type": "bool",
442
+ "name": "payoutRedeemed"
443
+ }
444
+ ]
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "type": "function",
450
+ "name": "submitClaimFor",
451
+ "constant": false,
452
+ "stateMutability": "payable",
453
+ "payable": true,
454
+
455
+ "inputs": [
456
+ {
457
+ "type": "uint32",
458
+ "name": "coverId"
459
+ },
460
+ {
461
+ "type": "uint16",
462
+ "name": "segmentId"
463
+ },
464
+ {
465
+ "type": "uint96",
466
+ "name": "requestedAmount"
467
+ },
468
+ {
469
+ "type": "string",
470
+ "name": "ipfsMetadata"
471
+ },
472
+ {
473
+ "type": "address",
474
+ "name": "owner"
475
+ }
476
+ ],
477
+ "outputs": [
478
+ {
479
+ "type": "tuple",
480
+ "name": "claim",
481
+ "components": [
482
+ {
483
+ "type": "uint80",
484
+ "name": "assessmentId"
485
+ },
486
+ {
487
+ "type": "uint32",
488
+ "name": "coverId"
489
+ },
490
+ {
491
+ "type": "uint16",
492
+ "name": "segmentId"
493
+ },
494
+ {
495
+ "type": "uint96",
496
+ "name": "amount"
497
+ },
498
+ {
499
+ "type": "uint8",
500
+ "name": "coverAsset"
501
+ },
502
+ {
503
+ "type": "bool",
504
+ "name": "payoutRedeemed"
505
+ }
506
+ ]
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "type": "function",
512
+ "name": "updateUintParameters",
513
+ "constant": false,
514
+ "payable": false,
515
+
516
+ "inputs": [
517
+ {
518
+ "type": "uint8[]",
519
+ "name": "paramNames"
520
+ },
521
+ {
522
+ "type": "uint256[]",
523
+ "name": "values"
524
+ }
525
+ ],
526
+ "outputs": []
527
+ }
528
+ ]
@@ -0,0 +1,64 @@
1
+ [
2
+ {
3
+ "type": "event",
4
+ "anonymous": false,
5
+ "name": "ProofAdded",
6
+ "inputs": [
7
+ {
8
+ "type": "uint256",
9
+ "name": "coverId",
10
+ "indexed": true
11
+ },
12
+ {
13
+ "type": "address",
14
+ "name": "owner",
15
+ "indexed": true
16
+ },
17
+ {
18
+ "type": "string",
19
+ "name": "ipfsHash",
20
+ "indexed": false
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "addMockProof",
27
+ "constant": false,
28
+ "payable": false,
29
+
30
+ "inputs": [
31
+ {
32
+ "type": "uint256",
33
+ "name": "_coverId"
34
+ },
35
+ {
36
+ "type": "address",
37
+ "name": "member"
38
+ },
39
+ {
40
+ "type": "string",
41
+ "name": "_ipfsHash"
42
+ }
43
+ ],
44
+ "outputs": []
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "addProof",
49
+ "constant": false,
50
+ "payable": false,
51
+
52
+ "inputs": [
53
+ {
54
+ "type": "uint256",
55
+ "name": "_coverId"
56
+ },
57
+ {
58
+ "type": "string",
59
+ "name": "_ipfsHash"
60
+ }
61
+ ],
62
+ "outputs": []
63
+ }
64
+ ]