@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,1320 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "coverAddress"
9
+ },
10
+ {
11
+ "type": "address",
12
+ "name": "productsV1Address"
13
+ },
14
+ {
15
+ "type": "address",
16
+ "name": "stakingNFTAddress"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "type": "event",
22
+ "anonymous": false,
23
+ "name": "BurnRequested",
24
+ "inputs": [
25
+ {
26
+ "type": "address",
27
+ "name": "contractAddress",
28
+ "indexed": true
29
+ },
30
+ {
31
+ "type": "uint256",
32
+ "name": "amount",
33
+ "indexed": false
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "event",
39
+ "anonymous": false,
40
+ "name": "Burned",
41
+ "inputs": [
42
+ {
43
+ "type": "address",
44
+ "name": "contractAddress",
45
+ "indexed": true
46
+ },
47
+ {
48
+ "type": "uint256",
49
+ "name": "amount",
50
+ "indexed": false
51
+ },
52
+ {
53
+ "type": "uint256",
54
+ "name": "contractStakeBeforeBurn",
55
+ "indexed": false
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "type": "event",
61
+ "anonymous": false,
62
+ "name": "Deposited",
63
+ "inputs": [
64
+ {
65
+ "type": "address",
66
+ "name": "staker",
67
+ "indexed": true
68
+ },
69
+ {
70
+ "type": "uint256",
71
+ "name": "amount",
72
+ "indexed": false
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "event",
78
+ "anonymous": false,
79
+ "name": "PendingActionsProcessed",
80
+ "inputs": [
81
+ {
82
+ "type": "bool",
83
+ "name": "finished",
84
+ "indexed": false
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "type": "event",
90
+ "anonymous": false,
91
+ "name": "ProductNotFound",
92
+ "inputs": [
93
+ {
94
+ "type": "address",
95
+ "name": "oldProductId",
96
+ "indexed": false
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "type": "event",
102
+ "anonymous": false,
103
+ "name": "RewardAdded",
104
+ "inputs": [
105
+ {
106
+ "type": "address",
107
+ "name": "contractAddress",
108
+ "indexed": true
109
+ },
110
+ {
111
+ "type": "uint256",
112
+ "name": "amount",
113
+ "indexed": false
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "type": "event",
119
+ "anonymous": false,
120
+ "name": "RewardRequested",
121
+ "inputs": [
122
+ {
123
+ "type": "address",
124
+ "name": "contractAddress",
125
+ "indexed": true
126
+ },
127
+ {
128
+ "type": "uint256",
129
+ "name": "amount",
130
+ "indexed": false
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "type": "event",
136
+ "anonymous": false,
137
+ "name": "RewardWithdrawn",
138
+ "inputs": [
139
+ {
140
+ "type": "address",
141
+ "name": "staker",
142
+ "indexed": true
143
+ },
144
+ {
145
+ "type": "uint256",
146
+ "name": "amount",
147
+ "indexed": false
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "event",
153
+ "anonymous": false,
154
+ "name": "Rewarded",
155
+ "inputs": [
156
+ {
157
+ "type": "address",
158
+ "name": "contractAddress",
159
+ "indexed": true
160
+ },
161
+ {
162
+ "type": "uint256",
163
+ "name": "amount",
164
+ "indexed": false
165
+ },
166
+ {
167
+ "type": "uint256",
168
+ "name": "contractStake",
169
+ "indexed": false
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "type": "event",
175
+ "anonymous": false,
176
+ "name": "Staked",
177
+ "inputs": [
178
+ {
179
+ "type": "address",
180
+ "name": "contractAddress",
181
+ "indexed": true
182
+ },
183
+ {
184
+ "type": "address",
185
+ "name": "staker",
186
+ "indexed": true
187
+ },
188
+ {
189
+ "type": "uint256",
190
+ "name": "amount",
191
+ "indexed": false
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "type": "event",
197
+ "anonymous": false,
198
+ "name": "UnstakeRequested",
199
+ "inputs": [
200
+ {
201
+ "type": "address",
202
+ "name": "contractAddress",
203
+ "indexed": true
204
+ },
205
+ {
206
+ "type": "address",
207
+ "name": "staker",
208
+ "indexed": true
209
+ },
210
+ {
211
+ "type": "uint256",
212
+ "name": "amount",
213
+ "indexed": false
214
+ },
215
+ {
216
+ "type": "uint256",
217
+ "name": "unstakeAt",
218
+ "indexed": false
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "type": "event",
224
+ "anonymous": false,
225
+ "name": "Unstaked",
226
+ "inputs": [
227
+ {
228
+ "type": "address",
229
+ "name": "contractAddress",
230
+ "indexed": true
231
+ },
232
+ {
233
+ "type": "address",
234
+ "name": "staker",
235
+ "indexed": true
236
+ },
237
+ {
238
+ "type": "uint256",
239
+ "name": "amount",
240
+ "indexed": false
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "type": "event",
246
+ "anonymous": false,
247
+ "name": "Withdrawn",
248
+ "inputs": [
249
+ {
250
+ "type": "address",
251
+ "name": "staker",
252
+ "indexed": true
253
+ },
254
+ {
255
+ "type": "uint256",
256
+ "name": "amount",
257
+ "indexed": false
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "type": "function",
263
+ "name": "MAX_EXPOSURE",
264
+ "constant": true,
265
+ "stateMutability": "view",
266
+ "payable": false,
267
+
268
+ "inputs": [],
269
+ "outputs": [
270
+ {
271
+ "type": "uint256"
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "type": "function",
277
+ "name": "MIN_STAKE",
278
+ "constant": true,
279
+ "stateMutability": "view",
280
+ "payable": false,
281
+
282
+ "inputs": [],
283
+ "outputs": [
284
+ {
285
+ "type": "uint256"
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "type": "function",
291
+ "name": "MIN_UNSTAKE",
292
+ "constant": true,
293
+ "stateMutability": "view",
294
+ "payable": false,
295
+
296
+ "inputs": [],
297
+ "outputs": [
298
+ {
299
+ "type": "uint256"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "type": "function",
305
+ "name": "REWARD_ROUNDS_START",
306
+ "constant": true,
307
+ "stateMutability": "view",
308
+ "payable": false,
309
+
310
+ "inputs": [],
311
+ "outputs": [
312
+ {
313
+ "type": "uint256"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "type": "function",
319
+ "name": "REWARD_ROUND_DURATION",
320
+ "constant": true,
321
+ "stateMutability": "view",
322
+ "payable": false,
323
+
324
+ "inputs": [],
325
+ "outputs": [
326
+ {
327
+ "type": "uint256"
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "type": "function",
333
+ "name": "UNSTAKE_LOCK_TIME",
334
+ "constant": true,
335
+ "stateMutability": "view",
336
+ "payable": false,
337
+
338
+ "inputs": [],
339
+ "outputs": [
340
+ {
341
+ "type": "uint256"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "type": "function",
347
+ "name": "_processPendingActions",
348
+ "constant": false,
349
+ "payable": false,
350
+
351
+ "inputs": [
352
+ {
353
+ "type": "uint256",
354
+ "name": "maxIterations"
355
+ }
356
+ ],
357
+ "outputs": [
358
+ {
359
+ "type": "bool",
360
+ "name": "finished"
361
+ },
362
+ {
363
+ "type": "uint256",
364
+ "name": "iterationsLeft"
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "type": "function",
370
+ "name": "accumulateReward",
371
+ "constant": true,
372
+ "stateMutability": "pure",
373
+ "payable": false,
374
+
375
+ "inputs": [
376
+ {
377
+ "type": "address"
378
+ },
379
+ {
380
+ "type": "uint256"
381
+ }
382
+ ],
383
+ "outputs": []
384
+ },
385
+ {
386
+ "type": "function",
387
+ "name": "accumulatedRewards",
388
+ "constant": true,
389
+ "stateMutability": "view",
390
+ "payable": false,
391
+
392
+ "inputs": [
393
+ {
394
+ "type": "address"
395
+ }
396
+ ],
397
+ "outputs": [
398
+ {
399
+ "type": "uint256",
400
+ "name": "amount"
401
+ },
402
+ {
403
+ "type": "uint256",
404
+ "name": "lastDistributionRound"
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "type": "function",
410
+ "name": "burn",
411
+ "constant": true,
412
+ "stateMutability": "view",
413
+ "payable": false,
414
+
415
+ "inputs": [],
416
+ "outputs": [
417
+ {
418
+ "type": "uint256",
419
+ "name": "amount"
420
+ },
421
+ {
422
+ "type": "uint256",
423
+ "name": "burnedAt"
424
+ },
425
+ {
426
+ "type": "address",
427
+ "name": "contractAddress"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "type": "function",
433
+ "name": "changeDependentContractAddress",
434
+ "constant": false,
435
+ "payable": false,
436
+
437
+ "inputs": [],
438
+ "outputs": []
439
+ },
440
+ {
441
+ "type": "function",
442
+ "name": "changeMasterAddress",
443
+ "constant": false,
444
+ "payable": false,
445
+
446
+ "inputs": [
447
+ {
448
+ "type": "address",
449
+ "name": "masterAddress"
450
+ }
451
+ ],
452
+ "outputs": []
453
+ },
454
+ {
455
+ "type": "function",
456
+ "name": "contractBurned",
457
+ "constant": true,
458
+ "stateMutability": "view",
459
+ "payable": false,
460
+
461
+ "inputs": [],
462
+ "outputs": [
463
+ {
464
+ "type": "uint256"
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "type": "function",
470
+ "name": "contractRewarded",
471
+ "constant": true,
472
+ "stateMutability": "view",
473
+ "payable": false,
474
+
475
+ "inputs": [],
476
+ "outputs": [
477
+ {
478
+ "type": "uint256"
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "type": "function",
484
+ "name": "contractStake",
485
+ "constant": true,
486
+ "stateMutability": "view",
487
+ "payable": false,
488
+
489
+ "inputs": [
490
+ {
491
+ "type": "address",
492
+ "name": "contractAddress"
493
+ }
494
+ ],
495
+ "outputs": [
496
+ {
497
+ "type": "uint256"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "type": "function",
503
+ "name": "contractStaked",
504
+ "constant": true,
505
+ "stateMutability": "view",
506
+ "payable": false,
507
+
508
+ "inputs": [],
509
+ "outputs": [
510
+ {
511
+ "type": "uint256"
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "type": "function",
517
+ "name": "contractStakerAtIndex",
518
+ "constant": true,
519
+ "stateMutability": "view",
520
+ "payable": false,
521
+
522
+ "inputs": [
523
+ {
524
+ "type": "address",
525
+ "name": "contractAddress"
526
+ },
527
+ {
528
+ "type": "uint256",
529
+ "name": "stakerIndex"
530
+ }
531
+ ],
532
+ "outputs": [
533
+ {
534
+ "type": "address"
535
+ }
536
+ ]
537
+ },
538
+ {
539
+ "type": "function",
540
+ "name": "contractStakerCount",
541
+ "constant": true,
542
+ "stateMutability": "view",
543
+ "payable": false,
544
+
545
+ "inputs": [
546
+ {
547
+ "type": "address",
548
+ "name": "contractAddress"
549
+ }
550
+ ],
551
+ "outputs": [
552
+ {
553
+ "type": "uint256"
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "type": "function",
559
+ "name": "contractStakers",
560
+ "constant": true,
561
+ "stateMutability": "view",
562
+ "payable": false,
563
+
564
+ "inputs": [
565
+ {
566
+ "type": "address"
567
+ },
568
+ {
569
+ "type": "uint256"
570
+ }
571
+ ],
572
+ "outputs": [
573
+ {
574
+ "type": "address"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "contractStakersArray",
581
+ "constant": true,
582
+ "stateMutability": "view",
583
+ "payable": false,
584
+
585
+ "inputs": [
586
+ {
587
+ "type": "address",
588
+ "name": "contractAddress"
589
+ }
590
+ ],
591
+ "outputs": [
592
+ {
593
+ "type": "address[]",
594
+ "name": "_stakers"
595
+ }
596
+ ]
597
+ },
598
+ {
599
+ "type": "function",
600
+ "name": "cover",
601
+ "constant": true,
602
+ "stateMutability": "view",
603
+ "payable": false,
604
+
605
+ "inputs": [],
606
+ "outputs": [
607
+ {
608
+ "type": "address"
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ "type": "function",
614
+ "name": "depositAndStake",
615
+ "constant": true,
616
+ "stateMutability": "pure",
617
+ "payable": false,
618
+
619
+ "inputs": [
620
+ {
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "type": "address[]"
625
+ },
626
+ {
627
+ "type": "uint256[]"
628
+ }
629
+ ],
630
+ "outputs": []
631
+ },
632
+ {
633
+ "type": "function",
634
+ "name": "firstReward",
635
+ "constant": true,
636
+ "stateMutability": "view",
637
+ "payable": false,
638
+
639
+ "inputs": [],
640
+ "outputs": [
641
+ {
642
+ "type": "uint256"
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "getCurrentRewardsRound",
649
+ "constant": true,
650
+ "stateMutability": "view",
651
+ "payable": false,
652
+
653
+ "inputs": [],
654
+ "outputs": [
655
+ {
656
+ "type": "uint256"
657
+ }
658
+ ]
659
+ },
660
+ {
661
+ "type": "function",
662
+ "name": "getV1PriceForProduct",
663
+ "constant": true,
664
+ "stateMutability": "pure",
665
+ "payable": false,
666
+
667
+ "inputs": [
668
+ {
669
+ "type": "uint256",
670
+ "name": "id"
671
+ }
672
+ ],
673
+ "outputs": [
674
+ {
675
+ "type": "uint96"
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ "type": "function",
681
+ "name": "hasPendingActions",
682
+ "constant": true,
683
+ "stateMutability": "view",
684
+ "payable": false,
685
+
686
+ "inputs": [],
687
+ "outputs": [
688
+ {
689
+ "type": "bool"
690
+ }
691
+ ]
692
+ },
693
+ {
694
+ "type": "function",
695
+ "name": "hasPendingBurns",
696
+ "constant": true,
697
+ "stateMutability": "view",
698
+ "payable": false,
699
+
700
+ "inputs": [],
701
+ "outputs": [
702
+ {
703
+ "type": "bool"
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "type": "function",
709
+ "name": "hasPendingRewards",
710
+ "constant": true,
711
+ "stateMutability": "view",
712
+ "payable": false,
713
+
714
+ "inputs": [],
715
+ "outputs": [
716
+ {
717
+ "type": "bool"
718
+ }
719
+ ]
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "hasPendingUnstakeRequests",
724
+ "constant": true,
725
+ "stateMutability": "view",
726
+ "payable": false,
727
+
728
+ "inputs": [],
729
+ "outputs": [
730
+ {
731
+ "type": "bool"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "type": "function",
737
+ "name": "internalContracts",
738
+ "constant": true,
739
+ "stateMutability": "view",
740
+ "payable": false,
741
+
742
+ "inputs": [
743
+ {
744
+ "type": "uint256"
745
+ }
746
+ ],
747
+ "outputs": [
748
+ {
749
+ "type": "address"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "type": "function",
755
+ "name": "isContractStakeCalculated",
756
+ "constant": true,
757
+ "stateMutability": "view",
758
+ "payable": false,
759
+
760
+ "inputs": [],
761
+ "outputs": [
762
+ {
763
+ "type": "bool"
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "type": "function",
769
+ "name": "lastRewardId",
770
+ "constant": true,
771
+ "stateMutability": "view",
772
+ "payable": false,
773
+
774
+ "inputs": [],
775
+ "outputs": [
776
+ {
777
+ "type": "uint256"
778
+ }
779
+ ]
780
+ },
781
+ {
782
+ "type": "function",
783
+ "name": "lastUnstakeRequestId",
784
+ "constant": true,
785
+ "stateMutability": "view",
786
+ "payable": false,
787
+
788
+ "inputs": [],
789
+ "outputs": [
790
+ {
791
+ "type": "uint256"
792
+ }
793
+ ]
794
+ },
795
+ {
796
+ "type": "function",
797
+ "name": "master",
798
+ "constant": true,
799
+ "stateMutability": "view",
800
+ "payable": false,
801
+
802
+ "inputs": [],
803
+ "outputs": [
804
+ {
805
+ "type": "address"
806
+ }
807
+ ]
808
+ },
809
+ {
810
+ "type": "function",
811
+ "name": "migrateToExistingV2Pool",
812
+ "constant": false,
813
+ "payable": false,
814
+
815
+ "inputs": [
816
+ {
817
+ "type": "uint256",
818
+ "name": "stakingPoolId"
819
+ },
820
+ {
821
+ "type": "uint256",
822
+ "name": "trancheId"
823
+ }
824
+ ],
825
+ "outputs": []
826
+ },
827
+ {
828
+ "type": "function",
829
+ "name": "migrateToNewV2Pool",
830
+ "constant": false,
831
+ "payable": false,
832
+
833
+ "inputs": [
834
+ {
835
+ "type": "address",
836
+ "name": "stakerAddress"
837
+ }
838
+ ],
839
+ "outputs": []
840
+ },
841
+ {
842
+ "type": "function",
843
+ "name": "processPendingActions",
844
+ "constant": false,
845
+ "payable": false,
846
+
847
+ "inputs": [
848
+ {
849
+ "type": "uint256",
850
+ "name": "maxIterations"
851
+ }
852
+ ],
853
+ "outputs": [
854
+ {
855
+ "type": "bool",
856
+ "name": "finished"
857
+ }
858
+ ]
859
+ },
860
+ {
861
+ "type": "function",
862
+ "name": "processPendingActionsReturnLeft",
863
+ "constant": false,
864
+ "payable": false,
865
+
866
+ "inputs": [
867
+ {
868
+ "type": "uint256",
869
+ "name": "maxIterations"
870
+ }
871
+ ],
872
+ "outputs": [
873
+ {
874
+ "type": "bool",
875
+ "name": "finished"
876
+ },
877
+ {
878
+ "type": "uint256",
879
+ "name": "iterationsLeft"
880
+ }
881
+ ]
882
+ },
883
+ {
884
+ "type": "function",
885
+ "name": "processedToStakerIndex",
886
+ "constant": true,
887
+ "stateMutability": "view",
888
+ "payable": false,
889
+
890
+ "inputs": [],
891
+ "outputs": [
892
+ {
893
+ "type": "uint256"
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "type": "function",
899
+ "name": "productsV1",
900
+ "constant": true,
901
+ "stateMutability": "view",
902
+ "payable": false,
903
+
904
+ "inputs": [],
905
+ "outputs": [
906
+ {
907
+ "type": "address"
908
+ }
909
+ ]
910
+ },
911
+ {
912
+ "type": "function",
913
+ "name": "pushBurn",
914
+ "constant": true,
915
+ "stateMutability": "pure",
916
+ "payable": false,
917
+
918
+ "inputs": [
919
+ {
920
+ "type": "address"
921
+ },
922
+ {
923
+ "type": "uint256"
924
+ }
925
+ ],
926
+ "outputs": []
927
+ },
928
+ {
929
+ "type": "function",
930
+ "name": "pushRewards",
931
+ "constant": false,
932
+ "payable": false,
933
+
934
+ "inputs": [
935
+ {
936
+ "type": "address[]",
937
+ "name": "contractAddresses"
938
+ }
939
+ ],
940
+ "outputs": []
941
+ },
942
+ {
943
+ "type": "function",
944
+ "name": "requestUnstake",
945
+ "constant": true,
946
+ "stateMutability": "pure",
947
+ "payable": false,
948
+
949
+ "inputs": [
950
+ {
951
+ "type": "address[]"
952
+ },
953
+ {
954
+ "type": "uint256[]"
955
+ },
956
+ {
957
+ "type": "uint256"
958
+ }
959
+ ],
960
+ "outputs": []
961
+ },
962
+ {
963
+ "type": "function",
964
+ "name": "rewards",
965
+ "constant": true,
966
+ "stateMutability": "view",
967
+ "payable": false,
968
+
969
+ "inputs": [
970
+ {
971
+ "type": "uint256"
972
+ }
973
+ ],
974
+ "outputs": [
975
+ {
976
+ "type": "uint256",
977
+ "name": "amount"
978
+ },
979
+ {
980
+ "type": "uint256",
981
+ "name": "rewardedAt"
982
+ },
983
+ {
984
+ "type": "address",
985
+ "name": "contractAddress"
986
+ }
987
+ ]
988
+ },
989
+ {
990
+ "type": "function",
991
+ "name": "stakerContractAtIndex",
992
+ "constant": true,
993
+ "stateMutability": "view",
994
+ "payable": false,
995
+
996
+ "inputs": [
997
+ {
998
+ "type": "address",
999
+ "name": "staker"
1000
+ },
1001
+ {
1002
+ "type": "uint256",
1003
+ "name": "contractIndex"
1004
+ }
1005
+ ],
1006
+ "outputs": [
1007
+ {
1008
+ "type": "address"
1009
+ }
1010
+ ]
1011
+ },
1012
+ {
1013
+ "type": "function",
1014
+ "name": "stakerContractCount",
1015
+ "constant": true,
1016
+ "stateMutability": "view",
1017
+ "payable": false,
1018
+
1019
+ "inputs": [
1020
+ {
1021
+ "type": "address",
1022
+ "name": "staker"
1023
+ }
1024
+ ],
1025
+ "outputs": [
1026
+ {
1027
+ "type": "uint256"
1028
+ }
1029
+ ]
1030
+ },
1031
+ {
1032
+ "type": "function",
1033
+ "name": "stakerContractPendingUnstakeTotal",
1034
+ "constant": true,
1035
+ "stateMutability": "view",
1036
+ "payable": false,
1037
+
1038
+ "inputs": [
1039
+ {
1040
+ "type": "address",
1041
+ "name": "staker"
1042
+ },
1043
+ {
1044
+ "type": "address",
1045
+ "name": "contractAddress"
1046
+ }
1047
+ ],
1048
+ "outputs": [
1049
+ {
1050
+ "type": "uint256"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ "type": "function",
1056
+ "name": "stakerContractStake",
1057
+ "constant": true,
1058
+ "stateMutability": "view",
1059
+ "payable": false,
1060
+
1061
+ "inputs": [
1062
+ {
1063
+ "type": "address",
1064
+ "name": "staker"
1065
+ },
1066
+ {
1067
+ "type": "address",
1068
+ "name": "contractAddress"
1069
+ }
1070
+ ],
1071
+ "outputs": [
1072
+ {
1073
+ "type": "uint256"
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "type": "function",
1079
+ "name": "stakerContractsArray",
1080
+ "constant": true,
1081
+ "stateMutability": "view",
1082
+ "payable": false,
1083
+
1084
+ "inputs": [
1085
+ {
1086
+ "type": "address",
1087
+ "name": "staker"
1088
+ }
1089
+ ],
1090
+ "outputs": [
1091
+ {
1092
+ "type": "address[]"
1093
+ }
1094
+ ]
1095
+ },
1096
+ {
1097
+ "type": "function",
1098
+ "name": "stakerDeposit",
1099
+ "constant": true,
1100
+ "stateMutability": "view",
1101
+ "payable": false,
1102
+
1103
+ "inputs": [
1104
+ {
1105
+ "type": "address",
1106
+ "name": "staker"
1107
+ }
1108
+ ],
1109
+ "outputs": [
1110
+ {
1111
+ "type": "uint256"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "type": "function",
1117
+ "name": "stakerMaxWithdrawable",
1118
+ "constant": true,
1119
+ "stateMutability": "view",
1120
+ "payable": false,
1121
+
1122
+ "inputs": [
1123
+ {
1124
+ "type": "address",
1125
+ "name": "stakerAddress"
1126
+ }
1127
+ ],
1128
+ "outputs": [
1129
+ {
1130
+ "type": "uint256"
1131
+ }
1132
+ ]
1133
+ },
1134
+ {
1135
+ "type": "function",
1136
+ "name": "stakerReward",
1137
+ "constant": true,
1138
+ "stateMutability": "view",
1139
+ "payable": false,
1140
+
1141
+ "inputs": [
1142
+ {
1143
+ "type": "address",
1144
+ "name": "staker"
1145
+ }
1146
+ ],
1147
+ "outputs": [
1148
+ {
1149
+ "type": "uint256"
1150
+ }
1151
+ ]
1152
+ },
1153
+ {
1154
+ "type": "function",
1155
+ "name": "stakers",
1156
+ "constant": true,
1157
+ "stateMutability": "view",
1158
+ "payable": false,
1159
+
1160
+ "inputs": [
1161
+ {
1162
+ "type": "address"
1163
+ }
1164
+ ],
1165
+ "outputs": [
1166
+ {
1167
+ "type": "uint256",
1168
+ "name": "deposit"
1169
+ },
1170
+ {
1171
+ "type": "uint256",
1172
+ "name": "reward"
1173
+ }
1174
+ ]
1175
+ },
1176
+ {
1177
+ "type": "function",
1178
+ "name": "stakingNFT",
1179
+ "constant": true,
1180
+ "stateMutability": "view",
1181
+ "payable": false,
1182
+
1183
+ "inputs": [],
1184
+ "outputs": [
1185
+ {
1186
+ "type": "address"
1187
+ }
1188
+ ]
1189
+ },
1190
+ {
1191
+ "type": "function",
1192
+ "name": "unstakeRequestAtIndex",
1193
+ "constant": true,
1194
+ "stateMutability": "view",
1195
+ "payable": false,
1196
+
1197
+ "inputs": [
1198
+ {
1199
+ "type": "uint256",
1200
+ "name": "unstakeRequestId"
1201
+ }
1202
+ ],
1203
+ "outputs": [
1204
+ {
1205
+ "type": "uint256",
1206
+ "name": "amount"
1207
+ },
1208
+ {
1209
+ "type": "uint256",
1210
+ "name": "unstakeAt"
1211
+ },
1212
+ {
1213
+ "type": "address",
1214
+ "name": "contractAddress"
1215
+ },
1216
+ {
1217
+ "type": "address",
1218
+ "name": "stakerAddress"
1219
+ },
1220
+ {
1221
+ "type": "uint256",
1222
+ "name": "next"
1223
+ }
1224
+ ]
1225
+ },
1226
+ {
1227
+ "type": "function",
1228
+ "name": "unstakeRequests",
1229
+ "constant": true,
1230
+ "stateMutability": "view",
1231
+ "payable": false,
1232
+
1233
+ "inputs": [
1234
+ {
1235
+ "type": "uint256"
1236
+ }
1237
+ ],
1238
+ "outputs": [
1239
+ {
1240
+ "type": "uint256",
1241
+ "name": "amount"
1242
+ },
1243
+ {
1244
+ "type": "uint256",
1245
+ "name": "unstakeAt"
1246
+ },
1247
+ {
1248
+ "type": "address",
1249
+ "name": "contractAddress"
1250
+ },
1251
+ {
1252
+ "type": "address",
1253
+ "name": "stakerAddress"
1254
+ },
1255
+ {
1256
+ "type": "uint256",
1257
+ "name": "next"
1258
+ }
1259
+ ]
1260
+ },
1261
+ {
1262
+ "type": "function",
1263
+ "name": "updateUintParameters",
1264
+ "constant": false,
1265
+ "payable": false,
1266
+
1267
+ "inputs": [
1268
+ {
1269
+ "type": "bytes8",
1270
+ "name": "code"
1271
+ },
1272
+ {
1273
+ "type": "uint256",
1274
+ "name": "value"
1275
+ }
1276
+ ],
1277
+ "outputs": []
1278
+ },
1279
+ {
1280
+ "type": "function",
1281
+ "name": "withdraw",
1282
+ "constant": false,
1283
+ "payable": false,
1284
+
1285
+ "inputs": [
1286
+ {
1287
+ "type": "uint256"
1288
+ }
1289
+ ],
1290
+ "outputs": []
1291
+ },
1292
+ {
1293
+ "type": "function",
1294
+ "name": "withdrawForUser",
1295
+ "constant": false,
1296
+ "payable": false,
1297
+
1298
+ "inputs": [
1299
+ {
1300
+ "type": "address",
1301
+ "name": "user"
1302
+ }
1303
+ ],
1304
+ "outputs": []
1305
+ },
1306
+ {
1307
+ "type": "function",
1308
+ "name": "withdrawReward",
1309
+ "constant": false,
1310
+ "payable": false,
1311
+
1312
+ "inputs": [
1313
+ {
1314
+ "type": "address",
1315
+ "name": "stakerAddress"
1316
+ }
1317
+ ],
1318
+ "outputs": []
1319
+ }
1320
+ ]