@nexusmutual/sdk 0.0.16 → 0.1.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.
Files changed (223) hide show
  1. package/dist/data/abis/Assessment.json +751 -0
  2. package/dist/data/abis/Cover.json +1446 -0
  3. package/dist/data/abis/CoverMigrator.json +195 -0
  4. package/dist/data/abis/CoverNFT.json +511 -0
  5. package/dist/data/abis/CoverNFTDescriptor.json +209 -0
  6. package/dist/data/abis/CoverViewer.json +142 -0
  7. package/dist/data/abis/EACAggregatorProxy.json +15 -0
  8. package/dist/data/abis/ERC20.json +249 -0
  9. package/dist/data/abis/Governance.json +1105 -0
  10. package/dist/data/abis/IndividualClaims.json +574 -0
  11. package/dist/data/abis/LegacyClaimProofs.json +45 -0
  12. package/dist/data/abis/LegacyClaimsData.json +2084 -0
  13. package/dist/data/abis/LegacyClaimsReward.json +168 -0
  14. package/dist/data/abis/LegacyGateway.json +583 -0
  15. package/dist/data/abis/LegacyPooledStaking.json +1351 -0
  16. package/dist/data/abis/LegacyQuotationData.json +1200 -0
  17. package/dist/{abis → data/abis}/MCR.json +151 -163
  18. package/dist/data/abis/MemberRoles.json +679 -0
  19. package/dist/data/abis/NXMToken.json +570 -0
  20. package/dist/data/abis/NXMaster.json +501 -0
  21. package/dist/data/abis/Pool.json +963 -0
  22. package/dist/data/abis/PriceFeedOracle.json +127 -0
  23. package/dist/data/abis/ProductsV1.json +21 -0
  24. package/dist/data/abis/ProposalCategory.json +653 -0
  25. package/dist/data/abis/StakingNFT.json +582 -0
  26. package/dist/data/abis/StakingNFTDescriptor.json +227 -0
  27. package/dist/data/abis/StakingPool.json +1530 -0
  28. package/dist/data/abis/StakingPoolFactory.json +108 -0
  29. package/dist/data/abis/StakingProducts.json +1042 -0
  30. package/dist/{abis → data/abis}/StakingViewer.json +1 -19
  31. package/dist/data/abis/SwapOperator.json +826 -0
  32. package/dist/data/abis/TokenController.json +1035 -0
  33. package/dist/data/abis/YieldTokenIncidents.json +467 -0
  34. package/dist/data/product-logos.json +115 -0
  35. package/dist/index.d.mts +2012 -0
  36. package/dist/index.d.ts +2012 -4
  37. package/dist/index.html +4 -4
  38. package/dist/index.js +25656 -9
  39. package/dist/index.js.map +1 -0
  40. package/dist/index.mjs +25489 -0
  41. package/dist/index.mjs.map +1 -0
  42. package/dist/logos/aavev2.svg +1 -0
  43. package/dist/logos/aavev3.svg +1 -0
  44. package/dist/logos/abracadabra.svg +1 -0
  45. package/dist/logos/ajna.svg +1 -0
  46. package/dist/logos/akropolis.svg +1 -0
  47. package/dist/logos/alchemix.svg +1 -0
  48. package/dist/logos/alpaca.svg +1 -0
  49. package/dist/logos/alpha-homora.svg +1 -0
  50. package/dist/logos/ampleforth.svg +1 -0
  51. package/dist/logos/anchor.svg +1 -0
  52. package/dist/logos/angle.svg +1 -0
  53. package/dist/logos/arbitrum.svg +1 -0
  54. package/dist/logos/argent.svg +1 -0
  55. package/dist/logos/aura.svg +1 -0
  56. package/dist/logos/aurora.svg +1 -0
  57. package/dist/logos/avalanche.svg +1 -0
  58. package/dist/logos/babylon.svg +1 -0
  59. package/dist/logos/badgerdao.svg +1 -0
  60. package/dist/logos/balancer.svg +1 -0
  61. package/dist/logos/bancor.svg +1 -0
  62. package/dist/logos/beefy.svg +1 -0
  63. package/dist/logos/binance.svg +1 -0
  64. package/dist/logos/blockFi.svg +1 -0
  65. package/dist/logos/buffer-finance.svg +1 -0
  66. package/dist/logos/bunnypancake.svg +1 -0
  67. package/dist/logos/celo.svg +1 -0
  68. package/dist/logos/celsius.svg +1 -0
  69. package/dist/logos/centrifuge.svg +1 -0
  70. package/dist/logos/chorusone.svg +1 -0
  71. package/dist/logos/coinbase.svg +1 -0
  72. package/dist/logos/compoundv2.svg +1 -0
  73. package/dist/logos/convex.svg +1 -0
  74. package/dist/logos/cowswap.svg +1 -0
  75. package/dist/logos/cronos.svg +1 -0
  76. package/dist/logos/crypto-com.svg +1 -0
  77. package/dist/logos/curve.svg +1 -0
  78. package/dist/logos/dforce.svg +1 -0
  79. package/dist/logos/dodo.svg +1 -0
  80. package/dist/logos/dydx.svg +1 -0
  81. package/dist/logos/ease.svg +1 -0
  82. package/dist/logos/eigenlayer.png +0 -0
  83. package/dist/logos/element-finance.svg +1 -0
  84. package/dist/logos/enzyme.svg +1 -0
  85. package/dist/logos/eth.svg +1 -0
  86. package/dist/logos/etherfi.png +0 -0
  87. package/dist/logos/euler.svg +1 -0
  88. package/dist/logos/exactly.svg +1 -0
  89. package/dist/logos/fantom.svg +1 -0
  90. package/dist/logos/figment.svg +1 -0
  91. package/dist/logos/fodl.svg +1 -0
  92. package/dist/logos/ftx.svg +1 -0
  93. package/dist/logos/fuse.svg +1 -0
  94. package/dist/logos/gamma.svg +1 -0
  95. package/dist/logos/gearbox.svg +1 -0
  96. package/dist/logos/gelt.svg +1 -0
  97. package/dist/logos/gemini.svg +1 -0
  98. package/dist/logos/gmx.svg +1 -0
  99. package/dist/logos/gnosis-multisig.svg +1 -0
  100. package/dist/logos/gnosis-safe.svg +1 -0
  101. package/dist/logos/goldfinch.svg +1 -0
  102. package/dist/logos/harmony.svg +1 -0
  103. package/dist/logos/heco.svg +1 -0
  104. package/dist/logos/hodlnaut.svg +1 -0
  105. package/dist/logos/holyheld.jpeg +0 -0
  106. package/dist/logos/homora.svg +1 -0
  107. package/dist/logos/hook.jpeg +0 -0
  108. package/dist/logos/idleDAIYield.svg +1 -0
  109. package/dist/logos/idleUSDTYield.svg +1 -0
  110. package/dist/logos/ironbank.svg +1 -0
  111. package/dist/logos/kiln.svg +1 -0
  112. package/dist/logos/kraken.svg +1 -0
  113. package/dist/logos/ledn.svg +1 -0
  114. package/dist/logos/level-finance.png +0 -0
  115. package/dist/logos/liquidcollective.svg +1 -0
  116. package/dist/logos/liquify.svg +1 -0
  117. package/dist/logos/liquity.svg +1 -0
  118. package/dist/logos/lyra.svg +1 -0
  119. package/dist/logos/mahalend.svg +1 -0
  120. package/dist/logos/makerdao.svg +1 -0
  121. package/dist/logos/metis.svg +1 -0
  122. package/dist/logos/moonbeam.svg +1 -0
  123. package/dist/logos/mooniswap.svg +1 -0
  124. package/dist/logos/moonriver.svg +1 -0
  125. package/dist/logos/morpho.svg +1 -0
  126. package/dist/logos/mstable.svg +1 -0
  127. package/dist/logos/nested.svg +1 -0
  128. package/dist/logos/nexo.svg +1 -0
  129. package/dist/logos/nexus-mutual.svg +1 -0
  130. package/dist/logos/notional-finance.svg +1 -0
  131. package/dist/logos/nucypher.svg +1 -0
  132. package/dist/logos/offramp.png +0 -0
  133. package/dist/logos/olympusdao.svg +1 -0
  134. package/dist/logos/ondo.svg +1 -0
  135. package/dist/logos/oneinch.svg +1 -0
  136. package/dist/logos/openq.png +0 -0
  137. package/dist/logos/optimism.svg +1 -0
  138. package/dist/logos/opyn.png +0 -0
  139. package/dist/logos/originusd.svg +1 -0
  140. package/dist/logos/pancakeswap.svg +1 -0
  141. package/dist/logos/pangolin.svg +1 -0
  142. package/dist/logos/perennial.jpeg +0 -0
  143. package/dist/logos/perpetual.svg +1 -0
  144. package/dist/logos/polkadot.svg +1 -0
  145. package/dist/logos/polygon.svg +1 -0
  146. package/dist/logos/pooltogether.svg +1 -0
  147. package/dist/logos/popsicle.svg +1 -0
  148. package/dist/logos/premia.svg +1 -0
  149. package/dist/logos/rage-trade.svg +1 -0
  150. package/dist/logos/rari.svg +1 -0
  151. package/dist/logos/reflexer.png +0 -0
  152. package/dist/logos/ren.svg +1 -0
  153. package/dist/logos/ribbon.svg +1 -0
  154. package/dist/logos/scallop.svg +1 -0
  155. package/dist/logos/self.svg +1 -0
  156. package/dist/logos/sentiment.png +0 -0
  157. package/dist/logos/sherlock.svg +1 -0
  158. package/dist/logos/solana.svg +1 -0
  159. package/dist/logos/squeeth-by-opyn.svg +1 -0
  160. package/dist/logos/stakedao.svg +1 -0
  161. package/dist/logos/stakewise.svg +1 -0
  162. package/dist/logos/starkware.svg +1 -0
  163. package/dist/logos/sushiswap.svg +1 -0
  164. package/dist/logos/synthetix.svg +1 -0
  165. package/dist/logos/tbtc.svg +1 -0
  166. package/dist/logos/teller.svg +1 -0
  167. package/dist/logos/terra-chain.svg +1 -0
  168. package/dist/logos/the-retail-mutual.png +0 -0
  169. package/dist/logos/thorchain.svg +1 -0
  170. package/dist/logos/tokensets.svg +1 -0
  171. package/dist/logos/trader-joe.svg +1 -0
  172. package/dist/logos/union-finance.svg +1 -0
  173. package/dist/logos/uniswapv2.svg +1 -0
  174. package/dist/logos/vector.svg +1 -0
  175. package/dist/logos/venus.svg +1 -0
  176. package/dist/logos/vertex.svg +1 -0
  177. package/dist/logos/vesper-veth.svg +1 -0
  178. package/dist/logos/vesper.svg +1 -0
  179. package/dist/logos/vox.png +0 -0
  180. package/dist/logos/wefi.png +0 -0
  181. package/dist/logos/yearn.svg +1 -0
  182. package/dist/logos/yeti.png +0 -0
  183. package/dist/logos/yield-app.svg +1 -0
  184. package/dist/logos/zerox.svg +1 -0
  185. package/dist/logos/zksync.svg +1 -0
  186. package/dist/logos/zktsunami.svg +1 -0
  187. package/dist/scripts/copy-logos.cjs +33 -0
  188. package/package.json +11 -4
  189. package/dist/abis/Assessment.json +0 -700
  190. package/dist/abis/Cover.json +0 -1258
  191. package/dist/abis/CoverMigrator.json +0 -189
  192. package/dist/abis/CoverNFT.json +0 -498
  193. package/dist/abis/CoverNFTDescriptor.json +0 -200
  194. package/dist/abis/CoverViewer.json +0 -124
  195. package/dist/abis/EACAggregatorProxy.json +0 -58
  196. package/dist/abis/ERC20.json +0 -364
  197. package/dist/abis/Governance.json +0 -975
  198. package/dist/abis/IndividualClaims.json +0 -528
  199. package/dist/abis/LegacyClaimProofs.json +0 -64
  200. package/dist/abis/LegacyClaimsData.json +0 -1912
  201. package/dist/abis/LegacyClaimsReward.json +0 -179
  202. package/dist/abis/LegacyGateway.json +0 -542
  203. package/dist/abis/LegacyPooledStaking.json +0 -1320
  204. package/dist/abis/LegacyQuotationData.json +0 -1121
  205. package/dist/abis/MemberRoles.json +0 -681
  206. package/dist/abis/NXMToken.json +0 -498
  207. package/dist/abis/NXMaster.json +0 -501
  208. package/dist/abis/Pool.json +0 -928
  209. package/dist/abis/PriceFeedOracle.json +0 -122
  210. package/dist/abis/ProductsV1.json +0 -21
  211. package/dist/abis/ProposalCategory.json +0 -550
  212. package/dist/abis/StakingNFT.json +0 -569
  213. package/dist/abis/StakingNFTDescriptor.json +0 -222
  214. package/dist/abis/StakingPool.json +0 -1433
  215. package/dist/abis/StakingPoolFactory.json +0 -108
  216. package/dist/abis/StakingProducts.json +0 -885
  217. package/dist/abis/SwapOperator.json +0 -754
  218. package/dist/abis/TokenController.json +0 -1024
  219. package/dist/abis/YieldTokenIncidents.json +0 -438
  220. package/dist/abis/index.js +0 -69
  221. /package/dist/{addresses.json → data/addresses.json} +0 -0
  222. /package/dist/{product-types.json → data/product-types.json} +0 -0
  223. /package/dist/{products.json → data/products.json} +0 -0
@@ -0,0 +1,1042 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_coverContract",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_stakingPoolFactory",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "MustRecalculateEffectiveWeight",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "MustSetPriceForNewProducts",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "MustSetWeightForNewProducts",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "OnlyCoverContract",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "OnlyManager",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "OnlyStakingPool",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "uint256",
52
+ "name": "index",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "RevertedWithoutReason",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "TargetPriceBelowMin",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "TargetPriceTooHigh",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "TargetWeightTooHigh",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "TotalEffectiveWeightExceeded",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "TotalTargetWeightExceeded",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "anonymous": false,
86
+ "inputs": [
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "productId",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint8",
96
+ "name": "targetWeight",
97
+ "type": "uint8"
98
+ },
99
+ {
100
+ "indexed": false,
101
+ "internalType": "uint96",
102
+ "name": "targetPrice",
103
+ "type": "uint96"
104
+ }
105
+ ],
106
+ "name": "ProductUpdated",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ALLOCATION_UNITS_PER_NXM",
112
+ "outputs": [
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "stateMutability": "view",
120
+ "type": "function"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "CAPACITY_REDUCTION_DENOMINATOR",
125
+ "outputs": [
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "",
129
+ "type": "uint256"
130
+ }
131
+ ],
132
+ "stateMutability": "view",
133
+ "type": "function"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "GLOBAL_CAPACITY_DENOMINATOR",
138
+ "outputs": [
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "",
142
+ "type": "uint256"
143
+ }
144
+ ],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "INITIAL_PRICE_DENOMINATOR",
151
+ "outputs": [
152
+ {
153
+ "internalType": "uint256",
154
+ "name": "",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
161
+ {
162
+ "inputs": [],
163
+ "name": "MAX_ACTIVE_TRANCHES",
164
+ "outputs": [
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "",
168
+ "type": "uint256"
169
+ }
170
+ ],
171
+ "stateMutability": "view",
172
+ "type": "function"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "MAX_TOTAL_WEIGHT",
177
+ "outputs": [
178
+ {
179
+ "internalType": "uint256",
180
+ "name": "",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "stateMutability": "view",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "NXM_PER_ALLOCATION_UNIT",
190
+ "outputs": [
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "",
194
+ "type": "uint256"
195
+ }
196
+ ],
197
+ "stateMutability": "view",
198
+ "type": "function"
199
+ },
200
+ {
201
+ "inputs": [],
202
+ "name": "ONE_NXM",
203
+ "outputs": [
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "",
207
+ "type": "uint256"
208
+ }
209
+ ],
210
+ "stateMutability": "view",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [],
215
+ "name": "PRICE_BUMP_RATIO",
216
+ "outputs": [
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "stateMutability": "view",
224
+ "type": "function"
225
+ },
226
+ {
227
+ "inputs": [],
228
+ "name": "PRICE_CHANGE_PER_DAY",
229
+ "outputs": [
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "stateMutability": "view",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "SURGE_PRICE_RATIO",
242
+ "outputs": [
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "",
246
+ "type": "uint256"
247
+ }
248
+ ],
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "inputs": [],
254
+ "name": "SURGE_THRESHOLD_DENOMINATOR",
255
+ "outputs": [
256
+ {
257
+ "internalType": "uint256",
258
+ "name": "",
259
+ "type": "uint256"
260
+ }
261
+ ],
262
+ "stateMutability": "view",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "inputs": [],
267
+ "name": "SURGE_THRESHOLD_RATIO",
268
+ "outputs": [
269
+ {
270
+ "internalType": "uint256",
271
+ "name": "",
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [],
280
+ "name": "TARGET_PRICE_DENOMINATOR",
281
+ "outputs": [
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [],
293
+ "name": "TRANCHE_DURATION",
294
+ "outputs": [
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "stateMutability": "view",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "WEIGHT_DENOMINATOR",
307
+ "outputs": [
308
+ {
309
+ "internalType": "uint256",
310
+ "name": "",
311
+ "type": "uint256"
312
+ }
313
+ ],
314
+ "stateMutability": "view",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [
319
+ {
320
+ "internalType": "uint256",
321
+ "name": "coverAmount",
322
+ "type": "uint256"
323
+ },
324
+ {
325
+ "internalType": "uint256",
326
+ "name": "period",
327
+ "type": "uint256"
328
+ },
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "fixedPrice",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "nxmPerAllocationUnit",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "targetPriceDenominator",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "name": "calculateFixedPricePremium",
346
+ "outputs": [
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "stateMutability": "pure",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "components": [
360
+ {
361
+ "internalType": "uint16",
362
+ "name": "lastEffectiveWeight",
363
+ "type": "uint16"
364
+ },
365
+ {
366
+ "internalType": "uint8",
367
+ "name": "targetWeight",
368
+ "type": "uint8"
369
+ },
370
+ {
371
+ "internalType": "uint96",
372
+ "name": "targetPrice",
373
+ "type": "uint96"
374
+ },
375
+ {
376
+ "internalType": "uint96",
377
+ "name": "bumpedPrice",
378
+ "type": "uint96"
379
+ },
380
+ {
381
+ "internalType": "uint32",
382
+ "name": "bumpedPriceUpdateTime",
383
+ "type": "uint32"
384
+ }
385
+ ],
386
+ "internalType": "struct IStakingProducts.StakedProduct",
387
+ "name": "product",
388
+ "type": "tuple"
389
+ },
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "period",
393
+ "type": "uint256"
394
+ },
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "coverAmount",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "initialCapacityUsed",
403
+ "type": "uint256"
404
+ },
405
+ {
406
+ "internalType": "uint256",
407
+ "name": "totalCapacity",
408
+ "type": "uint256"
409
+ },
410
+ {
411
+ "internalType": "uint256",
412
+ "name": "targetPrice",
413
+ "type": "uint256"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "currentBlockTimestamp",
418
+ "type": "uint256"
419
+ },
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "nxmPerAllocationUnit",
423
+ "type": "uint256"
424
+ },
425
+ {
426
+ "internalType": "uint256",
427
+ "name": "allocationUnitsPerNxm",
428
+ "type": "uint256"
429
+ },
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "targetPriceDenominator",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "name": "calculatePremium",
437
+ "outputs": [
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "premium",
441
+ "type": "uint256"
442
+ },
443
+ {
444
+ "components": [
445
+ {
446
+ "internalType": "uint16",
447
+ "name": "lastEffectiveWeight",
448
+ "type": "uint16"
449
+ },
450
+ {
451
+ "internalType": "uint8",
452
+ "name": "targetWeight",
453
+ "type": "uint8"
454
+ },
455
+ {
456
+ "internalType": "uint96",
457
+ "name": "targetPrice",
458
+ "type": "uint96"
459
+ },
460
+ {
461
+ "internalType": "uint96",
462
+ "name": "bumpedPrice",
463
+ "type": "uint96"
464
+ },
465
+ {
466
+ "internalType": "uint32",
467
+ "name": "bumpedPriceUpdateTime",
468
+ "type": "uint32"
469
+ }
470
+ ],
471
+ "internalType": "struct IStakingProducts.StakedProduct",
472
+ "name": "",
473
+ "type": "tuple"
474
+ }
475
+ ],
476
+ "stateMutability": "pure",
477
+ "type": "function"
478
+ },
479
+ {
480
+ "inputs": [
481
+ {
482
+ "internalType": "uint256",
483
+ "name": "basePrice",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "internalType": "uint256",
488
+ "name": "coverAmount",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "initialCapacityUsed",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "totalCapacity",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "nxmPerAllocationUnit",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "internalType": "uint256",
508
+ "name": "allocationUnitsPerNxm",
509
+ "type": "uint256"
510
+ },
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "targetPriceDenominator",
514
+ "type": "uint256"
515
+ }
516
+ ],
517
+ "name": "calculatePremiumPerYear",
518
+ "outputs": [
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "stateMutability": "pure",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "uint256",
532
+ "name": "amountOnSurge",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "totalCapacity",
538
+ "type": "uint256"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "allocationUnitsPerNxm",
543
+ "type": "uint256"
544
+ }
545
+ ],
546
+ "name": "calculateSurgePremium",
547
+ "outputs": [
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "",
551
+ "type": "uint256"
552
+ }
553
+ ],
554
+ "stateMutability": "pure",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [],
559
+ "name": "changeDependentContractAddress",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "address",
568
+ "name": "masterAddress",
569
+ "type": "address"
570
+ }
571
+ ],
572
+ "name": "changeMasterAddress",
573
+ "outputs": [],
574
+ "stateMutability": "nonpayable",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [],
579
+ "name": "coverContract",
580
+ "outputs": [
581
+ {
582
+ "internalType": "address",
583
+ "name": "",
584
+ "type": "address"
585
+ }
586
+ ],
587
+ "stateMutability": "view",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [
592
+ {
593
+ "internalType": "uint256",
594
+ "name": "productBumpedPrice",
595
+ "type": "uint256"
596
+ },
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "productBumpedPriceUpdateTime",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "internalType": "uint256",
604
+ "name": "targetPrice",
605
+ "type": "uint256"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "timestamp",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "name": "getBasePrice",
614
+ "outputs": [
615
+ {
616
+ "internalType": "uint256",
617
+ "name": "basePrice",
618
+ "type": "uint256"
619
+ }
620
+ ],
621
+ "stateMutability": "pure",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [
626
+ {
627
+ "internalType": "uint256",
628
+ "name": "poolId",
629
+ "type": "uint256"
630
+ },
631
+ {
632
+ "internalType": "uint256",
633
+ "name": "productId",
634
+ "type": "uint256"
635
+ },
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "targetWeight",
639
+ "type": "uint256"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "globalCapacityRatio",
644
+ "type": "uint256"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "capacityReductionRatio",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "name": "getEffectiveWeight",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "effectiveWeight",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "internalType": "uint256",
667
+ "name": "poolId",
668
+ "type": "uint256"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "productId",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "period",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "coverAmount",
683
+ "type": "uint256"
684
+ },
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "initialCapacityUsed",
688
+ "type": "uint256"
689
+ },
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "totalCapacity",
693
+ "type": "uint256"
694
+ },
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "globalMinPrice",
698
+ "type": "uint256"
699
+ },
700
+ {
701
+ "internalType": "bool",
702
+ "name": "useFixedPrice",
703
+ "type": "bool"
704
+ },
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "nxmPerAllocationUnit",
708
+ "type": "uint256"
709
+ },
710
+ {
711
+ "internalType": "uint256",
712
+ "name": "allocationUnitsPerNXM",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "name": "getPremium",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "premium",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "nonpayable",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "poolId",
732
+ "type": "uint256"
733
+ },
734
+ {
735
+ "internalType": "uint256",
736
+ "name": "productId",
737
+ "type": "uint256"
738
+ }
739
+ ],
740
+ "name": "getProduct",
741
+ "outputs": [
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "lastEffectiveWeight",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "targetWeight",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "targetPrice",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "uint256",
759
+ "name": "bumpedPrice",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "bumpedPriceUpdateTime",
765
+ "type": "uint256"
766
+ }
767
+ ],
768
+ "stateMutability": "view",
769
+ "type": "function"
770
+ },
771
+ {
772
+ "inputs": [
773
+ {
774
+ "internalType": "uint256",
775
+ "name": "poolId",
776
+ "type": "uint256"
777
+ },
778
+ {
779
+ "internalType": "uint256",
780
+ "name": "productId",
781
+ "type": "uint256"
782
+ }
783
+ ],
784
+ "name": "getProductTargetWeight",
785
+ "outputs": [
786
+ {
787
+ "internalType": "uint256",
788
+ "name": "",
789
+ "type": "uint256"
790
+ }
791
+ ],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [
797
+ {
798
+ "internalType": "uint256",
799
+ "name": "poolId",
800
+ "type": "uint256"
801
+ }
802
+ ],
803
+ "name": "getTotalEffectiveWeight",
804
+ "outputs": [
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "stateMutability": "view",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "poolId",
819
+ "type": "uint256"
820
+ }
821
+ ],
822
+ "name": "getTotalTargetWeight",
823
+ "outputs": [
824
+ {
825
+ "internalType": "uint256",
826
+ "name": "",
827
+ "type": "uint256"
828
+ }
829
+ ],
830
+ "stateMutability": "view",
831
+ "type": "function"
832
+ },
833
+ {
834
+ "inputs": [
835
+ {
836
+ "internalType": "uint256",
837
+ "name": "",
838
+ "type": "uint256"
839
+ }
840
+ ],
841
+ "name": "internalContracts",
842
+ "outputs": [
843
+ {
844
+ "internalType": "address payable",
845
+ "name": "",
846
+ "type": "address"
847
+ }
848
+ ],
849
+ "stateMutability": "view",
850
+ "type": "function"
851
+ },
852
+ {
853
+ "inputs": [],
854
+ "name": "master",
855
+ "outputs": [
856
+ {
857
+ "internalType": "contract INXMMaster",
858
+ "name": "",
859
+ "type": "address"
860
+ }
861
+ ],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ {
868
+ "internalType": "bytes[]",
869
+ "name": "data",
870
+ "type": "bytes[]"
871
+ }
872
+ ],
873
+ "name": "multicall",
874
+ "outputs": [
875
+ {
876
+ "internalType": "bytes[]",
877
+ "name": "results",
878
+ "type": "bytes[]"
879
+ }
880
+ ],
881
+ "stateMutability": "nonpayable",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [
886
+ {
887
+ "internalType": "uint256",
888
+ "name": "poolId",
889
+ "type": "uint256"
890
+ },
891
+ {
892
+ "internalType": "uint256[]",
893
+ "name": "productIds",
894
+ "type": "uint256[]"
895
+ }
896
+ ],
897
+ "name": "recalculateEffectiveWeights",
898
+ "outputs": [],
899
+ "stateMutability": "nonpayable",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [
904
+ {
905
+ "internalType": "uint256",
906
+ "name": "poolId",
907
+ "type": "uint256"
908
+ }
909
+ ],
910
+ "name": "recalculateEffectiveWeightsForAllProducts",
911
+ "outputs": [],
912
+ "stateMutability": "nonpayable",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [
917
+ {
918
+ "internalType": "uint256",
919
+ "name": "poolId",
920
+ "type": "uint256"
921
+ },
922
+ {
923
+ "components": [
924
+ {
925
+ "internalType": "uint256",
926
+ "name": "productId",
927
+ "type": "uint256"
928
+ },
929
+ {
930
+ "internalType": "uint8",
931
+ "name": "weight",
932
+ "type": "uint8"
933
+ },
934
+ {
935
+ "internalType": "uint96",
936
+ "name": "initialPrice",
937
+ "type": "uint96"
938
+ },
939
+ {
940
+ "internalType": "uint96",
941
+ "name": "targetPrice",
942
+ "type": "uint96"
943
+ }
944
+ ],
945
+ "internalType": "struct ProductInitializationParams[]",
946
+ "name": "params",
947
+ "type": "tuple[]"
948
+ }
949
+ ],
950
+ "name": "setInitialProducts",
951
+ "outputs": [],
952
+ "stateMutability": "nonpayable",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [
957
+ {
958
+ "internalType": "uint256",
959
+ "name": "poolId",
960
+ "type": "uint256"
961
+ },
962
+ {
963
+ "components": [
964
+ {
965
+ "internalType": "uint256",
966
+ "name": "productId",
967
+ "type": "uint256"
968
+ },
969
+ {
970
+ "internalType": "bool",
971
+ "name": "recalculateEffectiveWeight",
972
+ "type": "bool"
973
+ },
974
+ {
975
+ "internalType": "bool",
976
+ "name": "setTargetWeight",
977
+ "type": "bool"
978
+ },
979
+ {
980
+ "internalType": "uint8",
981
+ "name": "targetWeight",
982
+ "type": "uint8"
983
+ },
984
+ {
985
+ "internalType": "bool",
986
+ "name": "setTargetPrice",
987
+ "type": "bool"
988
+ },
989
+ {
990
+ "internalType": "uint96",
991
+ "name": "targetPrice",
992
+ "type": "uint96"
993
+ }
994
+ ],
995
+ "internalType": "struct StakedProductParam[]",
996
+ "name": "params",
997
+ "type": "tuple[]"
998
+ }
999
+ ],
1000
+ "name": "setProducts",
1001
+ "outputs": [],
1002
+ "stateMutability": "nonpayable",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [],
1007
+ "name": "stakingPoolFactory",
1008
+ "outputs": [
1009
+ {
1010
+ "internalType": "address",
1011
+ "name": "",
1012
+ "type": "address"
1013
+ }
1014
+ ],
1015
+ "stateMutability": "view",
1016
+ "type": "function"
1017
+ },
1018
+ {
1019
+ "inputs": [
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "",
1023
+ "type": "uint256"
1024
+ }
1025
+ ],
1026
+ "name": "weights",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "uint32",
1030
+ "name": "totalEffectiveWeight",
1031
+ "type": "uint32"
1032
+ },
1033
+ {
1034
+ "internalType": "uint32",
1035
+ "name": "totalTargetWeight",
1036
+ "type": "uint32"
1037
+ }
1038
+ ],
1039
+ "stateMutability": "view",
1040
+ "type": "function"
1041
+ }
1042
+ ]