@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,928 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "payable": false,
5
- "inputs": [
6
- {
7
- "type": "address",
8
- "name": "_master"
9
- },
10
- {
11
- "type": "address",
12
- "name": "_priceOracle"
13
- },
14
- {
15
- "type": "address",
16
- "name": "_swapOperator"
17
- },
18
- {
19
- "type": "address",
20
- "name": "DAIAddress"
21
- },
22
- {
23
- "type": "address",
24
- "name": "stETHAddress"
25
- },
26
- {
27
- "type": "address",
28
- "name": "enzymeVaultAddress"
29
- },
30
- {
31
- "type": "address",
32
- "name": "_nxmTokenAddress"
33
- }
34
- ]
35
- },
36
- {
37
- "type": "event",
38
- "anonymous": false,
39
- "name": "NXMBought",
40
- "inputs": [
41
- {
42
- "type": "address",
43
- "name": "member",
44
- "indexed": true
45
- },
46
- {
47
- "type": "uint256",
48
- "name": "ethIn",
49
- "indexed": false
50
- },
51
- {
52
- "type": "uint256",
53
- "name": "nxmOut",
54
- "indexed": false
55
- }
56
- ]
57
- },
58
- {
59
- "type": "event",
60
- "anonymous": false,
61
- "name": "NXMSold",
62
- "inputs": [
63
- {
64
- "type": "address",
65
- "name": "member",
66
- "indexed": true
67
- },
68
- {
69
- "type": "uint256",
70
- "name": "nxmIn",
71
- "indexed": false
72
- },
73
- {
74
- "type": "uint256",
75
- "name": "ethOut",
76
- "indexed": false
77
- }
78
- ]
79
- },
80
- {
81
- "type": "event",
82
- "anonymous": false,
83
- "name": "Payout",
84
- "inputs": [
85
- {
86
- "type": "address",
87
- "name": "to",
88
- "indexed": true
89
- },
90
- {
91
- "type": "address",
92
- "name": "assetAddress",
93
- "indexed": true
94
- },
95
- {
96
- "type": "uint256",
97
- "name": "amount",
98
- "indexed": false
99
- }
100
- ]
101
- },
102
- {
103
- "type": "event",
104
- "anonymous": false,
105
- "name": "Swapped",
106
- "inputs": [
107
- {
108
- "type": "address",
109
- "name": "fromAsset",
110
- "indexed": true
111
- },
112
- {
113
- "type": "address",
114
- "name": "toAsset",
115
- "indexed": true
116
- },
117
- {
118
- "type": "uint256",
119
- "name": "amountIn",
120
- "indexed": false
121
- },
122
- {
123
- "type": "uint256",
124
- "name": "amountOut",
125
- "indexed": false
126
- }
127
- ]
128
- },
129
- {
130
- "type": "function",
131
- "name": "ETH",
132
- "constant": true,
133
- "stateMutability": "view",
134
- "payable": false,
135
-
136
- "inputs": [],
137
- "outputs": [
138
- {
139
- "type": "address"
140
- }
141
- ]
142
- },
143
- {
144
- "type": "function",
145
- "name": "MAX_BUY_SELL_MCR_ETH_FRACTION",
146
- "constant": true,
147
- "stateMutability": "view",
148
- "payable": false,
149
-
150
- "inputs": [],
151
- "outputs": [
152
- {
153
- "type": "uint256"
154
- }
155
- ]
156
- },
157
- {
158
- "type": "function",
159
- "name": "MAX_MCR_RATIO",
160
- "constant": true,
161
- "stateMutability": "view",
162
- "payable": false,
163
-
164
- "inputs": [],
165
- "outputs": [
166
- {
167
- "type": "uint256"
168
- }
169
- ]
170
- },
171
- {
172
- "type": "function",
173
- "name": "MCR_RATIO_DECIMALS",
174
- "constant": true,
175
- "stateMutability": "view",
176
- "payable": false,
177
-
178
- "inputs": [],
179
- "outputs": [
180
- {
181
- "type": "uint256"
182
- }
183
- ]
184
- },
185
- {
186
- "type": "function",
187
- "name": "addAsset",
188
- "constant": false,
189
- "payable": false,
190
-
191
- "inputs": [
192
- {
193
- "type": "address",
194
- "name": "assetAddress"
195
- },
196
- {
197
- "type": "bool",
198
- "name": "isCoverAsset"
199
- },
200
- {
201
- "type": "uint256",
202
- "name": "_min"
203
- },
204
- {
205
- "type": "uint256",
206
- "name": "_max"
207
- },
208
- {
209
- "type": "uint256",
210
- "name": "_maxSlippageRatio"
211
- }
212
- ],
213
- "outputs": []
214
- },
215
- {
216
- "type": "function",
217
- "name": "assets",
218
- "constant": true,
219
- "stateMutability": "view",
220
- "payable": false,
221
-
222
- "inputs": [
223
- {
224
- "type": "uint256"
225
- }
226
- ],
227
- "outputs": [
228
- {
229
- "type": "address",
230
- "name": "assetAddress"
231
- },
232
- {
233
- "type": "bool",
234
- "name": "isCoverAsset"
235
- },
236
- {
237
- "type": "bool",
238
- "name": "isAbandoned"
239
- }
240
- ]
241
- },
242
- {
243
- "type": "function",
244
- "name": "buyNXM",
245
- "constant": false,
246
- "stateMutability": "payable",
247
- "payable": true,
248
-
249
- "inputs": [
250
- {
251
- "type": "uint256",
252
- "name": "minTokensOut"
253
- }
254
- ],
255
- "outputs": []
256
- },
257
- {
258
- "type": "function",
259
- "name": "calculateEthForNXM",
260
- "constant": true,
261
- "stateMutability": "pure",
262
- "payable": false,
263
-
264
- "inputs": [
265
- {
266
- "type": "uint256",
267
- "name": "nxmAmount"
268
- },
269
- {
270
- "type": "uint256",
271
- "name": "currentTotalAssetValue"
272
- },
273
- {
274
- "type": "uint256",
275
- "name": "mcrEth"
276
- }
277
- ],
278
- "outputs": [
279
- {
280
- "type": "uint256"
281
- }
282
- ]
283
- },
284
- {
285
- "type": "function",
286
- "name": "calculateMCRRatio",
287
- "constant": true,
288
- "stateMutability": "pure",
289
- "payable": false,
290
-
291
- "inputs": [
292
- {
293
- "type": "uint256",
294
- "name": "totalAssetValue"
295
- },
296
- {
297
- "type": "uint256",
298
- "name": "mcrEth"
299
- }
300
- ],
301
- "outputs": [
302
- {
303
- "type": "uint256"
304
- }
305
- ]
306
- },
307
- {
308
- "type": "function",
309
- "name": "calculateNXMForEth",
310
- "constant": true,
311
- "stateMutability": "pure",
312
- "payable": false,
313
-
314
- "inputs": [
315
- {
316
- "type": "uint256",
317
- "name": "ethAmount"
318
- },
319
- {
320
- "type": "uint256",
321
- "name": "currentTotalAssetValue"
322
- },
323
- {
324
- "type": "uint256",
325
- "name": "mcrEth"
326
- }
327
- ],
328
- "outputs": [
329
- {
330
- "type": "uint256"
331
- }
332
- ]
333
- },
334
- {
335
- "type": "function",
336
- "name": "calculateTokenSpotPrice",
337
- "constant": true,
338
- "stateMutability": "pure",
339
- "payable": false,
340
-
341
- "inputs": [
342
- {
343
- "type": "uint256",
344
- "name": "totalAssetValue"
345
- },
346
- {
347
- "type": "uint256",
348
- "name": "mcrEth"
349
- }
350
- ],
351
- "outputs": [
352
- {
353
- "type": "uint256",
354
- "name": "tokenPrice"
355
- }
356
- ]
357
- },
358
- {
359
- "type": "function",
360
- "name": "changeDependentContractAddress",
361
- "constant": false,
362
- "payable": false,
363
-
364
- "inputs": [],
365
- "outputs": []
366
- },
367
- {
368
- "type": "function",
369
- "name": "changeMasterAddress",
370
- "constant": false,
371
- "payable": false,
372
-
373
- "inputs": [
374
- {
375
- "type": "address",
376
- "name": "masterAddress"
377
- }
378
- ],
379
- "outputs": []
380
- },
381
- {
382
- "type": "function",
383
- "name": "getAsset",
384
- "constant": true,
385
- "stateMutability": "view",
386
- "payable": false,
387
-
388
- "inputs": [
389
- {
390
- "type": "uint256",
391
- "name": "assetId"
392
- }
393
- ],
394
- "outputs": [
395
- {
396
- "type": "tuple",
397
- "components": [
398
- {
399
- "type": "address",
400
- "name": "assetAddress"
401
- },
402
- {
403
- "type": "bool",
404
- "name": "isCoverAsset"
405
- },
406
- {
407
- "type": "bool",
408
- "name": "isAbandoned"
409
- }
410
- ]
411
- }
412
- ]
413
- },
414
- {
415
- "type": "function",
416
- "name": "getAssetSwapDetails",
417
- "constant": true,
418
- "stateMutability": "view",
419
- "payable": false,
420
-
421
- "inputs": [
422
- {
423
- "type": "address",
424
- "name": "assetAddress"
425
- }
426
- ],
427
- "outputs": [
428
- {
429
- "type": "tuple",
430
- "components": [
431
- {
432
- "type": "uint104",
433
- "name": "minAmount"
434
- },
435
- {
436
- "type": "uint104",
437
- "name": "maxAmount"
438
- },
439
- {
440
- "type": "uint32",
441
- "name": "lastSwapTime"
442
- },
443
- {
444
- "type": "uint16",
445
- "name": "maxSlippageRatio"
446
- }
447
- ]
448
- }
449
- ]
450
- },
451
- {
452
- "type": "function",
453
- "name": "getAssets",
454
- "constant": true,
455
- "stateMutability": "view",
456
- "payable": false,
457
-
458
- "inputs": [],
459
- "outputs": [
460
- {
461
- "type": "tuple[]",
462
- "components": [
463
- {
464
- "type": "address",
465
- "name": "assetAddress"
466
- },
467
- {
468
- "type": "bool",
469
- "name": "isCoverAsset"
470
- },
471
- {
472
- "type": "bool",
473
- "name": "isAbandoned"
474
- }
475
- ]
476
- }
477
- ]
478
- },
479
- {
480
- "type": "function",
481
- "name": "getEthForNXM",
482
- "constant": true,
483
- "stateMutability": "view",
484
- "payable": false,
485
-
486
- "inputs": [
487
- {
488
- "type": "uint256",
489
- "name": "nxmAmount"
490
- }
491
- ],
492
- "outputs": [
493
- {
494
- "type": "uint256",
495
- "name": "ethAmount"
496
- }
497
- ]
498
- },
499
- {
500
- "type": "function",
501
- "name": "getMCRRatio",
502
- "constant": true,
503
- "stateMutability": "view",
504
- "payable": false,
505
-
506
- "inputs": [],
507
- "outputs": [
508
- {
509
- "type": "uint256"
510
- }
511
- ]
512
- },
513
- {
514
- "type": "function",
515
- "name": "getNXMForEth",
516
- "constant": true,
517
- "stateMutability": "view",
518
- "payable": false,
519
-
520
- "inputs": [
521
- {
522
- "type": "uint256",
523
- "name": "ethAmount"
524
- }
525
- ],
526
- "outputs": [
527
- {
528
- "type": "uint256"
529
- }
530
- ]
531
- },
532
- {
533
- "type": "function",
534
- "name": "getPoolValueInEth",
535
- "constant": true,
536
- "stateMutability": "view",
537
- "payable": false,
538
-
539
- "inputs": [],
540
- "outputs": [
541
- {
542
- "type": "uint256"
543
- }
544
- ]
545
- },
546
- {
547
- "type": "function",
548
- "name": "getTokenPrice",
549
- "constant": true,
550
- "stateMutability": "view",
551
- "payable": false,
552
-
553
- "inputs": [],
554
- "outputs": [
555
- {
556
- "type": "uint256",
557
- "name": "tokenPrice"
558
- }
559
- ]
560
- },
561
- {
562
- "type": "function",
563
- "name": "getTokenPriceInAsset",
564
- "constant": true,
565
- "stateMutability": "view",
566
- "payable": false,
567
-
568
- "inputs": [
569
- {
570
- "type": "uint256",
571
- "name": "assetId"
572
- }
573
- ],
574
- "outputs": [
575
- {
576
- "type": "uint256",
577
- "name": "tokenPrice"
578
- }
579
- ]
580
- },
581
- {
582
- "type": "function",
583
- "name": "internalContracts",
584
- "constant": true,
585
- "stateMutability": "view",
586
- "payable": false,
587
-
588
- "inputs": [
589
- {
590
- "type": "uint256"
591
- }
592
- ],
593
- "outputs": [
594
- {
595
- "type": "address"
596
- }
597
- ]
598
- },
599
- {
600
- "type": "function",
601
- "name": "master",
602
- "constant": true,
603
- "stateMutability": "view",
604
- "payable": false,
605
-
606
- "inputs": [],
607
- "outputs": [
608
- {
609
- "type": "address"
610
- }
611
- ]
612
- },
613
- {
614
- "type": "function",
615
- "name": "nxmToken",
616
- "constant": true,
617
- "stateMutability": "view",
618
- "payable": false,
619
-
620
- "inputs": [],
621
- "outputs": [
622
- {
623
- "type": "address"
624
- }
625
- ]
626
- },
627
- {
628
- "type": "function",
629
- "name": "priceFeedOracle",
630
- "constant": true,
631
- "stateMutability": "view",
632
- "payable": false,
633
-
634
- "inputs": [],
635
- "outputs": [
636
- {
637
- "type": "address"
638
- }
639
- ]
640
- },
641
- {
642
- "type": "function",
643
- "name": "sellNXM",
644
- "constant": false,
645
- "payable": false,
646
-
647
- "inputs": [
648
- {
649
- "type": "uint256",
650
- "name": "tokenAmount"
651
- },
652
- {
653
- "type": "uint256",
654
- "name": "minEthOut"
655
- }
656
- ],
657
- "outputs": []
658
- },
659
- {
660
- "type": "function",
661
- "name": "sellNXMTokens",
662
- "constant": false,
663
- "payable": false,
664
-
665
- "inputs": [
666
- {
667
- "type": "uint256",
668
- "name": "amount"
669
- }
670
- ],
671
- "outputs": [
672
- {
673
- "type": "bool",
674
- "name": "success"
675
- }
676
- ]
677
- },
678
- {
679
- "type": "function",
680
- "name": "sendPayout",
681
- "constant": false,
682
- "payable": false,
683
-
684
- "inputs": [
685
- {
686
- "type": "uint256",
687
- "name": "assetId"
688
- },
689
- {
690
- "type": "address",
691
- "name": "payoutAddress"
692
- },
693
- {
694
- "type": "uint256",
695
- "name": "amount"
696
- }
697
- ],
698
- "outputs": []
699
- },
700
- {
701
- "type": "function",
702
- "name": "setAssetDetails",
703
- "constant": false,
704
- "payable": false,
705
-
706
- "inputs": [
707
- {
708
- "type": "uint256",
709
- "name": "assetId"
710
- },
711
- {
712
- "type": "bool",
713
- "name": "isCoverAsset"
714
- },
715
- {
716
- "type": "bool",
717
- "name": "isAbandoned"
718
- }
719
- ],
720
- "outputs": []
721
- },
722
- {
723
- "type": "function",
724
- "name": "setSwapDetails",
725
- "constant": false,
726
- "payable": false,
727
-
728
- "inputs": [
729
- {
730
- "type": "address",
731
- "name": "assetAddress"
732
- },
733
- {
734
- "type": "uint256",
735
- "name": "_min"
736
- },
737
- {
738
- "type": "uint256",
739
- "name": "_max"
740
- },
741
- {
742
- "type": "uint256",
743
- "name": "_maxSlippageRatio"
744
- }
745
- ],
746
- "outputs": []
747
- },
748
- {
749
- "type": "function",
750
- "name": "setSwapDetailsLastSwapTime",
751
- "constant": false,
752
- "payable": false,
753
-
754
- "inputs": [
755
- {
756
- "type": "address",
757
- "name": "assetAddress"
758
- },
759
- {
760
- "type": "uint32",
761
- "name": "lastSwapTime"
762
- }
763
- ],
764
- "outputs": []
765
- },
766
- {
767
- "type": "function",
768
- "name": "setSwapValue",
769
- "constant": false,
770
- "payable": false,
771
-
772
- "inputs": [
773
- {
774
- "type": "uint256",
775
- "name": "newValue"
776
- }
777
- ],
778
- "outputs": []
779
- },
780
- {
781
- "type": "function",
782
- "name": "swapDetails",
783
- "constant": true,
784
- "stateMutability": "view",
785
- "payable": false,
786
-
787
- "inputs": [
788
- {
789
- "type": "address"
790
- }
791
- ],
792
- "outputs": [
793
- {
794
- "type": "uint104",
795
- "name": "minAmount"
796
- },
797
- {
798
- "type": "uint104",
799
- "name": "maxAmount"
800
- },
801
- {
802
- "type": "uint32",
803
- "name": "lastSwapTime"
804
- },
805
- {
806
- "type": "uint16",
807
- "name": "maxSlippageRatio"
808
- }
809
- ]
810
- },
811
- {
812
- "type": "function",
813
- "name": "swapOperator",
814
- "constant": true,
815
- "stateMutability": "view",
816
- "payable": false,
817
-
818
- "inputs": [],
819
- "outputs": [
820
- {
821
- "type": "address"
822
- }
823
- ]
824
- },
825
- {
826
- "type": "function",
827
- "name": "swapValue",
828
- "constant": true,
829
- "stateMutability": "view",
830
- "payable": false,
831
-
832
- "inputs": [],
833
- "outputs": [
834
- {
835
- "type": "uint96"
836
- }
837
- ]
838
- },
839
- {
840
- "type": "function",
841
- "name": "transferAsset",
842
- "constant": false,
843
- "payable": false,
844
-
845
- "inputs": [
846
- {
847
- "type": "address",
848
- "name": "assetAddress"
849
- },
850
- {
851
- "type": "address",
852
- "name": "destination"
853
- },
854
- {
855
- "type": "uint256",
856
- "name": "amount"
857
- }
858
- ],
859
- "outputs": []
860
- },
861
- {
862
- "type": "function",
863
- "name": "transferAssetToSwapOperator",
864
- "constant": false,
865
- "payable": false,
866
-
867
- "inputs": [
868
- {
869
- "type": "address",
870
- "name": "assetAddress"
871
- },
872
- {
873
- "type": "uint256",
874
- "name": "amount"
875
- }
876
- ],
877
- "outputs": []
878
- },
879
- {
880
- "type": "function",
881
- "name": "updateAddressParameters",
882
- "constant": false,
883
- "payable": false,
884
-
885
- "inputs": [
886
- {
887
- "type": "bytes8",
888
- "name": "code"
889
- },
890
- {
891
- "type": "address",
892
- "name": "value"
893
- }
894
- ],
895
- "outputs": []
896
- },
897
- {
898
- "type": "function",
899
- "name": "updateUintParameters",
900
- "constant": true,
901
- "stateMutability": "view",
902
- "payable": false,
903
-
904
- "inputs": [
905
- {
906
- "type": "bytes8"
907
- },
908
- {
909
- "type": "uint256"
910
- }
911
- ],
912
- "outputs": []
913
- },
914
- {
915
- "type": "function",
916
- "name": "upgradeCapitalPool",
917
- "constant": false,
918
- "payable": false,
919
-
920
- "inputs": [
921
- {
922
- "type": "address",
923
- "name": "newPoolAddress"
924
- }
925
- ],
926
- "outputs": []
927
- }
928
- ]