@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,1433 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "payable": false,
5
+ "inputs": [
6
+ {
7
+ "type": "address",
8
+ "name": "_stakingNFT"
9
+ },
10
+ {
11
+ "type": "address",
12
+ "name": "_token"
13
+ },
14
+ {
15
+ "type": "address",
16
+ "name": "_coverContract"
17
+ },
18
+ {
19
+ "type": "address",
20
+ "name": "_tokenController"
21
+ },
22
+ {
23
+ "type": "address",
24
+ "name": "_master"
25
+ },
26
+ {
27
+ "type": "address",
28
+ "name": "_stakingProducts"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "type": "error",
34
+ "name": "InsufficientCapacity",
35
+ "inputs": []
36
+ },
37
+ {
38
+ "type": "error",
39
+ "name": "InsufficientDepositAmount",
40
+ "inputs": []
41
+ },
42
+ {
43
+ "type": "error",
44
+ "name": "InvalidStakingPoolForToken",
45
+ "inputs": []
46
+ },
47
+ {
48
+ "type": "error",
49
+ "name": "InvalidTokenId",
50
+ "inputs": []
51
+ },
52
+ {
53
+ "type": "error",
54
+ "name": "ManagerNxmIsLockedForGovernanceVote",
55
+ "inputs": []
56
+ },
57
+ {
58
+ "type": "error",
59
+ "name": "MaxPoolFeeAbove100",
60
+ "inputs": []
61
+ },
62
+ {
63
+ "type": "error",
64
+ "name": "NewTrancheEndsBeforeInitialTranche",
65
+ "inputs": []
66
+ },
67
+ {
68
+ "type": "error",
69
+ "name": "NotTokenOwnerOrApproved",
70
+ "inputs": []
71
+ },
72
+ {
73
+ "type": "error",
74
+ "name": "NxmIsLockedForGovernanceVote",
75
+ "inputs": []
76
+ },
77
+ {
78
+ "type": "error",
79
+ "name": "OnlyCoverContract",
80
+ "inputs": []
81
+ },
82
+ {
83
+ "type": "error",
84
+ "name": "OnlyManager",
85
+ "inputs": []
86
+ },
87
+ {
88
+ "type": "error",
89
+ "name": "PoolFeeExceedsMax",
90
+ "inputs": []
91
+ },
92
+ {
93
+ "type": "error",
94
+ "name": "PoolHalted",
95
+ "inputs": []
96
+ },
97
+ {
98
+ "type": "error",
99
+ "name": "PrivatePool",
100
+ "inputs": []
101
+ },
102
+ {
103
+ "type": "error",
104
+ "name": "RequestedTrancheIsExpired",
105
+ "inputs": []
106
+ },
107
+ {
108
+ "type": "error",
109
+ "name": "RequestedTrancheIsNotYetActive",
110
+ "inputs": []
111
+ },
112
+ {
113
+ "type": "error",
114
+ "name": "RevertedWithoutReason",
115
+ "inputs": [
116
+ {
117
+ "type": "uint256",
118
+ "name": "index"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "type": "error",
124
+ "name": "RewardRatioTooHigh",
125
+ "inputs": []
126
+ },
127
+ {
128
+ "type": "error",
129
+ "name": "SystemPaused",
130
+ "inputs": []
131
+ },
132
+ {
133
+ "type": "event",
134
+ "anonymous": false,
135
+ "name": "DepositExtended",
136
+ "inputs": [
137
+ {
138
+ "type": "address",
139
+ "name": "user",
140
+ "indexed": true
141
+ },
142
+ {
143
+ "type": "uint256",
144
+ "name": "tokenId",
145
+ "indexed": false
146
+ },
147
+ {
148
+ "type": "uint256",
149
+ "name": "initialTrancheId",
150
+ "indexed": false
151
+ },
152
+ {
153
+ "type": "uint256",
154
+ "name": "newTrancheId",
155
+ "indexed": false
156
+ },
157
+ {
158
+ "type": "uint256",
159
+ "name": "topUpAmount",
160
+ "indexed": false
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "type": "event",
166
+ "anonymous": false,
167
+ "name": "PoolDescriptionSet",
168
+ "inputs": [
169
+ {
170
+ "type": "string",
171
+ "name": "ipfsDescriptionHash",
172
+ "indexed": false
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "type": "event",
178
+ "anonymous": false,
179
+ "name": "PoolFeeChanged",
180
+ "inputs": [
181
+ {
182
+ "type": "address",
183
+ "name": "manager",
184
+ "indexed": true
185
+ },
186
+ {
187
+ "type": "uint256",
188
+ "name": "newFee",
189
+ "indexed": false
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "type": "event",
195
+ "anonymous": false,
196
+ "name": "PoolPrivacyChanged",
197
+ "inputs": [
198
+ {
199
+ "type": "address",
200
+ "name": "manager",
201
+ "indexed": true
202
+ },
203
+ {
204
+ "type": "bool",
205
+ "name": "isPrivate",
206
+ "indexed": false
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "type": "event",
212
+ "anonymous": false,
213
+ "name": "StakeBurned",
214
+ "inputs": [
215
+ {
216
+ "type": "uint256",
217
+ "name": "amount",
218
+ "indexed": false
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "type": "event",
224
+ "anonymous": false,
225
+ "name": "StakeDeposited",
226
+ "inputs": [
227
+ {
228
+ "type": "address",
229
+ "name": "user",
230
+ "indexed": true
231
+ },
232
+ {
233
+ "type": "uint256",
234
+ "name": "amount",
235
+ "indexed": false
236
+ },
237
+ {
238
+ "type": "uint256",
239
+ "name": "trancheId",
240
+ "indexed": false
241
+ },
242
+ {
243
+ "type": "uint256",
244
+ "name": "tokenId",
245
+ "indexed": false
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "type": "event",
251
+ "anonymous": false,
252
+ "name": "Withdraw",
253
+ "inputs": [
254
+ {
255
+ "type": "address",
256
+ "name": "user",
257
+ "indexed": true
258
+ },
259
+ {
260
+ "type": "uint256",
261
+ "name": "tokenId",
262
+ "indexed": true
263
+ },
264
+ {
265
+ "type": "uint256",
266
+ "name": "tranche",
267
+ "indexed": false
268
+ },
269
+ {
270
+ "type": "uint256",
271
+ "name": "amountStakeWithdrawn",
272
+ "indexed": false
273
+ },
274
+ {
275
+ "type": "uint256",
276
+ "name": "amountRewardsWithdrawn",
277
+ "indexed": false
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "type": "function",
283
+ "name": "ALLOCATION_UNITS_PER_NXM",
284
+ "constant": true,
285
+ "stateMutability": "view",
286
+ "payable": false,
287
+
288
+ "inputs": [],
289
+ "outputs": [
290
+ {
291
+ "type": "uint256"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "type": "function",
297
+ "name": "BUCKET_DURATION",
298
+ "constant": true,
299
+ "stateMutability": "view",
300
+ "payable": false,
301
+
302
+ "inputs": [],
303
+ "outputs": [
304
+ {
305
+ "type": "uint256"
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "type": "function",
311
+ "name": "BUCKET_TRANCHE_GROUP_SIZE",
312
+ "constant": true,
313
+ "stateMutability": "view",
314
+ "payable": false,
315
+
316
+ "inputs": [],
317
+ "outputs": [
318
+ {
319
+ "type": "uint256"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "type": "function",
325
+ "name": "CAPACITY_REDUCTION_DENOMINATOR",
326
+ "constant": true,
327
+ "stateMutability": "view",
328
+ "payable": false,
329
+
330
+ "inputs": [],
331
+ "outputs": [
332
+ {
333
+ "type": "uint256"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "COVER_TRANCHE_GROUP_SIZE",
340
+ "constant": true,
341
+ "stateMutability": "view",
342
+ "payable": false,
343
+
344
+ "inputs": [],
345
+ "outputs": [
346
+ {
347
+ "type": "uint256"
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "type": "function",
353
+ "name": "GLOBAL_CAPACITY_DENOMINATOR",
354
+ "constant": true,
355
+ "stateMutability": "view",
356
+ "payable": false,
357
+
358
+ "inputs": [],
359
+ "outputs": [
360
+ {
361
+ "type": "uint256"
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "type": "function",
367
+ "name": "MAX_ACTIVE_TRANCHES",
368
+ "constant": true,
369
+ "stateMutability": "view",
370
+ "payable": false,
371
+
372
+ "inputs": [],
373
+ "outputs": [
374
+ {
375
+ "type": "uint256"
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "type": "function",
381
+ "name": "NXM_PER_ALLOCATION_UNIT",
382
+ "constant": true,
383
+ "stateMutability": "view",
384
+ "payable": false,
385
+
386
+ "inputs": [],
387
+ "outputs": [
388
+ {
389
+ "type": "uint256"
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "type": "function",
395
+ "name": "ONE_NXM",
396
+ "constant": true,
397
+ "stateMutability": "view",
398
+ "payable": false,
399
+
400
+ "inputs": [],
401
+ "outputs": [
402
+ {
403
+ "type": "uint256"
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "type": "function",
409
+ "name": "POOL_FEE_DENOMINATOR",
410
+ "constant": true,
411
+ "stateMutability": "view",
412
+ "payable": false,
413
+
414
+ "inputs": [],
415
+ "outputs": [
416
+ {
417
+ "type": "uint256"
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "type": "function",
423
+ "name": "REWARDS_DENOMINATOR",
424
+ "constant": true,
425
+ "stateMutability": "view",
426
+ "payable": false,
427
+
428
+ "inputs": [],
429
+ "outputs": [
430
+ {
431
+ "type": "uint256"
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ "type": "function",
437
+ "name": "REWARD_BONUS_PER_TRANCHE_DENOMINATOR",
438
+ "constant": true,
439
+ "stateMutability": "view",
440
+ "payable": false,
441
+
442
+ "inputs": [],
443
+ "outputs": [
444
+ {
445
+ "type": "uint256"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "type": "function",
451
+ "name": "REWARD_BONUS_PER_TRANCHE_RATIO",
452
+ "constant": true,
453
+ "stateMutability": "view",
454
+ "payable": false,
455
+
456
+ "inputs": [],
457
+ "outputs": [
458
+ {
459
+ "type": "uint256"
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "type": "function",
465
+ "name": "TRANCHE_DURATION",
466
+ "constant": true,
467
+ "stateMutability": "view",
468
+ "payable": false,
469
+
470
+ "inputs": [],
471
+ "outputs": [
472
+ {
473
+ "type": "uint256"
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ "type": "function",
479
+ "name": "WEIGHT_DENOMINATOR",
480
+ "constant": true,
481
+ "stateMutability": "view",
482
+ "payable": false,
483
+
484
+ "inputs": [],
485
+ "outputs": [
486
+ {
487
+ "type": "uint256"
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "type": "function",
493
+ "name": "burnStake",
494
+ "constant": false,
495
+ "payable": false,
496
+
497
+ "inputs": [
498
+ {
499
+ "type": "uint256",
500
+ "name": "amount"
501
+ },
502
+ {
503
+ "type": "tuple",
504
+ "name": "params",
505
+ "components": [
506
+ {
507
+ "type": "uint256",
508
+ "name": "allocationId"
509
+ },
510
+ {
511
+ "type": "uint256",
512
+ "name": "productId"
513
+ },
514
+ {
515
+ "type": "uint256",
516
+ "name": "start"
517
+ },
518
+ {
519
+ "type": "uint256",
520
+ "name": "period"
521
+ },
522
+ {
523
+ "type": "uint256",
524
+ "name": "deallocationAmount"
525
+ }
526
+ ]
527
+ }
528
+ ],
529
+ "outputs": []
530
+ },
531
+ {
532
+ "type": "function",
533
+ "name": "calculateNewRewardShares",
534
+ "constant": true,
535
+ "stateMutability": "pure",
536
+ "payable": false,
537
+
538
+ "inputs": [
539
+ {
540
+ "type": "uint256",
541
+ "name": "initialStakeShares"
542
+ },
543
+ {
544
+ "type": "uint256",
545
+ "name": "stakeSharesIncrease"
546
+ },
547
+ {
548
+ "type": "uint256",
549
+ "name": "initialTrancheId"
550
+ },
551
+ {
552
+ "type": "uint256",
553
+ "name": "newTrancheId"
554
+ },
555
+ {
556
+ "type": "uint256",
557
+ "name": "blockTimestamp"
558
+ }
559
+ ],
560
+ "outputs": [
561
+ {
562
+ "type": "uint256"
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "type": "function",
568
+ "name": "coverContract",
569
+ "constant": true,
570
+ "stateMutability": "view",
571
+ "payable": false,
572
+
573
+ "inputs": [],
574
+ "outputs": [
575
+ {
576
+ "type": "address"
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "type": "function",
582
+ "name": "coverTrancheAllocations",
583
+ "constant": true,
584
+ "stateMutability": "view",
585
+ "payable": false,
586
+
587
+ "inputs": [
588
+ {
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "outputs": [
593
+ {
594
+ "type": "uint256"
595
+ }
596
+ ]
597
+ },
598
+ {
599
+ "type": "function",
600
+ "name": "depositTo",
601
+ "constant": false,
602
+ "payable": false,
603
+
604
+ "inputs": [
605
+ {
606
+ "type": "uint256",
607
+ "name": "amount"
608
+ },
609
+ {
610
+ "type": "uint256",
611
+ "name": "trancheId"
612
+ },
613
+ {
614
+ "type": "uint256",
615
+ "name": "requestTokenId"
616
+ },
617
+ {
618
+ "type": "address",
619
+ "name": "destination"
620
+ }
621
+ ],
622
+ "outputs": [
623
+ {
624
+ "type": "uint256",
625
+ "name": "tokenId"
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "type": "function",
631
+ "name": "deposits",
632
+ "constant": true,
633
+ "stateMutability": "view",
634
+ "payable": false,
635
+
636
+ "inputs": [
637
+ {
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "type": "uint256"
642
+ }
643
+ ],
644
+ "outputs": [
645
+ {
646
+ "type": "uint96",
647
+ "name": "lastAccNxmPerRewardShare"
648
+ },
649
+ {
650
+ "type": "uint96",
651
+ "name": "pendingRewards"
652
+ },
653
+ {
654
+ "type": "uint128",
655
+ "name": "stakeShares"
656
+ },
657
+ {
658
+ "type": "uint128",
659
+ "name": "rewardsShares"
660
+ }
661
+ ]
662
+ },
663
+ {
664
+ "type": "function",
665
+ "name": "expiringCoverBuckets",
666
+ "constant": true,
667
+ "stateMutability": "view",
668
+ "payable": false,
669
+
670
+ "inputs": [
671
+ {
672
+ "type": "uint256"
673
+ },
674
+ {
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "type": "uint256"
679
+ }
680
+ ],
681
+ "outputs": [
682
+ {
683
+ "type": "uint256"
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "type": "function",
689
+ "name": "extendDeposit",
690
+ "constant": false,
691
+ "payable": false,
692
+
693
+ "inputs": [
694
+ {
695
+ "type": "uint256",
696
+ "name": "tokenId"
697
+ },
698
+ {
699
+ "type": "uint256",
700
+ "name": "initialTrancheId"
701
+ },
702
+ {
703
+ "type": "uint256",
704
+ "name": "newTrancheId"
705
+ },
706
+ {
707
+ "type": "uint256",
708
+ "name": "topUpAmount"
709
+ }
710
+ ],
711
+ "outputs": []
712
+ },
713
+ {
714
+ "type": "function",
715
+ "name": "getAccNxmPerRewardsShare",
716
+ "constant": true,
717
+ "stateMutability": "view",
718
+ "payable": false,
719
+
720
+ "inputs": [],
721
+ "outputs": [
722
+ {
723
+ "type": "uint256"
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "type": "function",
729
+ "name": "getActiveAllocations",
730
+ "constant": true,
731
+ "stateMutability": "view",
732
+ "payable": false,
733
+
734
+ "inputs": [
735
+ {
736
+ "type": "uint256",
737
+ "name": "productId"
738
+ }
739
+ ],
740
+ "outputs": [
741
+ {
742
+ "type": "uint256[]",
743
+ "name": "trancheAllocations"
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "type": "function",
749
+ "name": "getActiveStake",
750
+ "constant": true,
751
+ "stateMutability": "view",
752
+ "payable": false,
753
+
754
+ "inputs": [],
755
+ "outputs": [
756
+ {
757
+ "type": "uint256"
758
+ }
759
+ ]
760
+ },
761
+ {
762
+ "type": "function",
763
+ "name": "getActiveTrancheCapacities",
764
+ "constant": true,
765
+ "stateMutability": "view",
766
+ "payable": false,
767
+
768
+ "inputs": [
769
+ {
770
+ "type": "uint256",
771
+ "name": "productId"
772
+ },
773
+ {
774
+ "type": "uint256",
775
+ "name": "globalCapacityRatio"
776
+ },
777
+ {
778
+ "type": "uint256",
779
+ "name": "capacityReductionRatio"
780
+ }
781
+ ],
782
+ "outputs": [
783
+ {
784
+ "type": "uint256[]",
785
+ "name": "trancheCapacities"
786
+ },
787
+ {
788
+ "type": "uint256",
789
+ "name": "totalCapacity"
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "type": "function",
795
+ "name": "getDeposit",
796
+ "constant": true,
797
+ "stateMutability": "view",
798
+ "payable": false,
799
+
800
+ "inputs": [
801
+ {
802
+ "type": "uint256",
803
+ "name": "tokenId"
804
+ },
805
+ {
806
+ "type": "uint256",
807
+ "name": "trancheId"
808
+ }
809
+ ],
810
+ "outputs": [
811
+ {
812
+ "type": "uint256",
813
+ "name": "lastAccNxmPerRewardShare"
814
+ },
815
+ {
816
+ "type": "uint256",
817
+ "name": "pendingRewards"
818
+ },
819
+ {
820
+ "type": "uint256",
821
+ "name": "stakeShares"
822
+ },
823
+ {
824
+ "type": "uint256",
825
+ "name": "rewardsShares"
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "type": "function",
831
+ "name": "getExpiredTranche",
832
+ "constant": true,
833
+ "stateMutability": "view",
834
+ "payable": false,
835
+
836
+ "inputs": [
837
+ {
838
+ "type": "uint256",
839
+ "name": "trancheId"
840
+ }
841
+ ],
842
+ "outputs": [
843
+ {
844
+ "type": "uint256",
845
+ "name": "accNxmPerRewardShareAtExpiry"
846
+ },
847
+ {
848
+ "type": "uint256",
849
+ "name": "stakeAmountAtExpiry"
850
+ },
851
+ {
852
+ "type": "uint256",
853
+ "name": "stakeSharesSupplyAtExpiry"
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "type": "function",
859
+ "name": "getFirstActiveBucketId",
860
+ "constant": true,
861
+ "stateMutability": "view",
862
+ "payable": false,
863
+
864
+ "inputs": [],
865
+ "outputs": [
866
+ {
867
+ "type": "uint256"
868
+ }
869
+ ]
870
+ },
871
+ {
872
+ "type": "function",
873
+ "name": "getFirstActiveTrancheId",
874
+ "constant": true,
875
+ "stateMutability": "view",
876
+ "payable": false,
877
+
878
+ "inputs": [],
879
+ "outputs": [
880
+ {
881
+ "type": "uint256"
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "type": "function",
887
+ "name": "getLastAccNxmUpdate",
888
+ "constant": true,
889
+ "stateMutability": "view",
890
+ "payable": false,
891
+
892
+ "inputs": [],
893
+ "outputs": [
894
+ {
895
+ "type": "uint256"
896
+ }
897
+ ]
898
+ },
899
+ {
900
+ "type": "function",
901
+ "name": "getMaxPoolFee",
902
+ "constant": true,
903
+ "stateMutability": "view",
904
+ "payable": false,
905
+
906
+ "inputs": [],
907
+ "outputs": [
908
+ {
909
+ "type": "uint256"
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ "type": "function",
915
+ "name": "getNextAllocationId",
916
+ "constant": true,
917
+ "stateMutability": "view",
918
+ "payable": false,
919
+
920
+ "inputs": [],
921
+ "outputs": [
922
+ {
923
+ "type": "uint256"
924
+ }
925
+ ]
926
+ },
927
+ {
928
+ "type": "function",
929
+ "name": "getPoolFee",
930
+ "constant": true,
931
+ "stateMutability": "view",
932
+ "payable": false,
933
+
934
+ "inputs": [],
935
+ "outputs": [
936
+ {
937
+ "type": "uint256"
938
+ }
939
+ ]
940
+ },
941
+ {
942
+ "type": "function",
943
+ "name": "getPoolId",
944
+ "constant": true,
945
+ "stateMutability": "view",
946
+ "payable": false,
947
+
948
+ "inputs": [],
949
+ "outputs": [
950
+ {
951
+ "type": "uint256"
952
+ }
953
+ ]
954
+ },
955
+ {
956
+ "type": "function",
957
+ "name": "getRewardPerSecond",
958
+ "constant": true,
959
+ "stateMutability": "view",
960
+ "payable": false,
961
+
962
+ "inputs": [],
963
+ "outputs": [
964
+ {
965
+ "type": "uint256"
966
+ }
967
+ ]
968
+ },
969
+ {
970
+ "type": "function",
971
+ "name": "getRewardsSharesSupply",
972
+ "constant": true,
973
+ "stateMutability": "view",
974
+ "payable": false,
975
+
976
+ "inputs": [],
977
+ "outputs": [
978
+ {
979
+ "type": "uint256"
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "type": "function",
985
+ "name": "getStakeSharesSupply",
986
+ "constant": true,
987
+ "stateMutability": "view",
988
+ "payable": false,
989
+
990
+ "inputs": [],
991
+ "outputs": [
992
+ {
993
+ "type": "uint256"
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "type": "function",
999
+ "name": "getTranche",
1000
+ "constant": true,
1001
+ "stateMutability": "view",
1002
+ "payable": false,
1003
+
1004
+ "inputs": [
1005
+ {
1006
+ "type": "uint256",
1007
+ "name": "trancheId"
1008
+ }
1009
+ ],
1010
+ "outputs": [
1011
+ {
1012
+ "type": "uint256",
1013
+ "name": "stakeShares"
1014
+ },
1015
+ {
1016
+ "type": "uint256",
1017
+ "name": "rewardsShares"
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "type": "function",
1023
+ "name": "getTrancheCapacities",
1024
+ "constant": true,
1025
+ "stateMutability": "view",
1026
+ "payable": false,
1027
+
1028
+ "inputs": [
1029
+ {
1030
+ "type": "uint256",
1031
+ "name": "productId"
1032
+ },
1033
+ {
1034
+ "type": "uint256",
1035
+ "name": "firstTrancheId"
1036
+ },
1037
+ {
1038
+ "type": "uint256",
1039
+ "name": "trancheCount"
1040
+ },
1041
+ {
1042
+ "type": "uint256",
1043
+ "name": "capacityRatio"
1044
+ },
1045
+ {
1046
+ "type": "uint256",
1047
+ "name": "reductionRatio"
1048
+ }
1049
+ ],
1050
+ "outputs": [
1051
+ {
1052
+ "type": "uint256[]",
1053
+ "name": "trancheCapacities"
1054
+ }
1055
+ ]
1056
+ },
1057
+ {
1058
+ "type": "function",
1059
+ "name": "initialize",
1060
+ "constant": false,
1061
+ "payable": false,
1062
+
1063
+ "inputs": [
1064
+ {
1065
+ "type": "bool",
1066
+ "name": "_isPrivatePool"
1067
+ },
1068
+ {
1069
+ "type": "uint256",
1070
+ "name": "_initialPoolFee"
1071
+ },
1072
+ {
1073
+ "type": "uint256",
1074
+ "name": "_maxPoolFee"
1075
+ },
1076
+ {
1077
+ "type": "uint256",
1078
+ "name": "_poolId"
1079
+ },
1080
+ {
1081
+ "type": "string",
1082
+ "name": "ipfsDescriptionHash"
1083
+ }
1084
+ ],
1085
+ "outputs": []
1086
+ },
1087
+ {
1088
+ "type": "function",
1089
+ "name": "isHalted",
1090
+ "constant": true,
1091
+ "stateMutability": "view",
1092
+ "payable": false,
1093
+
1094
+ "inputs": [],
1095
+ "outputs": [
1096
+ {
1097
+ "type": "bool"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "type": "function",
1103
+ "name": "isPrivatePool",
1104
+ "constant": true,
1105
+ "stateMutability": "view",
1106
+ "payable": false,
1107
+
1108
+ "inputs": [],
1109
+ "outputs": [
1110
+ {
1111
+ "type": "bool"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "type": "function",
1117
+ "name": "manager",
1118
+ "constant": true,
1119
+ "stateMutability": "view",
1120
+ "payable": false,
1121
+
1122
+ "inputs": [],
1123
+ "outputs": [
1124
+ {
1125
+ "type": "address"
1126
+ }
1127
+ ]
1128
+ },
1129
+ {
1130
+ "type": "function",
1131
+ "name": "masterContract",
1132
+ "constant": true,
1133
+ "stateMutability": "view",
1134
+ "payable": false,
1135
+
1136
+ "inputs": [],
1137
+ "outputs": [
1138
+ {
1139
+ "type": "address"
1140
+ }
1141
+ ]
1142
+ },
1143
+ {
1144
+ "type": "function",
1145
+ "name": "multicall",
1146
+ "constant": false,
1147
+ "payable": false,
1148
+
1149
+ "inputs": [
1150
+ {
1151
+ "type": "bytes[]",
1152
+ "name": "data"
1153
+ }
1154
+ ],
1155
+ "outputs": [
1156
+ {
1157
+ "type": "bytes[]",
1158
+ "name": "results"
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ "type": "function",
1164
+ "name": "nxm",
1165
+ "constant": true,
1166
+ "stateMutability": "view",
1167
+ "payable": false,
1168
+
1169
+ "inputs": [],
1170
+ "outputs": [
1171
+ {
1172
+ "type": "address"
1173
+ }
1174
+ ]
1175
+ },
1176
+ {
1177
+ "type": "function",
1178
+ "name": "processExpirations",
1179
+ "constant": false,
1180
+ "payable": false,
1181
+
1182
+ "inputs": [
1183
+ {
1184
+ "type": "bool",
1185
+ "name": "updateUntilCurrentTimestamp"
1186
+ }
1187
+ ],
1188
+ "outputs": []
1189
+ },
1190
+ {
1191
+ "type": "function",
1192
+ "name": "requestAllocation",
1193
+ "constant": false,
1194
+ "payable": false,
1195
+
1196
+ "inputs": [
1197
+ {
1198
+ "type": "uint256",
1199
+ "name": "amount"
1200
+ },
1201
+ {
1202
+ "type": "uint256",
1203
+ "name": "previousPremium"
1204
+ },
1205
+ {
1206
+ "type": "tuple",
1207
+ "name": "request",
1208
+ "components": [
1209
+ {
1210
+ "type": "uint256",
1211
+ "name": "productId"
1212
+ },
1213
+ {
1214
+ "type": "uint256",
1215
+ "name": "coverId"
1216
+ },
1217
+ {
1218
+ "type": "uint256",
1219
+ "name": "allocationId"
1220
+ },
1221
+ {
1222
+ "type": "uint256",
1223
+ "name": "period"
1224
+ },
1225
+ {
1226
+ "type": "uint256",
1227
+ "name": "gracePeriod"
1228
+ },
1229
+ {
1230
+ "type": "bool",
1231
+ "name": "useFixedPrice"
1232
+ },
1233
+ {
1234
+ "type": "uint256",
1235
+ "name": "previousStart"
1236
+ },
1237
+ {
1238
+ "type": "uint256",
1239
+ "name": "previousExpiration"
1240
+ },
1241
+ {
1242
+ "type": "uint256",
1243
+ "name": "previousRewardsRatio"
1244
+ },
1245
+ {
1246
+ "type": "uint256",
1247
+ "name": "globalCapacityRatio"
1248
+ },
1249
+ {
1250
+ "type": "uint256",
1251
+ "name": "capacityReductionRatio"
1252
+ },
1253
+ {
1254
+ "type": "uint256",
1255
+ "name": "rewardRatio"
1256
+ },
1257
+ {
1258
+ "type": "uint256",
1259
+ "name": "globalMinPrice"
1260
+ }
1261
+ ]
1262
+ }
1263
+ ],
1264
+ "outputs": [
1265
+ {
1266
+ "type": "uint256",
1267
+ "name": "premium"
1268
+ },
1269
+ {
1270
+ "type": "uint256",
1271
+ "name": "allocationId"
1272
+ }
1273
+ ]
1274
+ },
1275
+ {
1276
+ "type": "function",
1277
+ "name": "rewardPerSecondCut",
1278
+ "constant": true,
1279
+ "stateMutability": "view",
1280
+ "payable": false,
1281
+
1282
+ "inputs": [
1283
+ {
1284
+ "type": "uint256"
1285
+ }
1286
+ ],
1287
+ "outputs": [
1288
+ {
1289
+ "type": "uint256"
1290
+ }
1291
+ ]
1292
+ },
1293
+ {
1294
+ "type": "function",
1295
+ "name": "setPoolDescription",
1296
+ "constant": false,
1297
+ "payable": false,
1298
+
1299
+ "inputs": [
1300
+ {
1301
+ "type": "string",
1302
+ "name": "ipfsDescriptionHash"
1303
+ }
1304
+ ],
1305
+ "outputs": []
1306
+ },
1307
+ {
1308
+ "type": "function",
1309
+ "name": "setPoolFee",
1310
+ "constant": false,
1311
+ "payable": false,
1312
+
1313
+ "inputs": [
1314
+ {
1315
+ "type": "uint256",
1316
+ "name": "newFee"
1317
+ }
1318
+ ],
1319
+ "outputs": []
1320
+ },
1321
+ {
1322
+ "type": "function",
1323
+ "name": "setPoolPrivacy",
1324
+ "constant": false,
1325
+ "payable": false,
1326
+
1327
+ "inputs": [
1328
+ {
1329
+ "type": "bool",
1330
+ "name": "_isPrivatePool"
1331
+ }
1332
+ ],
1333
+ "outputs": []
1334
+ },
1335
+ {
1336
+ "type": "function",
1337
+ "name": "stakingNFT",
1338
+ "constant": true,
1339
+ "stateMutability": "view",
1340
+ "payable": false,
1341
+
1342
+ "inputs": [],
1343
+ "outputs": [
1344
+ {
1345
+ "type": "address"
1346
+ }
1347
+ ]
1348
+ },
1349
+ {
1350
+ "type": "function",
1351
+ "name": "stakingProducts",
1352
+ "constant": true,
1353
+ "stateMutability": "view",
1354
+ "payable": false,
1355
+
1356
+ "inputs": [],
1357
+ "outputs": [
1358
+ {
1359
+ "type": "address"
1360
+ }
1361
+ ]
1362
+ },
1363
+ {
1364
+ "type": "function",
1365
+ "name": "tokenController",
1366
+ "constant": true,
1367
+ "stateMutability": "view",
1368
+ "payable": false,
1369
+
1370
+ "inputs": [],
1371
+ "outputs": [
1372
+ {
1373
+ "type": "address"
1374
+ }
1375
+ ]
1376
+ },
1377
+ {
1378
+ "type": "function",
1379
+ "name": "trancheAllocationGroups",
1380
+ "constant": true,
1381
+ "stateMutability": "view",
1382
+ "payable": false,
1383
+
1384
+ "inputs": [
1385
+ {
1386
+ "type": "uint256"
1387
+ },
1388
+ {
1389
+ "type": "uint256"
1390
+ }
1391
+ ],
1392
+ "outputs": [
1393
+ {
1394
+ "type": "uint256"
1395
+ }
1396
+ ]
1397
+ },
1398
+ {
1399
+ "type": "function",
1400
+ "name": "withdraw",
1401
+ "constant": false,
1402
+ "payable": false,
1403
+
1404
+ "inputs": [
1405
+ {
1406
+ "type": "uint256",
1407
+ "name": "tokenId"
1408
+ },
1409
+ {
1410
+ "type": "bool",
1411
+ "name": "withdrawStake"
1412
+ },
1413
+ {
1414
+ "type": "bool",
1415
+ "name": "withdrawRewards"
1416
+ },
1417
+ {
1418
+ "type": "uint256[]",
1419
+ "name": "trancheIds"
1420
+ }
1421
+ ],
1422
+ "outputs": [
1423
+ {
1424
+ "type": "uint256",
1425
+ "name": "withdrawnStake"
1426
+ },
1427
+ {
1428
+ "type": "uint256",
1429
+ "name": "withdrawnRewards"
1430
+ }
1431
+ ]
1432
+ }
1433
+ ]