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