@nexusmutual/sdk 0.0.15 → 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/{product-types.json → data/product-types.json} +7 -0
  36. package/dist/{products.json → data/products.json} +78 -0
  37. package/dist/index.d.mts +2012 -0
  38. package/dist/index.d.ts +2012 -4
  39. package/dist/index.html +4 -4
  40. package/dist/index.js +25656 -9
  41. package/dist/index.js.map +1 -0
  42. package/dist/index.mjs +25489 -0
  43. package/dist/index.mjs.map +1 -0
  44. package/dist/logos/aavev2.svg +1 -0
  45. package/dist/logos/aavev3.svg +1 -0
  46. package/dist/logos/abracadabra.svg +1 -0
  47. package/dist/logos/ajna.svg +1 -0
  48. package/dist/logos/akropolis.svg +1 -0
  49. package/dist/logos/alchemix.svg +1 -0
  50. package/dist/logos/alpaca.svg +1 -0
  51. package/dist/logos/alpha-homora.svg +1 -0
  52. package/dist/logos/ampleforth.svg +1 -0
  53. package/dist/logos/anchor.svg +1 -0
  54. package/dist/logos/angle.svg +1 -0
  55. package/dist/logos/arbitrum.svg +1 -0
  56. package/dist/logos/argent.svg +1 -0
  57. package/dist/logos/aura.svg +1 -0
  58. package/dist/logos/aurora.svg +1 -0
  59. package/dist/logos/avalanche.svg +1 -0
  60. package/dist/logos/babylon.svg +1 -0
  61. package/dist/logos/badgerdao.svg +1 -0
  62. package/dist/logos/balancer.svg +1 -0
  63. package/dist/logos/bancor.svg +1 -0
  64. package/dist/logos/beefy.svg +1 -0
  65. package/dist/logos/binance.svg +1 -0
  66. package/dist/logos/blockFi.svg +1 -0
  67. package/dist/logos/buffer-finance.svg +1 -0
  68. package/dist/logos/bunnypancake.svg +1 -0
  69. package/dist/logos/celo.svg +1 -0
  70. package/dist/logos/celsius.svg +1 -0
  71. package/dist/logos/centrifuge.svg +1 -0
  72. package/dist/logos/chorusone.svg +1 -0
  73. package/dist/logos/coinbase.svg +1 -0
  74. package/dist/logos/compoundv2.svg +1 -0
  75. package/dist/logos/convex.svg +1 -0
  76. package/dist/logos/cowswap.svg +1 -0
  77. package/dist/logos/cronos.svg +1 -0
  78. package/dist/logos/crypto-com.svg +1 -0
  79. package/dist/logos/curve.svg +1 -0
  80. package/dist/logos/dforce.svg +1 -0
  81. package/dist/logos/dodo.svg +1 -0
  82. package/dist/logos/dydx.svg +1 -0
  83. package/dist/logos/ease.svg +1 -0
  84. package/dist/logos/eigenlayer.png +0 -0
  85. package/dist/logos/element-finance.svg +1 -0
  86. package/dist/logos/enzyme.svg +1 -0
  87. package/dist/logos/eth.svg +1 -0
  88. package/dist/logos/etherfi.png +0 -0
  89. package/dist/logos/euler.svg +1 -0
  90. package/dist/logos/exactly.svg +1 -0
  91. package/dist/logos/fantom.svg +1 -0
  92. package/dist/logos/figment.svg +1 -0
  93. package/dist/logos/fodl.svg +1 -0
  94. package/dist/logos/ftx.svg +1 -0
  95. package/dist/logos/fuse.svg +1 -0
  96. package/dist/logos/gamma.svg +1 -0
  97. package/dist/logos/gearbox.svg +1 -0
  98. package/dist/logos/gelt.svg +1 -0
  99. package/dist/logos/gemini.svg +1 -0
  100. package/dist/logos/gmx.svg +1 -0
  101. package/dist/logos/gnosis-multisig.svg +1 -0
  102. package/dist/logos/gnosis-safe.svg +1 -0
  103. package/dist/logos/goldfinch.svg +1 -0
  104. package/dist/logos/harmony.svg +1 -0
  105. package/dist/logos/heco.svg +1 -0
  106. package/dist/logos/hodlnaut.svg +1 -0
  107. package/dist/logos/holyheld.jpeg +0 -0
  108. package/dist/logos/homora.svg +1 -0
  109. package/dist/logos/hook.jpeg +0 -0
  110. package/dist/logos/idleDAIYield.svg +1 -0
  111. package/dist/logos/idleUSDTYield.svg +1 -0
  112. package/dist/logos/ironbank.svg +1 -0
  113. package/dist/logos/kiln.svg +1 -0
  114. package/dist/logos/kraken.svg +1 -0
  115. package/dist/logos/ledn.svg +1 -0
  116. package/dist/logos/level-finance.png +0 -0
  117. package/dist/logos/liquidcollective.svg +1 -0
  118. package/dist/logos/liquify.svg +1 -0
  119. package/dist/logos/liquity.svg +1 -0
  120. package/dist/logos/lyra.svg +1 -0
  121. package/dist/logos/mahalend.svg +1 -0
  122. package/dist/logos/makerdao.svg +1 -0
  123. package/dist/logos/metis.svg +1 -0
  124. package/dist/logos/moonbeam.svg +1 -0
  125. package/dist/logos/mooniswap.svg +1 -0
  126. package/dist/logos/moonriver.svg +1 -0
  127. package/dist/logos/morpho.svg +1 -0
  128. package/dist/logos/mstable.svg +1 -0
  129. package/dist/logos/nested.svg +1 -0
  130. package/dist/logos/nexo.svg +1 -0
  131. package/dist/logos/nexus-mutual.svg +1 -0
  132. package/dist/logos/notional-finance.svg +1 -0
  133. package/dist/logos/nucypher.svg +1 -0
  134. package/dist/logos/offramp.png +0 -0
  135. package/dist/logos/olympusdao.svg +1 -0
  136. package/dist/logos/ondo.svg +1 -0
  137. package/dist/logos/oneinch.svg +1 -0
  138. package/dist/logos/openq.png +0 -0
  139. package/dist/logos/optimism.svg +1 -0
  140. package/dist/logos/opyn.png +0 -0
  141. package/dist/logos/originusd.svg +1 -0
  142. package/dist/logos/pancakeswap.svg +1 -0
  143. package/dist/logos/pangolin.svg +1 -0
  144. package/dist/logos/perennial.jpeg +0 -0
  145. package/dist/logos/perpetual.svg +1 -0
  146. package/dist/logos/polkadot.svg +1 -0
  147. package/dist/logos/polygon.svg +1 -0
  148. package/dist/logos/pooltogether.svg +1 -0
  149. package/dist/logos/popsicle.svg +1 -0
  150. package/dist/logos/premia.svg +1 -0
  151. package/dist/logos/rage-trade.svg +1 -0
  152. package/dist/logos/rari.svg +1 -0
  153. package/dist/logos/reflexer.png +0 -0
  154. package/dist/logos/ren.svg +1 -0
  155. package/dist/logos/ribbon.svg +1 -0
  156. package/dist/logos/scallop.svg +1 -0
  157. package/dist/logos/self.svg +1 -0
  158. package/dist/logos/sentiment.png +0 -0
  159. package/dist/logos/sherlock.svg +1 -0
  160. package/dist/logos/solana.svg +1 -0
  161. package/dist/logos/squeeth-by-opyn.svg +1 -0
  162. package/dist/logos/stakedao.svg +1 -0
  163. package/dist/logos/stakewise.svg +1 -0
  164. package/dist/logos/starkware.svg +1 -0
  165. package/dist/logos/sushiswap.svg +1 -0
  166. package/dist/logos/synthetix.svg +1 -0
  167. package/dist/logos/tbtc.svg +1 -0
  168. package/dist/logos/teller.svg +1 -0
  169. package/dist/logos/terra-chain.svg +1 -0
  170. package/dist/logos/the-retail-mutual.png +0 -0
  171. package/dist/logos/thorchain.svg +1 -0
  172. package/dist/logos/tokensets.svg +1 -0
  173. package/dist/logos/trader-joe.svg +1 -0
  174. package/dist/logos/union-finance.svg +1 -0
  175. package/dist/logos/uniswapv2.svg +1 -0
  176. package/dist/logos/vector.svg +1 -0
  177. package/dist/logos/venus.svg +1 -0
  178. package/dist/logos/vertex.svg +1 -0
  179. package/dist/logos/vesper-veth.svg +1 -0
  180. package/dist/logos/vesper.svg +1 -0
  181. package/dist/logos/vox.png +0 -0
  182. package/dist/logos/wefi.png +0 -0
  183. package/dist/logos/yearn.svg +1 -0
  184. package/dist/logos/yeti.png +0 -0
  185. package/dist/logos/yield-app.svg +1 -0
  186. package/dist/logos/zerox.svg +1 -0
  187. package/dist/logos/zksync.svg +1 -0
  188. package/dist/logos/zktsunami.svg +1 -0
  189. package/dist/scripts/copy-logos.cjs +33 -0
  190. package/package.json +12 -5
  191. package/dist/abis/Assessment.json +0 -700
  192. package/dist/abis/Cover.json +0 -1258
  193. package/dist/abis/CoverMigrator.json +0 -189
  194. package/dist/abis/CoverNFT.json +0 -498
  195. package/dist/abis/CoverNFTDescriptor.json +0 -200
  196. package/dist/abis/CoverViewer.json +0 -124
  197. package/dist/abis/EACAggregatorProxy.json +0 -58
  198. package/dist/abis/ERC20.json +0 -364
  199. package/dist/abis/Governance.json +0 -975
  200. package/dist/abis/IndividualClaims.json +0 -528
  201. package/dist/abis/LegacyClaimProofs.json +0 -64
  202. package/dist/abis/LegacyClaimsData.json +0 -1912
  203. package/dist/abis/LegacyClaimsReward.json +0 -179
  204. package/dist/abis/LegacyGateway.json +0 -542
  205. package/dist/abis/LegacyPooledStaking.json +0 -1320
  206. package/dist/abis/LegacyQuotationData.json +0 -1121
  207. package/dist/abis/MemberRoles.json +0 -681
  208. package/dist/abis/NXMToken.json +0 -498
  209. package/dist/abis/NXMaster.json +0 -501
  210. package/dist/abis/Pool.json +0 -928
  211. package/dist/abis/PriceFeedOracle.json +0 -122
  212. package/dist/abis/ProductsV1.json +0 -21
  213. package/dist/abis/ProposalCategory.json +0 -550
  214. package/dist/abis/StakingNFT.json +0 -569
  215. package/dist/abis/StakingNFTDescriptor.json +0 -222
  216. package/dist/abis/StakingPool.json +0 -1433
  217. package/dist/abis/StakingPoolFactory.json +0 -108
  218. package/dist/abis/StakingProducts.json +0 -885
  219. package/dist/abis/SwapOperator.json +0 -754
  220. package/dist/abis/TokenController.json +0 -1024
  221. package/dist/abis/YieldTokenIncidents.json +0 -438
  222. package/dist/abis/index.js +0 -69
  223. /package/dist/{addresses.json → data/addresses.json} +0 -0
@@ -1,1433 +0,0 @@
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
- ]