@lidofinance/lsv-cli 1.5.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/README.md +15 -9
  2. package/dist/abi/AccessControlConfirmable.js.map +1 -1
  3. package/dist/abi/Dashboard.js.map +1 -1
  4. package/dist/abi/LazyOracle.js.map +1 -1
  5. package/dist/abi/LidoLocator.js.map +1 -1
  6. package/dist/abi/OperatorGrid.js.map +1 -1
  7. package/dist/abi/PredepositGuarantee.js.map +1 -1
  8. package/dist/abi/StEth.js.map +1 -1
  9. package/dist/abi/StakingVault.js.map +1 -1
  10. package/dist/abi/ValidatorConsolidationRequests.js.map +1 -1
  11. package/dist/abi/VaultFactory.js.map +1 -1
  12. package/dist/abi/VaultHub.js.map +1 -1
  13. package/dist/abi/VaultViewer.js.map +1 -1
  14. package/dist/abi/WstEth.js.map +1 -1
  15. package/dist/abi/defi-wrapper/Distributor.js.map +1 -1
  16. package/dist/abi/defi-wrapper/Factory.js.map +1 -1
  17. package/dist/abi/defi-wrapper/OssifiableProxy.js.map +1 -1
  18. package/dist/abi/defi-wrapper/StrategyFactory.d.ts +59 -0
  19. package/dist/abi/defi-wrapper/StrategyFactory.js +37 -0
  20. package/dist/abi/defi-wrapper/StrategyFactory.js.map +1 -0
  21. package/dist/abi/defi-wrapper/StvPool.js.map +1 -1
  22. package/dist/abi/defi-wrapper/{StvStETHPool.js → StvStEthPool.js} +1 -1
  23. package/dist/abi/defi-wrapper/{StvStETHPool.js.map → StvStEthPool.js.map} +1 -1
  24. package/dist/abi/defi-wrapper/TimeLock.js.map +1 -1
  25. package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -1
  26. package/dist/abi/defi-wrapper/index.d.ts +2 -1
  27. package/dist/abi/defi-wrapper/index.js +2 -1
  28. package/dist/abi/defi-wrapper/index.js.map +1 -1
  29. package/dist/command/index.js +11 -0
  30. package/dist/command/index.js.map +1 -1
  31. package/dist/configs/constants.d.ts +25 -10
  32. package/dist/configs/deployed.js +9 -8
  33. package/dist/configs/deployed.js.map +1 -1
  34. package/dist/configs/utils.js +1 -1
  35. package/dist/configs/utils.js.map +1 -1
  36. package/dist/contracts/dashboard-impl.d.ts +4 -3
  37. package/dist/contracts/dashboard-impl.js +5 -8
  38. package/dist/contracts/dashboard-impl.js.map +1 -1
  39. package/dist/contracts/dashboard.d.ts +4 -3
  40. package/dist/contracts/dashboard.js +1 -1
  41. package/dist/contracts/dashboard.js.map +1 -1
  42. package/dist/contracts/defi-wrapper/distributor.d.ts +4 -3
  43. package/dist/contracts/defi-wrapper/distributor.js +1 -1
  44. package/dist/contracts/defi-wrapper/distributor.js.map +1 -1
  45. package/dist/contracts/defi-wrapper/factory.d.ts +4 -3
  46. package/dist/contracts/defi-wrapper/factory.js +1 -1
  47. package/dist/contracts/defi-wrapper/factory.js.map +1 -1
  48. package/dist/contracts/defi-wrapper/index.d.ts +1 -0
  49. package/dist/contracts/defi-wrapper/index.js +1 -0
  50. package/dist/contracts/defi-wrapper/index.js.map +1 -1
  51. package/dist/contracts/defi-wrapper/ossifiable-proxy.d.ts +4 -3
  52. package/dist/contracts/defi-wrapper/ossifiable-proxy.js +1 -1
  53. package/dist/contracts/defi-wrapper/ossifiable-proxy.js.map +1 -1
  54. package/dist/contracts/defi-wrapper/strategy-factory.d.ts +5 -0
  55. package/dist/contracts/defi-wrapper/strategy-factory.js +12 -0
  56. package/dist/contracts/defi-wrapper/strategy-factory.js.map +1 -0
  57. package/dist/contracts/defi-wrapper/stv-pool.d.ts +4 -3
  58. package/dist/contracts/defi-wrapper/stv-pool.js +1 -1
  59. package/dist/contracts/defi-wrapper/stv-pool.js.map +1 -1
  60. package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +4 -3
  61. package/dist/contracts/defi-wrapper/stv-steth-pool.js +1 -1
  62. package/dist/contracts/defi-wrapper/stv-steth-pool.js.map +1 -1
  63. package/dist/contracts/defi-wrapper/timelock.d.ts +4 -3
  64. package/dist/contracts/defi-wrapper/timelock.js +1 -1
  65. package/dist/contracts/defi-wrapper/timelock.js.map +1 -1
  66. package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +4 -3
  67. package/dist/contracts/defi-wrapper/withdrawal-queue.js +1 -1
  68. package/dist/contracts/defi-wrapper/withdrawal-queue.js.map +1 -1
  69. package/dist/contracts/lazy-oracle.d.ts +4 -2
  70. package/dist/contracts/lazy-oracle.js +5 -9
  71. package/dist/contracts/lazy-oracle.js.map +1 -1
  72. package/dist/contracts/locator.d.ts +4 -2
  73. package/dist/contracts/locator.js +5 -8
  74. package/dist/contracts/locator.js.map +1 -1
  75. package/dist/contracts/operator-grid.d.ts +4 -3
  76. package/dist/contracts/operator-grid.js +5 -8
  77. package/dist/contracts/operator-grid.js.map +1 -1
  78. package/dist/contracts/pdg.d.ts +4 -3
  79. package/dist/contracts/pdg.js +5 -8
  80. package/dist/contracts/pdg.js.map +1 -1
  81. package/dist/contracts/steth.d.ts +4 -3
  82. package/dist/contracts/steth.js +5 -9
  83. package/dist/contracts/steth.js.map +1 -1
  84. package/dist/contracts/validator-consolidation-requests.d.ts +3 -3
  85. package/dist/contracts/validator-consolidation-requests.js.map +1 -1
  86. package/dist/contracts/vault-factory.d.ts +4 -2
  87. package/dist/contracts/vault-factory.js +5 -7
  88. package/dist/contracts/vault-factory.js.map +1 -1
  89. package/dist/contracts/vault-hub.d.ts +4 -2
  90. package/dist/contracts/vault-hub.js +5 -9
  91. package/dist/contracts/vault-hub.js.map +1 -1
  92. package/dist/contracts/vault-viewer.d.ts +4 -2
  93. package/dist/contracts/vault-viewer.js +7 -11
  94. package/dist/contracts/vault-viewer.js.map +1 -1
  95. package/dist/contracts/vault.d.ts +4 -3
  96. package/dist/contracts/vault.js +1 -1
  97. package/dist/contracts/vault.js.map +1 -1
  98. package/dist/contracts/wsteth.d.ts +4 -2
  99. package/dist/contracts/wsteth.js +5 -9
  100. package/dist/contracts/wsteth.js.map +1 -1
  101. package/dist/features/defi-wrapper/create-vault.js +3 -3
  102. package/dist/features/defi-wrapper/create-vault.js.map +1 -1
  103. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +14 -4
  104. package/dist/features/defi-wrapper/defi-wrapper-factory.js +20 -3
  105. package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
  106. package/dist/features/defi-wrapper/distributor.d.ts +3 -1
  107. package/dist/features/defi-wrapper/distributor.js +29 -14
  108. package/dist/features/defi-wrapper/distributor.js.map +1 -1
  109. package/dist/features/defi-wrapper/pool-info.js +4 -4
  110. package/dist/features/defi-wrapper/pool-info.js.map +1 -1
  111. package/dist/features/defi-wrapper/timelock.d.ts +3 -3
  112. package/dist/features/defi-wrapper/timelock.js +4 -8
  113. package/dist/features/defi-wrapper/timelock.js.map +1 -1
  114. package/dist/features/deposits/make-pdg-proof.js +3 -3
  115. package/dist/features/deposits/make-pdg-proof.js.map +1 -1
  116. package/dist/features/deposits/validators.js +1 -1
  117. package/dist/features/deposits/validators.js.map +1 -1
  118. package/dist/features/metrics.d.ts +3 -0
  119. package/dist/features/metrics.js +25 -0
  120. package/dist/features/metrics.js.map +1 -1
  121. package/dist/features/mint-burn/mint-limit.js +1 -1
  122. package/dist/features/mint-burn/mint-limit.js.map +1 -1
  123. package/dist/features/utils/try-fetch.js +2 -2
  124. package/dist/features/utils/try-fetch.js.map +1 -1
  125. package/dist/features/vault-factory.js +5 -4
  126. package/dist/features/vault-factory.js.map +1 -1
  127. package/dist/features/vault-operations/dashboard-by-vault.js +3 -7
  128. package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
  129. package/dist/features/vault-operations/index.d.ts +1 -0
  130. package/dist/features/vault-operations/index.js +1 -0
  131. package/dist/features/vault-operations/index.js.map +1 -1
  132. package/dist/features/vault-operations/share-limit.d.ts +8 -0
  133. package/dist/features/vault-operations/share-limit.js +20 -0
  134. package/dist/features/vault-operations/share-limit.js.map +1 -0
  135. package/dist/features/vault-operations/vault-info.js +1 -1
  136. package/dist/features/vault-operations/vault-info.js.map +1 -1
  137. package/dist/features/vault-operations/vault-overview.js +1 -1
  138. package/dist/features/vault-operations/vault-overview.js.map +1 -1
  139. package/dist/features/with-report.js +1 -1
  140. package/dist/features/with-report.js.map +1 -1
  141. package/dist/index.js +36 -11
  142. package/dist/index.js.map +1 -1
  143. package/dist/programs/account/main.d.ts +1 -1
  144. package/dist/programs/account/write.js +29 -2
  145. package/dist/programs/account/write.js.map +1 -1
  146. package/dist/programs/config.js +4 -2
  147. package/dist/programs/config.js.map +1 -1
  148. package/dist/programs/contracts/dashboard/main.d.ts +1 -1
  149. package/dist/programs/contracts/dashboard/read.js +3 -6
  150. package/dist/programs/contracts/dashboard/read.js.map +1 -1
  151. package/dist/programs/contracts/dashboard/write.js +23 -16
  152. package/dist/programs/contracts/dashboard/write.js.map +1 -1
  153. package/dist/programs/contracts/hub/main.d.ts +1 -1
  154. package/dist/programs/contracts/hub/write.js +2 -1
  155. package/dist/programs/contracts/hub/write.js.map +1 -1
  156. package/dist/programs/contracts/lazy-oracle/config.js +2 -2
  157. package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
  158. package/dist/programs/contracts/lazy-oracle/main.d.ts +1 -1
  159. package/dist/programs/contracts/main.d.ts +1 -1
  160. package/dist/programs/contracts/operator-grid/main.d.ts +1 -1
  161. package/dist/programs/contracts/operator-grid/write.js +13 -9
  162. package/dist/programs/contracts/operator-grid/write.js.map +1 -1
  163. package/dist/programs/contracts/pdg/main.d.ts +1 -1
  164. package/dist/programs/contracts/vault/config.js +1 -1
  165. package/dist/programs/contracts/vault/config.js.map +1 -1
  166. package/dist/programs/contracts/vault/main.d.ts +1 -1
  167. package/dist/programs/contracts/vault-factory/main.d.ts +1 -1
  168. package/dist/programs/contracts/vault-factory/write.js +8 -9
  169. package/dist/programs/contracts/vault-factory/write.js.map +1 -1
  170. package/dist/programs/contracts/vault-viewer/config.js +8 -8
  171. package/dist/programs/contracts/vault-viewer/config.js.map +1 -1
  172. package/dist/programs/contracts/vault-viewer/main.d.ts +1 -1
  173. package/dist/programs/defi-wrapper/contracts/distributor/main.d.ts +1 -1
  174. package/dist/programs/defi-wrapper/contracts/factory/main.d.ts +1 -1
  175. package/dist/programs/defi-wrapper/contracts/factory/write.js +126 -38
  176. package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
  177. package/dist/programs/defi-wrapper/contracts/main.d.ts +1 -1
  178. package/dist/programs/defi-wrapper/contracts/stv-pool/main.d.ts +1 -1
  179. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.d.ts +1 -1
  180. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +32 -0
  181. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
  182. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +1 -1
  183. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -1
  184. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.d.ts +1 -1
  185. package/dist/programs/defi-wrapper/main.d.ts +1 -1
  186. package/dist/programs/defi-wrapper/use-cases/distributor/main.d.ts +1 -1
  187. package/dist/programs/defi-wrapper/use-cases/distributor/write.js +136 -29
  188. package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
  189. package/dist/programs/defi-wrapper/use-cases/health/main.d.ts +1 -1
  190. package/dist/programs/defi-wrapper/use-cases/health/utils.js +1 -1
  191. package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -1
  192. package/dist/programs/defi-wrapper/use-cases/main.d.ts +1 -1
  193. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/main.d.ts +1 -1
  194. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +2 -7
  195. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
  196. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +3 -7
  197. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
  198. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.d.ts +1 -1
  199. package/dist/programs/defi-wrapper/use-cases/timelock-governance/main.d.ts +1 -1
  200. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/main.d.ts +1 -1
  201. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/main.d.ts +1 -1
  202. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/main.d.ts +1 -1
  203. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.d.ts +1 -1
  204. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +3 -3
  205. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
  206. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +31 -46
  207. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
  208. package/dist/programs/dev-tools/anvil/main.d.ts +1 -1
  209. package/dist/programs/dev-tools/anvil/write.js +2 -2
  210. package/dist/programs/dev-tools/anvil/write.js.map +1 -1
  211. package/dist/programs/dev-tools/defi-wrapper/main.d.ts +1 -1
  212. package/dist/programs/dev-tools/main.d.ts +1 -1
  213. package/dist/programs/pdg-helpers.js +8 -0
  214. package/dist/programs/pdg-helpers.js.map +1 -1
  215. package/dist/programs/use-cases/consolidation/main.d.ts +1 -1
  216. package/dist/programs/use-cases/consolidation/write.d.ts +1 -1
  217. package/dist/programs/use-cases/consolidation/write.js +1 -2
  218. package/dist/programs/use-cases/consolidation/write.js.map +1 -1
  219. package/dist/programs/use-cases/deposits/main.d.ts +1 -1
  220. package/dist/programs/use-cases/deposits/read.js +1 -2
  221. package/dist/programs/use-cases/deposits/read.js.map +1 -1
  222. package/dist/programs/use-cases/metrics/main.d.ts +1 -1
  223. package/dist/programs/use-cases/metrics/read.js +122 -8
  224. package/dist/programs/use-cases/metrics/read.js.map +1 -1
  225. package/dist/programs/use-cases/report/main.d.ts +1 -1
  226. package/dist/programs/use-cases/report/write.js +1 -3
  227. package/dist/programs/use-cases/report/write.js.map +1 -1
  228. package/dist/programs/use-cases/vault-operations/create-vault.js +8 -9
  229. package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
  230. package/dist/programs/use-cases/vault-operations/main.d.ts +1 -1
  231. package/dist/programs/use-cases/vault-operations/write.js +31 -29
  232. package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
  233. package/dist/providers/wallet.d.ts +785 -10511
  234. package/dist/providers/wallet.js +16 -9
  235. package/dist/providers/wallet.js.map +1 -1
  236. package/dist/tests/fixtures/consolidation-fixtures.d.ts +64 -0
  237. package/dist/tests/fixtures/consolidation-fixtures.js +56 -0
  238. package/dist/tests/fixtures/consolidation-fixtures.js.map +1 -0
  239. package/dist/tests/integration/deposits.test.js +1 -1
  240. package/dist/tests/integration/deposits.test.js.map +1 -1
  241. package/dist/tests/integration/{globalSetup.js → global-setup.js} +2 -2
  242. package/dist/tests/integration/global-setup.js.map +1 -0
  243. package/dist/tests/integration/helpers/test-client.d.ts +586 -7068
  244. package/dist/tests/integration/helpers/test-config.js +4 -4
  245. package/dist/tests/integration/helpers/test-config.js.map +1 -1
  246. package/dist/tests/integration/metrics.test.js +1 -2
  247. package/dist/tests/integration/metrics.test.js.map +1 -1
  248. package/dist/tests/integration/mint-burn.test.js +1 -2
  249. package/dist/tests/integration/mint-burn.test.js.map +1 -1
  250. package/dist/tests/integration/minting-capacity.test.js +52 -0
  251. package/dist/tests/integration/minting-capacity.test.js.map +1 -0
  252. package/dist/tests/integration/quarantine.test.d.ts +1 -0
  253. package/dist/tests/integration/quarantine.test.js +32 -0
  254. package/dist/tests/integration/quarantine.test.js.map +1 -0
  255. package/dist/tests/integration/report-fresh.test.d.ts +1 -0
  256. package/dist/tests/integration/report-fresh.test.js +47 -0
  257. package/dist/tests/integration/report-fresh.test.js.map +1 -0
  258. package/dist/tests/utils/arguments.test.js +3 -4
  259. package/dist/tests/utils/arguments.test.js.map +1 -1
  260. package/dist/tests/utils/big-int.test.d.ts +1 -0
  261. package/dist/tests/utils/{bigInt.test.js → big-int.test.js} +2 -2
  262. package/dist/tests/utils/big-int.test.js.map +1 -0
  263. package/dist/tests/utils/cache.test.d.ts +1 -0
  264. package/dist/tests/utils/cache.test.js +233 -0
  265. package/dist/tests/utils/cache.test.js.map +1 -0
  266. package/dist/tests/utils/calculate-overview.test.js +4 -2
  267. package/dist/tests/utils/calculate-overview.test.js.map +1 -1
  268. package/dist/tests/utils/confirmations.test.d.ts +1 -0
  269. package/dist/tests/utils/confirmations.test.js +35 -0
  270. package/dist/tests/utils/confirmations.test.js.map +1 -0
  271. package/dist/tests/utils/consolidation-checks.test.d.ts +1 -0
  272. package/dist/tests/utils/consolidation-checks.test.js +77 -0
  273. package/dist/tests/utils/consolidation-checks.test.js.map +1 -0
  274. package/dist/tests/utils/consolidation-pubkeys.test.d.ts +1 -0
  275. package/dist/tests/utils/consolidation-pubkeys.test.js +101 -0
  276. package/dist/tests/utils/consolidation-pubkeys.test.js.map +1 -0
  277. package/dist/tests/utils/consolidation-validator-info.test.d.ts +1 -0
  278. package/dist/tests/utils/consolidation-validator-info.test.js +101 -0
  279. package/dist/tests/utils/consolidation-validator-info.test.js.map +1 -0
  280. package/dist/tests/utils/consolidation-validators-checks.test.d.ts +1 -0
  281. package/dist/tests/utils/consolidation-validators-checks.test.js +156 -0
  282. package/dist/tests/utils/consolidation-validators-checks.test.js.map +1 -0
  283. package/dist/tests/utils/consts.test.d.ts +1 -0
  284. package/dist/tests/utils/consts.test.js +24 -0
  285. package/dist/tests/utils/consts.test.js.map +1 -0
  286. package/dist/tests/utils/data-validators.test.js +1 -1
  287. package/dist/tests/utils/data-validators.test.js.map +1 -1
  288. package/dist/tests/utils/error-handler.test.js +5 -8
  289. package/dist/tests/utils/error-handler.test.js.map +1 -1
  290. package/dist/tests/utils/get-commands.test.js +1 -1
  291. package/dist/tests/utils/get-commands.test.js.map +1 -1
  292. package/dist/tests/utils/ipfs.test.js +10 -9
  293. package/dist/tests/utils/ipfs.test.js.map +1 -1
  294. package/dist/tests/utils/logging.test.js +30 -14
  295. package/dist/tests/utils/logging.test.js.map +1 -1
  296. package/dist/tests/utils/merkle-utils.test.js +1 -0
  297. package/dist/tests/utils/merkle-utils.test.js.map +1 -1
  298. package/dist/tests/utils/rebase-rewards.test.js +43 -42
  299. package/dist/tests/utils/rebase-rewards.test.js.map +1 -1
  300. package/dist/tests/utils/report-statistic.test.d.ts +1 -0
  301. package/dist/tests/utils/report-statistic.test.js +501 -0
  302. package/dist/tests/utils/report-statistic.test.js.map +1 -0
  303. package/dist/tests/utils/resove-path.test.js +2 -2
  304. package/dist/tests/utils/resove-path.test.js.map +1 -1
  305. package/dist/tests/utils/spinner.test.d.ts +1 -0
  306. package/dist/tests/utils/spinner.test.js +113 -0
  307. package/dist/tests/utils/spinner.test.js.map +1 -0
  308. package/dist/tests/utils/with-error.test.d.ts +1 -0
  309. package/dist/tests/utils/with-error.test.js +42 -0
  310. package/dist/tests/utils/with-error.test.js.map +1 -0
  311. package/dist/utils/arguments.d.ts +1 -1
  312. package/dist/utils/arguments.js +16 -20
  313. package/dist/utils/arguments.js.map +1 -1
  314. package/dist/utils/big-int.js +7 -0
  315. package/dist/utils/big-int.js.map +1 -0
  316. package/dist/utils/cache.d.ts +0 -1
  317. package/dist/utils/cache.js +24 -24
  318. package/dist/utils/cache.js.map +1 -1
  319. package/dist/utils/calculate-overview-v2.js +1 -1
  320. package/dist/utils/calculate-overview-v2.js.map +1 -1
  321. package/dist/utils/calculate-overview.js +2 -2
  322. package/dist/utils/calculate-overview.js.map +1 -1
  323. package/dist/utils/charts/blessed/charts-apr.js +7 -7
  324. package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
  325. package/dist/utils/charts/blessed/charts-rewards.js +6 -6
  326. package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
  327. package/dist/utils/charts/blessed/datasets/prepare-metrics.d.ts +6 -6
  328. package/dist/utils/charts/blessed/datasets/prepare-metrics.js +12 -14
  329. package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
  330. package/dist/utils/charts/blessed/utils.js +6 -2
  331. package/dist/utils/charts/blessed/utils.js.map +1 -1
  332. package/dist/utils/charts/overview.js +3 -3
  333. package/dist/utils/charts/overview.js.map +1 -1
  334. package/dist/utils/charts/simple/simple-charts.js +15 -7
  335. package/dist/utils/charts/simple/simple-charts.js.map +1 -1
  336. package/dist/utils/commands/confirmations.js +15 -8
  337. package/dist/utils/commands/confirmations.js.map +1 -1
  338. package/dist/utils/consolidation/validator-info.d.ts +1 -1
  339. package/dist/utils/consolidation/validator-info.js +4 -4
  340. package/dist/utils/consolidation/validator-info.js.map +1 -1
  341. package/dist/utils/consolidation/validators-checks.d.ts +1 -1
  342. package/dist/utils/consolidation/validators-checks.js +5 -5
  343. package/dist/utils/consolidation/validators-checks.js.map +1 -1
  344. package/dist/utils/csv-file.js +1 -1
  345. package/dist/utils/csv-file.js.map +1 -1
  346. package/dist/utils/data-validators.js +4 -4
  347. package/dist/utils/data-validators.js.map +1 -1
  348. package/dist/utils/error-handler.js +3 -0
  349. package/dist/utils/error-handler.js.map +1 -1
  350. package/dist/utils/{fetchCL.d.ts → fetch-cl.d.ts} +15 -17
  351. package/dist/utils/{fetchCL.js → fetch-cl.js} +29 -37
  352. package/dist/utils/fetch-cl.js.map +1 -0
  353. package/dist/utils/get-commands.js +3 -2
  354. package/dist/utils/get-commands.js.map +1 -1
  355. package/dist/utils/get-value.js +1 -1
  356. package/dist/utils/get-value.js.map +1 -1
  357. package/dist/utils/index.d.ts +2 -1
  358. package/dist/utils/index.js +2 -1
  359. package/dist/utils/index.js.map +1 -1
  360. package/dist/utils/interrupt-handler.js +15 -7
  361. package/dist/utils/interrupt-handler.js.map +1 -1
  362. package/dist/utils/ipfs.d.ts +11 -2
  363. package/dist/utils/ipfs.js +34 -11
  364. package/dist/utils/ipfs.js.map +1 -1
  365. package/dist/utils/logging/console.d.ts +5 -1
  366. package/dist/utils/logging/console.js +46 -28
  367. package/dist/utils/logging/console.js.map +1 -1
  368. package/dist/utils/prompts/confirmations.d.ts +1 -1
  369. package/dist/utils/prompts/operations.d.ts +1 -1
  370. package/dist/utils/prompts/predeposit-guarantee.d.ts +1 -1
  371. package/dist/utils/proof/create-proof.js +18 -3
  372. package/dist/utils/proof/create-proof.js.map +1 -1
  373. package/dist/utils/proof/merkle-utils.js +1 -1
  374. package/dist/utils/proof/merkle-utils.js.map +1 -1
  375. package/dist/utils/read-programs-by-abi.d.ts +1 -1
  376. package/dist/utils/read-programs-by-abi.js +11 -12
  377. package/dist/utils/read-programs-by-abi.js.map +1 -1
  378. package/dist/utils/rebase-rewards.d.ts +0 -1
  379. package/dist/utils/rebase-rewards.js +12 -3
  380. package/dist/utils/rebase-rewards.js.map +1 -1
  381. package/dist/utils/report/report-proof.js +1 -1
  382. package/dist/utils/report/report-proof.js.map +1 -1
  383. package/dist/utils/report/report.js +2 -2
  384. package/dist/utils/report/report.js.map +1 -1
  385. package/dist/utils/report/statistic-data.js +31 -16
  386. package/dist/utils/report/statistic-data.js.map +1 -1
  387. package/dist/utils/resolve-path.js +2 -2
  388. package/dist/utils/resolve-path.js.map +1 -1
  389. package/dist/utils/share-rate.js +1 -1
  390. package/dist/utils/share-rate.js.map +1 -1
  391. package/dist/utils/snake-to-camel.js +1 -1
  392. package/dist/utils/snake-to-camel.js.map +1 -1
  393. package/dist/utils/spinner/spinners.js +6 -3
  394. package/dist/utils/spinner/spinners.js.map +1 -1
  395. package/dist/utils/statistic/report-statistic.d.ts +20 -5
  396. package/dist/utils/statistic/report-statistic.js +65 -25
  397. package/dist/utils/statistic/report-statistic.js.map +1 -1
  398. package/dist/utils/transactions/tx-private-key.d.ts +2 -2
  399. package/dist/utils/transactions/tx-private-key.js +43 -11
  400. package/dist/utils/transactions/tx-private-key.js.map +1 -1
  401. package/dist/utils/transactions/tx-wc.d.ts +14 -13
  402. package/dist/utils/transactions/tx-wc.js +109 -12
  403. package/dist/utils/transactions/tx-wc.js.map +1 -1
  404. package/dist/utils/transactions/utils.d.ts +1 -0
  405. package/dist/utils/transactions/utils.js +11 -0
  406. package/dist/utils/transactions/utils.js.map +1 -1
  407. package/dist/utils/wallet-connect.d.ts +4 -1
  408. package/dist/utils/wallet-connect.js +50 -3
  409. package/dist/utils/wallet-connect.js.map +1 -1
  410. package/dist/utils/with-error.d.ts +7 -0
  411. package/dist/utils/with-error.js +6 -0
  412. package/dist/utils/with-error.js.map +1 -0
  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 +17 -24
  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/integration/{globalSetup.d.ts → global-setup.d.ts} +0 -0
  426. /package/dist/tests/{utils/bigInt.test.d.ts → integration/minting-capacity.test.d.ts} +0 -0
  427. /package/dist/utils/{bigInt.d.ts → big-int.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-impl.js","sourceRoot":"","sources":["../../contracts/dashboard-impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,IAE3C,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,YAAY;QACjB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"dashboard-impl.js","sourceRoot":"","sources":["../../contracts/dashboard-impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GACnC,KAAK,IAAoC,EAAE;IACzC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,YAAY;QACjB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { DashboardAbi } from '../abi/index.js';
3
- export declare const getDashboardContract: (address: Address) => Promise<GetContractReturnType<typeof DashboardAbi, WalletClient>>;
4
- export type DashboardContract = Awaited<ReturnType<typeof getDashboardContract>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export declare const getDashboardContract: (address: Address) => Promise<DashboardContract>;
5
+ export type DashboardContract = Awaited<GetContractReturnType<typeof DashboardAbi, RegisteredPublicClient>>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { DashboardAbi } from '../abi/index.js';
3
3
  import { getPublicClient } from '../providers/index.js';
4
4
  export const getDashboardContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../contracts/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,OAAgB,EACmD,EAAE;IACrE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,YAAY;QACjB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../contracts/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,OAAgB,EACY,EAAE;IAC9B,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,YAAY;QACjB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { DistributorAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getDistributorContract: (address: Address) => Promise<GetContractReturnType<typeof DistributorAbi, WalletClient>>;
4
- export type DistributorContract = ReturnType<typeof getDistributorContract>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getDistributorContract: (address: Address) => Promise<DistributorContract>;
5
+ export type DistributorContract = GetContractReturnType<typeof DistributorAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { DistributorAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getDistributorContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"distributor.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/distributor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,OAAgB,EACqD,EAAE;IACvE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,cAAc;QACnB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"distributor.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/distributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,OAAgB,EACc,EAAE;IAChC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,cAAc;QACnB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { FactoryAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getFactoryContract: (address: Address) => Promise<GetContractReturnType<typeof FactoryAbi, WalletClient>>;
4
- export type FactoryContract = ReturnType<typeof getFactoryContract>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getFactoryContract: (address: Address) => Promise<FactoryContract>;
5
+ export type FactoryContract = GetContractReturnType<typeof FactoryAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { FactoryAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getFactoryContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,OAAgB,EACiD,EAAE;IACnE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,UAAU;QACf,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,OAAgB,EACU,EAAE;IAC5B,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,UAAU;QACf,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -5,3 +5,4 @@ export * from './stv-steth-pool.js';
5
5
  export * from './factory.js';
6
6
  export * from './timelock.js';
7
7
  export * from './ossifiable-proxy.js';
8
+ export * from './strategy-factory.js';
@@ -5,4 +5,5 @@ export * from './stv-steth-pool.js';
5
5
  export * from './factory.js';
6
6
  export * from './timelock.js';
7
7
  export * from './ossifiable-proxy.js';
8
+ export * from './strategy-factory.js';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { OssifiableProxyAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getOssifiableProxyContract: (address: Address) => Promise<GetContractReturnType<typeof OssifiableProxyAbi, WalletClient>>;
4
- export type OssifiableProxyContract = Awaited<ReturnType<typeof getOssifiableProxyContract>>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getOssifiableProxyContract: (address: Address) => Promise<OssifiableProxyContract>;
5
+ export type OssifiableProxyContract = GetContractReturnType<typeof OssifiableProxyAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { OssifiableProxyAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getOssifiableProxyContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ossifiable-proxy.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/ossifiable-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACyD,EAAE;IAC3E,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"ossifiable-proxy.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/ossifiable-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACkB,EAAE;IACpC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Address, GetContractReturnType } from 'viem';
2
+ import { StrategyFactoryAbi } from '../../abi/defi-wrapper/index.js';
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getStrategyFactoryContract: (address: Address) => Promise<StrategyFactoryContract>;
5
+ export type StrategyFactoryContract = GetContractReturnType<typeof StrategyFactoryAbi, RegisteredPublicClient>;
@@ -0,0 +1,12 @@
1
+ import { getContract } from 'viem';
2
+ import { StrategyFactoryAbi } from '../../abi/defi-wrapper/index.js';
3
+ import { getPublicClient } from '../../providers/index.js';
4
+ export const getStrategyFactoryContract = async (address) => {
5
+ const publicClient = await getPublicClient();
6
+ return getContract({
7
+ address: address,
8
+ abi: StrategyFactoryAbi,
9
+ client: publicClient,
10
+ });
11
+ };
12
+ //# sourceMappingURL=strategy-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strategy-factory.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/strategy-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACkB,EAAE;IACpC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { StvPoolAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getStvPoolContract: (address: Address) => Promise<GetContractReturnType<typeof StvPoolAbi, WalletClient>>;
4
- export type StvPoolContract = Awaited<ReturnType<typeof getStvPoolContract>>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getStvPoolContract: (address: Address) => Promise<StvPoolContract>;
5
+ export type StvPoolContract = GetContractReturnType<typeof StvPoolAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { StvPoolAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getStvPoolContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stv-pool.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/stv-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,OAAgB,EACiD,EAAE;IACnE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,UAAU;QACf,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"stv-pool.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/stv-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,OAAgB,EACU,EAAE;IAC5B,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,UAAU;QACf,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { StvStETHPoolAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getStvStethPoolContract: (address: Address) => Promise<GetContractReturnType<typeof StvStETHPoolAbi, WalletClient>>;
4
- export type StvStethPoolContract = ReturnType<typeof getStvStethPoolContract>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getStvStethPoolContract: (address: Address) => Promise<StvStethPoolContract>;
5
+ export type StvStethPoolContract = GetContractReturnType<typeof StvStETHPoolAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { StvStETHPoolAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getStvStethPoolContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stv-steth-pool.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/stv-steth-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,OAAgB,EACsD,EAAE;IACxE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"stv-steth-pool.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/stv-steth-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,OAAgB,EACe,EAAE;IACjC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { TimeLockAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getTimeLockContract: (address: Address) => Promise<GetContractReturnType<typeof TimeLockAbi, WalletClient>>;
4
- export type TimeLockContract = Awaited<ReturnType<typeof getTimeLockContract>>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getTimeLockContract: (address: Address) => Promise<TimeLockContract>;
5
+ export type TimeLockContract = GetContractReturnType<typeof TimeLockAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { TimeLockAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getTimeLockContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"timelock.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/timelock.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,OAAgB,EACkD,EAAE;IACpE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"timelock.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/timelock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,OAAgB,EACW,EAAE;IAC7B,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Address, GetContractReturnType, WalletClient } from 'viem';
1
+ import { Address, GetContractReturnType } from 'viem';
2
2
  import { WithdrawalQueueAbi } from '../../abi/defi-wrapper/index.js';
3
- export declare const getWithdrawalQueueContract: (address: Address) => Promise<GetContractReturnType<typeof WithdrawalQueueAbi, WalletClient>>;
4
- export type WithdrawalQueueContract = ReturnType<typeof getWithdrawalQueueContract>;
3
+ import { RegisteredPublicClient } from '../../providers/index.js';
4
+ export declare const getWithdrawalQueueContract: (address: Address) => Promise<WithdrawalQueueContract>;
5
+ export type WithdrawalQueueContract = GetContractReturnType<typeof WithdrawalQueueAbi, RegisteredPublicClient>;
@@ -1,4 +1,4 @@
1
- import { getContract, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { WithdrawalQueueAbi } from '../../abi/defi-wrapper/index.js';
3
3
  import { getPublicClient } from '../../providers/index.js';
4
4
  export const getWithdrawalQueueContract = async (address) => {
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawal-queue.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/withdrawal-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAIZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACyD,EAAE;IAC3E,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"withdrawal-queue.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/withdrawal-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACkB,EAAE;IACpC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
- import { GetContractReturnType, WalletClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { LazyOracleAbi } from '../abi/index.js';
3
- export declare const getLazyOracleContract: () => Promise<GetContractReturnType<typeof LazyOracleAbi, WalletClient>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export type LazyOracleContract = GetContractReturnType<typeof LazyOracleAbi, RegisteredPublicClient>;
5
+ export declare const getLazyOracleContract: () => Promise<LazyOracleContract>;
@@ -1,19 +1,15 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { LazyOracleAbi } from '../abi/index.js';
3
- import { getChain, getElUrl } from '../configs/index.js';
4
- import { getLocatorContract } from './index.js';
3
+ import { getLocatorContract } from '../contracts/locator.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getLazyOracleContract = async () => {
6
- const elUrl = getElUrl();
7
- const chain = await getChain();
6
+ const publicClient = await getPublicClient();
8
7
  const locator = await getLocatorContract();
9
8
  const address = await locator.read.lazyOracle();
10
9
  return getContract({
11
10
  address,
12
11
  abi: LazyOracleAbi,
13
- client: createPublicClient({
14
- chain,
15
- transport: http(elUrl),
16
- }),
12
+ client: publicClient,
17
13
  });
18
14
  };
19
15
  //# sourceMappingURL=lazy-oracle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-oracle.js","sourceRoot":"","sources":["../../contracts/lazy-oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,IAExC,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IAEhD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"lazy-oracle.js","sourceRoot":"","sources":["../../contracts/lazy-oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAO7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,IAAiC,EAAE;IAC3E,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IAEhD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
- import { GetContractReturnType, PublicClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { LidoLocatorAbi } from '../abi/index.js';
3
- export declare const getLocatorContract: () => Promise<GetContractReturnType<typeof LidoLocatorAbi, PublicClient>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export type LocatorContract = GetContractReturnType<typeof LidoLocatorAbi, RegisteredPublicClient>;
5
+ export declare const getLocatorContract: () => Promise<LocatorContract>;
@@ -1,17 +1,14 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { LidoLocatorAbi } from '../abi/index.js';
3
- import { getChain, getLocatorAddress, getElUrl } from '../configs/index.js';
3
+ import { getLocatorAddress } from '../configs/index.js';
4
+ import { getPublicClient } from '../providers/index.js';
4
5
  export const getLocatorContract = async () => {
5
- const elUrl = getElUrl();
6
- const chain = await getChain();
6
+ const publicClient = await getPublicClient();
7
7
  const address = getLocatorAddress();
8
8
  return getContract({
9
9
  address,
10
10
  abi: LidoLocatorAbi,
11
- client: createPublicClient({
12
- chain,
13
- transport: http(elUrl),
14
- }),
11
+ client: publicClient,
15
12
  });
16
13
  };
17
14
  //# sourceMappingURL=locator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locator.js","sourceRoot":"","sources":["../../contracts/locator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,IAErC,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IAEpC,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,cAAc;QACnB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"locator.js","sourceRoot":"","sources":["../../contracts/locator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAO7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,IAA8B,EAAE;IACrE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IAEpC,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,cAAc;QACnB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { GetContractReturnType, WalletClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { OperatorGridAbi } from '../abi/index.js';
3
- export declare const getOperatorGridContract: () => Promise<GetContractReturnType<typeof OperatorGridAbi, WalletClient>>;
4
- export type OperatorGridContract = Awaited<ReturnType<typeof getOperatorGridContract>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export declare const getOperatorGridContract: () => Promise<OperatorGridContract>;
5
+ export type OperatorGridContract = GetContractReturnType<typeof OperatorGridAbi, RegisteredPublicClient>;
@@ -1,18 +1,15 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { OperatorGridAbi } from '../abi/index.js';
3
- import { getChain, getElUrl } from '../configs/index.js';
4
- import { getLocatorContract } from './index.js';
3
+ import { getLocatorContract } from '../contracts/locator.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getOperatorGridContract = async () => {
6
6
  const locator = await getLocatorContract();
7
- const chain = await getChain();
7
+ const publicClient = await getPublicClient();
8
8
  const address = await locator.read.operatorGrid();
9
9
  return getContract({
10
10
  address,
11
11
  abi: OperatorGridAbi,
12
- client: createPublicClient({
13
- chain,
14
- transport: http(getElUrl()),
15
- }),
12
+ client: publicClient,
16
13
  });
17
14
  };
18
15
  //# sourceMappingURL=operator-grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operator-grid.js","sourceRoot":"","sources":["../../contracts/operator-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,IAE1C,EAAE;IACF,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;IAElD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC5B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"operator-grid.js","sourceRoot":"","sources":["../../contracts/operator-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAClC,KAAK,IAAmC,EAAE;IACxC,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;IAElD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { GetContractReturnType, WalletClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { PredepositGuaranteeAbi } from '../abi/index.js';
3
- export declare const getPredepositGuaranteeContract: () => Promise<GetContractReturnType<typeof PredepositGuaranteeAbi, WalletClient>>;
4
- export type PredepositGuaranteeContract = Awaited<ReturnType<typeof getPredepositGuaranteeContract>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export declare const getPredepositGuaranteeContract: () => Promise<PredepositGuaranteeContract>;
5
+ export type PredepositGuaranteeContract = GetContractReturnType<typeof PredepositGuaranteeAbi, RegisteredPublicClient>;
@@ -1,18 +1,15 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { PredepositGuaranteeAbi } from '../abi/index.js';
3
- import { getChain, getElUrl } from '../configs/index.js';
4
- import { getLocatorContract } from './index.js';
3
+ import { getLocatorContract } from '../contracts/locator.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getPredepositGuaranteeContract = async () => {
6
6
  const locator = await getLocatorContract();
7
- const chain = await getChain();
8
7
  const address = await locator.read.predepositGuarantee();
8
+ const publicClient = await getPublicClient();
9
9
  return getContract({
10
10
  address,
11
11
  abi: PredepositGuaranteeAbi,
12
- client: createPublicClient({
13
- chain,
14
- transport: http(getElUrl()),
15
- }),
12
+ client: publicClient,
16
13
  });
17
14
  };
18
15
  //# sourceMappingURL=pdg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdg.js","sourceRoot":"","sources":["../../contracts/pdg.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,IAEjD,EAAE;IACF,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAEzD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,sBAAsB;QAC3B,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC5B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"pdg.js","sourceRoot":"","sources":["../../contracts/pdg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,8BAA8B,GACzC,KAAK,IAA0C,EAAE;IAC/C,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACzD,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,sBAAsB;QAC3B,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { GetContractReturnType, WalletClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { StEthAbi } from '../abi/index.js';
3
- export declare const getStethContract: () => Promise<GetContractReturnType<typeof StEthAbi, WalletClient>>;
4
- export type StethContract = Awaited<ReturnType<typeof getStethContract>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export declare const getStethContract: () => Promise<StethContract>;
5
+ export type StethContract = GetContractReturnType<typeof StEthAbi, RegisteredPublicClient>;
@@ -1,19 +1,15 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { StEthAbi } from '../abi/index.js';
3
- import { getChain, getElUrl } from '../configs/index.js';
4
- import { getLocatorContract } from './index.js';
3
+ import { getLocatorContract } from '../contracts/locator.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getStethContract = async () => {
6
6
  const locator = await getLocatorContract();
7
- const elUrl = getElUrl();
8
- const chain = await getChain();
7
+ const publicClient = await getPublicClient();
9
8
  const address = await locator.read.lido();
10
9
  return getContract({
11
10
  address,
12
11
  abi: StEthAbi,
13
- client: createPublicClient({
14
- chain,
15
- transport: http(elUrl),
16
- }),
12
+ client: publicClient,
17
13
  });
18
14
  };
19
15
  //# sourceMappingURL=steth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"steth.js","sourceRoot":"","sources":["../../contracts/steth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,IAEnC,EAAE;IACF,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAE1C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,QAAQ;QACb,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"steth.js","sourceRoot":"","sources":["../../contracts/steth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,IAA4B,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAE1C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,QAAQ;QACb,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { GetContractReturnType } from 'viem';
2
2
  import { validatorConsolidationRequestsAbi } from '../abi/index.js';
3
- import { WalletClient } from 'viem';
4
- export declare const getValidatorConsolidationRequestsContract: () => Promise<GetContractReturnType<typeof validatorConsolidationRequestsAbi, WalletClient>>;
5
- export type ValidatorConsolidationRequestsContract = Awaited<ReturnType<typeof getValidatorConsolidationRequestsContract>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export declare const getValidatorConsolidationRequestsContract: () => Promise<ValidatorConsolidationRequestsContract>;
5
+ export type ValidatorConsolidationRequestsContract = GetContractReturnType<typeof validatorConsolidationRequestsAbi, RegisteredPublicClient>;
@@ -1 +1 @@
1
- {"version":3,"file":"validator-consolidation-requests.js","sourceRoot":"","sources":["../../contracts/validator-consolidation-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,wCAAwC,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,CAAC,MAAM,yCAAyC,GAAG,KAAK,IAE5D,EAAE;IACF,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,wCAAwC,EAAE;QACnD,GAAG,EAAE,iCAAiC;QACtC,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"validator-consolidation-requests.js","sourceRoot":"","sources":["../../contracts/validator-consolidation-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,CAAC,MAAM,yCAAyC,GACpD,KAAK,IAAqD,EAAE;IAC1D,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,wCAAwC,EAAE;QACnD,GAAG,EAAE,iCAAiC;QACtC,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
- import { GetContractReturnType, PublicClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { VaultFactoryAbi } from '../abi/index.js';
3
- export declare const getVaultFactoryContract: () => Promise<GetContractReturnType<typeof VaultFactoryAbi, PublicClient>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export type VaultFactoryContract = GetContractReturnType<typeof VaultFactoryAbi, RegisteredPublicClient>;
5
+ export declare const getVaultFactoryContract: () => Promise<VaultFactoryContract>;
@@ -1,15 +1,13 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { VaultFactoryAbi } from '../abi/index.js';
3
- import { getDeployedAddress, getElUrl, getChain } from '../configs/index.js';
3
+ import { getDeployedAddress } from '../configs/index.js';
4
+ import { getPublicClient } from '../providers/index.js';
4
5
  export const getVaultFactoryContract = async () => {
5
- const chain = await getChain();
6
+ const publicClient = await getPublicClient();
6
7
  return getContract({
7
8
  address: getDeployedAddress('stakingVaultFactory'),
8
9
  abi: VaultFactoryAbi,
9
- client: createPublicClient({
10
- chain,
11
- transport: http(getElUrl()),
12
- }),
10
+ client: publicClient,
13
11
  });
14
12
  };
15
13
  //# sourceMappingURL=vault-factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vault-factory.js","sourceRoot":"","sources":["../../contracts/vault-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,IAE1C,EAAE;IACF,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAE/B,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,CAAC;QAClD,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC5B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"vault-factory.js","sourceRoot":"","sources":["../../contracts/vault-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAO7E,MAAM,CAAC,MAAM,uBAAuB,GAClC,KAAK,IAAmC,EAAE;IACxC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,CAAC;QAClD,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
- import { GetContractReturnType, WalletClient } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { VaultHubAbi } from '../abi/index.js';
3
- export declare const getVaultHubContract: () => Promise<GetContractReturnType<typeof VaultHubAbi, WalletClient>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export type VaultHubContract = GetContractReturnType<typeof VaultHubAbi, RegisteredPublicClient>;
5
+ export declare const getVaultHubContract: () => Promise<VaultHubContract>;
@@ -1,19 +1,15 @@
1
- import { getContract, createPublicClient, http, } from 'viem';
1
+ import { getContract } from 'viem';
2
2
  import { VaultHubAbi } from '../abi/index.js';
3
- import { getChain, getElUrl } from '../configs/index.js';
4
- import { getLocatorContract } from './index.js';
3
+ import { getLocatorContract } from '../contracts/locator.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getVaultHubContract = async () => {
6
- const elUrl = getElUrl();
7
- const chain = await getChain();
6
+ const publicClient = await getPublicClient();
8
7
  const locator = await getLocatorContract();
9
8
  const address = await locator.read.vaultHub();
10
9
  return getContract({
11
10
  address,
12
11
  abi: VaultHubAbi,
13
- client: createPublicClient({
14
- chain,
15
- transport: http(elUrl),
16
- }),
12
+ client: publicClient,
17
13
  });
18
14
  };
19
15
  //# sourceMappingURL=vault-hub.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vault-hub.js","sourceRoot":"","sources":["../../contracts/vault-hub.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,IAEtC,EAAE;IACF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAE9C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"vault-hub.js","sourceRoot":"","sources":["../../contracts/vault-hub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAO7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,IAA+B,EAAE;IACvE,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAE9C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
- import { PublicClient, GetContractReturnType } from 'viem';
1
+ import { GetContractReturnType } from 'viem';
2
2
  import { VaultViewerAbi } from '../abi/index.js';
3
- export declare const getVaultViewerContract: () => Promise<GetContractReturnType<typeof VaultViewerAbi, PublicClient>>;
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
+ export type VaultViewerContract = GetContractReturnType<typeof VaultViewerAbi, RegisteredPublicClient>;
5
+ export declare const getVaultViewerContract: () => Promise<VaultViewerContract>;