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