@lidofinance/lsv-cli 1.0.0-alpha.62 → 1.0.0-alpha.63

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 (433) hide show
  1. package/LICENSE +1 -1
  2. package/dist/abi/AccessControlConfirmable.d.ts +4 -3
  3. package/dist/abi/AccessControlConfirmable.js +4 -2
  4. package/dist/abi/AccessControlConfirmable.js.map +1 -1
  5. package/dist/abi/Dashboard.d.ts +121 -88
  6. package/dist/abi/Dashboard.js +67 -78
  7. package/dist/abi/Dashboard.js.map +1 -1
  8. package/dist/abi/LazyOracle.d.ts +44 -3
  9. package/dist/abi/LazyOracle.js +57 -3
  10. package/dist/abi/LazyOracle.js.map +1 -1
  11. package/dist/abi/OperatorGrid.d.ts +615 -1
  12. package/dist/abi/OperatorGrid.js +50 -1
  13. package/dist/abi/OperatorGrid.js.map +1 -1
  14. package/dist/abi/PredepositGuarantee.d.ts +33 -34
  15. package/dist/abi/PredepositGuarantee.js +6 -37
  16. package/dist/abi/PredepositGuarantee.js.map +1 -1
  17. package/dist/abi/StakingVault.d.ts +57 -9
  18. package/dist/abi/StakingVault.js +3 -6
  19. package/dist/abi/StakingVault.js.map +1 -1
  20. package/dist/abi/VaultFactory.d.ts +78 -24
  21. package/dist/abi/VaultFactory.js +19 -1
  22. package/dist/abi/VaultFactory.js.map +1 -1
  23. package/dist/abi/VaultHub.d.ts +38 -4
  24. package/dist/abi/VaultHub.js +13 -0
  25. package/dist/abi/VaultHub.js.map +1 -1
  26. package/dist/abi/VaultViewer.d.ts +130 -196
  27. package/dist/abi/VaultViewer.js +169 -257
  28. package/dist/abi/VaultViewer.js.map +1 -1
  29. package/dist/abi/defi-wrapper/Distributor.d.ts +486 -0
  30. package/dist/abi/defi-wrapper/Distributor.js +633 -0
  31. package/dist/abi/defi-wrapper/Distributor.js.map +1 -0
  32. package/dist/abi/defi-wrapper/Factory.d.ts +1184 -0
  33. package/dist/abi/defi-wrapper/Factory.js +932 -0
  34. package/dist/abi/defi-wrapper/Factory.js.map +1 -0
  35. package/dist/abi/defi-wrapper/StvPool.d.ts +1079 -0
  36. package/dist/abi/defi-wrapper/StvPool.js +1410 -0
  37. package/dist/abi/defi-wrapper/StvPool.js.map +1 -0
  38. package/dist/abi/defi-wrapper/StvStETHPool.d.ts +1772 -0
  39. package/dist/abi/defi-wrapper/StvStETHPool.js +2316 -0
  40. package/dist/abi/defi-wrapper/StvStETHPool.js.map +1 -0
  41. package/dist/abi/defi-wrapper/WithdrawalQueue.d.ts +1265 -0
  42. package/dist/abi/defi-wrapper/WithdrawalQueue.js +1647 -0
  43. package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -0
  44. package/dist/abi/defi-wrapper/index.d.ts +5 -0
  45. package/dist/abi/defi-wrapper/index.js +6 -0
  46. package/dist/abi/defi-wrapper/index.js.map +1 -0
  47. package/dist/configs/constants.d.ts +44 -2
  48. package/dist/configs/constants.js +2 -2
  49. package/dist/configs/constants.js.map +1 -1
  50. package/dist/configs/deployed.d.ts +2 -2
  51. package/dist/configs/deployed.js +48 -6
  52. package/dist/configs/deployed.js.map +1 -1
  53. package/dist/configs/utils.d.ts +1 -0
  54. package/dist/configs/utils.js +4 -0
  55. package/dist/configs/utils.js.map +1 -1
  56. package/dist/contracts/dashboard-impl.d.ts +4 -0
  57. package/dist/contracts/dashboard-impl.js +17 -0
  58. package/dist/contracts/dashboard-impl.js.map +1 -0
  59. package/dist/contracts/dashboard.d.ts +2 -2
  60. package/dist/contracts/dashboard.js +3 -2
  61. package/dist/contracts/dashboard.js.map +1 -1
  62. package/dist/contracts/defi-wrapper/distributor.d.ts +4 -0
  63. package/dist/contracts/defi-wrapper/distributor.js +12 -0
  64. package/dist/contracts/defi-wrapper/distributor.js.map +1 -0
  65. package/dist/contracts/defi-wrapper/factory.d.ts +4 -0
  66. package/dist/contracts/defi-wrapper/factory.js +12 -0
  67. package/dist/contracts/defi-wrapper/factory.js.map +1 -0
  68. package/dist/contracts/defi-wrapper/index.d.ts +5 -0
  69. package/dist/contracts/defi-wrapper/index.js +6 -0
  70. package/dist/contracts/defi-wrapper/index.js.map +1 -0
  71. package/dist/contracts/defi-wrapper/stv-pool.d.ts +4 -0
  72. package/dist/contracts/defi-wrapper/stv-pool.js +12 -0
  73. package/dist/contracts/defi-wrapper/stv-pool.js.map +1 -0
  74. package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +4 -0
  75. package/dist/contracts/defi-wrapper/stv-steth-pool.js +12 -0
  76. package/dist/contracts/defi-wrapper/stv-steth-pool.js.map +1 -0
  77. package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +4 -0
  78. package/dist/contracts/defi-wrapper/withdrawal-queue.js +12 -0
  79. package/dist/contracts/defi-wrapper/withdrawal-queue.js.map +1 -0
  80. package/dist/contracts/index.d.ts +1 -0
  81. package/dist/contracts/index.js +1 -0
  82. package/dist/contracts/index.js.map +1 -1
  83. package/dist/contracts/lazy-oracle.js +3 -2
  84. package/dist/contracts/lazy-oracle.js.map +1 -1
  85. package/dist/contracts/locator.d.ts +3 -9655
  86. package/dist/contracts/locator.js +4 -3
  87. package/dist/contracts/locator.js.map +1 -1
  88. package/dist/contracts/operator-grid.d.ts +1 -1
  89. package/dist/contracts/operator-grid.js +3 -2
  90. package/dist/contracts/operator-grid.js.map +1 -1
  91. package/dist/contracts/pdg.js +3 -2
  92. package/dist/contracts/pdg.js.map +1 -1
  93. package/dist/contracts/steth.d.ts +54 -54
  94. package/dist/contracts/steth.js +3 -2
  95. package/dist/contracts/steth.js.map +1 -1
  96. package/dist/contracts/vault-factory.d.ts +3 -26297
  97. package/dist/contracts/vault-factory.js +4 -3
  98. package/dist/contracts/vault-factory.js.map +1 -1
  99. package/dist/contracts/vault-hub.js +3 -2
  100. package/dist/contracts/vault-hub.js.map +1 -1
  101. package/dist/contracts/vault-viewer.d.ts +3 -11789
  102. package/dist/contracts/vault-viewer.js +9 -7
  103. package/dist/contracts/vault-viewer.js.map +1 -1
  104. package/dist/contracts/vault.d.ts +2 -2
  105. package/dist/contracts/vault.js +3 -2
  106. package/dist/contracts/vault.js.map +1 -1
  107. package/dist/contracts/wsteth.d.ts +3 -24690
  108. package/dist/contracts/wsteth.js +4 -3
  109. package/dist/contracts/wsteth.js.map +1 -1
  110. package/dist/features/defi-wrapper/create-vault.d.ts +17 -0
  111. package/dist/features/defi-wrapper/create-vault.js +137 -0
  112. package/dist/features/defi-wrapper/create-vault.js.map +1 -0
  113. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +112 -0
  114. package/dist/features/defi-wrapper/defi-wrapper-factory.js +228 -0
  115. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -0
  116. package/dist/features/defi-wrapper/index.d.ts +3 -0
  117. package/dist/features/defi-wrapper/index.js +4 -0
  118. package/dist/features/defi-wrapper/index.js.map +1 -0
  119. package/dist/features/defi-wrapper/pool-info.d.ts +35 -0
  120. package/dist/features/defi-wrapper/pool-info.js +97 -0
  121. package/dist/features/defi-wrapper/pool-info.js.map +1 -0
  122. package/dist/features/deposits/check-bls-deposits.d.ts +2 -1
  123. package/dist/features/deposits/check-bls-deposits.js +11 -2
  124. package/dist/features/deposits/check-bls-deposits.js.map +1 -1
  125. package/dist/features/deposits/make-pdg-proof.d.ts +8 -0
  126. package/dist/features/deposits/make-pdg-proof.js +17 -1
  127. package/dist/features/deposits/make-pdg-proof.js.map +1 -1
  128. package/dist/features/deposits/no-pdg.d.ts +1 -1
  129. package/dist/features/deposits/no-pdg.js +6 -3
  130. package/dist/features/deposits/no-pdg.js.map +1 -1
  131. package/dist/features/dev-tools/impersonate.d.ts +14 -0
  132. package/dist/features/dev-tools/impersonate.js +64 -0
  133. package/dist/features/dev-tools/impersonate.js.map +1 -0
  134. package/dist/features/dev-tools/index.d.ts +1 -0
  135. package/dist/features/dev-tools/index.js +2 -0
  136. package/dist/features/dev-tools/index.js.map +1 -0
  137. package/dist/features/index.d.ts +2 -0
  138. package/dist/features/index.js +2 -0
  139. package/dist/features/index.js.map +1 -1
  140. package/dist/features/mint-burn/allowance.js +1 -1
  141. package/dist/features/mint-burn/allowance.js.map +1 -1
  142. package/dist/features/pdg.d.ts +7 -0
  143. package/dist/features/pdg.js +5 -5
  144. package/dist/features/pdg.js.map +1 -1
  145. package/dist/features/utils/get-boolean.d.ts +1 -0
  146. package/dist/features/utils/get-boolean.js +13 -0
  147. package/dist/features/utils/get-boolean.js.map +1 -0
  148. package/dist/features/utils/index.d.ts +2 -0
  149. package/dist/features/utils/index.js +2 -0
  150. package/dist/features/utils/index.js.map +1 -1
  151. package/dist/features/utils/quarantine.d.ts +2 -0
  152. package/dist/features/utils/quarantine.js +2 -0
  153. package/dist/features/utils/quarantine.js.map +1 -1
  154. package/dist/features/utils/report-fresh.js +17 -1
  155. package/dist/features/utils/report-fresh.js.map +1 -1
  156. package/dist/features/utils/settled-growth.d.ts +1 -0
  157. package/dist/features/utils/settled-growth.js +16 -0
  158. package/dist/features/utils/settled-growth.js.map +1 -0
  159. package/dist/features/vault-factory.d.ts +2 -2
  160. package/dist/features/vault-factory.js +8 -3
  161. package/dist/features/vault-factory.js.map +1 -1
  162. package/dist/features/vault-operations/create-vault.d.ts +4 -2
  163. package/dist/features/vault-operations/create-vault.js +13 -5
  164. package/dist/features/vault-operations/create-vault.js.map +1 -1
  165. package/dist/features/vault-operations/dashboard-by-vault.js +4 -4
  166. package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
  167. package/dist/features/vault-operations/vault-info.js +5 -3
  168. package/dist/features/vault-operations/vault-info.js.map +1 -1
  169. package/dist/features/vault-operations/vault-overview.js +13 -13
  170. package/dist/features/vault-operations/vault-overview.js.map +1 -1
  171. package/dist/features/vault-operations/vault-roles.d.ts +2 -1
  172. package/dist/features/vault-operations/vault-roles.js +22 -23
  173. package/dist/features/vault-operations/vault-roles.js.map +1 -1
  174. package/dist/features/vault-operations/vaults-by-role.d.ts +5 -0
  175. package/dist/features/vault-operations/vaults-by-role.js +123 -36
  176. package/dist/features/vault-operations/vaults-by-role.js.map +1 -1
  177. package/dist/features/vault.js +4 -2
  178. package/dist/features/vault.js.map +1 -1
  179. package/dist/index.js +17 -10
  180. package/dist/index.js.map +1 -1
  181. package/dist/programs/account/read.js +1 -1
  182. package/dist/programs/account/read.js.map +1 -1
  183. package/dist/programs/account/write.js +14 -0
  184. package/dist/programs/account/write.js.map +1 -1
  185. package/dist/programs/contracts/dashboard/config.js +4 -4
  186. package/dist/programs/contracts/dashboard/config.js.map +1 -1
  187. package/dist/programs/contracts/dashboard/read.js +9 -9
  188. package/dist/programs/contracts/dashboard/read.js.map +1 -1
  189. package/dist/programs/contracts/dashboard/write.js +118 -46
  190. package/dist/programs/contracts/dashboard/write.js.map +1 -1
  191. package/dist/programs/contracts/hub/config.js +0 -10
  192. package/dist/programs/contracts/hub/config.js.map +1 -1
  193. package/dist/programs/contracts/hub/read.js +63 -2
  194. package/dist/programs/contracts/hub/read.js.map +1 -1
  195. package/dist/programs/contracts/hub/write.js +1 -1
  196. package/dist/programs/contracts/hub/write.js.map +1 -1
  197. package/dist/programs/contracts/lazy-oracle/config.js +33 -0
  198. package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
  199. package/dist/programs/contracts/operator-grid/write.js +2 -75
  200. package/dist/programs/contracts/operator-grid/write.js.map +1 -1
  201. package/dist/programs/contracts/pdg/read.js +2 -5
  202. package/dist/programs/contracts/pdg/read.js.map +1 -1
  203. package/dist/programs/contracts/pdg/write.js +41 -9
  204. package/dist/programs/contracts/pdg/write.js.map +1 -1
  205. package/dist/programs/contracts/vault/write.js +34 -23
  206. package/dist/programs/contracts/vault/write.js.map +1 -1
  207. package/dist/programs/contracts/vault-factory/config.js +14 -1
  208. package/dist/programs/contracts/vault-factory/config.js.map +1 -1
  209. package/dist/programs/contracts/vault-factory/write.js +25 -15
  210. package/dist/programs/contracts/vault-factory/write.js.map +1 -1
  211. package/dist/programs/contracts/vault-viewer/config.js +102 -59
  212. package/dist/programs/contracts/vault-viewer/config.js.map +1 -1
  213. package/dist/programs/contracts/vault-viewer/read.js +22 -76
  214. package/dist/programs/contracts/vault-viewer/read.js.map +1 -1
  215. package/dist/programs/defi-wrapper/contracts/distributor/config.d.ts +3 -0
  216. package/dist/programs/defi-wrapper/contracts/distributor/config.js +44 -0
  217. package/dist/programs/defi-wrapper/contracts/distributor/config.js.map +1 -0
  218. package/dist/programs/defi-wrapper/contracts/distributor/index.d.ts +3 -0
  219. package/dist/programs/defi-wrapper/contracts/distributor/index.js +4 -0
  220. package/dist/programs/defi-wrapper/contracts/distributor/index.js.map +1 -0
  221. package/dist/programs/defi-wrapper/contracts/distributor/main.d.ts +1 -0
  222. package/dist/programs/defi-wrapper/contracts/distributor/main.js +5 -0
  223. package/dist/programs/defi-wrapper/contracts/distributor/main.js.map +1 -0
  224. package/dist/programs/defi-wrapper/contracts/distributor/read.d.ts +1 -0
  225. package/dist/programs/defi-wrapper/contracts/distributor/read.js +40 -0
  226. package/dist/programs/defi-wrapper/contracts/distributor/read.js.map +1 -0
  227. package/dist/programs/defi-wrapper/contracts/distributor/write.d.ts +1 -0
  228. package/dist/programs/defi-wrapper/contracts/distributor/write.js +70 -0
  229. package/dist/programs/defi-wrapper/contracts/distributor/write.js.map +1 -0
  230. package/dist/programs/defi-wrapper/contracts/factory/config.d.ts +3 -0
  231. package/dist/programs/defi-wrapper/contracts/factory/config.js +2 -0
  232. package/dist/programs/defi-wrapper/contracts/factory/config.js.map +1 -0
  233. package/dist/programs/defi-wrapper/contracts/factory/index.d.ts +3 -0
  234. package/dist/programs/defi-wrapper/contracts/factory/index.js +4 -0
  235. package/dist/programs/defi-wrapper/contracts/factory/index.js.map +1 -0
  236. package/dist/programs/defi-wrapper/contracts/factory/main.d.ts +1 -0
  237. package/dist/programs/defi-wrapper/contracts/factory/main.js +6 -0
  238. package/dist/programs/defi-wrapper/contracts/factory/main.js.map +1 -0
  239. package/dist/programs/defi-wrapper/contracts/factory/read.d.ts +1 -0
  240. package/dist/programs/defi-wrapper/contracts/factory/read.js +50 -0
  241. package/dist/programs/defi-wrapper/contracts/factory/read.js.map +1 -0
  242. package/dist/programs/defi-wrapper/contracts/factory/write.d.ts +1 -0
  243. package/dist/programs/defi-wrapper/contracts/factory/write.js +144 -0
  244. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -0
  245. package/dist/programs/defi-wrapper/contracts/index.d.ts +6 -0
  246. package/dist/programs/defi-wrapper/contracts/index.js +7 -0
  247. package/dist/programs/defi-wrapper/contracts/index.js.map +1 -0
  248. package/dist/programs/defi-wrapper/contracts/main.d.ts +1 -0
  249. package/dist/programs/defi-wrapper/contracts/main.js +6 -0
  250. package/dist/programs/defi-wrapper/contracts/main.js.map +1 -0
  251. package/dist/programs/defi-wrapper/contracts/stv-pool/config.d.ts +3 -0
  252. package/dist/programs/defi-wrapper/contracts/stv-pool/config.js +73 -0
  253. package/dist/programs/defi-wrapper/contracts/stv-pool/config.js.map +1 -0
  254. package/dist/programs/defi-wrapper/contracts/stv-pool/index.d.ts +3 -0
  255. package/dist/programs/defi-wrapper/contracts/stv-pool/index.js +4 -0
  256. package/dist/programs/defi-wrapper/contracts/stv-pool/index.js.map +1 -0
  257. package/dist/programs/defi-wrapper/contracts/stv-pool/main.d.ts +1 -0
  258. package/dist/programs/defi-wrapper/contracts/stv-pool/main.js +6 -0
  259. package/dist/programs/defi-wrapper/contracts/stv-pool/main.js.map +1 -0
  260. package/dist/programs/defi-wrapper/contracts/stv-pool/read.d.ts +1 -0
  261. package/dist/programs/defi-wrapper/contracts/stv-pool/read.js +70 -0
  262. package/dist/programs/defi-wrapper/contracts/stv-pool/read.js.map +1 -0
  263. package/dist/programs/defi-wrapper/contracts/stv-pool/write.d.ts +1 -0
  264. package/dist/programs/defi-wrapper/contracts/stv-pool/write.js +138 -0
  265. package/dist/programs/defi-wrapper/contracts/stv-pool/write.js.map +1 -0
  266. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.d.ts +3 -0
  267. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js +120 -0
  268. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js.map +1 -0
  269. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.d.ts +3 -0
  270. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.js +4 -0
  271. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.js.map +1 -0
  272. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.d.ts +1 -0
  273. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.js +6 -0
  274. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.js.map +1 -0
  275. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.d.ts +1 -0
  276. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js +70 -0
  277. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js.map +1 -0
  278. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.d.ts +1 -0
  279. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +173 -0
  280. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -0
  281. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.d.ts +3 -0
  282. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +66 -0
  283. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -0
  284. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.d.ts +3 -0
  285. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.js +4 -0
  286. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.js.map +1 -0
  287. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.d.ts +1 -0
  288. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.js +6 -0
  289. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.js.map +1 -0
  290. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.d.ts +1 -0
  291. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +65 -0
  292. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js.map +1 -0
  293. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.d.ts +1 -0
  294. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +171 -0
  295. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -0
  296. package/dist/programs/defi-wrapper/index.d.ts +3 -0
  297. package/dist/programs/defi-wrapper/index.js +4 -0
  298. package/dist/programs/defi-wrapper/index.js.map +1 -0
  299. package/dist/programs/defi-wrapper/main.d.ts +1 -0
  300. package/dist/programs/defi-wrapper/main.js +6 -0
  301. package/dist/programs/defi-wrapper/main.js.map +1 -0
  302. package/dist/programs/defi-wrapper/use-cases/health/index.d.ts +3 -0
  303. package/dist/programs/defi-wrapper/use-cases/health/index.js +4 -0
  304. package/dist/programs/defi-wrapper/use-cases/health/index.js.map +1 -0
  305. package/dist/programs/defi-wrapper/use-cases/health/main.d.ts +1 -0
  306. package/dist/programs/defi-wrapper/use-cases/health/main.js +6 -0
  307. package/dist/programs/defi-wrapper/use-cases/health/main.js.map +1 -0
  308. package/dist/programs/defi-wrapper/use-cases/health/read.d.ts +1 -0
  309. package/dist/programs/defi-wrapper/use-cases/health/read.js +338 -0
  310. package/dist/programs/defi-wrapper/use-cases/health/read.js.map +1 -0
  311. package/dist/programs/defi-wrapper/use-cases/health/utils.d.ts +56 -0
  312. package/dist/programs/defi-wrapper/use-cases/health/utils.js +389 -0
  313. package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -0
  314. package/dist/programs/defi-wrapper/use-cases/health/write.d.ts +1 -0
  315. package/dist/programs/defi-wrapper/use-cases/health/write.js +254 -0
  316. package/dist/programs/defi-wrapper/use-cases/health/write.js.map +1 -0
  317. package/dist/programs/defi-wrapper/use-cases/index.d.ts +3 -0
  318. package/dist/programs/defi-wrapper/use-cases/index.js +4 -0
  319. package/dist/programs/defi-wrapper/use-cases/index.js.map +1 -0
  320. package/dist/programs/defi-wrapper/use-cases/main.d.ts +1 -0
  321. package/dist/programs/defi-wrapper/use-cases/main.js +6 -0
  322. package/dist/programs/defi-wrapper/use-cases/main.js.map +1 -0
  323. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.d.ts +1 -0
  324. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js +143 -0
  325. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js.map +1 -0
  326. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.d.ts +3 -0
  327. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js +5 -0
  328. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js.map +1 -0
  329. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.d.ts +1 -0
  330. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.js +6 -0
  331. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.js.map +1 -0
  332. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.d.ts +1 -0
  333. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +130 -0
  334. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -0
  335. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.d.ts +1 -0
  336. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +13 -0
  337. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -0
  338. package/dist/programs/dev-tools/anvil/index.d.ts +2 -0
  339. package/dist/programs/dev-tools/anvil/index.js +3 -0
  340. package/dist/programs/dev-tools/anvil/index.js.map +1 -0
  341. package/dist/programs/dev-tools/anvil/main.d.ts +1 -0
  342. package/dist/programs/dev-tools/anvil/main.js +5 -0
  343. package/dist/programs/dev-tools/anvil/main.js.map +1 -0
  344. package/dist/programs/dev-tools/anvil/write.d.ts +1 -0
  345. package/dist/programs/dev-tools/anvil/write.js +122 -0
  346. package/dist/programs/dev-tools/anvil/write.js.map +1 -0
  347. package/dist/programs/dev-tools/defi-wrapper/index.d.ts +2 -0
  348. package/dist/programs/dev-tools/defi-wrapper/index.js +3 -0
  349. package/dist/programs/dev-tools/defi-wrapper/index.js.map +1 -0
  350. package/dist/programs/dev-tools/defi-wrapper/main.d.ts +1 -0
  351. package/dist/programs/dev-tools/defi-wrapper/main.js +6 -0
  352. package/dist/programs/dev-tools/defi-wrapper/main.js.map +1 -0
  353. package/dist/programs/dev-tools/defi-wrapper/write.d.ts +1 -0
  354. package/dist/programs/dev-tools/defi-wrapper/write.js +77 -0
  355. package/dist/programs/dev-tools/defi-wrapper/write.js.map +1 -0
  356. package/dist/programs/dev-tools/index.d.ts +3 -0
  357. package/dist/programs/dev-tools/index.js +4 -0
  358. package/dist/programs/dev-tools/index.js.map +1 -0
  359. package/dist/programs/dev-tools/main.d.ts +1 -0
  360. package/dist/programs/dev-tools/main.js +6 -0
  361. package/dist/programs/dev-tools/main.js.map +1 -0
  362. package/dist/programs/index.d.ts +2 -0
  363. package/dist/programs/index.js +2 -0
  364. package/dist/programs/index.js.map +1 -1
  365. package/dist/programs/pdg-helpers.js +5 -5
  366. package/dist/programs/pdg-helpers.js.map +1 -1
  367. package/dist/programs/use-cases/deposits/read.js +4 -4
  368. package/dist/programs/use-cases/deposits/read.js.map +1 -1
  369. package/dist/programs/use-cases/deposits/write.js +111 -16
  370. package/dist/programs/use-cases/deposits/write.js.map +1 -1
  371. package/dist/programs/use-cases/metrics/read.js +29 -13
  372. package/dist/programs/use-cases/metrics/read.js.map +1 -1
  373. package/dist/programs/use-cases/report/write.js +3 -0
  374. package/dist/programs/use-cases/report/write.js.map +1 -1
  375. package/dist/programs/use-cases/vault-operations/create-vault.js +13 -7
  376. package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
  377. package/dist/programs/use-cases/vault-operations/write.js +5 -0
  378. package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
  379. package/dist/providers/wallet.d.ts +6981 -166
  380. package/dist/providers/wallet.js +15 -5
  381. package/dist/providers/wallet.js.map +1 -1
  382. package/dist/utils/arguments.d.ts +5 -0
  383. package/dist/utils/arguments.js +24 -3
  384. package/dist/utils/arguments.js.map +1 -1
  385. package/dist/utils/bls.d.ts +2 -2
  386. package/dist/utils/bls.js +8 -7
  387. package/dist/utils/bls.js.map +1 -1
  388. package/dist/utils/cache.d.ts +26 -0
  389. package/dist/utils/cache.js +88 -3
  390. package/dist/utils/cache.js.map +1 -1
  391. package/dist/utils/charts/blessed/charts-apr.js +1 -1
  392. package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
  393. package/dist/utils/charts/blessed/charts-rewards.js +1 -1
  394. package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
  395. package/dist/utils/charts/simple/simple-charts.js +1 -1
  396. package/dist/utils/charts/simple/simple-charts.js.map +1 -1
  397. package/dist/utils/commands/confirmations.d.ts +1 -1
  398. package/dist/utils/commands/confirmations.js +5 -5
  399. package/dist/utils/commands/confirmations.js.map +1 -1
  400. package/dist/utils/fetchCL.d.ts +1 -5
  401. package/dist/utils/fetchCL.js +5 -7
  402. package/dist/utils/fetchCL.js.map +1 -1
  403. package/dist/utils/health/health-utils.d.ts +54 -54
  404. package/dist/utils/health/health-utils.js +1 -1
  405. package/dist/utils/health/health-utils.js.map +1 -1
  406. package/dist/utils/prompts/confirmations.js +1 -1
  407. package/dist/utils/prompts/confirmations.js.map +1 -1
  408. package/dist/utils/proof/constants.d.ts +6 -0
  409. package/dist/utils/proof/constants.js +7 -0
  410. package/dist/utils/proof/constants.js.map +1 -0
  411. package/dist/utils/proof/first-validator-gindex.js +0 -4
  412. package/dist/utils/proof/first-validator-gindex.js.map +1 -1
  413. package/dist/utils/proof/proofs.d.ts +7 -8
  414. package/dist/utils/proof/proofs.js +36 -28
  415. package/dist/utils/proof/proofs.js.map +1 -1
  416. package/dist/utils/read-programs-by-abi.d.ts +1 -1
  417. package/dist/utils/read-programs-by-abi.js +4 -18
  418. package/dist/utils/read-programs-by-abi.js.map +1 -1
  419. package/dist/utils/report/report.js +1 -1
  420. package/dist/utils/report/report.js.map +1 -1
  421. package/dist/utils/report/statistic-data.js +1 -1
  422. package/dist/utils/report/statistic-data.js.map +1 -1
  423. package/dist/utils/transactions/tx-private-key.d.ts +2 -2
  424. package/dist/utils/transactions/tx-private-key.js +6 -6
  425. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  426. package/dist/utils/transactions/tx-wc.d.ts +29 -1
  427. package/dist/utils/transactions/tx-wc.js +43 -26
  428. package/dist/utils/transactions/tx-wc.js.map +1 -1
  429. package/dist/utils/wallet-connect.d.ts +4 -7664
  430. package/dist/utils/wallet-connect.js +17 -5
  431. package/dist/utils/wallet-connect.js.map +1 -1
  432. package/dist/version/index.js +1 -1
  433. package/package.json +5 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,gBAAgB,GAAG,YAAY;KAClC,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,eAAe,CAAC,CAAC;AAEhC,gBAAgB,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC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,CAAC,CAAC;AAEL,oBAAoB,CAClB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,CAClB,CAAC"}
@@ -0,0 +1,173 @@
1
+ import { Option } from 'commander';
2
+ import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, } from '../../../../utils/index.js';
3
+ import { stvStethPool } from './main.js';
4
+ import { formatEther } from 'viem';
5
+ import { getStvStethPoolContract } from '../../../../contracts/defi-wrapper/index.js';
6
+ const stvStethPoolWrite = stvStethPool
7
+ .command('write')
8
+ .alias('w')
9
+ .description('write commands');
10
+ stvStethPoolWrite.addOption(new Option('-cmd2json'));
11
+ stvStethPoolWrite.on('option:-cmd2json', function () {
12
+ logInfo(getCommandsJson(stvStethPoolWrite));
13
+ process.exit();
14
+ });
15
+ stvStethPoolWrite
16
+ .command('deposit-eth-shares')
17
+ .description('deposit native ETH and receive stv, minting a specific amount of stETH shares')
18
+ .argument('<address>', 'stv steth pool address', stringToAddress)
19
+ .argument('<referral>', 'the address of the referral (if any)', stringToAddress)
20
+ .argument('<stethSharesToMint>', 'amount of stETH shares to mint (up to maximum capacity for this deposit). Pass MAX_MINTABLE_AMOUNT to mint maximum available for this deposit', stringToBigInt)
21
+ .action(async (address, referral, stethSharesToMint) => {
22
+ const contract = await getStvStethPoolContract(address);
23
+ const confirmationMessage = `Are you sure you want to deposit ETH to the stv steth pool? (referral: ${referral}, stethSharesToMint: ${stethSharesToMint})`;
24
+ const confirm = await confirmOperation(confirmationMessage);
25
+ if (!confirm)
26
+ return;
27
+ await callWriteMethodWithReceipt({
28
+ contract,
29
+ methodName: 'depositETHAndMintStethShares',
30
+ payload: [referral, stethSharesToMint],
31
+ });
32
+ });
33
+ stvStethPoolWrite
34
+ .command('deposit-eth-wsteth')
35
+ .description('deposit native ETH and receive stv, minting a specific amount of stETH shares')
36
+ .argument('<address>', 'stv steth pool address', stringToAddress)
37
+ .argument('<referral>', 'the address of the referral (if any)', stringToAddress)
38
+ .argument('<stethSharesToMint>', 'amount of stETH shares to mint (up to maximum capacity for this deposit). Pass MAX_MINTABLE_AMOUNT to mint maximum available for this deposit', stringToBigInt)
39
+ .action(async (address, referral, stethSharesToMint) => {
40
+ const contract = await getStvStethPoolContract(address);
41
+ const confirmationMessage = `Are you sure you want to deposit ETH to the stv steth pool? (referral: ${referral}, stethSharesToMint: ${stethSharesToMint})`;
42
+ const confirm = await confirmOperation(confirmationMessage);
43
+ if (!confirm)
44
+ return;
45
+ await callWriteMethodWithReceipt({
46
+ contract,
47
+ methodName: 'depositETHAndMintWsteth',
48
+ payload: [referral, stethSharesToMint],
49
+ });
50
+ });
51
+ stvStethPoolWrite
52
+ .command('rebalance-unassigned-liability')
53
+ .description('rebalance unassigned liability by repaying it with assets held by the vault')
54
+ .argument('<address>', 'distributor address', stringToAddress)
55
+ .argument('<stethShares>', 'amount of stETH shares to rebalance (in shares)', stringToBigInt)
56
+ .action(async (address, stethShares) => {
57
+ const contract = await getStvStethPoolContract(address);
58
+ const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${stethShares} stETH shares?`;
59
+ const confirm = await confirmOperation(confirmationMessage);
60
+ if (!confirm)
61
+ return;
62
+ await callWriteMethodWithReceipt({
63
+ contract,
64
+ methodName: 'rebalanceUnassignedLiability',
65
+ payload: [stethShares],
66
+ });
67
+ });
68
+ stvStethPoolWrite
69
+ .command('rebalance-unassigned-liability-with-ether')
70
+ .description('rebalance unassigned liability by repaying it with external ether')
71
+ .argument('<address>', 'distributor address', stringToAddress)
72
+ .argument('<ether>', 'amount of ether to rebalance (in ETH)', etherToWei)
73
+ .action(async (address, ether) => {
74
+ const contract = await getStvStethPoolContract(address);
75
+ const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${formatEther(ether)} ether?`;
76
+ const confirm = await confirmOperation(confirmationMessage);
77
+ if (!confirm)
78
+ return;
79
+ await callWriteMethodWithReceipt({
80
+ contract,
81
+ methodName: 'rebalanceUnassignedLiabilityWithEther',
82
+ payload: [],
83
+ value: ether,
84
+ });
85
+ });
86
+ stvStethPoolWrite
87
+ .command('add-to-allow-list')
88
+ .description('add an address to the allowlist')
89
+ .argument('<address>', 'distributor address', stringToAddress)
90
+ .argument('<user>', 'address to add to the allowlist', stringToAddress)
91
+ .action(async (address, user) => {
92
+ const contract = await getStvStethPoolContract(address);
93
+ const confirmationMessage = `Are you sure you want to add ${user} to the allowlist for the vault ${address}?`;
94
+ const confirm = await confirmOperation(confirmationMessage);
95
+ if (!confirm)
96
+ return;
97
+ await callWriteMethodWithReceipt({
98
+ contract,
99
+ methodName: 'addToAllowList',
100
+ payload: [user],
101
+ });
102
+ });
103
+ stvStethPoolWrite
104
+ .command('remove-from-allow-list')
105
+ .description('remove an address from the allowlist')
106
+ .argument('<address>', 'distributor address', stringToAddress)
107
+ .argument('<user>', 'address to remove from the allowlist', stringToAddress)
108
+ .action(async (address, user) => {
109
+ const contract = await getStvStethPoolContract(address);
110
+ const confirmationMessage = `Are you sure you want to remove ${user} from the allowlist for the vault ${address}?`;
111
+ const confirm = await confirmOperation(confirmationMessage);
112
+ if (!confirm)
113
+ return;
114
+ await callWriteMethodWithReceipt({
115
+ contract,
116
+ methodName: 'removeFromAllowList',
117
+ payload: [user],
118
+ });
119
+ });
120
+ stvStethPoolWrite
121
+ .command('mint-steth-shares')
122
+ .description("mint stETH shares up to the user's minting capacity")
123
+ .argument('<address>', 'distributor address', stringToAddress)
124
+ .argument('<stethShares>', 'the amount of stETH shares to mint', stringToBigInt)
125
+ .action(async (address, stethShares) => {
126
+ const contract = await getStvStethPoolContract(address);
127
+ const confirmationMessage = `Are you sure you want to mint stETH shares up to the user's minting capacity for the vault ${address}? (stethShares: ${stethShares})`;
128
+ const confirm = await confirmOperation(confirmationMessage);
129
+ if (!confirm)
130
+ return;
131
+ await callWriteMethodWithReceipt({
132
+ contract,
133
+ methodName: 'mintStethShares',
134
+ payload: [stethShares],
135
+ });
136
+ });
137
+ stvStethPoolWrite
138
+ .command('burn-steth-shares')
139
+ .description("burn stETH shares to reduce the user's minted stETH obligation")
140
+ .argument('<address>', 'distributor address', stringToAddress)
141
+ .argument('<stethShares>', 'the amount of stETH shares to burn', stringToBigInt)
142
+ .action(async (address, stethShares) => {
143
+ const contract = await getStvStethPoolContract(address);
144
+ const confirmationMessage = `Are you sure you want to burn stETH shares to reduce the user's minted stETH obligation for the vault ${address}? (stethShares: ${stethShares})`;
145
+ const confirm = await confirmOperation(confirmationMessage);
146
+ if (!confirm)
147
+ return;
148
+ await callWriteMethodWithReceipt({
149
+ contract,
150
+ methodName: 'burnStethShares',
151
+ payload: [stethShares],
152
+ });
153
+ });
154
+ stvStethPoolWrite
155
+ .command('transfer-with-liability')
156
+ .description('transfer stETH shares with liability to another address')
157
+ .argument('<address>', 'distributor address', stringToAddress)
158
+ .argument('<to>', 'the address to transfer to', stringToAddress)
159
+ .argument('<stv>', 'the amount of stv to transfer', stringToBigInt)
160
+ .argument('<stethShares>', 'the amount of stETH shares liability to transfer', stringToBigInt)
161
+ .action(async (address, to, stv, stethShares) => {
162
+ const contract = await getStvStethPoolContract(address);
163
+ const confirmationMessage = `Are you sure you want to transfer ${stv} stv and ${stethShares} stETH shares liability to ${to} for the vault ${address}?`;
164
+ const confirm = await confirmOperation(confirmationMessage);
165
+ if (!confirm)
166
+ return;
167
+ await callWriteMethodWithReceipt({
168
+ contract,
169
+ methodName: 'transferWithLiability',
170
+ payload: [to, stv, stethShares],
171
+ });
172
+ });
173
+ //# sourceMappingURL=write.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,EAChB,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,OAAO,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AQ,GAAG,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,mBAAmB,GAAG,qCAAqC,GAAG,YAAY,WAAW,8BAA8B,EAAE,kBAAkB,OAAO,GAAG,CAAC;IACxJ,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,0BAA0B,CAAC;QAC/B,QAAQ;QACR,UAAU,EAAE,uBAAuB;QACnC,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC;KAChC,CAAC,CAAC;AACL,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WithdrawalQueueAbi } from '../../../../abi/defi-wrapper/index.js';
2
+ import { ReadProgramCommandConfig } from '../../../../utils/index.js';
3
+ export declare const readCommandConfig: ReadProgramCommandConfig<typeof WithdrawalQueueAbi>;
@@ -0,0 +1,66 @@
1
+ import { stringToBigIntArray } from '../../../../utils/index.js';
2
+ export const readCommandConfig = {
3
+ MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS: {
4
+ name: 'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS',
5
+ description: 'get min delay between withdrawal request and finalization',
6
+ },
7
+ calculateCurrentStethShareRate: {
8
+ name: 'calc-steth-share-rate',
9
+ description: 'get calculated current stETH share rate',
10
+ },
11
+ calculateCurrentStvRate: {
12
+ name: 'calc-stv-rate',
13
+ description: 'get calculate current stv rate of the vault',
14
+ },
15
+ getLastCheckpointIndex: {
16
+ name: 'last-checkpoint-index',
17
+ aliases: ['lci'],
18
+ description: 'get the last checkpoint index',
19
+ },
20
+ getLastFinalizedRequestId: {
21
+ name: 'last-finalized-request-id',
22
+ aliases: ['lfri'],
23
+ description: 'get the last finalized request id',
24
+ },
25
+ getLastRequestId: {
26
+ name: 'last-request-id',
27
+ aliases: ['lri'],
28
+ description: 'get the last request id',
29
+ },
30
+ getClaimableEther: {
31
+ name: 'get-claimable-ether',
32
+ description: 'get amount of ether available for claim for each provided request id',
33
+ arguments: {
34
+ _requestIds: {
35
+ name: 'requestIds',
36
+ description: 'request ids',
37
+ modifier: stringToBigIntArray,
38
+ },
39
+ _hints: {
40
+ name: 'hints',
41
+ description: 'hints',
42
+ modifier: stringToBigIntArray,
43
+ },
44
+ },
45
+ },
46
+ getWithdrawalStatus: {
47
+ name: 'w-status',
48
+ description: 'get the status for a single request',
49
+ arguments: {
50
+ _requestId: {
51
+ name: 'requestId',
52
+ description: 'request id',
53
+ modifier: (value) => BigInt(value),
54
+ },
55
+ },
56
+ },
57
+ unfinalizedAssets: {
58
+ name: 'unfinal-assets',
59
+ description: 'get the amount of assets in the queue yet to be finalized',
60
+ },
61
+ unfinalizedStv: {
62
+ name: 'unfinal-stv',
63
+ description: 'get the amount of stv in the queue yet to be finalized',
64
+ },
65
+ };
66
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/config.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEtE,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,oCAAoC,EAAE;QACpC,IAAI,EAAE,sCAAsC;QAC5C,WAAW,EAAE,2DAA2D;KACzE;IACD,8BAA8B,EAAE;QAC9B,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,yCAAyC;KACvD;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,6CAA6C;KAC3D;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,+BAA+B;KAC7C;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,mCAAmC;KACjD;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,yBAAyB;KACvC;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,sEAAsE;QACxE,SAAS,EAAE;YACT,WAAW,EAAE;gBACX,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,aAAa;gBAC1B,QAAQ,EAAE,mBAAmB;aAC9B;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,OAAO;gBACpB,QAAQ,EAAE,mBAAmB;aAC9B;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,qCAAqC;QAClD,SAAS,EAAE;YACT,UAAU,EAAE;gBACV,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,YAAY;gBACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;aACnC;SACF;KACF;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,2DAA2D;KACzE;IACD,cAAc,EAAE;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,wDAAwD;KACtE;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './main.js';
2
+ export * from './read.js';
3
+ export * from './write.js';
@@ -0,0 +1,4 @@
1
+ export * from './main.js';
2
+ export * from './read.js';
3
+ export * from './write.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const withdrawalQueue: import("commander").Command;
@@ -0,0 +1,6 @@
1
+ import { defiWrapperContracts } from '../main.js';
2
+ export const withdrawalQueue = defiWrapperContracts
3
+ .command('withdrawal-queue')
4
+ .alias('wq')
5
+ .description('withdrawal queue contract');
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB;KAChD,OAAO,CAAC,kBAAkB,CAAC;KAC3B,KAAK,CAAC,IAAI,CAAC;KACX,WAAW,CAAC,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { Option } from 'commander';
2
+ import { WithdrawalQueueAbi } from '../../../../abi/defi-wrapper/index.js';
3
+ import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/index.js';
4
+ import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
5
+ import { withdrawalQueue } from './main.js';
6
+ import { readCommandConfig } from './config.js';
7
+ const withdrawalQueueRead = withdrawalQueue
8
+ .command('read')
9
+ .alias('r')
10
+ .description('read commands');
11
+ withdrawalQueueRead.addOption(new Option('-cmd2json'));
12
+ withdrawalQueueRead.on('option:-cmd2json', function () {
13
+ logInfo(getCommandsJson(withdrawalQueueRead));
14
+ process.exit();
15
+ });
16
+ withdrawalQueueRead
17
+ .command('info')
18
+ .description('get withdrawal queue base info')
19
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
20
+ .action(async (address) => {
21
+ const contract = await getWithdrawalQueueContract(address);
22
+ const [DEFAULT_ADMIN_ROLE, WITHDRAWALS_PAUSE_ROLE, WITHDRAWALS_RESUME_ROLE, FINALIZE_ROLE, DASHBOARD, LAZY_ORACLE, STETH, VAULT_HUB, VAULT, MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS, calculateCurrentStethShareRate, getLastCheckpointIndex, getLastFinalizedRequestId, getLastRequestId, unfinalizedAssets, unfinalizedStv,] = await Promise.all([
23
+ callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
24
+ callReadMethodSilent(contract, 'WITHDRAWALS_PAUSE_ROLE'),
25
+ callReadMethodSilent(contract, 'WITHDRAWALS_RESUME_ROLE'),
26
+ callReadMethodSilent(contract, 'FINALIZE_ROLE'),
27
+ callReadMethodSilent(contract, 'DASHBOARD'),
28
+ callReadMethodSilent(contract, 'LAZY_ORACLE'),
29
+ callReadMethodSilent(contract, 'STETH'),
30
+ callReadMethodSilent(contract, 'VAULT_HUB'),
31
+ callReadMethodSilent(contract, 'VAULT'),
32
+ callReadMethodSilent(contract, 'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS'),
33
+ callReadMethodSilent(contract, 'calculateCurrentStethShareRate'),
34
+ callReadMethodSilent(contract, 'getLastCheckpointIndex'),
35
+ callReadMethodSilent(contract, 'getLastFinalizedRequestId'),
36
+ callReadMethodSilent(contract, 'getLastRequestId'),
37
+ callReadMethodSilent(contract, 'unfinalizedAssets'),
38
+ callReadMethodSilent(contract, 'unfinalizedStv'),
39
+ ]);
40
+ logResult({
41
+ data: [
42
+ ['DEFAULT_ADMIN_ROLE', DEFAULT_ADMIN_ROLE],
43
+ ['WITHDRAWALS_PAUSE_ROLE', WITHDRAWALS_PAUSE_ROLE],
44
+ ['WITHDRAWALS_RESUME_ROLE', WITHDRAWALS_RESUME_ROLE],
45
+ ['FINALIZE_ROLE', FINALIZE_ROLE],
46
+ ['DASHBOARD', DASHBOARD],
47
+ ['LAZY_ORACLE', LAZY_ORACLE],
48
+ ['STETH', STETH],
49
+ ['VAULT_HUB', VAULT_HUB],
50
+ ['VAULT', VAULT],
51
+ [
52
+ 'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS',
53
+ MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS,
54
+ ],
55
+ ['calculateCurrentStethShareRate', calculateCurrentStethShareRate],
56
+ ['getLastCheckpointIndex', getLastCheckpointIndex],
57
+ ['getLastFinalizedRequestId', getLastFinalizedRequestId],
58
+ ['getLastRequestId', getLastRequestId],
59
+ ['unfinalizedAssets', unfinalizedAssets],
60
+ ['unfinalizedStv', unfinalizedStv],
61
+ ],
62
+ });
63
+ });
64
+ generateReadCommands(WithdrawalQueueAbi, getWithdrawalQueueContract, withdrawalQueueRead, readCommandConfig);
65
+ //# sourceMappingURL=read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/read.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,mBAAmB,GAAG,eAAe;KACxC,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,eAAe,CAAC,CAAC;AAEhC,mBAAmB,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACvD,mBAAmB,CAAC,EAAE,CAAC,kBAAkB,EAAE;IACzC,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC9C,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,mBAAmB;KAChB,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,gCAAgC,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S,CAAC;QACR,IAAI,EAAE;YACJ,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAC1C,CAAC,wBAAwB,EAAE,sBAAsB,CAAC;YAClD,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;YACpD,CAAC,eAAe,EAAE,aAAa,CAAC;YAChC,CAAC,WAAW,EAAE,SAAS,CAAC;YACxB,CAAC,aAAa,EAAE,WAAW,CAAC;YAC5B,CAAC,OAAO,EAAE,KAAK,CAAC;YAChB,CAAC,WAAW,EAAE,SAAS,CAAC;YACxB,CAAC,OAAO,EAAE,KAAK,CAAC;YAChB;gBACE,sCAAsC;gBACtC,oCAAoC;aACrC;YACD,CAAC,gCAAgC,EAAE,8BAA8B,CAAC;YAClE,CAAC,wBAAwB,EAAE,sBAAsB,CAAC;YAClD,CAAC,2BAA2B,EAAE,yBAAyB,CAAC;YACxD,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;YACtC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;YACxC,CAAC,gBAAgB,EAAE,cAAc,CAAC;SACnC;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,iBAAiB,CAClB,CAAC"}
@@ -0,0 +1,171 @@
1
+ import { Option } from 'commander';
2
+ import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToBigInt, stringToBigIntArray, } from '../../../../utils/index.js';
3
+ import { withdrawalQueue } from './main.js';
4
+ import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/index.js';
5
+ const withdrawalQueueWrite = withdrawalQueue
6
+ .command('write')
7
+ .alias('w')
8
+ .description('withdrawal queue write commands');
9
+ withdrawalQueueWrite.addOption(new Option('-cmd2json'));
10
+ withdrawalQueueWrite.on('option:-cmd2json', function () {
11
+ logInfo(getCommandsJson(withdrawalQueueWrite));
12
+ process.exit();
13
+ });
14
+ withdrawalQueueWrite
15
+ .command('pause')
16
+ .description('pause withdrawal requests placement and finalization')
17
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
18
+ .action(async (address) => {
19
+ const contract = await getWithdrawalQueueContract(address);
20
+ const confirmationMessage = `Are you sure you want to pause withdrawal requests placement and finalization for the withdrawal queue ${address}?`;
21
+ const confirm = await confirmOperation(confirmationMessage);
22
+ if (!confirm)
23
+ return;
24
+ await callWriteMethodWithReceipt({
25
+ contract,
26
+ methodName: 'pauseWithdrawals',
27
+ payload: [],
28
+ });
29
+ });
30
+ withdrawalQueueWrite
31
+ .command('resume')
32
+ .description('resume withdrawal requests placement and finalization')
33
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
34
+ .action(async (address) => {
35
+ const contract = await getWithdrawalQueueContract(address);
36
+ const confirmationMessage = `Are you sure you want to resume withdrawal requests placement and finalization for the withdrawal queue ${address}?`;
37
+ const confirm = await confirmOperation(confirmationMessage);
38
+ if (!confirm)
39
+ return;
40
+ await callWriteMethodWithReceipt({
41
+ contract,
42
+ methodName: 'resumeWithdrawals',
43
+ payload: [],
44
+ });
45
+ });
46
+ withdrawalQueueWrite
47
+ .command('pause-finalization')
48
+ .description('pause withdrawal requests finalization')
49
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
50
+ .action(async (address) => {
51
+ const contract = await getWithdrawalQueueContract(address);
52
+ const confirmationMessage = `Are you sure you want to pause withdrawal requests finalization for the withdrawal queue ${address}?`;
53
+ const confirm = await confirmOperation(confirmationMessage);
54
+ if (!confirm)
55
+ return;
56
+ await callWriteMethodWithReceipt({
57
+ contract,
58
+ methodName: 'pauseFinalization',
59
+ payload: [],
60
+ });
61
+ });
62
+ withdrawalQueueWrite
63
+ .command('resume-finalization')
64
+ .description('resume withdrawal requests finalization')
65
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
66
+ .action(async (address) => {
67
+ const contract = await getWithdrawalQueueContract(address);
68
+ const confirmationMessage = `Are you sure you want to resume withdrawal requests finalization for the withdrawal queue ${address}?`;
69
+ const confirm = await confirmOperation(confirmationMessage);
70
+ if (!confirm)
71
+ return;
72
+ await callWriteMethodWithReceipt({
73
+ contract,
74
+ methodName: 'resumeFinalization',
75
+ payload: [],
76
+ });
77
+ });
78
+ withdrawalQueueWrite
79
+ .command('request-withdrawals')
80
+ .description('request multiple withdrawals for a user')
81
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
82
+ .argument('<stv>', 'array of amounts of stv to withdraw', stringToBigIntArray)
83
+ .argument('<steth>', 'array of amounts of stETH shares to rebalance', stringToBigIntArray)
84
+ .argument('<address>', 'address that will be able to claim the created request', stringToAddress)
85
+ .action(async (address, stvToWithdraw, stethSharesToRebalance, owner) => {
86
+ const contract = await getWithdrawalQueueContract(address);
87
+ const confirmationMessage = `Are you sure you want to request multiple withdrawals for ${owner} with ${stvToWithdraw.join(', ')} stv and ${stethSharesToRebalance.join(', ')} steth shares for the withdrawal queue ${address}?`;
88
+ const confirm = await confirmOperation(confirmationMessage);
89
+ if (!confirm)
90
+ return;
91
+ await callWriteMethodWithReceipt({
92
+ contract,
93
+ methodName: 'requestWithdrawalBatch',
94
+ payload: [owner, stvToWithdraw, stethSharesToRebalance],
95
+ });
96
+ });
97
+ withdrawalQueueWrite
98
+ .command('request-withdrawal')
99
+ .description('request a withdrawal for a user')
100
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
101
+ .argument('<stv>', 'amount of stv to withdraw', stringToBigInt)
102
+ .argument('<steth>', 'amount of steth shares to rebalance', stringToBigInt)
103
+ .argument('<address>', 'address that will be able to claim the created request', stringToAddress)
104
+ .action(async (address, stvToWithdraw, stethSharesToRebalance, owner) => {
105
+ const contract = await getWithdrawalQueueContract(address);
106
+ const confirmationMessage = `Are you sure you want to request a withdrawal for ${owner} with ${stvToWithdraw} stv and ${stethSharesToRebalance} steth shares for the withdrawal queue ${address}?`;
107
+ const confirm = await confirmOperation(confirmationMessage);
108
+ if (!confirm)
109
+ return;
110
+ await callWriteMethodWithReceipt({
111
+ contract,
112
+ methodName: 'requestWithdrawal',
113
+ payload: [owner, stvToWithdraw, stethSharesToRebalance],
114
+ });
115
+ });
116
+ withdrawalQueueWrite
117
+ .command('finalize')
118
+ .description('finalize withdrawal requests')
119
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
120
+ .argument('<maxRequests>', 'the maximum number of requests to finalize', stringToBigInt)
121
+ .argument('<gasCostCoverageRecipient>', 'address to receive gas cost coverage', stringToAddress)
122
+ .action(async (address, maxRequests, gasCostCoverageRecipient) => {
123
+ const contract = await getWithdrawalQueueContract(address);
124
+ const confirmationMessage = `Are you sure you want to finalize up to ${maxRequests} withdrawal requests for the withdrawal queue ${address} to ${gasCostCoverageRecipient}?`;
125
+ const confirm = await confirmOperation(confirmationMessage);
126
+ if (!confirm)
127
+ return;
128
+ await callWriteMethodWithReceipt({
129
+ contract,
130
+ methodName: 'finalize',
131
+ payload: [maxRequests, gasCostCoverageRecipient],
132
+ });
133
+ });
134
+ withdrawalQueueWrite
135
+ .command('claim-withdrawal')
136
+ .description('claim one `_requestId` request once finalized sending locked ether to the owner')
137
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
138
+ .argument('<requestId>', 'request id to claim', stringToBigInt)
139
+ .argument('<recipient>', 'address where claimed ether will be sent to', stringToAddress)
140
+ .action(async (address, requestId, recipient) => {
141
+ const contract = await getWithdrawalQueueContract(address);
142
+ const confirmationMessage = `Are you sure you want to claim request ${requestId} and send the claimed ether to ${recipient} for the withdrawal queue ${address}?`;
143
+ const confirm = await confirmOperation(confirmationMessage);
144
+ if (!confirm)
145
+ return;
146
+ await callWriteMethodWithReceipt({
147
+ contract,
148
+ methodName: 'claimWithdrawal',
149
+ payload: [recipient, requestId],
150
+ });
151
+ });
152
+ withdrawalQueueWrite
153
+ .command('claim-withdrawals')
154
+ .description('claim one `_requestId` request once finalized sending locked ether to the owner')
155
+ .argument('<address>', 'withdrawal queue address', stringToAddress)
156
+ .argument('<requestIds>', 'array of request ids to claim', stringToBigIntArray)
157
+ .argument('<hints>', 'checkpoint hints. can be found with `findCheckpointHints(_requestIds, 1, getLastCheckpointIndex())`', stringToBigIntArray)
158
+ .argument('<recipient>', 'address where claimed ether will be sent to', stringToAddress)
159
+ .action(async (address, requestIds, hints, recipient) => {
160
+ const contract = await getWithdrawalQueueContract(address);
161
+ const confirmationMessage = `Are you sure you want to claim requests ${requestIds.join(', ')} and send the claimed ether to ${recipient} for the withdrawal queue ${address}?`;
162
+ const confirm = await confirmOperation(confirmationMessage);
163
+ if (!confirm)
164
+ return;
165
+ await callWriteMethodWithReceipt({
166
+ contract,
167
+ methodName: 'claimWithdrawalBatch',
168
+ payload: [recipient, requestIds, hints],
169
+ });
170
+ });
171
+ //# sourceMappingURL=write.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,oBAAoB,GAAG,eAAe;KACzC,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAElD,oBAAoB,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACxD,oBAAoB,CAAC,EAAE,CAAC,kBAAkB,EAAE;IAC1C,OAAO,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,oBAAoB;KACjB,OAAO,CAA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+ export * from './main.js';
2
+ export * from './contracts/index.js';
3
+ export * from './use-cases/index.js';
@@ -0,0 +1,4 @@
1
+ export * from './main.js';
2
+ export * from './contracts/index.js';
3
+ export * from './use-cases/index.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../programs/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const defiWrapper: import("commander").Command;
@@ -0,0 +1,6 @@
1
+ import { program } from '../../command/index.js';
2
+ export const defiWrapper = program
3
+ .command('defi-wrapper')
4
+ .alias('dw')
5
+ .description('defi wrapper commands');
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../programs/defi-wrapper/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO;KAC/B,OAAO,CAAC,cAAc,CAAC;KACvB,KAAK,CAAC,IAAI,CAAC;KACX,WAAW,CAAC,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './main.js';
2
+ export * from './read.js';
3
+ export * from './write.js';
@@ -0,0 +1,4 @@
1
+ export * from './main.js';
2
+ export * from './read.js';
3
+ export * from './write.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/health/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const health: import("commander").Command;
@@ -0,0 +1,6 @@
1
+ import { useCases } from '../main.js';
2
+ export const health = useCases
3
+ .command('health')
4
+ .alias('h')
5
+ .description('health monitoring commands for stv-steth-pool positions');
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/health/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ;KAC3B,OAAO,CAAC,QAAQ,CAAC;KACjB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,yDAAyD,CAAC,CAAC"}