@lidofinance/lsv-cli 1.4.0-alpha.3 → 1.4.0-alpha.4

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 (427) hide show
  1. package/README.md +24 -10
  2. package/dist/abi/defi-wrapper/GenericStrategy.d.ts +308 -0
  3. package/dist/abi/defi-wrapper/GenericStrategy.js +409 -0
  4. package/dist/abi/defi-wrapper/GenericStrategy.js.map +1 -0
  5. package/dist/abi/defi-wrapper/MellowStrategy.d.ts +429 -0
  6. package/dist/abi/defi-wrapper/MellowStrategy.js +892 -0
  7. package/dist/abi/defi-wrapper/MellowStrategy.js.map +1 -0
  8. package/dist/abi/defi-wrapper/{StvStETHPool.js → StvStEthPool.js} +1 -1
  9. package/dist/abi/defi-wrapper/{StvStETHPool.js.map → StvStEthPool.js.map} +1 -1
  10. package/dist/abi/defi-wrapper/index.d.ts +3 -1
  11. package/dist/abi/defi-wrapper/index.js +3 -1
  12. package/dist/abi/defi-wrapper/index.js.map +1 -1
  13. package/dist/abi/defi-wrapper/sources.d.ts +103 -0
  14. package/dist/abi/defi-wrapper/sources.js +104 -0
  15. package/dist/abi/defi-wrapper/sources.js.map +1 -0
  16. package/dist/configs/constants.d.ts +28 -7
  17. package/dist/configs/deployed.d.ts +5 -0
  18. package/dist/configs/deployed.js +29 -10
  19. package/dist/configs/deployed.js.map +1 -1
  20. package/dist/configs/envs.js +2 -0
  21. package/dist/configs/envs.js.map +1 -1
  22. package/dist/configs/utils.js +1 -1
  23. package/dist/configs/utils.js.map +1 -1
  24. package/dist/contracts/defi-wrapper/generic-strategy.d.ts +5 -0
  25. package/dist/contracts/defi-wrapper/generic-strategy.js +12 -0
  26. package/dist/contracts/defi-wrapper/generic-strategy.js.map +1 -0
  27. package/dist/contracts/defi-wrapper/index.d.ts +1 -0
  28. package/dist/contracts/defi-wrapper/index.js +1 -0
  29. package/dist/contracts/defi-wrapper/index.js.map +1 -1
  30. package/dist/contracts/lazy-oracle.js +1 -1
  31. package/dist/contracts/lazy-oracle.js.map +1 -1
  32. package/dist/contracts/operator-grid.js +1 -1
  33. package/dist/contracts/operator-grid.js.map +1 -1
  34. package/dist/contracts/pdg.js +1 -1
  35. package/dist/contracts/pdg.js.map +1 -1
  36. package/dist/contracts/steth.js +1 -1
  37. package/dist/contracts/steth.js.map +1 -1
  38. package/dist/contracts/vault-hub.js +1 -1
  39. package/dist/contracts/vault-hub.js.map +1 -1
  40. package/dist/contracts/vault-viewer.js +1 -2
  41. package/dist/contracts/vault-viewer.js.map +1 -1
  42. package/dist/contracts/wsteth.js +1 -1
  43. package/dist/contracts/wsteth.js.map +1 -1
  44. package/dist/features/consolidation.d.ts +2 -3
  45. package/dist/features/consolidation.js +60 -32
  46. package/dist/features/consolidation.js.map +1 -1
  47. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +3 -0
  48. package/dist/features/defi-wrapper/defi-wrapper-factory.js +5 -2
  49. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
  50. package/dist/features/defi-wrapper/distributor.d.ts +3 -1
  51. package/dist/features/defi-wrapper/distributor.js +29 -14
  52. package/dist/features/defi-wrapper/distributor.js.map +1 -1
  53. package/dist/features/defi-wrapper/index.d.ts +1 -0
  54. package/dist/features/defi-wrapper/index.js +1 -0
  55. package/dist/features/defi-wrapper/index.js.map +1 -1
  56. package/dist/features/defi-wrapper/pool-info.d.ts +18 -1
  57. package/dist/features/defi-wrapper/pool-info.js +51 -7
  58. package/dist/features/defi-wrapper/pool-info.js.map +1 -1
  59. package/dist/features/defi-wrapper/timelock-roles.d.ts +5 -0
  60. package/dist/features/defi-wrapper/timelock-roles.js +43 -0
  61. package/dist/features/defi-wrapper/timelock-roles.js.map +1 -0
  62. package/dist/features/defi-wrapper/timelock.d.ts +8929 -8
  63. package/dist/features/defi-wrapper/timelock.js +86 -59
  64. package/dist/features/defi-wrapper/timelock.js.map +1 -1
  65. package/dist/features/defi-wrapper/verify-contracts.d.ts +20 -0
  66. package/dist/features/defi-wrapper/verify-contracts.js +145 -0
  67. package/dist/features/defi-wrapper/verify-contracts.js.map +1 -0
  68. package/dist/features/mint-burn/mint-limit.js +1 -1
  69. package/dist/features/mint-burn/mint-limit.js.map +1 -1
  70. package/dist/features/utils/try-fetch.js +4 -2
  71. package/dist/features/utils/try-fetch.js.map +1 -1
  72. package/dist/features/vault-factory.js +5 -4
  73. package/dist/features/vault-factory.js.map +1 -1
  74. package/dist/features/vault-operations/dashboard-by-vault.js +3 -7
  75. package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
  76. package/dist/features/vault-operations/vault-info.js +1 -1
  77. package/dist/features/vault-operations/vault-info.js.map +1 -1
  78. package/dist/features/vault-operations/vault-overview.js +1 -1
  79. package/dist/features/vault-operations/vault-overview.js.map +1 -1
  80. package/dist/features/with-report.js +1 -1
  81. package/dist/features/with-report.js.map +1 -1
  82. package/dist/index.js +7 -2
  83. package/dist/index.js.map +1 -1
  84. package/dist/programs/account/write.js +2 -1
  85. package/dist/programs/account/write.js.map +1 -1
  86. package/dist/programs/config.js +4 -2
  87. package/dist/programs/config.js.map +1 -1
  88. package/dist/programs/contracts/dashboard/read.js +3 -6
  89. package/dist/programs/contracts/dashboard/read.js.map +1 -1
  90. package/dist/programs/contracts/dashboard/write.js +2 -2
  91. package/dist/programs/contracts/dashboard/write.js.map +1 -1
  92. package/dist/programs/contracts/lazy-oracle/config.js +2 -2
  93. package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
  94. package/dist/programs/contracts/vault/config.js +1 -1
  95. package/dist/programs/contracts/vault/config.js.map +1 -1
  96. package/dist/programs/contracts/vault-factory/write.js +8 -9
  97. package/dist/programs/contracts/vault-factory/write.js.map +1 -1
  98. package/dist/programs/contracts/vault-viewer/config.js +8 -8
  99. package/dist/programs/contracts/vault-viewer/config.js.map +1 -1
  100. package/dist/programs/defi-wrapper/contracts/factory/write.js +79 -8
  101. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
  102. package/dist/programs/defi-wrapper/contracts/index.d.ts +1 -0
  103. package/dist/programs/defi-wrapper/contracts/index.js +1 -0
  104. package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
  105. package/dist/programs/defi-wrapper/contracts/strategy/config.d.ts +3 -0
  106. package/dist/programs/defi-wrapper/contracts/strategy/config.js +40 -0
  107. package/dist/programs/defi-wrapper/contracts/strategy/config.js.map +1 -0
  108. package/dist/programs/defi-wrapper/contracts/strategy/index.d.ts +3 -0
  109. package/dist/programs/defi-wrapper/contracts/strategy/index.js +4 -0
  110. package/dist/programs/defi-wrapper/contracts/strategy/index.js.map +1 -0
  111. package/dist/programs/defi-wrapper/contracts/strategy/main.d.ts +1 -0
  112. package/dist/programs/defi-wrapper/contracts/strategy/main.js +6 -0
  113. package/dist/programs/defi-wrapper/contracts/strategy/main.js.map +1 -0
  114. package/dist/programs/defi-wrapper/contracts/strategy/read.js +30 -0
  115. package/dist/programs/defi-wrapper/contracts/strategy/read.js.map +1 -0
  116. package/dist/programs/defi-wrapper/contracts/strategy/write.d.ts +1 -0
  117. package/dist/programs/defi-wrapper/contracts/strategy/write.js +34 -0
  118. package/dist/programs/defi-wrapper/contracts/strategy/write.js.map +1 -0
  119. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +57 -21
  120. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
  121. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +1 -1
  122. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -1
  123. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +3 -4
  124. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
  125. package/dist/programs/defi-wrapper/use-cases/distributor/write.js +137 -29
  126. package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
  127. package/dist/programs/defi-wrapper/use-cases/health/utils.js +1 -1
  128. package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -1
  129. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +26 -13
  130. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
  131. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +194 -20
  132. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
  133. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
  134. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -1
  135. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +1 -0
  136. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +1 -0
  137. package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -1
  138. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +4 -4
  139. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +1 -1
  140. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
  141. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -1
  142. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.d.ts +2 -0
  143. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js +3 -0
  144. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js.map +1 -0
  145. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.d.ts +1 -0
  146. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js +6 -0
  147. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js.map +1 -0
  148. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.d.ts +1 -0
  149. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js +57 -0
  150. package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js.map +1 -0
  151. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +4 -4
  152. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -1
  153. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +35 -14
  154. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
  155. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +15 -14
  156. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
  157. package/dist/programs/dev-tools/anvil/write.js +2 -2
  158. package/dist/programs/dev-tools/anvil/write.js.map +1 -1
  159. package/dist/programs/pdg-helpers.js +4 -0
  160. package/dist/programs/pdg-helpers.js.map +1 -1
  161. package/dist/programs/use-cases/consolidation/write.js +7 -6
  162. package/dist/programs/use-cases/consolidation/write.js.map +1 -1
  163. package/dist/programs/use-cases/deposits/read.js +1 -2
  164. package/dist/programs/use-cases/deposits/read.js.map +1 -1
  165. package/dist/programs/use-cases/metrics/read.js +115 -1
  166. package/dist/programs/use-cases/metrics/read.js.map +1 -1
  167. package/dist/programs/use-cases/report/write.js +1 -3
  168. package/dist/programs/use-cases/report/write.js.map +1 -1
  169. package/dist/programs/use-cases/vault-operations/create-vault.js +8 -9
  170. package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
  171. package/dist/programs/use-cases/vault-operations/write.js +2 -14
  172. package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
  173. package/dist/providers/wallet.d.ts +2963 -18211
  174. package/dist/providers/wallet.js +80 -9
  175. package/dist/providers/wallet.js.map +1 -1
  176. package/dist/tests/fixtures/consolidation-fixtures.d.ts +64 -0
  177. package/dist/tests/fixtures/consolidation-fixtures.js +57 -0
  178. package/dist/tests/fixtures/consolidation-fixtures.js.map +1 -0
  179. package/dist/tests/integration/gas-estimation.test.d.ts +1 -0
  180. package/dist/tests/integration/gas-estimation.test.js +76 -0
  181. package/dist/tests/integration/gas-estimation.test.js.map +1 -0
  182. package/dist/tests/integration/{globalSetup.js → global-setup.js} +2 -2
  183. package/dist/tests/integration/global-setup.js.map +1 -0
  184. package/dist/tests/integration/helpers/test-client.d.ts +2079 -12251
  185. package/dist/tests/integration/helpers/test-config.js +4 -4
  186. package/dist/tests/integration/helpers/test-config.js.map +1 -1
  187. package/dist/tests/integration/metrics.test.js +1 -2
  188. package/dist/tests/integration/metrics.test.js.map +1 -1
  189. package/dist/tests/integration/mint-burn.test.js +1 -2
  190. package/dist/tests/integration/mint-burn.test.js.map +1 -1
  191. package/dist/tests/integration/minting-capacity.test.d.ts +1 -0
  192. package/dist/tests/integration/minting-capacity.test.js +52 -0
  193. package/dist/tests/integration/minting-capacity.test.js.map +1 -0
  194. package/dist/tests/integration/quarantine.test.d.ts +1 -0
  195. package/dist/tests/integration/quarantine.test.js +32 -0
  196. package/dist/tests/integration/quarantine.test.js.map +1 -0
  197. package/dist/tests/integration/report-fresh.test.d.ts +1 -0
  198. package/dist/tests/integration/report-fresh.test.js +47 -0
  199. package/dist/tests/integration/report-fresh.test.js.map +1 -0
  200. package/dist/tests/utils/arguments-security.test.d.ts +1 -0
  201. package/dist/tests/utils/arguments-security.test.js +34 -0
  202. package/dist/tests/utils/arguments-security.test.js.map +1 -0
  203. package/dist/tests/utils/arguments.test.js +5 -24
  204. package/dist/tests/utils/arguments.test.js.map +1 -1
  205. package/dist/tests/utils/big-int.test.d.ts +1 -0
  206. package/dist/tests/utils/{bigInt.test.js → big-int.test.js} +2 -2
  207. package/dist/tests/utils/big-int.test.js.map +1 -0
  208. package/dist/tests/utils/cache-security.test.d.ts +1 -0
  209. package/dist/tests/utils/cache-security.test.js +62 -0
  210. package/dist/tests/utils/cache-security.test.js.map +1 -0
  211. package/dist/tests/utils/cache.test.d.ts +1 -0
  212. package/dist/tests/utils/cache.test.js +233 -0
  213. package/dist/tests/utils/cache.test.js.map +1 -0
  214. package/dist/tests/utils/calculate-overview.test.js +4 -2
  215. package/dist/tests/utils/calculate-overview.test.js.map +1 -1
  216. package/dist/tests/utils/confirmations.test.d.ts +1 -0
  217. package/dist/tests/utils/confirmations.test.js +35 -0
  218. package/dist/tests/utils/confirmations.test.js.map +1 -0
  219. package/dist/tests/utils/consolidation-checks.test.d.ts +1 -0
  220. package/dist/tests/utils/consolidation-checks.test.js +77 -0
  221. package/dist/tests/utils/consolidation-checks.test.js.map +1 -0
  222. package/dist/tests/utils/consolidation-fee-exemption-calc.test.d.ts +1 -0
  223. package/dist/tests/utils/consolidation-fee-exemption-calc.test.js +145 -0
  224. package/dist/tests/utils/consolidation-fee-exemption-calc.test.js.map +1 -0
  225. package/dist/tests/utils/consolidation-fee-exemption-confirm.test.d.ts +1 -0
  226. package/dist/tests/utils/consolidation-fee-exemption-confirm.test.js +118 -0
  227. package/dist/tests/utils/consolidation-fee-exemption-confirm.test.js.map +1 -0
  228. package/dist/tests/utils/consolidation-fee-exemption.test.d.ts +1 -0
  229. package/dist/tests/utils/consolidation-fee-exemption.test.js +168 -0
  230. package/dist/tests/utils/consolidation-fee-exemption.test.js.map +1 -0
  231. package/dist/tests/utils/consolidation-pubkeys.test.d.ts +1 -0
  232. package/dist/tests/utils/consolidation-pubkeys.test.js +101 -0
  233. package/dist/tests/utils/consolidation-pubkeys.test.js.map +1 -0
  234. package/dist/tests/utils/consolidation-validator-info.test.d.ts +1 -0
  235. package/dist/tests/utils/consolidation-validator-info.test.js +101 -0
  236. package/dist/tests/utils/consolidation-validator-info.test.js.map +1 -0
  237. package/dist/tests/utils/consolidation-validators-checks.test.d.ts +1 -0
  238. package/dist/tests/utils/consolidation-validators-checks.test.js +156 -0
  239. package/dist/tests/utils/consolidation-validators-checks.test.js.map +1 -0
  240. package/dist/tests/utils/consts.test.d.ts +1 -0
  241. package/dist/tests/utils/consts.test.js +24 -0
  242. package/dist/tests/utils/consts.test.js.map +1 -0
  243. package/dist/tests/utils/contract-write-stateoverride.test.d.ts +1 -0
  244. package/dist/tests/utils/contract-write-stateoverride.test.js +135 -0
  245. package/dist/tests/utils/contract-write-stateoverride.test.js.map +1 -0
  246. package/dist/tests/utils/data-validators.test.js +22 -6
  247. package/dist/tests/utils/data-validators.test.js.map +1 -1
  248. package/dist/tests/utils/deployed-security.test.d.ts +1 -0
  249. package/dist/tests/utils/deployed-security.test.js +51 -0
  250. package/dist/tests/utils/deployed-security.test.js.map +1 -0
  251. package/dist/tests/utils/first-validator-gindex.test.d.ts +1 -0
  252. package/dist/tests/utils/first-validator-gindex.test.js +48 -0
  253. package/dist/tests/utils/first-validator-gindex.test.js.map +1 -0
  254. package/dist/tests/utils/get-commands.test.js +1 -1
  255. package/dist/tests/utils/get-commands.test.js.map +1 -1
  256. package/dist/tests/utils/get-confirmations.test.d.ts +1 -0
  257. package/dist/tests/utils/get-confirmations.test.js +40 -0
  258. package/dist/tests/utils/get-confirmations.test.js.map +1 -0
  259. package/dist/tests/utils/ipfs-security.test.d.ts +1 -0
  260. package/dist/tests/utils/ipfs-security.test.js +232 -0
  261. package/dist/tests/utils/ipfs-security.test.js.map +1 -0
  262. package/dist/tests/utils/ipfs.test.js +47 -18
  263. package/dist/tests/utils/ipfs.test.js.map +1 -1
  264. package/dist/tests/utils/logging.test.js +1 -1
  265. package/dist/tests/utils/logging.test.js.map +1 -1
  266. package/dist/tests/utils/merkle-utils.test.js +1 -0
  267. package/dist/tests/utils/merkle-utils.test.js.map +1 -1
  268. package/dist/tests/utils/parse-abi-arguments.test.d.ts +1 -0
  269. package/dist/tests/utils/parse-abi-arguments.test.js +399 -0
  270. package/dist/tests/utils/parse-abi-arguments.test.js.map +1 -0
  271. package/dist/tests/utils/public-client-gas-estimation.test.d.ts +1 -0
  272. package/dist/tests/utils/public-client-gas-estimation.test.js +231 -0
  273. package/dist/tests/utils/public-client-gas-estimation.test.js.map +1 -0
  274. package/dist/tests/utils/rate-limit-security.test.d.ts +1 -0
  275. package/dist/tests/utils/rate-limit-security.test.js +82 -0
  276. package/dist/tests/utils/rate-limit-security.test.js.map +1 -0
  277. package/dist/tests/utils/resove-path.test.js +2 -2
  278. package/dist/tests/utils/resove-path.test.js.map +1 -1
  279. package/dist/tests/utils/salt.test.d.ts +1 -0
  280. package/dist/tests/utils/salt.test.js +20 -0
  281. package/dist/tests/utils/salt.test.js.map +1 -0
  282. package/dist/tests/utils/stream-helpers.d.ts +1 -0
  283. package/dist/tests/utils/stream-helpers.js +11 -0
  284. package/dist/tests/utils/stream-helpers.js.map +1 -0
  285. package/dist/tests/utils/with-error.test.d.ts +1 -0
  286. package/dist/tests/utils/with-error.test.js +42 -0
  287. package/dist/tests/utils/with-error.test.js.map +1 -0
  288. package/dist/utils/arguments.d.ts +1 -6
  289. package/dist/utils/arguments.js +34 -34
  290. package/dist/utils/arguments.js.map +1 -1
  291. package/dist/utils/big-int.js +7 -0
  292. package/dist/utils/big-int.js.map +1 -0
  293. package/dist/utils/cache.js +25 -22
  294. package/dist/utils/cache.js.map +1 -1
  295. package/dist/utils/calculate-overview-v2.js +1 -1
  296. package/dist/utils/calculate-overview-v2.js.map +1 -1
  297. package/dist/utils/calculate-overview.js +2 -2
  298. package/dist/utils/calculate-overview.js.map +1 -1
  299. package/dist/utils/charts/blessed/charts-apr.js +2 -2
  300. package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
  301. package/dist/utils/charts/blessed/charts-rewards.js +2 -2
  302. package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
  303. package/dist/utils/charts/blessed/datasets/prepare-metrics.js +1 -2
  304. package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
  305. package/dist/utils/charts/blessed/utils.js +1 -0
  306. package/dist/utils/charts/blessed/utils.js.map +1 -1
  307. package/dist/utils/charts/overview.js +3 -3
  308. package/dist/utils/charts/overview.js.map +1 -1
  309. package/dist/utils/commands/confirmations.js +15 -8
  310. package/dist/utils/commands/confirmations.js.map +1 -1
  311. package/dist/utils/consolidation/confirms.js +19 -8
  312. package/dist/utils/consolidation/confirms.js.map +1 -1
  313. package/dist/utils/consolidation/fee-exemption.d.ts +19 -0
  314. package/dist/utils/consolidation/fee-exemption.js +70 -0
  315. package/dist/utils/consolidation/fee-exemption.js.map +1 -0
  316. package/dist/utils/consolidation/index.d.ts +1 -0
  317. package/dist/utils/consolidation/index.js +1 -0
  318. package/dist/utils/consolidation/index.js.map +1 -1
  319. package/dist/utils/consolidation/pubkeys.js +2 -0
  320. package/dist/utils/consolidation/pubkeys.js.map +1 -1
  321. package/dist/utils/consolidation/types.d.ts +1 -0
  322. package/dist/utils/consolidation/validator-info.d.ts +3 -2
  323. package/dist/utils/consolidation/validator-info.js +10 -4
  324. package/dist/utils/consolidation/validator-info.js.map +1 -1
  325. package/dist/utils/consolidation/validators-checks.d.ts +1 -1
  326. package/dist/utils/consolidation/validators-checks.js +5 -5
  327. package/dist/utils/consolidation/validators-checks.js.map +1 -1
  328. package/dist/utils/csv-file.js +1 -1
  329. package/dist/utils/csv-file.js.map +1 -1
  330. package/dist/utils/data-validators.d.ts +3 -2
  331. package/dist/utils/data-validators.js +11 -14
  332. package/dist/utils/data-validators.js.map +1 -1
  333. package/dist/utils/env.d.ts +1 -0
  334. package/dist/utils/env.js +8 -0
  335. package/dist/utils/env.js.map +1 -0
  336. package/dist/utils/{fetchCL.d.ts → fetch-cl.d.ts} +15 -17
  337. package/dist/utils/{fetchCL.js → fetch-cl.js} +5 -3
  338. package/dist/utils/fetch-cl.js.map +1 -0
  339. package/dist/utils/get-commands.js +3 -2
  340. package/dist/utils/get-commands.js.map +1 -1
  341. package/dist/utils/get-value.js +1 -1
  342. package/dist/utils/get-value.js.map +1 -1
  343. package/dist/utils/index.d.ts +7 -6
  344. package/dist/utils/index.js +7 -6
  345. package/dist/utils/index.js.map +1 -1
  346. package/dist/utils/interrupt-handler.js +1 -1
  347. package/dist/utils/interrupt-handler.js.map +1 -1
  348. package/dist/utils/ipfs.d.ts +21 -5
  349. package/dist/utils/ipfs.js +159 -37
  350. package/dist/utils/ipfs.js.map +1 -1
  351. package/dist/utils/logging/console.d.ts +1 -0
  352. package/dist/utils/logging/console.js +35 -7
  353. package/dist/utils/logging/console.js.map +1 -1
  354. package/dist/utils/parse-abi-arguments.d.ts +24 -0
  355. package/dist/utils/parse-abi-arguments.js +159 -0
  356. package/dist/utils/parse-abi-arguments.js.map +1 -0
  357. package/dist/utils/prompts/account.d.ts +1 -0
  358. package/dist/utils/prompts/account.js +13 -0
  359. package/dist/utils/prompts/account.js.map +1 -0
  360. package/dist/utils/prompts/index.d.ts +3 -0
  361. package/dist/utils/prompts/index.js +3 -0
  362. package/dist/utils/prompts/index.js.map +1 -1
  363. package/dist/utils/prompts/strategy.d.ts +15398 -0
  364. package/dist/utils/prompts/strategy.js +10 -0
  365. package/dist/utils/prompts/strategy.js.map +1 -0
  366. package/dist/utils/prompts/timelock-roles.d.ts +1 -0
  367. package/dist/utils/prompts/timelock-roles.js +13 -0
  368. package/dist/utils/prompts/timelock-roles.js.map +1 -0
  369. package/dist/utils/proof/constants.d.ts +1 -0
  370. package/dist/utils/proof/constants.js +1 -0
  371. package/dist/utils/proof/constants.js.map +1 -1
  372. package/dist/utils/proof/create-proof.js +1 -1
  373. package/dist/utils/proof/create-proof.js.map +1 -1
  374. package/dist/utils/proof/first-validator-gindex.js +27 -13
  375. package/dist/utils/proof/first-validator-gindex.js.map +1 -1
  376. package/dist/utils/proof/merkle-utils.js +1 -1
  377. package/dist/utils/proof/merkle-utils.js.map +1 -1
  378. package/dist/utils/proof/proofs.d.ts +1 -1
  379. package/dist/utils/proof/proofs.js +1 -1
  380. package/dist/utils/proof/proofs.js.map +1 -1
  381. package/dist/utils/rate-limit.d.ts +6 -0
  382. package/dist/utils/rate-limit.js +22 -5
  383. package/dist/utils/rate-limit.js.map +1 -1
  384. package/dist/utils/read-programs-by-abi.d.ts +1 -1
  385. package/dist/utils/read-programs-by-abi.js +11 -12
  386. package/dist/utils/read-programs-by-abi.js.map +1 -1
  387. package/dist/utils/report/report-proof.js +1 -1
  388. package/dist/utils/report/report-proof.js.map +1 -1
  389. package/dist/utils/report/report.js +2 -2
  390. package/dist/utils/report/report.js.map +1 -1
  391. package/dist/utils/resolve-path.js +2 -2
  392. package/dist/utils/resolve-path.js.map +1 -1
  393. package/dist/utils/salt.d.ts +3 -0
  394. package/dist/utils/salt.js +8 -0
  395. package/dist/utils/salt.js.map +1 -0
  396. package/dist/utils/share-rate.js +1 -1
  397. package/dist/utils/share-rate.js.map +1 -1
  398. package/dist/utils/snake-to-camel.js +1 -1
  399. package/dist/utils/snake-to-camel.js.map +1 -1
  400. package/dist/utils/spinner/spinners.js +2 -1
  401. package/dist/utils/spinner/spinners.js.map +1 -1
  402. package/dist/utils/transactions/tx-private-key.d.ts +2 -1
  403. package/dist/utils/transactions/tx-private-key.js +5 -8
  404. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  405. package/dist/utils/transactions/tx-wc.d.ts +2 -2
  406. package/dist/utils/transactions/tx-wc.js +11 -15
  407. package/dist/utils/transactions/tx-wc.js.map +1 -1
  408. package/dist/utils/transactions/utils.d.ts +1 -0
  409. package/dist/utils/transactions/utils.js +12 -0
  410. package/dist/utils/transactions/utils.js.map +1 -1
  411. package/dist/utils/wallet-connect.js +0 -1
  412. package/dist/utils/wallet-connect.js.map +1 -1
  413. package/dist/version/index.js +1 -1
  414. package/dist/vitest.config.js +1 -1
  415. package/dist/vitest.config.js.map +1 -1
  416. package/dist/vitest.integration.config.js +2 -2
  417. package/dist/vitest.integration.config.js.map +1 -1
  418. package/package.json +28 -34
  419. package/dist/tests/integration/globalSetup.js.map +0 -1
  420. package/dist/tests/utils/bigInt.test.js.map +0 -1
  421. package/dist/utils/bigInt.js +0 -3
  422. package/dist/utils/bigInt.js.map +0 -1
  423. package/dist/utils/fetchCL.js.map +0 -1
  424. /package/dist/abi/defi-wrapper/{StvStETHPool.d.ts → StvStEthPool.d.ts} +0 -0
  425. /package/dist/{tests/utils/bigInt.test.d.ts → programs/defi-wrapper/contracts/strategy/read.d.ts} +0 -0
  426. /package/dist/tests/integration/{globalSetup.d.ts → global-setup.d.ts} +0 -0
  427. /package/dist/utils/{bigInt.d.ts → big-int.d.ts} +0 -0
@@ -0,0 +1,892 @@
1
+ export const MellowStrategyAbi = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'bytes32', name: 'strategyId_', type: 'bytes32' },
5
+ {
6
+ internalType: 'address',
7
+ name: 'strategyCallForwarderImpl_',
8
+ type: 'address',
9
+ },
10
+ { internalType: 'address', name: 'pool_', type: 'address' },
11
+ { internalType: 'contract IVault', name: 'vault_', type: 'address' },
12
+ { internalType: 'address', name: 'syncDepositQueue_', type: 'address' },
13
+ { internalType: 'address', name: 'asyncDepositQueue_', type: 'address' },
14
+ { internalType: 'address', name: 'asyncRedeemQueue_', type: 'address' },
15
+ { internalType: 'bool', name: 'allowListEnabled_', type: 'bool' },
16
+ ],
17
+ stateMutability: 'nonpayable',
18
+ type: 'constructor',
19
+ },
20
+ { inputs: [], name: 'AccessControlBadConfirmation', type: 'error' },
21
+ {
22
+ inputs: [
23
+ { internalType: 'address', name: 'account', type: 'address' },
24
+ { internalType: 'bytes32', name: 'neededRole', type: 'bytes32' },
25
+ ],
26
+ name: 'AccessControlUnauthorizedAccount',
27
+ type: 'error',
28
+ },
29
+ {
30
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
31
+ name: 'AlreadyAllowListed',
32
+ type: 'error',
33
+ },
34
+ {
35
+ inputs: [{ internalType: 'string', name: 'name', type: 'string' }],
36
+ name: 'CallForwarderZeroArgument',
37
+ type: 'error',
38
+ },
39
+ { inputs: [], name: 'FailedDeployment', type: 'error' },
40
+ {
41
+ inputs: [{ internalType: 'bytes32', name: 'featureId', type: 'bytes32' }],
42
+ name: 'FeaturePauseEnforced',
43
+ type: 'error',
44
+ },
45
+ {
46
+ inputs: [{ internalType: 'bytes32', name: 'featureId', type: 'bytes32' }],
47
+ name: 'FeaturePauseExpected',
48
+ type: 'error',
49
+ },
50
+ {
51
+ inputs: [
52
+ { internalType: 'uint256', name: 'balance', type: 'uint256' },
53
+ { internalType: 'uint256', name: 'needed', type: 'uint256' },
54
+ ],
55
+ name: 'InsufficientBalance',
56
+ type: 'error',
57
+ },
58
+ { inputs: [], name: 'InsufficientMellowShares', type: 'error' },
59
+ { inputs: [], name: 'InvalidInitialization', type: 'error' },
60
+ {
61
+ inputs: [{ internalType: 'string', name: 'name', type: 'string' }],
62
+ name: 'InvalidQueue',
63
+ type: 'error',
64
+ },
65
+ { inputs: [], name: 'NoAsyncDepositQueue', type: 'error' },
66
+ {
67
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
68
+ name: 'NotAllowListed',
69
+ type: 'error',
70
+ },
71
+ {
72
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
73
+ name: 'NotInAllowList',
74
+ type: 'error',
75
+ },
76
+ { inputs: [], name: 'NotInitializing', type: 'error' },
77
+ { inputs: [], name: 'RedeemFailed', type: 'error' },
78
+ {
79
+ inputs: [
80
+ { internalType: 'uint8', name: 'bits', type: 'uint8' },
81
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
82
+ ],
83
+ name: 'SafeCastOverflowedUintDowncast',
84
+ type: 'error',
85
+ },
86
+ { inputs: [], name: 'SupplyFailed', type: 'error' },
87
+ { inputs: [], name: 'WithdrawalFailed', type: 'error' },
88
+ {
89
+ inputs: [{ internalType: 'string', name: 'name', type: 'string' }],
90
+ name: 'ZeroArgument',
91
+ type: 'error',
92
+ },
93
+ {
94
+ anonymous: false,
95
+ inputs: [
96
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
97
+ ],
98
+ name: 'AllowListAdded',
99
+ type: 'event',
100
+ },
101
+ {
102
+ anonymous: false,
103
+ inputs: [
104
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
105
+ ],
106
+ name: 'AllowListRemoved',
107
+ type: 'event',
108
+ },
109
+ {
110
+ anonymous: false,
111
+ inputs: [
112
+ {
113
+ indexed: true,
114
+ internalType: 'bytes32',
115
+ name: 'featureId',
116
+ type: 'bytes32',
117
+ },
118
+ {
119
+ indexed: true,
120
+ internalType: 'address',
121
+ name: 'account',
122
+ type: 'address',
123
+ },
124
+ ],
125
+ name: 'FeaturePaused',
126
+ type: 'event',
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: true,
133
+ internalType: 'bytes32',
134
+ name: 'featureId',
135
+ type: 'bytes32',
136
+ },
137
+ {
138
+ indexed: true,
139
+ internalType: 'address',
140
+ name: 'account',
141
+ type: 'address',
142
+ },
143
+ ],
144
+ name: 'FeatureUnpaused',
145
+ type: 'event',
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: false,
152
+ internalType: 'uint64',
153
+ name: 'version',
154
+ type: 'uint64',
155
+ },
156
+ ],
157
+ name: 'Initialized',
158
+ type: 'event',
159
+ },
160
+ {
161
+ anonymous: false,
162
+ inputs: [
163
+ {
164
+ indexed: true,
165
+ internalType: 'address',
166
+ name: 'recipient',
167
+ type: 'address',
168
+ },
169
+ {
170
+ indexed: true,
171
+ internalType: 'address',
172
+ name: 'referralAddress',
173
+ type: 'address',
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: 'uint256',
178
+ name: 'wstethAmount',
179
+ type: 'uint256',
180
+ },
181
+ { indexed: false, internalType: 'bool', name: 'isSync', type: 'bool' },
182
+ {
183
+ indexed: false,
184
+ internalType: 'uint256',
185
+ name: 'shares',
186
+ type: 'uint256',
187
+ },
188
+ { indexed: false, internalType: 'bytes', name: 'params', type: 'bytes' },
189
+ ],
190
+ name: 'MellowDeposited',
191
+ type: 'event',
192
+ },
193
+ {
194
+ anonymous: false,
195
+ inputs: [
196
+ {
197
+ indexed: true,
198
+ internalType: 'address',
199
+ name: 'msgSender',
200
+ type: 'address',
201
+ },
202
+ ],
203
+ name: 'MellowSharesClaimed',
204
+ type: 'event',
205
+ },
206
+ {
207
+ anonymous: false,
208
+ inputs: [
209
+ {
210
+ indexed: true,
211
+ internalType: 'address',
212
+ name: 'recipient',
213
+ type: 'address',
214
+ },
215
+ {
216
+ indexed: false,
217
+ internalType: 'bytes32',
218
+ name: 'requestId',
219
+ type: 'bytes32',
220
+ },
221
+ {
222
+ indexed: false,
223
+ internalType: 'uint256',
224
+ name: 'shares',
225
+ type: 'uint256',
226
+ },
227
+ ],
228
+ name: 'MellowWithdrawalRequested',
229
+ type: 'event',
230
+ },
231
+ {
232
+ anonymous: false,
233
+ inputs: [
234
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
235
+ {
236
+ indexed: true,
237
+ internalType: 'bytes32',
238
+ name: 'previousAdminRole',
239
+ type: 'bytes32',
240
+ },
241
+ {
242
+ indexed: true,
243
+ internalType: 'bytes32',
244
+ name: 'newAdminRole',
245
+ type: 'bytes32',
246
+ },
247
+ ],
248
+ name: 'RoleAdminChanged',
249
+ type: 'event',
250
+ },
251
+ {
252
+ anonymous: false,
253
+ inputs: [
254
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
255
+ {
256
+ indexed: true,
257
+ internalType: 'address',
258
+ name: 'account',
259
+ type: 'address',
260
+ },
261
+ {
262
+ indexed: true,
263
+ internalType: 'address',
264
+ name: 'sender',
265
+ type: 'address',
266
+ },
267
+ ],
268
+ name: 'RoleGranted',
269
+ type: 'event',
270
+ },
271
+ {
272
+ anonymous: false,
273
+ inputs: [
274
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
275
+ {
276
+ indexed: true,
277
+ internalType: 'address',
278
+ name: 'account',
279
+ type: 'address',
280
+ },
281
+ {
282
+ indexed: true,
283
+ internalType: 'address',
284
+ name: 'sender',
285
+ type: 'address',
286
+ },
287
+ ],
288
+ name: 'RoleRevoked',
289
+ type: 'event',
290
+ },
291
+ {
292
+ anonymous: false,
293
+ inputs: [
294
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
295
+ {
296
+ indexed: false,
297
+ internalType: 'bytes32',
298
+ name: 'requestId',
299
+ type: 'bytes32',
300
+ },
301
+ {
302
+ indexed: false,
303
+ internalType: 'uint256',
304
+ name: 'wsteth',
305
+ type: 'uint256',
306
+ },
307
+ ],
308
+ name: 'StrategyExitFinalized',
309
+ type: 'event',
310
+ },
311
+ {
312
+ anonymous: false,
313
+ inputs: [
314
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
315
+ {
316
+ indexed: false,
317
+ internalType: 'bytes32',
318
+ name: 'requestId',
319
+ type: 'bytes32',
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: 'uint256',
324
+ name: 'wsteth',
325
+ type: 'uint256',
326
+ },
327
+ { indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' },
328
+ ],
329
+ name: 'StrategyExitRequested',
330
+ type: 'event',
331
+ },
332
+ {
333
+ anonymous: false,
334
+ inputs: [
335
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
336
+ {
337
+ indexed: true,
338
+ internalType: 'address',
339
+ name: 'referral',
340
+ type: 'address',
341
+ },
342
+ {
343
+ indexed: false,
344
+ internalType: 'uint256',
345
+ name: 'ethAmount',
346
+ type: 'uint256',
347
+ },
348
+ { indexed: false, internalType: 'uint256', name: 'stv', type: 'uint256' },
349
+ {
350
+ indexed: false,
351
+ internalType: 'uint256',
352
+ name: 'wstethToMint',
353
+ type: 'uint256',
354
+ },
355
+ { indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' },
356
+ ],
357
+ name: 'StrategySupplied',
358
+ type: 'event',
359
+ },
360
+ {
361
+ inputs: [],
362
+ name: 'ALLOW_LIST_ENABLED',
363
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
364
+ stateMutability: 'view',
365
+ type: 'function',
366
+ },
367
+ {
368
+ inputs: [],
369
+ name: 'ALLOW_LIST_MANAGER_ROLE',
370
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
371
+ stateMutability: 'view',
372
+ type: 'function',
373
+ },
374
+ {
375
+ inputs: [],
376
+ name: 'DEFAULT_ADMIN_ROLE',
377
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
378
+ stateMutability: 'view',
379
+ type: 'function',
380
+ },
381
+ {
382
+ inputs: [],
383
+ name: 'DEPOSIT_ROLE',
384
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
385
+ stateMutability: 'view',
386
+ type: 'function',
387
+ },
388
+ {
389
+ inputs: [],
390
+ name: 'MELLOW_ASYNC_DEPOSIT_QUEUE',
391
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
392
+ stateMutability: 'view',
393
+ type: 'function',
394
+ },
395
+ {
396
+ inputs: [],
397
+ name: 'MELLOW_ASYNC_REDEEM_QUEUE',
398
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
399
+ stateMutability: 'view',
400
+ type: 'function',
401
+ },
402
+ {
403
+ inputs: [],
404
+ name: 'MELLOW_SYNC_DEPOSIT_QUEUE',
405
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
406
+ stateMutability: 'view',
407
+ type: 'function',
408
+ },
409
+ {
410
+ inputs: [],
411
+ name: 'MELLOW_VAULT',
412
+ outputs: [{ internalType: 'contract IVault', name: '', type: 'address' }],
413
+ stateMutability: 'view',
414
+ type: 'function',
415
+ },
416
+ {
417
+ inputs: [],
418
+ name: 'POOL',
419
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
420
+ stateMutability: 'view',
421
+ type: 'function',
422
+ },
423
+ {
424
+ inputs: [],
425
+ name: 'REDEEM_FEATURE',
426
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
427
+ stateMutability: 'view',
428
+ type: 'function',
429
+ },
430
+ {
431
+ inputs: [],
432
+ name: 'REDEEM_PAUSE_ROLE',
433
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
434
+ stateMutability: 'view',
435
+ type: 'function',
436
+ },
437
+ {
438
+ inputs: [],
439
+ name: 'REDEEM_RESUME_ROLE',
440
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
441
+ stateMutability: 'view',
442
+ type: 'function',
443
+ },
444
+ {
445
+ inputs: [],
446
+ name: 'STRATEGY_CALL_FORWARDER_IMPL',
447
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
448
+ stateMutability: 'view',
449
+ type: 'function',
450
+ },
451
+ {
452
+ inputs: [],
453
+ name: 'STRATEGY_ID',
454
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
455
+ stateMutability: 'view',
456
+ type: 'function',
457
+ },
458
+ {
459
+ inputs: [],
460
+ name: 'SUPPLY_FEATURE',
461
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
462
+ stateMutability: 'view',
463
+ type: 'function',
464
+ },
465
+ {
466
+ inputs: [],
467
+ name: 'SUPPLY_PAUSE_ROLE',
468
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
469
+ stateMutability: 'view',
470
+ type: 'function',
471
+ },
472
+ {
473
+ inputs: [],
474
+ name: 'SUPPLY_RESUME_ROLE',
475
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
476
+ stateMutability: 'view',
477
+ type: 'function',
478
+ },
479
+ {
480
+ inputs: [],
481
+ name: 'WSTETH',
482
+ outputs: [{ internalType: 'contract IWstETH', name: '', type: 'address' }],
483
+ stateMutability: 'view',
484
+ type: 'function',
485
+ },
486
+ {
487
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
488
+ name: 'activeSharesOf',
489
+ outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],
490
+ stateMutability: 'view',
491
+ type: 'function',
492
+ },
493
+ {
494
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
495
+ name: 'addToAllowList',
496
+ outputs: [],
497
+ stateMutability: 'nonpayable',
498
+ type: 'function',
499
+ },
500
+ {
501
+ inputs: [
502
+ { internalType: 'uint256', name: '_wstethToBurn', type: 'uint256' },
503
+ ],
504
+ name: 'burnWsteth',
505
+ outputs: [],
506
+ stateMutability: 'nonpayable',
507
+ type: 'function',
508
+ },
509
+ {
510
+ inputs: [],
511
+ name: 'claimShares',
512
+ outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
513
+ stateMutability: 'nonpayable',
514
+ type: 'function',
515
+ },
516
+ {
517
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
518
+ name: 'claimableSharesOf',
519
+ outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],
520
+ stateMutability: 'view',
521
+ type: 'function',
522
+ },
523
+ {
524
+ inputs: [{ internalType: 'bytes32', name: 'requestId', type: 'bytes32' }],
525
+ name: 'finalizeRequestExit',
526
+ outputs: [],
527
+ stateMutability: 'nonpayable',
528
+ type: 'function',
529
+ },
530
+ {
531
+ inputs: [],
532
+ name: 'getAllowListAddresses',
533
+ outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
534
+ stateMutability: 'view',
535
+ type: 'function',
536
+ },
537
+ {
538
+ inputs: [],
539
+ name: 'getAllowListSize',
540
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
541
+ stateMutability: 'view',
542
+ type: 'function',
543
+ },
544
+ {
545
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
546
+ name: 'getDepositRequestOf',
547
+ outputs: [
548
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
549
+ { internalType: 'uint256', name: 'timestamp', type: 'uint256' },
550
+ { internalType: 'bool', name: 'isClaimable', type: 'bool' },
551
+ ],
552
+ stateMutability: 'view',
553
+ type: 'function',
554
+ },
555
+ {
556
+ inputs: [
557
+ { internalType: 'address', name: 'account', type: 'address' },
558
+ { internalType: 'uint256', name: 'offset', type: 'uint256' },
559
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
560
+ ],
561
+ name: 'getRedeemQueueRequests',
562
+ outputs: [
563
+ {
564
+ components: [
565
+ { internalType: 'uint256', name: 'timestamp', type: 'uint256' },
566
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
567
+ { internalType: 'bool', name: 'isClaimable', type: 'bool' },
568
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
569
+ ],
570
+ internalType: 'struct IRedeemQueue.Request[]',
571
+ name: '',
572
+ type: 'tuple[]',
573
+ },
574
+ ],
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ },
578
+ {
579
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
580
+ name: 'getRoleAdmin',
581
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
582
+ stateMutability: 'view',
583
+ type: 'function',
584
+ },
585
+ {
586
+ inputs: [
587
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
588
+ { internalType: 'uint256', name: 'index', type: 'uint256' },
589
+ ],
590
+ name: 'getRoleMember',
591
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ },
595
+ {
596
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
597
+ name: 'getRoleMemberCount',
598
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
599
+ stateMutability: 'view',
600
+ type: 'function',
601
+ },
602
+ {
603
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
604
+ name: 'getRoleMembers',
605
+ outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
606
+ stateMutability: 'view',
607
+ type: 'function',
608
+ },
609
+ {
610
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
611
+ name: 'getStrategyCallForwarderAddress',
612
+ outputs: [
613
+ {
614
+ internalType: 'contract IStrategyCallForwarder',
615
+ name: 'callForwarder',
616
+ type: 'address',
617
+ },
618
+ ],
619
+ stateMutability: 'view',
620
+ type: 'function',
621
+ },
622
+ {
623
+ inputs: [],
624
+ name: 'getUncheckedWstETHReport',
625
+ outputs: [
626
+ { internalType: 'bool', name: 'isSuspicious', type: 'bool' },
627
+ { internalType: 'uint256', name: 'priceD18', type: 'uint256' },
628
+ { internalType: 'uint32', name: 'timestamp', type: 'uint32' },
629
+ ],
630
+ stateMutability: 'view',
631
+ type: 'function',
632
+ },
633
+ {
634
+ inputs: [
635
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
636
+ { internalType: 'address', name: 'account', type: 'address' },
637
+ ],
638
+ name: 'grantRole',
639
+ outputs: [],
640
+ stateMutability: 'nonpayable',
641
+ type: 'function',
642
+ },
643
+ {
644
+ inputs: [
645
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
646
+ { internalType: 'address', name: 'account', type: 'address' },
647
+ ],
648
+ name: 'hasRole',
649
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
650
+ stateMutability: 'view',
651
+ type: 'function',
652
+ },
653
+ {
654
+ inputs: [
655
+ { internalType: 'address', name: 'admin_', type: 'address' },
656
+ { internalType: 'address', name: 'supplyPauser_', type: 'address' },
657
+ ],
658
+ name: 'initialize',
659
+ outputs: [],
660
+ stateMutability: 'nonpayable',
661
+ type: 'function',
662
+ },
663
+ {
664
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
665
+ name: 'isAllowListed',
666
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
667
+ stateMutability: 'view',
668
+ type: 'function',
669
+ },
670
+ {
671
+ inputs: [{ internalType: 'bytes32', name: '_featureId', type: 'bytes32' }],
672
+ name: 'isFeaturePaused',
673
+ outputs: [{ internalType: 'bool', name: 'isPaused', type: 'bool' }],
674
+ stateMutability: 'view',
675
+ type: 'function',
676
+ },
677
+ {
678
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
679
+ name: 'mintedStethSharesOf',
680
+ outputs: [
681
+ { internalType: 'uint256', name: 'mintedStethShares', type: 'uint256' },
682
+ ],
683
+ stateMutability: 'view',
684
+ type: 'function',
685
+ },
686
+ {
687
+ inputs: [],
688
+ name: 'pauseRedeem',
689
+ outputs: [],
690
+ stateMutability: 'nonpayable',
691
+ type: 'function',
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: 'pauseSupply',
696
+ outputs: [],
697
+ stateMutability: 'nonpayable',
698
+ type: 'function',
699
+ },
700
+ {
701
+ inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],
702
+ name: 'previewRedeem',
703
+ outputs: [
704
+ { internalType: 'bool', name: 'success', type: 'bool' },
705
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
706
+ ],
707
+ stateMutability: 'view',
708
+ type: 'function',
709
+ },
710
+ {
711
+ inputs: [
712
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
713
+ { internalType: 'address', name: 'msgSender', type: 'address' },
714
+ { internalType: 'address', name: 'callForwarder', type: 'address' },
715
+ {
716
+ components: [
717
+ { internalType: 'bool', name: 'isSync', type: 'bool' },
718
+ { internalType: 'bytes32[]', name: 'merkleProof', type: 'bytes32[]' },
719
+ ],
720
+ internalType: 'struct MellowStrategy.MellowSupplyParams',
721
+ name: 'supplyParams',
722
+ type: 'tuple',
723
+ },
724
+ ],
725
+ name: 'previewSupply',
726
+ outputs: [
727
+ { internalType: 'bool', name: 'success', type: 'bool' },
728
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
729
+ ],
730
+ stateMutability: 'view',
731
+ type: 'function',
732
+ },
733
+ {
734
+ inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }],
735
+ name: 'previewWithdraw',
736
+ outputs: [
737
+ { internalType: 'bool', name: 'success', type: 'bool' },
738
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
739
+ ],
740
+ stateMutability: 'view',
741
+ type: 'function',
742
+ },
743
+ {
744
+ inputs: [
745
+ { internalType: 'address', name: '_user', type: 'address' },
746
+ { internalType: 'uint256', name: '_ethToFund', type: 'uint256' },
747
+ ],
748
+ name: 'remainingMintingCapacitySharesOf',
749
+ outputs: [
750
+ { internalType: 'uint256', name: 'stethShares', type: 'uint256' },
751
+ ],
752
+ stateMutability: 'view',
753
+ type: 'function',
754
+ },
755
+ {
756
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
757
+ name: 'removeFromAllowList',
758
+ outputs: [],
759
+ stateMutability: 'nonpayable',
760
+ type: 'function',
761
+ },
762
+ {
763
+ inputs: [
764
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
765
+ { internalType: 'address', name: 'callerConfirmation', type: 'address' },
766
+ ],
767
+ name: 'renounceRole',
768
+ outputs: [],
769
+ stateMutability: 'nonpayable',
770
+ type: 'function',
771
+ },
772
+ {
773
+ inputs: [
774
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
775
+ { internalType: 'bytes', name: '', type: 'bytes' },
776
+ ],
777
+ name: 'requestExitByShares',
778
+ outputs: [{ internalType: 'bytes32', name: 'requestId', type: 'bytes32' }],
779
+ stateMutability: 'nonpayable',
780
+ type: 'function',
781
+ },
782
+ {
783
+ inputs: [
784
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
785
+ { internalType: 'bytes', name: '', type: 'bytes' },
786
+ ],
787
+ name: 'requestExitByWsteth',
788
+ outputs: [{ internalType: 'bytes32', name: 'requestId', type: 'bytes32' }],
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ },
792
+ {
793
+ inputs: [
794
+ { internalType: 'address', name: '_recipient', type: 'address' },
795
+ { internalType: 'uint256', name: '_stvToWithdraw', type: 'uint256' },
796
+ {
797
+ internalType: 'uint256',
798
+ name: '_stethSharesToRebalance',
799
+ type: 'uint256',
800
+ },
801
+ ],
802
+ name: 'requestWithdrawalFromPool',
803
+ outputs: [{ internalType: 'uint256', name: 'requestId', type: 'uint256' }],
804
+ stateMutability: 'nonpayable',
805
+ type: 'function',
806
+ },
807
+ {
808
+ inputs: [],
809
+ name: 'resumeRedeem',
810
+ outputs: [],
811
+ stateMutability: 'nonpayable',
812
+ type: 'function',
813
+ },
814
+ {
815
+ inputs: [],
816
+ name: 'resumeSupply',
817
+ outputs: [],
818
+ stateMutability: 'nonpayable',
819
+ type: 'function',
820
+ },
821
+ {
822
+ inputs: [
823
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
824
+ { internalType: 'address', name: 'account', type: 'address' },
825
+ ],
826
+ name: 'revokeRole',
827
+ outputs: [],
828
+ stateMutability: 'nonpayable',
829
+ type: 'function',
830
+ },
831
+ {
832
+ inputs: [
833
+ { internalType: 'address', name: '_token', type: 'address' },
834
+ { internalType: 'address', name: '_recipient', type: 'address' },
835
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
836
+ ],
837
+ name: 'safeTransferERC20',
838
+ outputs: [],
839
+ stateMutability: 'nonpayable',
840
+ type: 'function',
841
+ },
842
+ {
843
+ inputs: [
844
+ { internalType: 'address', name: '_recipient', type: 'address' },
845
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
846
+ ],
847
+ name: 'safeTransferETH',
848
+ outputs: [],
849
+ stateMutability: 'nonpayable',
850
+ type: 'function',
851
+ },
852
+ {
853
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
854
+ name: 'sharesOf',
855
+ outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],
856
+ stateMutability: 'view',
857
+ type: 'function',
858
+ },
859
+ {
860
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
861
+ name: 'stvOf',
862
+ outputs: [{ internalType: 'uint256', name: 'stv', type: 'uint256' }],
863
+ stateMutability: 'view',
864
+ type: 'function',
865
+ },
866
+ {
867
+ inputs: [
868
+ { internalType: 'address', name: 'referral', type: 'address' },
869
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
870
+ { internalType: 'bytes', name: 'params', type: 'bytes' },
871
+ ],
872
+ name: 'supply',
873
+ outputs: [{ internalType: 'uint256', name: 'stv', type: 'uint256' }],
874
+ stateMutability: 'payable',
875
+ type: 'function',
876
+ },
877
+ {
878
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
879
+ name: 'supportsInterface',
880
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
881
+ stateMutability: 'view',
882
+ type: 'function',
883
+ },
884
+ {
885
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
886
+ name: 'wstethOf',
887
+ outputs: [{ internalType: 'uint256', name: 'wsteth', type: 'uint256' }],
888
+ stateMutability: 'view',
889
+ type: 'function',
890
+ },
891
+ ];
892
+ //# sourceMappingURL=MellowStrategy.js.map