@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,700 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "nxmAddress"
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ "type": "event",
14
+ "anonymous": false,
15
+ "name": "FraudProcessed",
16
+ "inputs": [
17
+ {
18
+ "type": "uint256",
19
+ "name": "assessmentId",
20
+ "indexed": false
21
+ },
22
+ {
23
+ "type": "address",
24
+ "name": "assessor",
25
+ "indexed": false
26
+ },
27
+ {
28
+ "type": "tuple",
29
+ "name": "poll",
30
+ "indexed": false,
31
+ "components": [
32
+ {
33
+ "type": "uint96",
34
+ "name": "accepted"
35
+ },
36
+ {
37
+ "type": "uint96",
38
+ "name": "denied"
39
+ },
40
+ {
41
+ "type": "uint32",
42
+ "name": "start"
43
+ },
44
+ {
45
+ "type": "uint32",
46
+ "name": "end"
47
+ }
48
+ ]
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "type": "event",
54
+ "anonymous": false,
55
+ "name": "FraudSubmitted",
56
+ "inputs": [
57
+ {
58
+ "type": "bytes32",
59
+ "name": "root",
60
+ "indexed": false
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "type": "event",
66
+ "anonymous": false,
67
+ "name": "RewardWithdrawn",
68
+ "inputs": [
69
+ {
70
+ "type": "address",
71
+ "name": "user",
72
+ "indexed": false
73
+ },
74
+ {
75
+ "type": "address",
76
+ "name": "to",
77
+ "indexed": false
78
+ },
79
+ {
80
+ "type": "uint256",
81
+ "name": "amount",
82
+ "indexed": false
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "type": "event",
88
+ "anonymous": false,
89
+ "name": "StakeDeposited",
90
+ "inputs": [
91
+ {
92
+ "type": "address",
93
+ "name": "user",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "type": "uint104",
98
+ "name": "amount",
99
+ "indexed": false
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "type": "event",
105
+ "anonymous": false,
106
+ "name": "StakeWithdrawn",
107
+ "inputs": [
108
+ {
109
+ "type": "address",
110
+ "name": "user",
111
+ "indexed": true
112
+ },
113
+ {
114
+ "type": "address",
115
+ "name": "to",
116
+ "indexed": false
117
+ },
118
+ {
119
+ "type": "uint96",
120
+ "name": "amount",
121
+ "indexed": false
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "type": "event",
127
+ "anonymous": false,
128
+ "name": "VoteCast",
129
+ "inputs": [
130
+ {
131
+ "type": "address",
132
+ "name": "user",
133
+ "indexed": true
134
+ },
135
+ {
136
+ "type": "uint256",
137
+ "name": "assessmentId",
138
+ "indexed": false
139
+ },
140
+ {
141
+ "type": "uint96",
142
+ "name": "stakedAmount",
143
+ "indexed": false
144
+ },
145
+ {
146
+ "type": "bool",
147
+ "name": "accepted",
148
+ "indexed": false
149
+ },
150
+ {
151
+ "type": "string",
152
+ "name": "ipfsAssessmentDataHash",
153
+ "indexed": false
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "type": "function",
159
+ "name": "assessments",
160
+ "constant": true,
161
+ "stateMutability": "view",
162
+ "payable": false,
163
+
164
+ "inputs": [
165
+ {
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "outputs": [
170
+ {
171
+ "type": "tuple",
172
+ "name": "poll",
173
+ "components": [
174
+ {
175
+ "type": "uint96",
176
+ "name": "accepted"
177
+ },
178
+ {
179
+ "type": "uint96",
180
+ "name": "denied"
181
+ },
182
+ {
183
+ "type": "uint32",
184
+ "name": "start"
185
+ },
186
+ {
187
+ "type": "uint32",
188
+ "name": "end"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "uint128",
194
+ "name": "totalRewardInNXM"
195
+ },
196
+ {
197
+ "type": "uint128",
198
+ "name": "assessmentDepositInETH"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "castVotes",
205
+ "constant": false,
206
+ "payable": false,
207
+
208
+ "inputs": [
209
+ {
210
+ "type": "uint256[]",
211
+ "name": "assessmentIds"
212
+ },
213
+ {
214
+ "type": "bool[]",
215
+ "name": "votes"
216
+ },
217
+ {
218
+ "type": "string[]",
219
+ "name": "ipfsAssessmentDataHashes"
220
+ },
221
+ {
222
+ "type": "uint96",
223
+ "name": "stakeIncrease"
224
+ }
225
+ ],
226
+ "outputs": []
227
+ },
228
+ {
229
+ "type": "function",
230
+ "name": "changeDependentContractAddress",
231
+ "constant": false,
232
+ "payable": false,
233
+
234
+ "inputs": [],
235
+ "outputs": []
236
+ },
237
+ {
238
+ "type": "function",
239
+ "name": "changeMasterAddress",
240
+ "constant": false,
241
+ "payable": false,
242
+
243
+ "inputs": [
244
+ {
245
+ "type": "address",
246
+ "name": "masterAddress"
247
+ }
248
+ ],
249
+ "outputs": []
250
+ },
251
+ {
252
+ "type": "function",
253
+ "name": "config",
254
+ "constant": true,
255
+ "stateMutability": "view",
256
+ "payable": false,
257
+
258
+ "inputs": [],
259
+ "outputs": [
260
+ {
261
+ "type": "uint8",
262
+ "name": "minVotingPeriodInDays"
263
+ },
264
+ {
265
+ "type": "uint8",
266
+ "name": "stakeLockupPeriodInDays"
267
+ },
268
+ {
269
+ "type": "uint8",
270
+ "name": "payoutCooldownInDays"
271
+ },
272
+ {
273
+ "type": "uint8",
274
+ "name": "silentEndingPeriodInDays"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "type": "function",
280
+ "name": "fraudResolution",
281
+ "constant": true,
282
+ "stateMutability": "view",
283
+ "payable": false,
284
+
285
+ "inputs": [
286
+ {
287
+ "type": "uint256"
288
+ }
289
+ ],
290
+ "outputs": [
291
+ {
292
+ "type": "bytes32"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "function",
298
+ "name": "getAssessmentsCount",
299
+ "constant": true,
300
+ "stateMutability": "view",
301
+ "payable": false,
302
+
303
+ "inputs": [],
304
+ "outputs": [
305
+ {
306
+ "type": "uint256"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "type": "function",
312
+ "name": "getPoll",
313
+ "constant": true,
314
+ "stateMutability": "view",
315
+ "payable": false,
316
+
317
+ "inputs": [
318
+ {
319
+ "type": "uint256",
320
+ "name": "assessmentId"
321
+ }
322
+ ],
323
+ "outputs": [
324
+ {
325
+ "type": "tuple",
326
+ "components": [
327
+ {
328
+ "type": "uint96",
329
+ "name": "accepted"
330
+ },
331
+ {
332
+ "type": "uint96",
333
+ "name": "denied"
334
+ },
335
+ {
336
+ "type": "uint32",
337
+ "name": "start"
338
+ },
339
+ {
340
+ "type": "uint32",
341
+ "name": "end"
342
+ }
343
+ ]
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "type": "function",
349
+ "name": "getRewards",
350
+ "constant": true,
351
+ "stateMutability": "view",
352
+ "payable": false,
353
+
354
+ "inputs": [
355
+ {
356
+ "type": "address",
357
+ "name": "staker"
358
+ }
359
+ ],
360
+ "outputs": [
361
+ {
362
+ "type": "uint256",
363
+ "name": "totalPendingAmountInNXM"
364
+ },
365
+ {
366
+ "type": "uint256",
367
+ "name": "withdrawableAmountInNXM"
368
+ },
369
+ {
370
+ "type": "uint256",
371
+ "name": "withdrawableUntilIndex"
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "type": "function",
377
+ "name": "getVoteCountOfAssessor",
378
+ "constant": true,
379
+ "stateMutability": "view",
380
+ "payable": false,
381
+
382
+ "inputs": [
383
+ {
384
+ "type": "address",
385
+ "name": "assessor"
386
+ }
387
+ ],
388
+ "outputs": [
389
+ {
390
+ "type": "uint256"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "type": "function",
396
+ "name": "hasAlreadyVotedOn",
397
+ "constant": true,
398
+ "stateMutability": "view",
399
+ "payable": false,
400
+
401
+ "inputs": [
402
+ {
403
+ "type": "address"
404
+ },
405
+ {
406
+ "type": "uint256"
407
+ }
408
+ ],
409
+ "outputs": [
410
+ {
411
+ "type": "bool"
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ "type": "function",
417
+ "name": "internalContracts",
418
+ "constant": true,
419
+ "stateMutability": "view",
420
+ "payable": false,
421
+
422
+ "inputs": [
423
+ {
424
+ "type": "uint256"
425
+ }
426
+ ],
427
+ "outputs": [
428
+ {
429
+ "type": "address"
430
+ }
431
+ ]
432
+ },
433
+ {
434
+ "type": "function",
435
+ "name": "master",
436
+ "constant": true,
437
+ "stateMutability": "view",
438
+ "payable": false,
439
+
440
+ "inputs": [],
441
+ "outputs": [
442
+ {
443
+ "type": "address"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "type": "function",
449
+ "name": "nxm",
450
+ "constant": true,
451
+ "stateMutability": "view",
452
+ "payable": false,
453
+
454
+ "inputs": [],
455
+ "outputs": [
456
+ {
457
+ "type": "address"
458
+ }
459
+ ]
460
+ },
461
+ {
462
+ "type": "function",
463
+ "name": "processFraud",
464
+ "constant": false,
465
+ "payable": false,
466
+
467
+ "inputs": [
468
+ {
469
+ "type": "uint256",
470
+ "name": "rootIndex"
471
+ },
472
+ {
473
+ "type": "bytes32[]",
474
+ "name": "proof"
475
+ },
476
+ {
477
+ "type": "address",
478
+ "name": "assessor"
479
+ },
480
+ {
481
+ "type": "uint256",
482
+ "name": "lastFraudulentVoteIndex"
483
+ },
484
+ {
485
+ "type": "uint96",
486
+ "name": "burnAmount"
487
+ },
488
+ {
489
+ "type": "uint16",
490
+ "name": "fraudCount"
491
+ },
492
+ {
493
+ "type": "uint256",
494
+ "name": "voteBatchSize"
495
+ }
496
+ ],
497
+ "outputs": []
498
+ },
499
+ {
500
+ "type": "function",
501
+ "name": "stake",
502
+ "constant": false,
503
+ "payable": false,
504
+
505
+ "inputs": [
506
+ {
507
+ "type": "uint96",
508
+ "name": "amount"
509
+ }
510
+ ],
511
+ "outputs": []
512
+ },
513
+ {
514
+ "type": "function",
515
+ "name": "stakeOf",
516
+ "constant": true,
517
+ "stateMutability": "view",
518
+ "payable": false,
519
+
520
+ "inputs": [
521
+ {
522
+ "type": "address"
523
+ }
524
+ ],
525
+ "outputs": [
526
+ {
527
+ "type": "uint96",
528
+ "name": "amount"
529
+ },
530
+ {
531
+ "type": "uint104",
532
+ "name": "rewardsWithdrawableFromIndex"
533
+ },
534
+ {
535
+ "type": "uint16",
536
+ "name": "fraudCount"
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "type": "function",
542
+ "name": "startAssessment",
543
+ "constant": false,
544
+ "payable": false,
545
+
546
+ "inputs": [
547
+ {
548
+ "type": "uint256",
549
+ "name": "totalAssessmentReward"
550
+ },
551
+ {
552
+ "type": "uint256",
553
+ "name": "assessmentDepositInETH"
554
+ }
555
+ ],
556
+ "outputs": [
557
+ {
558
+ "type": "uint256"
559
+ }
560
+ ]
561
+ },
562
+ {
563
+ "type": "function",
564
+ "name": "submitFraud",
565
+ "constant": false,
566
+ "payable": false,
567
+
568
+ "inputs": [
569
+ {
570
+ "type": "bytes32",
571
+ "name": "root"
572
+ }
573
+ ],
574
+ "outputs": []
575
+ },
576
+ {
577
+ "type": "function",
578
+ "name": "unstake",
579
+ "constant": false,
580
+ "payable": false,
581
+
582
+ "inputs": [
583
+ {
584
+ "type": "uint96",
585
+ "name": "amount"
586
+ },
587
+ {
588
+ "type": "address",
589
+ "name": "to"
590
+ }
591
+ ],
592
+ "outputs": []
593
+ },
594
+ {
595
+ "type": "function",
596
+ "name": "updateUintParameters",
597
+ "constant": false,
598
+ "payable": false,
599
+
600
+ "inputs": [
601
+ {
602
+ "type": "uint8[]",
603
+ "name": "paramNames"
604
+ },
605
+ {
606
+ "type": "uint256[]",
607
+ "name": "values"
608
+ }
609
+ ],
610
+ "outputs": []
611
+ },
612
+ {
613
+ "type": "function",
614
+ "name": "votesOf",
615
+ "constant": true,
616
+ "stateMutability": "view",
617
+ "payable": false,
618
+
619
+ "inputs": [
620
+ {
621
+ "type": "address"
622
+ },
623
+ {
624
+ "type": "uint256"
625
+ }
626
+ ],
627
+ "outputs": [
628
+ {
629
+ "type": "uint80",
630
+ "name": "assessmentId"
631
+ },
632
+ {
633
+ "type": "bool",
634
+ "name": "accepted"
635
+ },
636
+ {
637
+ "type": "uint32",
638
+ "name": "timestamp"
639
+ },
640
+ {
641
+ "type": "uint96",
642
+ "name": "stakedAmount"
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "withdrawRewards",
649
+ "constant": false,
650
+ "payable": false,
651
+
652
+ "inputs": [
653
+ {
654
+ "type": "address",
655
+ "name": "staker"
656
+ },
657
+ {
658
+ "type": "uint104",
659
+ "name": "batchSize"
660
+ }
661
+ ],
662
+ "outputs": [
663
+ {
664
+ "type": "uint256",
665
+ "name": "withdrawn"
666
+ },
667
+ {
668
+ "type": "uint256",
669
+ "name": "withdrawnUntilIndex"
670
+ }
671
+ ]
672
+ },
673
+ {
674
+ "type": "function",
675
+ "name": "withdrawRewardsTo",
676
+ "constant": false,
677
+ "payable": false,
678
+
679
+ "inputs": [
680
+ {
681
+ "type": "address",
682
+ "name": "destination"
683
+ },
684
+ {
685
+ "type": "uint104",
686
+ "name": "batchSize"
687
+ }
688
+ ],
689
+ "outputs": [
690
+ {
691
+ "type": "uint256",
692
+ "name": "withdrawn"
693
+ },
694
+ {
695
+ "type": "uint256",
696
+ "name": "withdrawnUntilIndex"
697
+ }
698
+ ]
699
+ }
700
+ ]