@nexusmutual/sdk 0.3.23 → 0.4.0
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.
- package/dist/data/abis/AssessmentViewer.json +94 -0
- package/dist/data/abis/Cover.json +48 -611
- package/dist/data/abis/CoverProducts.json +942 -0
- package/dist/data/abis/EACAggregatorProxy.json +13 -0
- package/dist/data/abis/IndividualClaims.json +4 -4
- package/dist/data/abis/LegacyPooledStaking.json +0 -81
- package/dist/data/abis/NexusViewer.json +209 -0
- package/dist/data/abis/Ramm.json +15 -15
- package/dist/data/abis/StakingNFTDescriptor.json +2 -2
- package/dist/data/abis/StakingPool.json +5 -13
- package/dist/data/abis/StakingProducts.json +127 -41
- package/dist/data/abis/StakingViewer.json +311 -13
- package/dist/data/abis/YieldTokenIncidents.json +2 -2
- package/dist/data/addresses.json +7 -7
- package/dist/data/product-types.json +0 -7
- package/dist/data/products.json +921 -216
- package/dist/index.d.mts +4132 -3143
- package/dist/index.d.ts +4132 -3143
- package/dist/index.js +934 -224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +934 -224
- package/dist/index.mjs.map +1 -1
- package/dist/logos/contango.jpg +0 -0
- package/dist/logos/credit-guild.jpg +0 -0
- package/dist/logos/reserve.png +0 -0
- package/package.json +2 -2
- package/dist/data/abis/CoverMigrator.json +0 -195
- package/dist/data/abis/LegacyGateway.json +0 -588
- package/dist/data/abis/ProductsV1.json +0 -21
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "address"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"internalType": "contract
|
|
15
|
+
"internalType": "contract ICompleteStakingPoolFactory",
|
|
16
16
|
"name": "_stakingPoolFactory",
|
|
17
17
|
"type": "address"
|
|
18
18
|
},
|
|
@@ -25,32 +25,11 @@
|
|
|
25
25
|
"stateMutability": "nonpayable",
|
|
26
26
|
"type": "constructor"
|
|
27
27
|
},
|
|
28
|
-
{
|
|
29
|
-
"inputs": [],
|
|
30
|
-
"name": "AlreadyInitialized",
|
|
31
|
-
"type": "error"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"inputs": [],
|
|
35
|
-
"name": "CapacityReductionRatioAbove100Percent",
|
|
36
|
-
"type": "error"
|
|
37
|
-
},
|
|
38
28
|
{
|
|
39
29
|
"inputs": [],
|
|
40
30
|
"name": "CommissionRateTooHigh",
|
|
41
31
|
"type": "error"
|
|
42
32
|
},
|
|
43
|
-
{
|
|
44
|
-
"inputs": [
|
|
45
|
-
{
|
|
46
|
-
"internalType": "uint256",
|
|
47
|
-
"name": "coverId",
|
|
48
|
-
"type": "uint256"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"name": "CoverAlreadyExpired",
|
|
52
|
-
"type": "error"
|
|
53
|
-
},
|
|
54
33
|
{
|
|
55
34
|
"inputs": [],
|
|
56
35
|
"name": "CoverAmountIsZero",
|
|
@@ -97,16 +76,6 @@
|
|
|
97
76
|
"name": "ExpiredCoversCannotBeEdited",
|
|
98
77
|
"type": "error"
|
|
99
78
|
},
|
|
100
|
-
{
|
|
101
|
-
"inputs": [],
|
|
102
|
-
"name": "InitialPriceRatioAbove100Percent",
|
|
103
|
-
"type": "error"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"inputs": [],
|
|
107
|
-
"name": "InitialPriceRatioBelowGlobalMinPriceRatio",
|
|
108
|
-
"type": "error"
|
|
109
|
-
},
|
|
110
79
|
{
|
|
111
80
|
"inputs": [],
|
|
112
81
|
"name": "InsufficientCoverAmountAllocated",
|
|
@@ -122,32 +91,11 @@
|
|
|
122
91
|
"name": "InvalidPaymentAsset",
|
|
123
92
|
"type": "error"
|
|
124
93
|
},
|
|
125
|
-
{
|
|
126
|
-
"inputs": [],
|
|
127
|
-
"name": "InvalidProductType",
|
|
128
|
-
"type": "error"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"inputs": [],
|
|
132
|
-
"name": "OnlyMemberRolesCanOperateTransfer",
|
|
133
|
-
"type": "error"
|
|
134
|
-
},
|
|
135
94
|
{
|
|
136
95
|
"inputs": [],
|
|
137
96
|
"name": "OnlyOwnerOrApproved",
|
|
138
97
|
"type": "error"
|
|
139
98
|
},
|
|
140
|
-
{
|
|
141
|
-
"inputs": [
|
|
142
|
-
{
|
|
143
|
-
"internalType": "uint256",
|
|
144
|
-
"name": "productId",
|
|
145
|
-
"type": "uint256"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"name": "PoolNotAllowedForThisProduct",
|
|
149
|
-
"type": "error"
|
|
150
|
-
},
|
|
151
99
|
{
|
|
152
100
|
"inputs": [],
|
|
153
101
|
"name": "PriceExceedsMaxPremiumInAsset",
|
|
@@ -155,17 +103,12 @@
|
|
|
155
103
|
},
|
|
156
104
|
{
|
|
157
105
|
"inputs": [],
|
|
158
|
-
"name": "
|
|
106
|
+
"name": "ProductDeprecated",
|
|
159
107
|
"type": "error"
|
|
160
108
|
},
|
|
161
109
|
{
|
|
162
110
|
"inputs": [],
|
|
163
|
-
"name": "
|
|
164
|
-
"type": "error"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"inputs": [],
|
|
168
|
-
"name": "ProductTypeNotFound",
|
|
111
|
+
"name": "ProductNotFound",
|
|
169
112
|
"type": "error"
|
|
170
113
|
},
|
|
171
114
|
{
|
|
@@ -194,11 +137,6 @@
|
|
|
194
137
|
"name": "SendingEthToPoolFailed",
|
|
195
138
|
"type": "error"
|
|
196
139
|
},
|
|
197
|
-
{
|
|
198
|
-
"inputs": [],
|
|
199
|
-
"name": "TargetPriceBelowGlobalMinPriceRatio",
|
|
200
|
-
"type": "error"
|
|
201
|
-
},
|
|
202
140
|
{
|
|
203
141
|
"inputs": [],
|
|
204
142
|
"name": "UnexpectedCoverAsset",
|
|
@@ -219,11 +157,6 @@
|
|
|
219
157
|
"name": "UnexpectedProductId",
|
|
220
158
|
"type": "error"
|
|
221
159
|
},
|
|
222
|
-
{
|
|
223
|
-
"inputs": [],
|
|
224
|
-
"name": "UnsupportedCoverAssets",
|
|
225
|
-
"type": "error"
|
|
226
|
-
},
|
|
227
160
|
{
|
|
228
161
|
"anonymous": false,
|
|
229
162
|
"inputs": [
|
|
@@ -261,44 +194,6 @@
|
|
|
261
194
|
"name": "CoverEdited",
|
|
262
195
|
"type": "event"
|
|
263
196
|
},
|
|
264
|
-
{
|
|
265
|
-
"anonymous": false,
|
|
266
|
-
"inputs": [
|
|
267
|
-
{
|
|
268
|
-
"indexed": false,
|
|
269
|
-
"internalType": "uint256",
|
|
270
|
-
"name": "id",
|
|
271
|
-
"type": "uint256"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"indexed": false,
|
|
275
|
-
"internalType": "string",
|
|
276
|
-
"name": "ipfsMetadata",
|
|
277
|
-
"type": "string"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"name": "ProductSet",
|
|
281
|
-
"type": "event"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"anonymous": false,
|
|
285
|
-
"inputs": [
|
|
286
|
-
{
|
|
287
|
-
"indexed": false,
|
|
288
|
-
"internalType": "uint256",
|
|
289
|
-
"name": "id",
|
|
290
|
-
"type": "uint256"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"indexed": false,
|
|
294
|
-
"internalType": "string",
|
|
295
|
-
"name": "ipfsMetadata",
|
|
296
|
-
"type": "string"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"name": "ProductTypeSet",
|
|
300
|
-
"type": "event"
|
|
301
|
-
},
|
|
302
197
|
{
|
|
303
198
|
"inputs": [],
|
|
304
199
|
"name": "GLOBAL_MIN_PRICE_RATIO",
|
|
@@ -362,74 +257,6 @@
|
|
|
362
257
|
"stateMutability": "view",
|
|
363
258
|
"type": "function"
|
|
364
259
|
},
|
|
365
|
-
{
|
|
366
|
-
"inputs": [
|
|
367
|
-
{
|
|
368
|
-
"internalType": "uint256",
|
|
369
|
-
"name": "productId",
|
|
370
|
-
"type": "uint256"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"internalType": "uint256",
|
|
374
|
-
"name": "coverAsset",
|
|
375
|
-
"type": "uint256"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"internalType": "uint256",
|
|
379
|
-
"name": "amount",
|
|
380
|
-
"type": "uint256"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"internalType": "uint256",
|
|
384
|
-
"name": "start",
|
|
385
|
-
"type": "uint256"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"internalType": "uint256",
|
|
389
|
-
"name": "period",
|
|
390
|
-
"type": "uint256"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"internalType": "address",
|
|
394
|
-
"name": "newOwner",
|
|
395
|
-
"type": "address"
|
|
396
|
-
}
|
|
397
|
-
],
|
|
398
|
-
"name": "addLegacyCover",
|
|
399
|
-
"outputs": [
|
|
400
|
-
{
|
|
401
|
-
"internalType": "uint256",
|
|
402
|
-
"name": "coverId",
|
|
403
|
-
"type": "uint256"
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
"stateMutability": "nonpayable",
|
|
407
|
-
"type": "function"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"inputs": [
|
|
411
|
-
{
|
|
412
|
-
"internalType": "uint256",
|
|
413
|
-
"name": "",
|
|
414
|
-
"type": "uint256"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"internalType": "uint256",
|
|
418
|
-
"name": "",
|
|
419
|
-
"type": "uint256"
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
"name": "allowedPools",
|
|
423
|
-
"outputs": [
|
|
424
|
-
{
|
|
425
|
-
"internalType": "uint256",
|
|
426
|
-
"name": "",
|
|
427
|
-
"type": "uint256"
|
|
428
|
-
}
|
|
429
|
-
],
|
|
430
|
-
"stateMutability": "view",
|
|
431
|
-
"type": "function"
|
|
432
|
-
},
|
|
433
260
|
{
|
|
434
261
|
"inputs": [
|
|
435
262
|
{
|
|
@@ -557,6 +384,19 @@
|
|
|
557
384
|
"stateMutability": "payable",
|
|
558
385
|
"type": "function"
|
|
559
386
|
},
|
|
387
|
+
{
|
|
388
|
+
"inputs": [
|
|
389
|
+
{
|
|
390
|
+
"internalType": "address",
|
|
391
|
+
"name": "_coverNFTDescriptor",
|
|
392
|
+
"type": "address"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"name": "changeCoverNFTDescriptor",
|
|
396
|
+
"outputs": [],
|
|
397
|
+
"stateMutability": "nonpayable",
|
|
398
|
+
"type": "function"
|
|
399
|
+
},
|
|
560
400
|
{
|
|
561
401
|
"inputs": [],
|
|
562
402
|
"name": "changeDependentContractAddress",
|
|
@@ -577,6 +417,26 @@
|
|
|
577
417
|
"stateMutability": "nonpayable",
|
|
578
418
|
"type": "function"
|
|
579
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"inputs": [
|
|
422
|
+
{
|
|
423
|
+
"internalType": "address",
|
|
424
|
+
"name": "_stakingNFTDescriptor",
|
|
425
|
+
"type": "address"
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"name": "changeStakingNFTDescriptor",
|
|
429
|
+
"outputs": [],
|
|
430
|
+
"stateMutability": "nonpayable",
|
|
431
|
+
"type": "function"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"inputs": [],
|
|
435
|
+
"name": "changeStakingPoolFactoryOperator",
|
|
436
|
+
"outputs": [],
|
|
437
|
+
"stateMutability": "nonpayable",
|
|
438
|
+
"type": "function"
|
|
439
|
+
},
|
|
580
440
|
{
|
|
581
441
|
"inputs": [
|
|
582
442
|
{
|
|
@@ -809,72 +669,6 @@
|
|
|
809
669
|
"stateMutability": "view",
|
|
810
670
|
"type": "function"
|
|
811
671
|
},
|
|
812
|
-
{
|
|
813
|
-
"inputs": [
|
|
814
|
-
{
|
|
815
|
-
"internalType": "bool",
|
|
816
|
-
"name": "isPrivatePool",
|
|
817
|
-
"type": "bool"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
"internalType": "uint256",
|
|
821
|
-
"name": "initialPoolFee",
|
|
822
|
-
"type": "uint256"
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
"internalType": "uint256",
|
|
826
|
-
"name": "maxPoolFee",
|
|
827
|
-
"type": "uint256"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
"components": [
|
|
831
|
-
{
|
|
832
|
-
"internalType": "uint256",
|
|
833
|
-
"name": "productId",
|
|
834
|
-
"type": "uint256"
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"internalType": "uint8",
|
|
838
|
-
"name": "weight",
|
|
839
|
-
"type": "uint8"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"internalType": "uint96",
|
|
843
|
-
"name": "initialPrice",
|
|
844
|
-
"type": "uint96"
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
"internalType": "uint96",
|
|
848
|
-
"name": "targetPrice",
|
|
849
|
-
"type": "uint96"
|
|
850
|
-
}
|
|
851
|
-
],
|
|
852
|
-
"internalType": "struct ProductInitializationParams[]",
|
|
853
|
-
"name": "productInitParams",
|
|
854
|
-
"type": "tuple[]"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"internalType": "string",
|
|
858
|
-
"name": "ipfsDescriptionHash",
|
|
859
|
-
"type": "string"
|
|
860
|
-
}
|
|
861
|
-
],
|
|
862
|
-
"name": "createStakingPool",
|
|
863
|
-
"outputs": [
|
|
864
|
-
{
|
|
865
|
-
"internalType": "uint256",
|
|
866
|
-
"name": "",
|
|
867
|
-
"type": "uint256"
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"internalType": "address",
|
|
871
|
-
"name": "",
|
|
872
|
-
"type": "address"
|
|
873
|
-
}
|
|
874
|
-
],
|
|
875
|
-
"stateMutability": "nonpayable",
|
|
876
|
-
"type": "function"
|
|
877
|
-
},
|
|
878
672
|
{
|
|
879
673
|
"inputs": [
|
|
880
674
|
{
|
|
@@ -889,14 +683,8 @@
|
|
|
889
683
|
"type": "function"
|
|
890
684
|
},
|
|
891
685
|
{
|
|
892
|
-
"inputs": [
|
|
893
|
-
|
|
894
|
-
"internalType": "uint256[]",
|
|
895
|
-
"name": "productIds",
|
|
896
|
-
"type": "uint256[]"
|
|
897
|
-
}
|
|
898
|
-
],
|
|
899
|
-
"name": "getPriceAndCapacityRatios",
|
|
686
|
+
"inputs": [],
|
|
687
|
+
"name": "getGlobalCapacityAndPriceRatios",
|
|
900
688
|
"outputs": [
|
|
901
689
|
{
|
|
902
690
|
"internalType": "uint256",
|
|
@@ -907,74 +695,27 @@
|
|
|
907
695
|
"internalType": "uint256",
|
|
908
696
|
"name": "_globalMinPriceRatio",
|
|
909
697
|
"type": "uint256"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"internalType": "uint256[]",
|
|
913
|
-
"name": "_initialPrices",
|
|
914
|
-
"type": "uint256[]"
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"internalType": "uint256[]",
|
|
918
|
-
"name": "_capacityReductionRatios",
|
|
919
|
-
"type": "uint256[]"
|
|
920
698
|
}
|
|
921
699
|
],
|
|
922
|
-
"stateMutability": "
|
|
700
|
+
"stateMutability": "pure",
|
|
923
701
|
"type": "function"
|
|
924
702
|
},
|
|
925
703
|
{
|
|
926
704
|
"inputs": [],
|
|
927
|
-
"name": "
|
|
705
|
+
"name": "getGlobalCapacityRatio",
|
|
928
706
|
"outputs": [
|
|
929
707
|
{
|
|
930
|
-
"
|
|
931
|
-
{
|
|
932
|
-
"internalType": "uint16",
|
|
933
|
-
"name": "productType",
|
|
934
|
-
"type": "uint16"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"internalType": "address",
|
|
938
|
-
"name": "yieldTokenAddress",
|
|
939
|
-
"type": "address"
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"internalType": "uint32",
|
|
943
|
-
"name": "coverAssets",
|
|
944
|
-
"type": "uint32"
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"internalType": "uint16",
|
|
948
|
-
"name": "initialPriceRatio",
|
|
949
|
-
"type": "uint16"
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"internalType": "uint16",
|
|
953
|
-
"name": "capacityReductionRatio",
|
|
954
|
-
"type": "uint16"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"internalType": "bool",
|
|
958
|
-
"name": "isDeprecated",
|
|
959
|
-
"type": "bool"
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
"internalType": "bool",
|
|
963
|
-
"name": "useFixedPrice",
|
|
964
|
-
"type": "bool"
|
|
965
|
-
}
|
|
966
|
-
],
|
|
967
|
-
"internalType": "struct Product[]",
|
|
708
|
+
"internalType": "uint256",
|
|
968
709
|
"name": "",
|
|
969
|
-
"type": "
|
|
710
|
+
"type": "uint256"
|
|
970
711
|
}
|
|
971
712
|
],
|
|
972
|
-
"stateMutability": "
|
|
713
|
+
"stateMutability": "pure",
|
|
973
714
|
"type": "function"
|
|
974
715
|
},
|
|
975
716
|
{
|
|
976
717
|
"inputs": [],
|
|
977
|
-
"name": "
|
|
718
|
+
"name": "getGlobalMinPriceRatio",
|
|
978
719
|
"outputs": [
|
|
979
720
|
{
|
|
980
721
|
"internalType": "uint256",
|
|
@@ -987,7 +728,7 @@
|
|
|
987
728
|
},
|
|
988
729
|
{
|
|
989
730
|
"inputs": [],
|
|
990
|
-
"name": "
|
|
731
|
+
"name": "getGlobalRewardsRatio",
|
|
991
732
|
"outputs": [
|
|
992
733
|
{
|
|
993
734
|
"internalType": "uint256",
|
|
@@ -1017,30 +758,6 @@
|
|
|
1017
758
|
"stateMutability": "view",
|
|
1018
759
|
"type": "function"
|
|
1019
760
|
},
|
|
1020
|
-
{
|
|
1021
|
-
"inputs": [
|
|
1022
|
-
{
|
|
1023
|
-
"internalType": "uint256",
|
|
1024
|
-
"name": "productId",
|
|
1025
|
-
"type": "uint256"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"internalType": "uint256",
|
|
1029
|
-
"name": "poolId",
|
|
1030
|
-
"type": "uint256"
|
|
1031
|
-
}
|
|
1032
|
-
],
|
|
1033
|
-
"name": "isPoolAllowed",
|
|
1034
|
-
"outputs": [
|
|
1035
|
-
{
|
|
1036
|
-
"internalType": "bool",
|
|
1037
|
-
"name": "",
|
|
1038
|
-
"type": "bool"
|
|
1039
|
-
}
|
|
1040
|
-
],
|
|
1041
|
-
"stateMutability": "view",
|
|
1042
|
-
"type": "function"
|
|
1043
|
-
},
|
|
1044
761
|
{
|
|
1045
762
|
"inputs": [],
|
|
1046
763
|
"name": "master",
|
|
@@ -1077,291 +794,11 @@
|
|
|
1077
794
|
"inputs": [
|
|
1078
795
|
{
|
|
1079
796
|
"internalType": "uint256",
|
|
1080
|
-
"name": "",
|
|
1081
|
-
"type": "uint256"
|
|
1082
|
-
}
|
|
1083
|
-
],
|
|
1084
|
-
"name": "productNames",
|
|
1085
|
-
"outputs": [
|
|
1086
|
-
{
|
|
1087
|
-
"internalType": "string",
|
|
1088
|
-
"name": "",
|
|
1089
|
-
"type": "string"
|
|
1090
|
-
}
|
|
1091
|
-
],
|
|
1092
|
-
"stateMutability": "view",
|
|
1093
|
-
"type": "function"
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"inputs": [
|
|
1097
|
-
{
|
|
1098
|
-
"internalType": "uint256",
|
|
1099
|
-
"name": "",
|
|
1100
|
-
"type": "uint256"
|
|
1101
|
-
}
|
|
1102
|
-
],
|
|
1103
|
-
"name": "productTypeNames",
|
|
1104
|
-
"outputs": [
|
|
1105
|
-
{
|
|
1106
|
-
"internalType": "string",
|
|
1107
|
-
"name": "",
|
|
1108
|
-
"type": "string"
|
|
1109
|
-
}
|
|
1110
|
-
],
|
|
1111
|
-
"stateMutability": "view",
|
|
1112
|
-
"type": "function"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
"inputs": [
|
|
1116
|
-
{
|
|
1117
|
-
"internalType": "uint256",
|
|
1118
|
-
"name": "id",
|
|
1119
|
-
"type": "uint256"
|
|
1120
|
-
}
|
|
1121
|
-
],
|
|
1122
|
-
"name": "productTypes",
|
|
1123
|
-
"outputs": [
|
|
1124
|
-
{
|
|
1125
|
-
"components": [
|
|
1126
|
-
{
|
|
1127
|
-
"internalType": "uint8",
|
|
1128
|
-
"name": "claimMethod",
|
|
1129
|
-
"type": "uint8"
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"internalType": "uint32",
|
|
1133
|
-
"name": "gracePeriod",
|
|
1134
|
-
"type": "uint32"
|
|
1135
|
-
}
|
|
1136
|
-
],
|
|
1137
|
-
"internalType": "struct ProductType",
|
|
1138
|
-
"name": "",
|
|
1139
|
-
"type": "tuple"
|
|
1140
|
-
}
|
|
1141
|
-
],
|
|
1142
|
-
"stateMutability": "view",
|
|
1143
|
-
"type": "function"
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
"inputs": [],
|
|
1147
|
-
"name": "productTypesCount",
|
|
1148
|
-
"outputs": [
|
|
1149
|
-
{
|
|
1150
|
-
"internalType": "uint256",
|
|
1151
|
-
"name": "",
|
|
1152
|
-
"type": "uint256"
|
|
1153
|
-
}
|
|
1154
|
-
],
|
|
1155
|
-
"stateMutability": "view",
|
|
1156
|
-
"type": "function"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"inputs": [
|
|
1160
|
-
{
|
|
1161
|
-
"internalType": "uint256",
|
|
1162
|
-
"name": "id",
|
|
1163
|
-
"type": "uint256"
|
|
1164
|
-
}
|
|
1165
|
-
],
|
|
1166
|
-
"name": "products",
|
|
1167
|
-
"outputs": [
|
|
1168
|
-
{
|
|
1169
|
-
"components": [
|
|
1170
|
-
{
|
|
1171
|
-
"internalType": "uint16",
|
|
1172
|
-
"name": "productType",
|
|
1173
|
-
"type": "uint16"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
"internalType": "address",
|
|
1177
|
-
"name": "yieldTokenAddress",
|
|
1178
|
-
"type": "address"
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"internalType": "uint32",
|
|
1182
|
-
"name": "coverAssets",
|
|
1183
|
-
"type": "uint32"
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
"internalType": "uint16",
|
|
1187
|
-
"name": "initialPriceRatio",
|
|
1188
|
-
"type": "uint16"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"internalType": "uint16",
|
|
1192
|
-
"name": "capacityReductionRatio",
|
|
1193
|
-
"type": "uint16"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"internalType": "bool",
|
|
1197
|
-
"name": "isDeprecated",
|
|
1198
|
-
"type": "bool"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
"internalType": "bool",
|
|
1202
|
-
"name": "useFixedPrice",
|
|
1203
|
-
"type": "bool"
|
|
1204
|
-
}
|
|
1205
|
-
],
|
|
1206
|
-
"internalType": "struct Product",
|
|
1207
|
-
"name": "",
|
|
1208
|
-
"type": "tuple"
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
"stateMutability": "view",
|
|
1212
|
-
"type": "function"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
"inputs": [],
|
|
1216
|
-
"name": "productsCount",
|
|
1217
|
-
"outputs": [
|
|
1218
|
-
{
|
|
1219
|
-
"internalType": "uint256",
|
|
1220
|
-
"name": "",
|
|
1221
|
-
"type": "uint256"
|
|
1222
|
-
}
|
|
1223
|
-
],
|
|
1224
|
-
"stateMutability": "view",
|
|
1225
|
-
"type": "function"
|
|
1226
|
-
},
|
|
1227
|
-
{
|
|
1228
|
-
"inputs": [
|
|
1229
|
-
{
|
|
1230
|
-
"internalType": "uint256[]",
|
|
1231
|
-
"name": "productIds",
|
|
1232
|
-
"type": "uint256[]"
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
"internalType": "uint256",
|
|
1236
|
-
"name": "poolId",
|
|
797
|
+
"name": "coverAsset",
|
|
1237
798
|
"type": "uint256"
|
|
1238
799
|
}
|
|
1239
800
|
],
|
|
1240
|
-
"name": "
|
|
1241
|
-
"outputs": [],
|
|
1242
|
-
"stateMutability": "view",
|
|
1243
|
-
"type": "function"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"inputs": [
|
|
1247
|
-
{
|
|
1248
|
-
"components": [
|
|
1249
|
-
{
|
|
1250
|
-
"internalType": "string",
|
|
1251
|
-
"name": "productTypeName",
|
|
1252
|
-
"type": "string"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"internalType": "uint256",
|
|
1256
|
-
"name": "productTypeId",
|
|
1257
|
-
"type": "uint256"
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"internalType": "string",
|
|
1261
|
-
"name": "ipfsMetadata",
|
|
1262
|
-
"type": "string"
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
"components": [
|
|
1266
|
-
{
|
|
1267
|
-
"internalType": "uint8",
|
|
1268
|
-
"name": "claimMethod",
|
|
1269
|
-
"type": "uint8"
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"internalType": "uint32",
|
|
1273
|
-
"name": "gracePeriod",
|
|
1274
|
-
"type": "uint32"
|
|
1275
|
-
}
|
|
1276
|
-
],
|
|
1277
|
-
"internalType": "struct ProductType",
|
|
1278
|
-
"name": "productType",
|
|
1279
|
-
"type": "tuple"
|
|
1280
|
-
}
|
|
1281
|
-
],
|
|
1282
|
-
"internalType": "struct ProductTypeParam[]",
|
|
1283
|
-
"name": "productTypeParams",
|
|
1284
|
-
"type": "tuple[]"
|
|
1285
|
-
}
|
|
1286
|
-
],
|
|
1287
|
-
"name": "setProductTypes",
|
|
1288
|
-
"outputs": [],
|
|
1289
|
-
"stateMutability": "nonpayable",
|
|
1290
|
-
"type": "function"
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
"inputs": [
|
|
1294
|
-
{
|
|
1295
|
-
"components": [
|
|
1296
|
-
{
|
|
1297
|
-
"internalType": "string",
|
|
1298
|
-
"name": "productName",
|
|
1299
|
-
"type": "string"
|
|
1300
|
-
},
|
|
1301
|
-
{
|
|
1302
|
-
"internalType": "uint256",
|
|
1303
|
-
"name": "productId",
|
|
1304
|
-
"type": "uint256"
|
|
1305
|
-
},
|
|
1306
|
-
{
|
|
1307
|
-
"internalType": "string",
|
|
1308
|
-
"name": "ipfsMetadata",
|
|
1309
|
-
"type": "string"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
"components": [
|
|
1313
|
-
{
|
|
1314
|
-
"internalType": "uint16",
|
|
1315
|
-
"name": "productType",
|
|
1316
|
-
"type": "uint16"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
"internalType": "address",
|
|
1320
|
-
"name": "yieldTokenAddress",
|
|
1321
|
-
"type": "address"
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
"internalType": "uint32",
|
|
1325
|
-
"name": "coverAssets",
|
|
1326
|
-
"type": "uint32"
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
"internalType": "uint16",
|
|
1330
|
-
"name": "initialPriceRatio",
|
|
1331
|
-
"type": "uint16"
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
"internalType": "uint16",
|
|
1335
|
-
"name": "capacityReductionRatio",
|
|
1336
|
-
"type": "uint16"
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
"internalType": "bool",
|
|
1340
|
-
"name": "isDeprecated",
|
|
1341
|
-
"type": "bool"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
"internalType": "bool",
|
|
1345
|
-
"name": "useFixedPrice",
|
|
1346
|
-
"type": "bool"
|
|
1347
|
-
}
|
|
1348
|
-
],
|
|
1349
|
-
"internalType": "struct Product",
|
|
1350
|
-
"name": "product",
|
|
1351
|
-
"type": "tuple"
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
"internalType": "uint256[]",
|
|
1355
|
-
"name": "allowedPools",
|
|
1356
|
-
"type": "uint256[]"
|
|
1357
|
-
}
|
|
1358
|
-
],
|
|
1359
|
-
"internalType": "struct ProductParam[]",
|
|
1360
|
-
"name": "productParams",
|
|
1361
|
-
"type": "tuple[]"
|
|
1362
|
-
}
|
|
1363
|
-
],
|
|
1364
|
-
"name": "setProducts",
|
|
801
|
+
"name": "recalculateActiveCoverInAsset",
|
|
1365
802
|
"outputs": [],
|
|
1366
803
|
"stateMutability": "nonpayable",
|
|
1367
804
|
"type": "function"
|
|
@@ -1403,7 +840,7 @@
|
|
|
1403
840
|
"name": "stakingPoolFactory",
|
|
1404
841
|
"outputs": [
|
|
1405
842
|
{
|
|
1406
|
-
"internalType": "contract
|
|
843
|
+
"internalType": "contract ICompleteStakingPoolFactory",
|
|
1407
844
|
"name": "",
|
|
1408
845
|
"type": "address"
|
|
1409
846
|
}
|