@lidofinance/lsv-cli 1.1.0 → 1.3.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.
- package/README.md +58 -0
- package/dist/abi/Dashboard.d.ts +291 -3
- package/dist/abi/Dashboard.js +10 -3
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/LazyOracle.d.ts +364 -0
- package/dist/abi/LazyOracle.js +2 -0
- package/dist/abi/LazyOracle.js.map +1 -1
- package/dist/abi/OperatorGrid.d.ts +24 -0
- package/dist/abi/OperatorGrid.js +16 -0
- package/dist/abi/OperatorGrid.js.map +1 -1
- package/dist/abi/PredepositGuarantee.d.ts +357 -88
- package/dist/abi/PredepositGuarantee.js +31 -28
- package/dist/abi/PredepositGuarantee.js.map +1 -1
- package/dist/abi/ValidatorConsolidationRequests.d.ts +121 -0
- package/dist/abi/ValidatorConsolidationRequests.js +159 -0
- package/dist/abi/ValidatorConsolidationRequests.js.map +1 -0
- package/dist/abi/VaultFactory.d.ts +16 -0
- package/dist/abi/VaultViewer.d.ts +8 -14
- package/dist/abi/VaultViewer.js +10 -19
- package/dist/abi/VaultViewer.js.map +1 -1
- package/dist/abi/defi-wrapper/Distributor.d.ts +40 -2
- package/dist/abi/defi-wrapper/Distributor.js +52 -2
- package/dist/abi/defi-wrapper/Distributor.js.map +1 -1
- package/dist/abi/defi-wrapper/Factory.d.ts +973 -550
- package/dist/abi/defi-wrapper/Factory.js +720 -763
- package/dist/abi/defi-wrapper/Factory.js.map +1 -1
- package/dist/abi/defi-wrapper/StvPool.d.ts +121 -325
- package/dist/abi/defi-wrapper/StvPool.js +143 -413
- package/dist/abi/defi-wrapper/StvPool.js.map +1 -1
- package/dist/abi/defi-wrapper/StvStETHPool.d.ts +398 -381
- package/dist/abi/defi-wrapper/StvStETHPool.js +448 -433
- package/dist/abi/defi-wrapper/StvStETHPool.js.map +1 -1
- package/dist/abi/defi-wrapper/WithdrawalQueue.d.ts +309 -175
- package/dist/abi/defi-wrapper/WithdrawalQueue.js +381 -206
- package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -1
- package/dist/abi/defi-wrapper/index.d.ts +0 -1
- package/dist/abi/defi-wrapper/index.js +0 -1
- package/dist/abi/defi-wrapper/index.js.map +1 -1
- package/dist/abi/index.d.ts +1 -0
- package/dist/abi/index.js +1 -0
- package/dist/abi/index.js.map +1 -1
- package/dist/command/index.js +1 -0
- package/dist/command/index.js.map +1 -1
- package/dist/configs/constants.d.ts +44 -2
- package/dist/configs/constants.js +2 -2
- package/dist/configs/constants.js.map +1 -1
- package/dist/configs/deployed.d.ts +2 -2
- package/dist/configs/deployed.js +67 -6
- package/dist/configs/deployed.js.map +1 -1
- package/dist/configs/index.d.ts +4 -3
- package/dist/configs/index.js +4 -3
- package/dist/configs/index.js.map +1 -1
- package/dist/configs/utils.d.ts +1 -0
- package/dist/configs/utils.js +8 -0
- package/dist/configs/utils.js.map +1 -1
- package/dist/contracts/dashboard-impl.d.ts +2 -2
- package/dist/contracts/dashboard-impl.js +3 -2
- package/dist/contracts/dashboard-impl.js.map +1 -1
- package/dist/contracts/dashboard.d.ts +2 -2
- package/dist/contracts/dashboard.js +3 -2
- package/dist/contracts/dashboard.js.map +1 -1
- package/dist/contracts/defi-wrapper/distributor.d.ts +1 -1
- package/dist/contracts/defi-wrapper/distributor.js +3 -2
- package/dist/contracts/defi-wrapper/distributor.js.map +1 -1
- package/dist/contracts/defi-wrapper/factory.d.ts +1 -1
- package/dist/contracts/defi-wrapper/factory.js +3 -2
- package/dist/contracts/defi-wrapper/factory.js.map +1 -1
- package/dist/contracts/defi-wrapper/index.d.ts +0 -1
- package/dist/contracts/defi-wrapper/index.js +0 -1
- package/dist/contracts/defi-wrapper/index.js.map +1 -1
- package/dist/contracts/defi-wrapper/stv-pool.d.ts +2 -2
- package/dist/contracts/defi-wrapper/stv-pool.js +3 -2
- package/dist/contracts/defi-wrapper/stv-pool.js.map +1 -1
- package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +1 -1
- package/dist/contracts/defi-wrapper/stv-steth-pool.js +3 -2
- package/dist/contracts/defi-wrapper/stv-steth-pool.js.map +1 -1
- package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +1 -1
- package/dist/contracts/defi-wrapper/withdrawal-queue.js +3 -2
- package/dist/contracts/defi-wrapper/withdrawal-queue.js.map +1 -1
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/lazy-oracle.js +3 -2
- package/dist/contracts/lazy-oracle.js.map +1 -1
- package/dist/contracts/locator.d.ts +3 -9655
- package/dist/contracts/locator.js +4 -3
- package/dist/contracts/locator.js.map +1 -1
- package/dist/contracts/operator-grid.d.ts +1 -1
- package/dist/contracts/operator-grid.js +3 -2
- package/dist/contracts/operator-grid.js.map +1 -1
- package/dist/contracts/pdg.js +3 -2
- package/dist/contracts/pdg.js.map +1 -1
- package/dist/contracts/steth.d.ts +54 -54
- package/dist/contracts/steth.js +3 -2
- package/dist/contracts/steth.js.map +1 -1
- package/dist/contracts/validator-consolidation-requests.d.ts +5 -0
- package/dist/contracts/validator-consolidation-requests.js +13 -0
- package/dist/contracts/validator-consolidation-requests.js.map +1 -0
- package/dist/contracts/vault-factory.d.ts +3 -28346
- package/dist/contracts/vault-factory.js +4 -3
- package/dist/contracts/vault-factory.js.map +1 -1
- package/dist/contracts/vault-hub.js +3 -2
- package/dist/contracts/vault-hub.js.map +1 -1
- package/dist/contracts/vault-viewer.d.ts +3 -9661
- package/dist/contracts/vault-viewer.js +9 -7
- package/dist/contracts/vault-viewer.js.map +1 -1
- package/dist/contracts/vault.d.ts +2 -2
- package/dist/contracts/vault.js +3 -2
- package/dist/contracts/vault.js.map +1 -1
- package/dist/contracts/wsteth.d.ts +3 -24690
- package/dist/contracts/wsteth.js +4 -3
- package/dist/contracts/wsteth.js.map +1 -1
- package/dist/features/consolidation.d.ts +18 -0
- package/dist/features/consolidation.js +199 -0
- package/dist/features/consolidation.js.map +1 -0
- package/dist/features/defi-wrapper/create-vault.d.ts +17 -0
- package/dist/features/defi-wrapper/create-vault.js +137 -0
- package/dist/features/defi-wrapper/create-vault.js.map +1 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +111 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +231 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -0
- package/dist/features/defi-wrapper/index.d.ts +3 -0
- package/dist/features/defi-wrapper/index.js +4 -0
- package/dist/features/defi-wrapper/index.js.map +1 -0
- package/dist/features/defi-wrapper/pool-info.d.ts +35 -0
- package/dist/features/defi-wrapper/pool-info.js +97 -0
- package/dist/features/defi-wrapper/pool-info.js.map +1 -0
- package/dist/features/deposits/check-bls-deposits.js +2 -2
- package/dist/features/deposits/check-bls-deposits.js.map +1 -1
- package/dist/features/deposits/index.d.ts +2 -0
- package/dist/features/deposits/index.js +2 -0
- package/dist/features/deposits/index.js.map +1 -1
- package/dist/features/deposits/make-pdg-proof.js +1 -1
- package/dist/features/deposits/make-pdg-proof.js.map +1 -1
- package/dist/features/deposits/no-pdg.d.ts +1 -1
- package/dist/features/deposits/no-pdg.js +6 -3
- package/dist/features/deposits/no-pdg.js.map +1 -1
- package/dist/features/deposits/pdg.d.ts +2 -0
- package/dist/features/deposits/pdg.js +18 -0
- package/dist/features/deposits/pdg.js.map +1 -0
- package/dist/features/deposits/validators.d.ts +12 -0
- package/dist/features/deposits/validators.js +31 -0
- package/dist/features/deposits/validators.js.map +1 -0
- package/dist/features/dev-tools/impersonate.d.ts +14 -0
- package/dist/features/dev-tools/impersonate.js +64 -0
- package/dist/features/dev-tools/impersonate.js.map +1 -0
- package/dist/features/dev-tools/index.d.ts +1 -0
- package/dist/features/dev-tools/index.js +2 -0
- package/dist/features/dev-tools/index.js.map +1 -0
- package/dist/features/index.d.ts +5 -1
- package/dist/features/index.js +5 -1
- package/dist/features/index.js.map +1 -1
- package/dist/features/lazy-oracle.js +2 -2
- package/dist/features/lazy-oracle.js.map +1 -1
- package/dist/features/metrics.d.ts +4 -0
- package/dist/features/metrics.js +48 -0
- package/dist/features/metrics.js.map +1 -0
- package/dist/features/mint-burn/allowance.d.ts +7 -1
- package/dist/features/mint-burn/allowance.js +8 -9
- package/dist/features/mint-burn/allowance.js.map +1 -1
- package/dist/features/mint-burn/burn-shares.d.ts +2 -1
- package/dist/features/mint-burn/burn-shares.js +4 -3
- package/dist/features/mint-burn/burn-shares.js.map +1 -1
- package/dist/features/mint-burn/burn-steth.d.ts +2 -1
- package/dist/features/mint-burn/burn-steth.js +4 -3
- package/dist/features/mint-burn/burn-steth.js.map +1 -1
- package/dist/features/mint-burn/mint-shares.js +4 -6
- package/dist/features/mint-burn/mint-shares.js.map +1 -1
- package/dist/features/mint-burn/mint-steth.js +4 -6
- package/dist/features/mint-burn/mint-steth.js.map +1 -1
- package/dist/features/pdg.js +4 -0
- package/dist/features/pdg.js.map +1 -1
- package/dist/features/utils/connection.d.ts +2 -0
- package/dist/features/utils/connection.js +14 -0
- package/dist/features/utils/connection.js.map +1 -0
- package/dist/features/utils/get-boolean.d.ts +1 -0
- package/dist/features/utils/get-boolean.js +13 -0
- package/dist/features/utils/get-boolean.js.map +1 -0
- package/dist/features/utils/index.d.ts +2 -0
- package/dist/features/utils/index.js +2 -0
- package/dist/features/utils/index.js.map +1 -1
- package/dist/features/utils/liability-shares.js +2 -1
- package/dist/features/utils/liability-shares.js.map +1 -1
- package/dist/features/utils/quarantine.js +2 -0
- package/dist/features/utils/quarantine.js.map +1 -1
- package/dist/features/utils/report-fresh.d.ts +11 -1
- package/dist/features/utils/report-fresh.js +17 -15
- package/dist/features/utils/report-fresh.js.map +1 -1
- package/dist/features/vault-factory.d.ts +13 -14
- package/dist/features/vault-factory.js +32 -10
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/vault-operations/connect-vault.d.ts +4 -0
- package/dist/features/vault-operations/connect-vault.js +21 -0
- package/dist/features/vault-operations/connect-vault.js.map +1 -0
- package/dist/features/vault-operations/create-vault.d.ts +4 -2
- package/dist/features/vault-operations/create-vault.js +17 -7
- package/dist/features/vault-operations/create-vault.js.map +1 -1
- package/dist/features/vault-operations/dashboard-by-vault.js +21 -8
- package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
- package/dist/features/vault-operations/index.d.ts +2 -0
- package/dist/features/vault-operations/index.js +2 -0
- package/dist/features/vault-operations/index.js.map +1 -1
- package/dist/features/vault-operations/roles.d.ts +5 -0
- package/dist/features/vault-operations/roles.js +65 -0
- package/dist/features/vault-operations/roles.js.map +1 -0
- package/dist/features/vault-operations/vault-info.js +10 -4
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +6 -8
- package/dist/features/vault-operations/vault-overview.js.map +1 -1
- package/dist/features/vault-operations/vault-roles.js +4 -1
- package/dist/features/vault-operations/vault-roles.js.map +1 -1
- package/dist/features/vault-operations/vaults-by-role.js +29 -10
- package/dist/features/vault-operations/vaults-by-role.js.map +1 -1
- package/dist/features/vault.js +4 -2
- package/dist/features/vault.js.map +1 -1
- package/dist/features/with-report.d.ts +6 -0
- package/dist/features/with-report.js +18 -0
- package/dist/features/with-report.js.map +1 -0
- package/dist/index.js +38 -11
- package/dist/index.js.map +1 -1
- package/dist/programs/account/read.js +1 -1
- package/dist/programs/account/read.js.map +1 -1
- package/dist/programs/account/write.js +14 -0
- package/dist/programs/account/write.js.map +1 -1
- package/dist/programs/contracts/dashboard/read.js +7 -7
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +80 -61
- package/dist/programs/contracts/dashboard/write.js.map +1 -1
- package/dist/programs/contracts/hub/config.js +0 -10
- package/dist/programs/contracts/hub/config.js.map +1 -1
- package/dist/programs/contracts/hub/read.js +63 -2
- package/dist/programs/contracts/hub/read.js.map +1 -1
- package/dist/programs/contracts/hub/write.js +6 -2
- package/dist/programs/contracts/hub/write.js.map +1 -1
- package/dist/programs/contracts/operator-grid/write.js +1 -1
- package/dist/programs/contracts/operator-grid/write.js.map +1 -1
- package/dist/programs/contracts/pdg/read.js +2 -1
- package/dist/programs/contracts/pdg/read.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +37 -3
- package/dist/programs/contracts/pdg/write.js.map +1 -1
- package/dist/programs/contracts/vault/write.js +16 -16
- package/dist/programs/contracts/vault/write.js.map +1 -1
- package/dist/programs/contracts/vault-factory/write.js +39 -25
- package/dist/programs/contracts/vault-factory/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/read.js +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/write.js +3 -3
- package/dist/programs/defi-wrapper/contracts/distributor/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/read.js +2 -8
- package/dist/programs/defi-wrapper/contracts/factory/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/write.js +91 -276
- package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/index.d.ts +0 -1
- package/dist/programs/defi-wrapper/contracts/index.js +0 -1
- package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.js +22 -32
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js +17 -24
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.js +25 -174
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js +0 -90
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js +16 -23
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +34 -231
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +1 -91
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +8 -27
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +55 -24
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/index.d.ts +1 -0
- package/dist/programs/defi-wrapper/index.js +1 -0
- package/dist/programs/defi-wrapper/index.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/health/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/read.js +338 -0
- package/dist/programs/defi-wrapper/use-cases/health/read.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/utils.d.ts +56 -0
- package/dist/programs/defi-wrapper/use-cases/health/utils.js +389 -0
- package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/write.js +254 -0
- package/dist/programs/defi-wrapper/use-cases/health/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/index.js +4 -0
- package/dist/programs/defi-wrapper/use-cases/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js +180 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js +5 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +130 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +13 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -0
- package/dist/programs/dev-tools/anvil/index.d.ts +2 -0
- package/dist/programs/dev-tools/anvil/index.js +3 -0
- package/dist/programs/dev-tools/anvil/index.js.map +1 -0
- package/dist/programs/dev-tools/anvil/main.d.ts +1 -0
- package/dist/programs/dev-tools/anvil/main.js +5 -0
- package/dist/programs/dev-tools/anvil/main.js.map +1 -0
- package/dist/programs/dev-tools/anvil/write.d.ts +1 -0
- package/dist/programs/dev-tools/anvil/write.js +122 -0
- package/dist/programs/dev-tools/anvil/write.js.map +1 -0
- package/dist/programs/dev-tools/defi-wrapper/index.d.ts +2 -0
- package/dist/programs/dev-tools/defi-wrapper/index.js +3 -0
- package/dist/programs/dev-tools/defi-wrapper/index.js.map +1 -0
- package/dist/programs/dev-tools/defi-wrapper/main.d.ts +1 -0
- package/dist/programs/dev-tools/defi-wrapper/main.js +6 -0
- package/dist/programs/dev-tools/defi-wrapper/main.js.map +1 -0
- package/dist/programs/dev-tools/defi-wrapper/write.d.ts +1 -0
- package/dist/programs/dev-tools/defi-wrapper/write.js +77 -0
- package/dist/programs/dev-tools/defi-wrapper/write.js.map +1 -0
- package/dist/programs/dev-tools/index.d.ts +3 -0
- package/dist/programs/dev-tools/index.js +4 -0
- package/dist/programs/dev-tools/index.js.map +1 -0
- package/dist/programs/dev-tools/main.d.ts +1 -0
- package/dist/programs/dev-tools/main.js +6 -0
- package/dist/programs/dev-tools/main.js.map +1 -0
- package/dist/programs/index.d.ts +1 -0
- package/dist/programs/index.js +1 -0
- package/dist/programs/index.js.map +1 -1
- package/dist/programs/pdg-helpers.js +32 -24
- package/dist/programs/pdg-helpers.js.map +1 -1
- package/dist/programs/use-cases/consolidation/index.d.ts +2 -0
- package/dist/programs/use-cases/consolidation/index.js +3 -0
- package/dist/programs/use-cases/consolidation/index.js.map +1 -0
- package/dist/programs/use-cases/consolidation/main.d.ts +1 -0
- package/dist/programs/use-cases/consolidation/main.js +5 -0
- package/dist/programs/use-cases/consolidation/main.js.map +1 -0
- package/dist/programs/use-cases/consolidation/write.d.ts +1 -0
- package/dist/programs/use-cases/consolidation/write.js +78 -0
- package/dist/programs/use-cases/consolidation/write.js.map +1 -0
- package/dist/programs/use-cases/deposits/read.js +4 -0
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/deposits/write.js +41 -11
- package/dist/programs/use-cases/deposits/write.js.map +1 -1
- package/dist/programs/use-cases/index.d.ts +1 -0
- package/dist/programs/use-cases/index.js +1 -0
- package/dist/programs/use-cases/index.js.map +1 -1
- package/dist/programs/use-cases/metrics/read.js +9 -20
- package/dist/programs/use-cases/metrics/read.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/create-vault.js +65 -29
- package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +124 -26
- package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
- package/dist/providers/wallet.d.ts +14539 -63
- package/dist/providers/wallet.js +14 -4
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/integration/deposits.test.d.ts +1 -0
- package/dist/tests/integration/deposits.test.js +67 -0
- package/dist/tests/integration/deposits.test.js.map +1 -0
- package/dist/tests/integration/globalSetup.d.ts +1 -0
- package/dist/tests/integration/globalSetup.js +55 -0
- package/dist/tests/integration/globalSetup.js.map +1 -0
- package/dist/tests/integration/helpers/index.d.ts +3 -0
- package/dist/tests/integration/helpers/index.js +4 -0
- package/dist/tests/integration/helpers/index.js.map +1 -0
- package/dist/tests/integration/helpers/test-assertions.d.ts +32 -0
- package/dist/tests/integration/helpers/test-assertions.js +92 -0
- package/dist/tests/integration/helpers/test-assertions.js.map +1 -0
- package/dist/tests/integration/helpers/test-client.d.ts +14530 -0
- package/dist/tests/integration/helpers/test-client.js +73 -0
- package/dist/tests/integration/helpers/test-client.js.map +1 -0
- package/dist/tests/integration/helpers/test-config.d.ts +14 -0
- package/dist/tests/integration/helpers/test-config.js +62 -0
- package/dist/tests/integration/helpers/test-config.js.map +1 -0
- package/dist/tests/integration/helpers/test-setup.d.ts +12 -0
- package/dist/tests/integration/helpers/test-setup.js +40 -0
- package/dist/tests/integration/helpers/test-setup.js.map +1 -0
- package/dist/tests/integration/lazy-oracle.test.d.ts +1 -0
- package/dist/tests/integration/lazy-oracle.test.js +31 -0
- package/dist/tests/integration/lazy-oracle.test.js.map +1 -0
- package/dist/tests/integration/metrics.test.d.ts +1 -0
- package/dist/tests/integration/metrics.test.js +95 -0
- package/dist/tests/integration/metrics.test.js.map +1 -0
- package/dist/tests/integration/mint-burn.test.d.ts +1 -0
- package/dist/tests/integration/mint-burn.test.js +149 -0
- package/dist/tests/integration/mint-burn.test.js.map +1 -0
- package/dist/tests/integration/operator-grid.test.d.ts +1 -0
- package/dist/tests/integration/operator-grid.test.js +41 -0
- package/dist/tests/integration/operator-grid.test.js.map +1 -0
- package/dist/tests/integration/pdg.test.d.ts +1 -0
- package/dist/tests/integration/pdg.test.js +47 -0
- package/dist/tests/integration/pdg.test.js.map +1 -0
- package/dist/tests/integration/utils.test.d.ts +1 -0
- package/dist/tests/integration/utils.test.js +70 -0
- package/dist/tests/integration/utils.test.js.map +1 -0
- package/dist/tests/integration/vault-factory.test.d.ts +1 -0
- package/dist/tests/integration/vault-factory.test.js +29 -0
- package/dist/tests/integration/vault-factory.test.js.map +1 -0
- package/dist/tests/integration/vault-hub.test.d.ts +1 -0
- package/dist/tests/integration/vault-hub.test.js +71 -0
- package/dist/tests/integration/vault-hub.test.js.map +1 -0
- package/dist/tests/integration/vault-operations.test.d.ts +1 -0
- package/dist/tests/integration/vault-operations.test.js +151 -0
- package/dist/tests/integration/vault-operations.test.js.map +1 -0
- package/dist/tests/integration/vault-roles.test.d.ts +1 -0
- package/dist/tests/integration/vault-roles.test.js +44 -0
- package/dist/tests/integration/vault-roles.test.js.map +1 -0
- package/dist/tests/integration/vault.test.d.ts +1 -0
- package/dist/tests/integration/vault.test.js +44 -0
- package/dist/tests/integration/vault.test.js.map +1 -0
- package/dist/tests/utils/arguments.test.js +85 -4
- package/dist/tests/utils/arguments.test.js.map +1 -1
- package/dist/tests/utils/bigInt.test.d.ts +1 -0
- package/dist/tests/utils/bigInt.test.js +61 -0
- package/dist/tests/utils/bigInt.test.js.map +1 -0
- package/dist/tests/utils/calculate-health.test.d.ts +1 -0
- package/dist/tests/utils/calculate-health.test.js +140 -0
- package/dist/tests/utils/calculate-health.test.js.map +1 -0
- package/dist/tests/utils/calculate-overview-v2.test.d.ts +1 -0
- package/dist/tests/utils/calculate-overview-v2.test.js +181 -0
- package/dist/tests/utils/calculate-overview-v2.test.js.map +1 -0
- package/dist/tests/utils/calculate-overview.test.js +2 -1
- package/dist/tests/utils/calculate-overview.test.js.map +1 -1
- package/dist/tests/utils/csv-file.test.d.ts +1 -0
- package/dist/tests/utils/csv-file.test.js +111 -0
- package/dist/tests/utils/csv-file.test.js.map +1 -0
- package/dist/tests/utils/data-validators.test.js +1 -1
- package/dist/tests/utils/data-validators.test.js.map +1 -1
- package/dist/tests/utils/error-handler.test.js +7 -16
- package/dist/tests/utils/error-handler.test.js.map +1 -1
- package/dist/tests/utils/get-commands.test.js +1 -1
- package/dist/tests/utils/get-commands.test.js.map +1 -1
- package/dist/tests/utils/get-deposit-data-root.test.js +1 -2
- package/dist/tests/utils/get-deposit-data-root.test.js.map +1 -1
- package/dist/tests/utils/get-value.test.js +1 -1
- package/dist/tests/utils/get-value.test.js.map +1 -1
- package/dist/tests/utils/health.test.js +1 -1
- package/dist/tests/utils/health.test.js.map +1 -1
- package/dist/tests/utils/interrupt-handler.test.js +2 -5
- package/dist/tests/utils/interrupt-handler.test.js.map +1 -1
- package/dist/tests/utils/ipfs.test.js +37 -24
- package/dist/tests/utils/ipfs.test.js.map +1 -1
- package/dist/tests/utils/lido-apr.test.d.ts +1 -0
- package/dist/tests/utils/lido-apr.test.js +95 -0
- package/dist/tests/utils/lido-apr.test.js.map +1 -0
- package/dist/tests/utils/logging.test.js +135 -15
- package/dist/tests/utils/logging.test.js.map +1 -1
- package/dist/tests/utils/merkle-utils.test.d.ts +1 -0
- package/dist/tests/utils/merkle-utils.test.js +231 -0
- package/dist/tests/utils/merkle-utils.test.js.map +1 -0
- package/dist/tests/utils/rebase-rewards.test.d.ts +1 -0
- package/dist/tests/utils/rebase-rewards.test.js +114 -0
- package/dist/tests/utils/rebase-rewards.test.js.map +1 -0
- package/dist/tests/utils/resove-path.test.js +1 -1
- package/dist/tests/utils/resove-path.test.js.map +1 -1
- package/dist/tests/utils/sleep.test.js +5 -5
- package/dist/tests/utils/sleep.test.js.map +1 -1
- package/dist/tests/utils/snake-to-camel.test.d.ts +1 -0
- package/dist/tests/utils/snake-to-camel.test.js +37 -0
- package/dist/tests/utils/snake-to-camel.test.js.map +1 -0
- package/dist/tests/utils/timestamp.test.d.ts +1 -0
- package/dist/tests/utils/timestamp.test.js +51 -0
- package/dist/tests/utils/timestamp.test.js.map +1 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/utils/arguments.d.ts +6 -1
- package/dist/utils/arguments.js +46 -1
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/bigInt.d.ts +2 -0
- package/dist/utils/bigInt.js +3 -0
- package/dist/utils/bigInt.js.map +1 -0
- package/dist/utils/bls.d.ts +2 -2
- package/dist/utils/bls.js +8 -7
- package/dist/utils/bls.js.map +1 -1
- package/dist/utils/cache.d.ts +30 -0
- package/dist/utils/cache.js +140 -3
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/calculate-overview-v2.d.ts +1 -2
- package/dist/utils/calculate-overview-v2.js +4 -8
- package/dist/utils/calculate-overview-v2.js.map +1 -1
- package/dist/utils/calculate-overview.d.ts +1 -0
- package/dist/utils/calculate-overview.js +2 -2
- package/dist/utils/calculate-overview.js.map +1 -1
- package/dist/utils/charts/blessed/charts-apr.js +8 -18
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +7 -17
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/blessed/datasets/prepare-metrics.d.ts +5 -5
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js +11 -11
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
- package/dist/utils/charts/simple/simple-charts.js +8 -18
- package/dist/utils/charts/simple/simple-charts.js.map +1 -1
- package/dist/utils/commands/confirmations.js +1 -1
- package/dist/utils/commands/confirmations.js.map +1 -1
- package/dist/utils/commands/report.d.ts +6 -1
- package/dist/utils/commands/report.js +6 -4
- package/dist/utils/commands/report.js.map +1 -1
- package/dist/utils/consolidation/checks.d.ts +7 -0
- package/dist/utils/consolidation/checks.js +40 -0
- package/dist/utils/consolidation/checks.js.map +1 -0
- package/dist/utils/consolidation/confirms.d.ts +4 -0
- package/dist/utils/consolidation/confirms.js +41 -0
- package/dist/utils/consolidation/confirms.js.map +1 -0
- package/dist/utils/consolidation/index.d.ts +6 -0
- package/dist/utils/consolidation/index.js +7 -0
- package/dist/utils/consolidation/index.js.map +1 -0
- package/dist/utils/consolidation/logs.d.ts +3 -0
- package/dist/utils/consolidation/logs.js +43 -0
- package/dist/utils/consolidation/logs.js.map +1 -0
- package/dist/utils/consolidation/pubkeys.d.ts +8 -0
- package/dist/utils/consolidation/pubkeys.js +42 -0
- package/dist/utils/consolidation/pubkeys.js.map +1 -0
- package/dist/utils/consolidation/types.d.ts +12 -0
- package/dist/utils/consolidation/types.js +2 -0
- package/dist/utils/consolidation/types.js.map +1 -0
- package/dist/utils/consolidation/validator-info.d.ts +4 -0
- package/dist/utils/consolidation/validator-info.js +36 -0
- package/dist/utils/consolidation/validator-info.js.map +1 -0
- package/dist/utils/consolidation/validators-checks.d.ts +10 -0
- package/dist/utils/consolidation/validators-checks.js +58 -0
- package/dist/utils/consolidation/validators-checks.js.map +1 -0
- package/dist/utils/error-handler.js +2 -9
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/fetchCL.d.ts +35 -14
- package/dist/utils/fetchCL.js +78 -5
- package/dist/utils/fetchCL.js.map +1 -1
- package/dist/utils/health/health-utils.d.ts +54 -54
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/interrupt-handler.js +8 -2
- package/dist/utils/interrupt-handler.js.map +1 -1
- package/dist/utils/logging/console.js +41 -3
- package/dist/utils/logging/console.js.map +1 -1
- package/dist/utils/prompts/mint-burn/confirm-mint.js +1 -0
- package/dist/utils/prompts/mint-burn/confirm-mint.js.map +1 -1
- package/dist/utils/prompts/operations.js +4 -1
- package/dist/utils/prompts/operations.js.map +1 -1
- package/dist/utils/proof/create-proof.d.ts +5 -0
- package/dist/utils/proof/create-proof.js +5 -0
- package/dist/utils/proof/create-proof.js.map +1 -1
- package/dist/utils/read-programs-by-abi.d.ts +1 -1
- package/dist/utils/read-programs-by-abi.js +4 -18
- package/dist/utils/read-programs-by-abi.js.map +1 -1
- package/dist/utils/report/report.js +1 -1
- package/dist/utils/report/report.js.map +1 -1
- package/dist/utils/report/statistic-data.js +3 -3
- package/dist/utils/report/statistic-data.js.map +1 -1
- package/dist/utils/statistic/report-statistic.d.ts +6 -5
- package/dist/utils/statistic/report-statistic.js +15 -16
- package/dist/utils/statistic/report-statistic.js.map +1 -1
- package/dist/utils/transactions/tx-private-key.d.ts +4 -0
- package/dist/utils/transactions/tx-private-key.js +65 -32
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.d.ts +6 -3
- package/dist/utils/transactions/tx-wc.js +28 -26
- package/dist/utils/transactions/tx-wc.js.map +1 -1
- package/dist/utils/transactions/types.d.ts +5 -2
- package/dist/utils/transactions/utils.d.ts +3 -0
- package/dist/utils/transactions/utils.js +33 -0
- package/dist/utils/transactions/utils.js.map +1 -0
- package/dist/utils/wallet-connect.js +6 -4
- package/dist/utils/wallet-connect.js.map +1 -1
- package/dist/version/index.js +1 -1
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +29 -0
- package/dist/vitest.config.js.map +1 -0
- package/dist/vitest.integration.config.d.ts +2 -0
- package/dist/vitest.integration.config.js +39 -0
- package/dist/vitest.integration.config.js.map +1 -0
- package/package.json +15 -10
- package/dist/abi/defi-wrapper/StvStrategyPool.d.ts +0 -1769
- package/dist/abi/defi-wrapper/StvStrategyPool.js +0 -2319
- package/dist/abi/defi-wrapper/StvStrategyPool.js.map +0 -1
- package/dist/contracts/defi-wrapper/stv-strategy-pool.d.ts +0 -4
- package/dist/contracts/defi-wrapper/stv-strategy-pool.js +0 -11
- package/dist/contracts/defi-wrapper/stv-strategy-pool.js.map +0 -1
- package/dist/features/defi-wrapper-factory.d.ts +0 -18
- package/dist/features/defi-wrapper-factory.js +0 -28
- package/dist/features/defi-wrapper-factory.js.map +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/config.d.ts +0 -3
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/config.js +0 -214
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/config.js.map +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/index.js.map +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/main.d.ts +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/main.js +0 -6
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/main.js.map +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/read.js +0 -77
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/read.js.map +0 -1
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/write.js +0 -370
- package/dist/programs/defi-wrapper/contracts/stv-strategy-pool/write.js.map +0 -1
- /package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/index.d.ts +0 -0
- /package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/index.js +0 -0
- /package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/read.d.ts +0 -0
- /package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/write.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatEther, formatUnits } from 'viem';
|
|
1
2
|
import { Option } from 'commander';
|
|
2
3
|
import { StvPoolAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
3
4
|
import { getStvPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
@@ -18,58 +19,50 @@ stvPoolRead
|
|
|
18
19
|
.description('get stv pool base info')
|
|
19
20
|
.argument('<address>', 'stv pool address', stringToAddress)
|
|
20
21
|
.action(async (address) => {
|
|
21
|
-
const contract = getStvPoolContract(address);
|
|
22
|
-
const [
|
|
23
|
-
callReadMethodSilent(contract, '
|
|
22
|
+
const contract = await getStvPoolContract(address);
|
|
23
|
+
const [poolType, DEFAULT_ADMIN_ROLE, DEPOSIT_ROLE, ALLOW_LIST_MANAGER_ROLE, VAULT, DASHBOARD, STETH, VAULT_HUB, WITHDRAWAL_QUEUE, DISTRIBUTOR, ALLOW_LIST_ENABLED, name, symbol, totalAssets, totalLiabilityShares, totalNominalAssets, totalSupply, totalUnassignedLiabilityShares,] = await Promise.all([
|
|
24
|
+
callReadMethodSilent(contract, 'poolType'),
|
|
24
25
|
callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
|
|
25
26
|
callReadMethodSilent(contract, 'DEPOSIT_ROLE'),
|
|
26
|
-
callReadMethodSilent(contract, 'REQUEST_VALIDATOR_EXIT_ROLE'),
|
|
27
|
-
callReadMethodSilent(contract, 'TRIGGER_VALIDATOR_WITHDRAWAL_ROLE'),
|
|
28
27
|
callReadMethodSilent(contract, 'ALLOW_LIST_MANAGER_ROLE'),
|
|
28
|
+
callReadMethodSilent(contract, 'VAULT'),
|
|
29
29
|
callReadMethodSilent(contract, 'DASHBOARD'),
|
|
30
|
-
callReadMethodSilent(contract, 'STAKING_VAULT'),
|
|
31
30
|
callReadMethodSilent(contract, 'STETH'),
|
|
32
31
|
callReadMethodSilent(contract, 'VAULT_HUB'),
|
|
33
32
|
callReadMethodSilent(contract, 'WITHDRAWAL_QUEUE'),
|
|
33
|
+
callReadMethodSilent(contract, 'DISTRIBUTOR'),
|
|
34
34
|
callReadMethodSilent(contract, 'ALLOW_LIST_ENABLED'),
|
|
35
35
|
callReadMethodSilent(contract, 'name'),
|
|
36
36
|
callReadMethodSilent(contract, 'symbol'),
|
|
37
37
|
callReadMethodSilent(contract, 'totalAssets'),
|
|
38
|
-
callReadMethodSilent(contract, 'totalExceedingMintedSteth'),
|
|
39
38
|
callReadMethodSilent(contract, 'totalLiabilityShares'),
|
|
40
39
|
callReadMethodSilent(contract, 'totalNominalAssets'),
|
|
41
40
|
callReadMethodSilent(contract, 'totalSupply'),
|
|
42
41
|
callReadMethodSilent(contract, 'totalUnassignedLiabilityShares'),
|
|
43
|
-
callReadMethodSilent(contract, 'vaultDisconnected'),
|
|
44
|
-
callReadMethodSilent(contract, 'withdrawalQueue'),
|
|
45
42
|
]);
|
|
46
43
|
logResult({
|
|
47
44
|
data: [
|
|
48
|
-
['
|
|
45
|
+
['poolType', poolType],
|
|
49
46
|
['DEFAULT_ADMIN_ROLE', DEFAULT_ADMIN_ROLE],
|
|
50
47
|
['DEPOSIT_ROLE', DEPOSIT_ROLE],
|
|
51
|
-
['REQUEST_VALIDATOR_EXIT_ROLE', REQUEST_VALIDATOR_EXIT_ROLE],
|
|
52
|
-
[
|
|
53
|
-
'TRIGGER_VALIDATOR_WITHDRAWAL_ROLE',
|
|
54
|
-
TRIGGER_VALIDATOR_WITHDRAWAL_ROLE,
|
|
55
|
-
],
|
|
56
48
|
['ALLOW_LIST_MANAGER_ROLE', ALLOW_LIST_MANAGER_ROLE],
|
|
49
|
+
['VAULT', VAULT],
|
|
57
50
|
['DASHBOARD', DASHBOARD],
|
|
58
|
-
['STAKING_VAULT', STAKING_VAULT],
|
|
59
51
|
['STETH', STETH],
|
|
60
52
|
['VAULT_HUB', VAULT_HUB],
|
|
61
53
|
['WITHDRAWAL_QUEUE', WITHDRAWAL_QUEUE],
|
|
54
|
+
['DISTRIBUTOR', DISTRIBUTOR],
|
|
62
55
|
['ALLOW_LIST_ENABLED', ALLOW_LIST_ENABLED],
|
|
63
56
|
['name', name],
|
|
64
57
|
['symbol', symbol],
|
|
65
|
-
['totalAssets', totalAssets],
|
|
66
|
-
['
|
|
67
|
-
['
|
|
68
|
-
['
|
|
69
|
-
[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
['totalAssets', formatEther(totalAssets)],
|
|
59
|
+
['totalLiabilityShares', formatEther(totalLiabilityShares)],
|
|
60
|
+
['totalNominalAssets', formatUnits(totalNominalAssets, 27)],
|
|
61
|
+
['totalSupply', formatUnits(totalSupply, 27)],
|
|
62
|
+
[
|
|
63
|
+
'totalUnassignedLiabilityShares',
|
|
64
|
+
formatEther(totalUnassignedLiabilityShares),
|
|
65
|
+
],
|
|
73
66
|
],
|
|
74
67
|
});
|
|
75
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/read.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-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,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,GAAG,OAAO;KACxB,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,eAAe,CAAC,CAAC;AAEhC,WAAW,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAC/C,WAAW,CAAC,EAAE,CAAC,kBAAkB,EAAE;IACjC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,WAAW;KACR,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,wBAAwB,CAAC;KACrC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,EAAE,eAAe,CAAC;KAC1D,MAAM,CAAC,KAAK,EAAE,OAAgB,EAAE,EAAE;IACj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,IAAI,EAAE;YACJ,CAAC,UAAU,EAAE,QAAQ,CAAC;YACtB,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAC1C,CAAC,cAAc,EAAE,YAAY,CAAC;YAC9B,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;YACpD,CAAC,OAAO,EAAE,KAAK,CAAC;YAChB,CAAC,WAAW,EAAE,SAAS,CAAC;YACxB,CAAC,OAAO,EAAE,KAAK,CAAC;YAChB,CAAC,WAAW,EAAE,SAAS,CAAC;YACxB,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;YACtC,CAAC,aAAa,EAAE,WAAW,CAAC;YAC5B,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAC1C,CAAC,MAAM,EAAE,IAAI,CAAC;YACd,CAAC,QAAQ,EAAE,MAAM,CAAC;YAClB,CAAC,aAAa,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;YACzC,CAAC,sBAAsB,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;YAC3D,CAAC,oBAAoB,EAAE,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;YAC3D,CAAC,aAAa,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAC7C;gBACE,gCAAgC;gBAChC,WAAW,CAAC,8BAA8B,CAAC;aAC5C;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,iBAAiB,CAClB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt,
|
|
2
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, } from '../../../../utils/index.js';
|
|
3
3
|
import { getAccount } from '../../../../providers/index.js';
|
|
4
4
|
import { stvPool } from './main.js';
|
|
5
5
|
import { formatEther } from 'viem';
|
|
@@ -16,12 +16,12 @@ stvPoolWrite.on('option:-cmd2json', function () {
|
|
|
16
16
|
stvPoolWrite
|
|
17
17
|
.command('deposit-eth')
|
|
18
18
|
.description('convenience function to deposit ETH to msg.sender')
|
|
19
|
-
.argument('<address>', '
|
|
19
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
20
20
|
.argument('<amount>', 'amount of ETH to deposit (in ETH)', etherToWei)
|
|
21
21
|
.argument('<referral>', 'address of the referral (if any)', stringToAddress)
|
|
22
22
|
.option('-s, --receiver <receiver>', 'address to receive the minted shares', stringToAddress)
|
|
23
23
|
.action(async (address, amount, referral, { receiver }) => {
|
|
24
|
-
const contract = getStvPoolContract(address);
|
|
24
|
+
const contract = await getStvPoolContract(address);
|
|
25
25
|
const account = await getAccount();
|
|
26
26
|
const confirmationMessage = `Are you sure you want to deposit ETH to the stv pool? (referral: ${referral}, receiver: ${receiver || account.address}, amount: ${formatEther(amount)})`;
|
|
27
27
|
const confirm = await confirmOperation(confirmationMessage);
|
|
@@ -37,10 +37,10 @@ stvPoolWrite
|
|
|
37
37
|
stvPoolWrite
|
|
38
38
|
.command('rebalance-unassigned-liability')
|
|
39
39
|
.description('rebalance unassigned liability by repaying it with assets held by the vault')
|
|
40
|
-
.argument('<address>', '
|
|
40
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
41
41
|
.argument('<stethShares>', 'amount of stETH shares to rebalance (in shares)', stringToBigInt)
|
|
42
42
|
.action(async (address, stethShares) => {
|
|
43
|
-
const contract = getStvPoolContract(address);
|
|
43
|
+
const contract = await getStvPoolContract(address);
|
|
44
44
|
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${stethShares} stETH shares?`;
|
|
45
45
|
const confirm = await confirmOperation(confirmationMessage);
|
|
46
46
|
if (!confirm)
|
|
@@ -54,10 +54,10 @@ stvPoolWrite
|
|
|
54
54
|
stvPoolWrite
|
|
55
55
|
.command('rebalance-unassigned-liability-with-ether')
|
|
56
56
|
.description('rebalance unassigned liability by repaying it with external ether')
|
|
57
|
-
.argument('<address>', '
|
|
57
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
58
58
|
.argument('<ether>', 'amount of ether to rebalance (in ETH)', etherToWei)
|
|
59
59
|
.action(async (address, ether) => {
|
|
60
|
-
const contract = getStvPoolContract(address);
|
|
60
|
+
const contract = await getStvPoolContract(address);
|
|
61
61
|
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${formatEther(ether)} ether?`;
|
|
62
62
|
const confirm = await confirmOperation(confirmationMessage);
|
|
63
63
|
if (!confirm)
|
|
@@ -70,193 +70,44 @@ stvPoolWrite
|
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
stvPoolWrite
|
|
73
|
-
.command('
|
|
74
|
-
.description('
|
|
75
|
-
.argument('<address>', '
|
|
76
|
-
.argument('<assetsToWithdraw>', 'the amount of assets to withdraw (18 decimals)', stringToBigInt)
|
|
77
|
-
.action(async (address, assetsToWithdraw) => {
|
|
78
|
-
const contract = getStvPoolContract(address);
|
|
79
|
-
const confirmationMessage = `Are you sure you want to request a withdrawal of ${assetsToWithdraw} assets?`;
|
|
80
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
81
|
-
if (!confirm)
|
|
82
|
-
return;
|
|
83
|
-
await callWriteMethodWithReceipt({
|
|
84
|
-
contract,
|
|
85
|
-
methodName: 'requestWithdrawalETH',
|
|
86
|
-
payload: [assetsToWithdraw],
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
stvPoolWrite
|
|
90
|
-
.command('request-withdrawal')
|
|
91
|
-
.description('request a withdrawal by specifying the amount of stv to withdraw')
|
|
92
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
93
|
-
.argument('<stvToWithdraw>', 'the amount of stv to withdraw (27 decimals)', stringToBigInt)
|
|
94
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
95
|
-
.action(async (address, stvToWithdraw, { receiver }) => {
|
|
96
|
-
const contract = getStvPoolContract(address);
|
|
97
|
-
const account = await getAccount();
|
|
98
|
-
const confirmationMessage = `Are you sure you want to request a withdrawal of ${stvToWithdraw} stv to ${receiver}?`;
|
|
99
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
100
|
-
if (!confirm)
|
|
101
|
-
return;
|
|
102
|
-
await callWriteMethodWithReceipt({
|
|
103
|
-
contract,
|
|
104
|
-
methodName: 'requestWithdrawal',
|
|
105
|
-
payload: [stvToWithdraw, receiver || account.address],
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
stvPoolWrite
|
|
109
|
-
.command('request-withdrawals')
|
|
110
|
-
.description('request multiple withdrawals by specifying the amounts of stv to withdraw')
|
|
111
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
112
|
-
.argument('<stvToWithdraw>', 'the array of amounts of stv to withdraw (27 decimals)', stringToBigIntArray)
|
|
113
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
114
|
-
.action(async (address, stvToWithdraw, { receiver }) => {
|
|
115
|
-
const contract = getStvPoolContract(address);
|
|
116
|
-
const account = await getAccount();
|
|
117
|
-
const confirmationMessage = `Are you sure you want to request multiple withdrawals of ${stvToWithdraw.join(', ')} stv to ${receiver}?`;
|
|
118
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
119
|
-
if (!confirm)
|
|
120
|
-
return;
|
|
121
|
-
await callWriteMethodWithReceipt({
|
|
122
|
-
contract,
|
|
123
|
-
methodName: 'requestWithdrawals',
|
|
124
|
-
payload: [stvToWithdraw, receiver || account.address],
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
stvPoolWrite
|
|
128
|
-
.command('claim-withdrawal')
|
|
129
|
-
.description('claim finalized withdrawal request')
|
|
130
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
131
|
-
.argument('<requestId>', 'the withdrawal request ID to claim', stringToBigInt)
|
|
132
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
133
|
-
.action(async (address, requestId, { receiver }) => {
|
|
134
|
-
const contract = getStvPoolContract(address);
|
|
135
|
-
const account = await getAccount();
|
|
136
|
-
const confirmationMessage = `Are you sure you want to claim withdrawal request ${requestId} to ${receiver}?`;
|
|
137
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
138
|
-
if (!confirm)
|
|
139
|
-
return;
|
|
140
|
-
await callWriteMethodWithReceipt({
|
|
141
|
-
contract,
|
|
142
|
-
methodName: 'claimWithdrawal',
|
|
143
|
-
payload: [requestId, receiver || account.address],
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
stvPoolWrite
|
|
147
|
-
.command('claim-withdrawals')
|
|
148
|
-
.description('claim multiple finalized withdrawal requests')
|
|
149
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
150
|
-
.argument('<requestIds>', 'the array of withdrawal request IDs to claim', stringToBigIntArray)
|
|
151
|
-
.argument('<hints>', 'the checkpoint hints. Can be found with `WQ.findCheckpointHints(_requestIds, 1, getLastCheckpointIndex())`', stringToBigIntArray)
|
|
152
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
153
|
-
.action(async (address, requestIds, hints, { receiver }) => {
|
|
154
|
-
const contract = getStvPoolContract(address);
|
|
155
|
-
const account = await getAccount();
|
|
156
|
-
const confirmationMessage = `Are you sure you want to claim withdrawal requests ${requestIds.join(', ')} to ${receiver}?`;
|
|
157
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
158
|
-
if (!confirm)
|
|
159
|
-
return;
|
|
160
|
-
await callWriteMethodWithReceipt({
|
|
161
|
-
contract,
|
|
162
|
-
methodName: 'claimWithdrawals',
|
|
163
|
-
payload: [requestIds, hints, receiver || account.address],
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
stvPoolWrite
|
|
167
|
-
.command('burn-stv-for-withdrawal-queue')
|
|
168
|
-
.description('burn stv from WithdrawalQueue contract when processing withdrawal requests')
|
|
169
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
170
|
-
.argument('<stv>', 'amount of stv to burn (27 decimals)', stringToBigInt)
|
|
171
|
-
.action(async (address, stv) => {
|
|
172
|
-
const contract = getStvPoolContract(address);
|
|
173
|
-
const confirmationMessage = `Are you sure you want to burn ${stv} stv for the withdrawal queue ${address}?`;
|
|
174
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
175
|
-
if (!confirm)
|
|
176
|
-
return;
|
|
177
|
-
await callWriteMethodWithReceipt({
|
|
178
|
-
contract,
|
|
179
|
-
methodName: 'burnStvForWithdrawalQueue',
|
|
180
|
-
payload: [stv],
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
stvPoolWrite
|
|
184
|
-
.command('disconnect-vault')
|
|
185
|
-
.description('initiates voluntary vault disconnection from VaultHub')
|
|
186
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
73
|
+
.command('pause-deposits')
|
|
74
|
+
.description('pause deposits')
|
|
75
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
187
76
|
.action(async (address) => {
|
|
188
|
-
const contract = getStvPoolContract(address);
|
|
189
|
-
const confirmationMessage = `Are you sure you want to
|
|
77
|
+
const contract = await getStvPoolContract(address);
|
|
78
|
+
const confirmationMessage = `Are you sure you want to pause deposits for the pool ${address}?`;
|
|
190
79
|
const confirm = await confirmOperation(confirmationMessage);
|
|
191
80
|
if (!confirm)
|
|
192
81
|
return;
|
|
193
82
|
await callWriteMethodWithReceipt({
|
|
194
83
|
contract,
|
|
195
|
-
methodName: '
|
|
84
|
+
methodName: 'pauseDeposits',
|
|
196
85
|
payload: [],
|
|
197
86
|
});
|
|
198
87
|
});
|
|
199
88
|
stvPoolWrite
|
|
200
|
-
.command('
|
|
201
|
-
.description('
|
|
202
|
-
.argument('<address>', '
|
|
203
|
-
.
|
|
204
|
-
|
|
205
|
-
const
|
|
206
|
-
const account = await getAccount();
|
|
207
|
-
const confirmationMessage = `Are you sure you want to claim the connect deposit for the vault ${address} to ${receiver}?`;
|
|
208
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
209
|
-
if (!confirm)
|
|
210
|
-
return;
|
|
211
|
-
await callWriteMethodWithReceipt({
|
|
212
|
-
contract,
|
|
213
|
-
methodName: 'claimConnectDeposit',
|
|
214
|
-
payload: [receiver || account.address],
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
stvPoolWrite
|
|
218
|
-
.command('trigger-validator-withdrawals')
|
|
219
|
-
.description('triggers validator withdrawals')
|
|
220
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
221
|
-
.argument('<pubkeys>', 'validator public keys', stringToHexArray)
|
|
222
|
-
.argument('<amounts>', 'amounts to withdraw (in ETH)', stringToBigIntArray)
|
|
223
|
-
.argument('<refundRecipient>', 'refund recipient address', stringToAddress)
|
|
224
|
-
.action(async (address, pubkeys, amounts, refundRecipient) => {
|
|
225
|
-
const contract = getStvPoolContract(address);
|
|
226
|
-
const confirmationMessage = `Are you sure you want to trigger validator withdrawals for the vault ${address} with pubkeys ${pubkeys.join(', ')} and amounts ${amounts.map((amount) => formatEther(amount)).join(', ')} to ${refundRecipient}?`;
|
|
227
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
228
|
-
if (!confirm)
|
|
229
|
-
return;
|
|
230
|
-
await callWriteMethodWithReceipt({
|
|
231
|
-
contract,
|
|
232
|
-
methodName: 'triggerValidatorWithdrawals',
|
|
233
|
-
payload: [pubkeys.join(''), amounts, refundRecipient],
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
stvPoolWrite
|
|
237
|
-
.command('request-validator-exit')
|
|
238
|
-
.description('requests validator exit')
|
|
239
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
240
|
-
.argument('<pubkeys>', 'validator public keys', stringToHexArray)
|
|
241
|
-
.action(async (address, pubkeys) => {
|
|
242
|
-
const contract = getStvPoolContract(address);
|
|
243
|
-
const confirmationMessage = `Are you sure you want to request validator exit for the vault ${address} with pubkeys ${pubkeys.join(', ')}?`;
|
|
89
|
+
.command('resume-deposits')
|
|
90
|
+
.description('resume deposits')
|
|
91
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
92
|
+
.action(async (address) => {
|
|
93
|
+
const contract = await getStvPoolContract(address);
|
|
94
|
+
const confirmationMessage = `Are you sure you want to resume deposits for the pool ${address}?`;
|
|
244
95
|
const confirm = await confirmOperation(confirmationMessage);
|
|
245
96
|
if (!confirm)
|
|
246
97
|
return;
|
|
247
98
|
await callWriteMethodWithReceipt({
|
|
248
99
|
contract,
|
|
249
|
-
methodName: '
|
|
250
|
-
payload: [
|
|
100
|
+
methodName: 'resumeDeposits',
|
|
101
|
+
payload: [],
|
|
251
102
|
});
|
|
252
103
|
});
|
|
253
104
|
stvPoolWrite
|
|
254
105
|
.command('add-to-allow-list')
|
|
255
106
|
.description('add an address to the allowlist')
|
|
256
|
-
.argument('<address>', '
|
|
107
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
257
108
|
.argument('<user>', 'address to add to the allowlist', stringToAddress)
|
|
258
109
|
.action(async (address, user) => {
|
|
259
|
-
const contract = getStvPoolContract(address);
|
|
110
|
+
const contract = await getStvPoolContract(address);
|
|
260
111
|
const confirmationMessage = `Are you sure you want to add ${user} to the allowlist for the vault ${address}?`;
|
|
261
112
|
const confirm = await confirmOperation(confirmationMessage);
|
|
262
113
|
if (!confirm)
|
|
@@ -270,10 +121,10 @@ stvPoolWrite
|
|
|
270
121
|
stvPoolWrite
|
|
271
122
|
.command('remove-from-allow-list')
|
|
272
123
|
.description('remove an address from the allowlist')
|
|
273
|
-
.argument('<address>', '
|
|
124
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
274
125
|
.argument('<user>', 'address to remove from the allowlist', stringToAddress)
|
|
275
126
|
.action(async (address, user) => {
|
|
276
|
-
const contract = getStvPoolContract(address);
|
|
127
|
+
const contract = await getStvPoolContract(address);
|
|
277
128
|
const confirmationMessage = `Are you sure you want to remove ${user} from the allowlist for the vault ${address}?`;
|
|
278
129
|
const confirm = await confirmOperation(confirmationMessage);
|
|
279
130
|
if (!confirm)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-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,EACd,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAW,WAAW,EAAO,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,YAAY,GAAG,OAAO;KACzB,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,yBAAyB,CAAC,CAAC;AAE1C,YAAY,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAChD,YAAY,CAAC,EAAE,CAAC,kBAAkB,EAAE;IAClC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,YAAY;KACT,OAAO,CAAC,aAAa,CAAC;KACtB,WAAW,CAAC,mDAAmD,CAAC;KAChE,QAAQ,CAAC,WAAW,EAAE,qBAAqB,EAAE,eAAe,CAAC;KAC7D,QAAQ,CAAC,UAAU,EAAE,mCAAmC,EAAE,UAAU,CAAC;KACrE,QAAQ,CAAC,YAAY,EAAE,kC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C,IAAI,CAAC;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
import { stringToAddress, stringToBigInt, } from '../../../../utils/index.js';
|
|
2
2
|
export const readCommandConfig = {
|
|
3
|
-
withdrawableStvOf: {
|
|
4
|
-
name: 'withdrawable-stv-of',
|
|
5
|
-
description: 'get calculated amount of stv that can be withdrawn by an account',
|
|
6
|
-
arguments: {
|
|
7
|
-
_account: {
|
|
8
|
-
name: 'account',
|
|
9
|
-
description: 'the address of the account',
|
|
10
|
-
modifier: stringToAddress,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
withdrawableEthOf: {
|
|
15
|
-
name: 'withdrawable-eth-of',
|
|
16
|
-
description: 'get calculated the amount of ETH that can be withdrawn by an account',
|
|
17
|
-
arguments: {
|
|
18
|
-
_account: {
|
|
19
|
-
name: 'account',
|
|
20
|
-
description: 'the address of the account',
|
|
21
|
-
modifier: stringToAddress,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
vaultDisconnected: {
|
|
26
|
-
name: 'vault-disconnected',
|
|
27
|
-
description: 'get whether the vault is disconnected',
|
|
28
|
-
},
|
|
29
3
|
totalUnassignedLiabilityShares: {
|
|
30
4
|
name: 'total-unassigned-liability-shares',
|
|
31
5
|
aliases: ['tuls'],
|
|
@@ -127,48 +101,6 @@ export const readCommandConfig = {
|
|
|
127
101
|
name: 'total-minted-steth-shares',
|
|
128
102
|
description: 'get the total stETH shares minted by the pool',
|
|
129
103
|
},
|
|
130
|
-
totalMintingCapacityShares: {
|
|
131
|
-
name: 'total-minting-capacity-shares',
|
|
132
|
-
description: 'get the total Staking Vault minting capacity in stETH shares',
|
|
133
|
-
},
|
|
134
|
-
stethSharesForWithdrawal: {
|
|
135
|
-
name: 'steth-shares-for-withdrawal',
|
|
136
|
-
description: 'get the calculated amount of stETH shares required for a given amount of stv to withdraw',
|
|
137
|
-
arguments: {
|
|
138
|
-
_account: {
|
|
139
|
-
name: 'account',
|
|
140
|
-
description: 'the address of the account',
|
|
141
|
-
modifier: stringToAddress,
|
|
142
|
-
},
|
|
143
|
-
_stv: {
|
|
144
|
-
name: 'stv',
|
|
145
|
-
description: 'the amount of stv to withdraw',
|
|
146
|
-
modifier: stringToBigInt,
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
remainingMintingCapacityShares: {
|
|
151
|
-
name: 'remaining-minting-capacity-shares',
|
|
152
|
-
description: 'get the remaining Staking Vault minting capacity in stETH shares',
|
|
153
|
-
arguments: {
|
|
154
|
-
_ethToFund: {
|
|
155
|
-
name: 'ethToFund',
|
|
156
|
-
description: 'the amount of ETH to fund',
|
|
157
|
-
modifier: stringToBigInt,
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
mintingCapacitySharesOf: {
|
|
162
|
-
name: 'minting-capacity-shares-of',
|
|
163
|
-
description: 'get the calculated minting capacity in stETH shares for a specific account',
|
|
164
|
-
arguments: {
|
|
165
|
-
_account: {
|
|
166
|
-
name: 'account',
|
|
167
|
-
description: 'the address of the account',
|
|
168
|
-
modifier: stringToAddress,
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
104
|
mintedStethSharesOf: {
|
|
173
105
|
name: 'minted-steth-shares-of',
|
|
174
106
|
description: 'get the amount of stETH shares minted by the pool for a specific account',
|
|
@@ -180,28 +112,6 @@ export const readCommandConfig = {
|
|
|
180
112
|
},
|
|
181
113
|
},
|
|
182
114
|
},
|
|
183
|
-
exceedingMintedStethSharesOf: {
|
|
184
|
-
name: 'exceeding-minted-steth-shares-of',
|
|
185
|
-
description: "get the amount of stETH shares exceeding the Staking Vault's liability for a specific account",
|
|
186
|
-
arguments: {
|
|
187
|
-
_account: {
|
|
188
|
-
name: 'account',
|
|
189
|
-
description: 'the address of the account',
|
|
190
|
-
modifier: stringToAddress,
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
exceedingMintedStethOf: {
|
|
195
|
-
name: 'exceeding-minted-steth-of',
|
|
196
|
-
description: "get the amount of stETH exceeding the Staking Vault's liability for a specific account",
|
|
197
|
-
arguments: {
|
|
198
|
-
_account: {
|
|
199
|
-
name: 'account',
|
|
200
|
-
description: 'the address of the account',
|
|
201
|
-
modifier: stringToAddress,
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
115
|
totalExceedingMintedStethShares: {
|
|
206
116
|
name: 'total-exceeding-minted-steth-shares',
|
|
207
117
|
description: "get the amount of minted stETH shares exceeding the Staking Vault's liability",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,8BAA8B,EAAE;QAC9B,IAAI,EAAE,mCAAmC;QACzC,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,WAAW,EACT,yEAAyE;KAC5E;IACD,WAAW,EAAE;QACX,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0CAA0C;KACxD;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,0DAA0D;KACxE;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,8BAA8B;QACpC,OAAO,EA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cAAc;aACzB;SACF;KACF;IACD,2BAA2B,EAAE;QAC3B,IAAI,EAAE,mCAAmC;QACzC,WAAW,EACT,6EAA6E;QAC/E,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,+CAA+C;KAC7D;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,0EAA0E;QAC5E,SAAS,EAAE;YACT,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,4BAA4B;gBACzC,QAAQ,EAAE,eAAe;aAC1B;SACF;KACF;IACD,+BAA+B,EAAE;QAC/B,IAAI,EAAE,qCAAqC;QAC3C,WAAW,EACT,+EAA+E;KAClF;CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatEther, formatUnits } from 'viem';
|
|
1
2
|
import { Option } from 'commander';
|
|
2
3
|
import { StvStETHPoolAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
3
4
|
import { getStvStethPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
@@ -18,16 +19,14 @@ stvStethPoolRead
|
|
|
18
19
|
.description('get stv pool base info')
|
|
19
20
|
.argument('<address>', 'stv pool address', stringToAddress)
|
|
20
21
|
.action(async (address) => {
|
|
21
|
-
const contract = getStvStethPoolContract(address);
|
|
22
|
-
const [
|
|
23
|
-
callReadMethodSilent(contract, '
|
|
22
|
+
const contract = await getStvStethPoolContract(address);
|
|
23
|
+
const [poolType, DEFAULT_ADMIN_ROLE, DEPOSIT_ROLE, ALLOW_LIST_MANAGER_ROLE, DASHBOARD, VAULT, STETH, VAULT_HUB, WITHDRAWAL_QUEUE, ALLOW_LIST_ENABLED, name, symbol, totalAssets, totalExceedingMintedSteth, totalLiabilityShares, totalNominalAssets, totalSupply, totalUnassignedLiabilityShares,] = await Promise.all([
|
|
24
|
+
callReadMethodSilent(contract, 'poolType'),
|
|
24
25
|
callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
|
|
25
26
|
callReadMethodSilent(contract, 'DEPOSIT_ROLE'),
|
|
26
|
-
callReadMethodSilent(contract, 'REQUEST_VALIDATOR_EXIT_ROLE'),
|
|
27
|
-
callReadMethodSilent(contract, 'TRIGGER_VALIDATOR_WITHDRAWAL_ROLE'),
|
|
28
27
|
callReadMethodSilent(contract, 'ALLOW_LIST_MANAGER_ROLE'),
|
|
29
28
|
callReadMethodSilent(contract, 'DASHBOARD'),
|
|
30
|
-
callReadMethodSilent(contract, '
|
|
29
|
+
callReadMethodSilent(contract, 'VAULT'),
|
|
31
30
|
callReadMethodSilent(contract, 'STETH'),
|
|
32
31
|
callReadMethodSilent(contract, 'VAULT_HUB'),
|
|
33
32
|
callReadMethodSilent(contract, 'WITHDRAWAL_QUEUE'),
|
|
@@ -40,36 +39,30 @@ stvStethPoolRead
|
|
|
40
39
|
callReadMethodSilent(contract, 'totalNominalAssets'),
|
|
41
40
|
callReadMethodSilent(contract, 'totalSupply'),
|
|
42
41
|
callReadMethodSilent(contract, 'totalUnassignedLiabilityShares'),
|
|
43
|
-
callReadMethodSilent(contract, 'vaultDisconnected'),
|
|
44
|
-
callReadMethodSilent(contract, 'withdrawalQueue'),
|
|
45
42
|
]);
|
|
46
43
|
logResult({
|
|
47
44
|
data: [
|
|
48
|
-
['
|
|
45
|
+
['poolType', poolType],
|
|
49
46
|
['DEFAULT_ADMIN_ROLE', DEFAULT_ADMIN_ROLE],
|
|
50
47
|
['DEPOSIT_ROLE', DEPOSIT_ROLE],
|
|
51
|
-
['REQUEST_VALIDATOR_EXIT_ROLE', REQUEST_VALIDATOR_EXIT_ROLE],
|
|
52
|
-
[
|
|
53
|
-
'TRIGGER_VALIDATOR_WITHDRAWAL_ROLE',
|
|
54
|
-
TRIGGER_VALIDATOR_WITHDRAWAL_ROLE,
|
|
55
|
-
],
|
|
56
48
|
['ALLOW_LIST_MANAGER_ROLE', ALLOW_LIST_MANAGER_ROLE],
|
|
57
49
|
['DASHBOARD', DASHBOARD],
|
|
58
|
-
['
|
|
50
|
+
['VAULT', VAULT],
|
|
59
51
|
['STETH', STETH],
|
|
60
52
|
['VAULT_HUB', VAULT_HUB],
|
|
61
53
|
['WITHDRAWAL_QUEUE', WITHDRAWAL_QUEUE],
|
|
62
54
|
['ALLOW_LIST_ENABLED', ALLOW_LIST_ENABLED],
|
|
63
55
|
['name', name],
|
|
64
56
|
['symbol', symbol],
|
|
65
|
-
['totalAssets', totalAssets],
|
|
66
|
-
['totalExceedingMintedSteth', totalExceedingMintedSteth],
|
|
67
|
-
['totalLiabilityShares', totalLiabilityShares],
|
|
68
|
-
['totalNominalAssets', totalNominalAssets],
|
|
69
|
-
['totalSupply', totalSupply],
|
|
70
|
-
[
|
|
71
|
-
|
|
72
|
-
|
|
57
|
+
['totalAssets', formatEther(totalAssets)],
|
|
58
|
+
['totalExceedingMintedSteth', formatEther(totalExceedingMintedSteth)],
|
|
59
|
+
['totalLiabilityShares', formatEther(totalLiabilityShares)],
|
|
60
|
+
['totalNominalAssets', formatEther(totalNominalAssets)],
|
|
61
|
+
['totalSupply', formatUnits(totalSupply, 27)],
|
|
62
|
+
[
|
|
63
|
+
'totalUnassignedLiabilityShares',
|
|
64
|
+
formatEther(totalUnassignedLiabilityShares),
|
|
65
|
+
],
|
|
73
66
|
],
|
|
74
67
|
});
|
|
75
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/read.ts"],"names":[],"mappings":"
|
|
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,E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