@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,370 +0,0 @@
|
|
|
1
|
-
import { Option } from 'commander';
|
|
2
|
-
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, stringToBigIntArray, stringToHexArray, } from '../../../../utils/index.js';
|
|
3
|
-
import { getAccount } from '../../../../providers/index.js';
|
|
4
|
-
import { stvStrategyPool } from './main.js';
|
|
5
|
-
import { formatEther } from 'viem';
|
|
6
|
-
import { getStvStrategyPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
7
|
-
const stvStrategyPoolWrite = stvStrategyPool
|
|
8
|
-
.command('write')
|
|
9
|
-
.alias('w')
|
|
10
|
-
.description('write commands');
|
|
11
|
-
stvStrategyPoolWrite.addOption(new Option('-cmd2json'));
|
|
12
|
-
stvStrategyPoolWrite.on('option:-cmd2json', function () {
|
|
13
|
-
logInfo(getCommandsJson(stvStrategyPoolWrite));
|
|
14
|
-
process.exit();
|
|
15
|
-
});
|
|
16
|
-
stvStrategyPoolWrite
|
|
17
|
-
.command('deposit-eth')
|
|
18
|
-
.description('convenience function to deposit ETH to msg.sender')
|
|
19
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
20
|
-
.argument('<referral>', 'the address of the referral (if any)', stringToAddress)
|
|
21
|
-
.argument('<receiver>', 'the address to receive the minted shares', stringToAddress)
|
|
22
|
-
.argument('<stethSharesToMint>', 'amount of stETH shares to mint (up to maximum capacity for this deposit). Pass MAX_MINTABLE_AMOUNT to mint maximum available for this deposit', stringToBigInt)
|
|
23
|
-
.action(async (address, referral, receiver, stethSharesToMint) => {
|
|
24
|
-
const contract = getStvStrategyPoolContract(address);
|
|
25
|
-
const confirmationMessage = `Are you sure you want to deposit ETH to the stv pool? (referral: ${referral}, receiver: ${receiver}, stethSharesToMint: ${stethSharesToMint})`;
|
|
26
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
27
|
-
if (!confirm)
|
|
28
|
-
return;
|
|
29
|
-
await callWriteMethodWithReceipt({
|
|
30
|
-
contract,
|
|
31
|
-
methodName: 'depositETH',
|
|
32
|
-
payload: [referral, receiver, stethSharesToMint],
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
stvStrategyPoolWrite
|
|
36
|
-
.command('rebalance-unassigned-liability')
|
|
37
|
-
.description('rebalance unassigned liability by repaying it with assets held by the vault')
|
|
38
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
39
|
-
.argument('<stethShares>', 'amount of stETH shares to rebalance (in shares)', stringToBigInt)
|
|
40
|
-
.action(async (address, stethShares) => {
|
|
41
|
-
const contract = getStvStrategyPoolContract(address);
|
|
42
|
-
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${stethShares} stETH shares?`;
|
|
43
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
44
|
-
if (!confirm)
|
|
45
|
-
return;
|
|
46
|
-
await callWriteMethodWithReceipt({
|
|
47
|
-
contract,
|
|
48
|
-
methodName: 'rebalanceUnassignedLiability',
|
|
49
|
-
payload: [stethShares],
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
stvStrategyPoolWrite
|
|
53
|
-
.command('rebalance-unassigned-liability-with-ether')
|
|
54
|
-
.description('rebalance unassigned liability by repaying it with external ether')
|
|
55
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
56
|
-
.argument('<ether>', 'amount of ether to rebalance (in ETH)', etherToWei)
|
|
57
|
-
.action(async (address, ether) => {
|
|
58
|
-
const contract = getStvStrategyPoolContract(address);
|
|
59
|
-
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${formatEther(ether)} ether?`;
|
|
60
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
61
|
-
if (!confirm)
|
|
62
|
-
return;
|
|
63
|
-
await callWriteMethodWithReceipt({
|
|
64
|
-
contract,
|
|
65
|
-
methodName: 'rebalanceUnassignedLiabilityWithEther',
|
|
66
|
-
payload: [],
|
|
67
|
-
value: ether,
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
stvStrategyPoolWrite
|
|
71
|
-
.command('request-withdrawal-eth')
|
|
72
|
-
.description('request a withdrawal by specifying the amount of assets to withdraw')
|
|
73
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
74
|
-
.argument('<assetsToWithdraw>', 'the amount of assets to withdraw (18 decimals)', stringToBigInt)
|
|
75
|
-
.action(async (address, assetsToWithdraw) => {
|
|
76
|
-
const contract = getStvStrategyPoolContract(address);
|
|
77
|
-
const confirmationMessage = `Are you sure you want to request a withdrawal of ${assetsToWithdraw} assets?`;
|
|
78
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
79
|
-
if (!confirm)
|
|
80
|
-
return;
|
|
81
|
-
await callWriteMethodWithReceipt({
|
|
82
|
-
contract,
|
|
83
|
-
methodName: 'requestWithdrawalETH',
|
|
84
|
-
payload: [assetsToWithdraw],
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
stvStrategyPoolWrite
|
|
88
|
-
.command('request-withdrawal')
|
|
89
|
-
.description('request a withdrawal by specifying the amount of stv to withdraw')
|
|
90
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
91
|
-
.argument('<stvToWithdraw>', 'the amount of stv to withdraw (27 decimals)', stringToBigInt)
|
|
92
|
-
.argument('<stethSharesToBurn>', "the amount of stETH shares to burn to repay user's liabilities (18 decimals)", stringToBigInt)
|
|
93
|
-
.argument('<stethSharesToRebalance>', 'the amount of stETH shares to rebalance (18 decimals)', stringToBigInt)
|
|
94
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
95
|
-
.action(async (address, stvToWithdraw, stethSharesToBurn, stethSharesToRebalance, { receiver }) => {
|
|
96
|
-
const contract = getStvStrategyPoolContract(address);
|
|
97
|
-
const account = await getAccount();
|
|
98
|
-
const confirmationMessage = `Are you sure you want to request a withdrawal of ${stvToWithdraw} stv to ${receiver}? (stethSharesToBurn: ${stethSharesToBurn}, stethSharesToRebalance: ${stethSharesToRebalance})`;
|
|
99
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
100
|
-
if (!confirm)
|
|
101
|
-
return;
|
|
102
|
-
await callWriteMethodWithReceipt({
|
|
103
|
-
contract,
|
|
104
|
-
methodName: 'requestWithdrawal',
|
|
105
|
-
payload: [
|
|
106
|
-
stvToWithdraw,
|
|
107
|
-
stethSharesToBurn,
|
|
108
|
-
stethSharesToRebalance,
|
|
109
|
-
receiver || account.address,
|
|
110
|
-
],
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
stvStrategyPoolWrite
|
|
114
|
-
.command('request-withdrawals')
|
|
115
|
-
.description('request multiple withdrawals by specifying the amounts of stv to withdraw')
|
|
116
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
117
|
-
.argument('<stvToWithdraw>', 'the array of amounts of stv to withdraw (27 decimals)', stringToBigIntArray)
|
|
118
|
-
.argument('<stethSharesToBurn>', "the amount of stETH shares to burn to repay user's liabilities (18 decimals)", stringToBigInt)
|
|
119
|
-
.argument('<stethSharesToRebalance>', 'the amount of stETH shares to rebalance (18 decimals)', stringToBigIntArray)
|
|
120
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
121
|
-
.action(async (address, stvToWithdraw, stethSharesToBurn, stethSharesToRebalance, { receiver }) => {
|
|
122
|
-
const contract = getStvStrategyPoolContract(address);
|
|
123
|
-
const account = await getAccount();
|
|
124
|
-
const confirmationMessage = `Are you sure you want to request multiple withdrawals of ${stvToWithdraw.join(', ')} stv to ${receiver}? (stethSharesToBurn: ${stethSharesToBurn}, stethSharesToRebalance: ${stethSharesToRebalance.join(', ')})`;
|
|
125
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
126
|
-
if (!confirm)
|
|
127
|
-
return;
|
|
128
|
-
await callWriteMethodWithReceipt({
|
|
129
|
-
contract,
|
|
130
|
-
methodName: 'requestWithdrawals',
|
|
131
|
-
payload: [
|
|
132
|
-
stvToWithdraw,
|
|
133
|
-
stethSharesToRebalance,
|
|
134
|
-
stethSharesToBurn,
|
|
135
|
-
receiver || account.address,
|
|
136
|
-
],
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
stvStrategyPoolWrite
|
|
140
|
-
.command('claim-withdrawal')
|
|
141
|
-
.description('claim finalized withdrawal request')
|
|
142
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
143
|
-
.argument('<requestId>', 'the withdrawal request ID to claim', stringToBigInt)
|
|
144
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
145
|
-
.action(async (address, requestId, { receiver }) => {
|
|
146
|
-
const contract = getStvStrategyPoolContract(address);
|
|
147
|
-
const account = await getAccount();
|
|
148
|
-
const confirmationMessage = `Are you sure you want to claim withdrawal request ${requestId} to ${receiver}?`;
|
|
149
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
150
|
-
if (!confirm)
|
|
151
|
-
return;
|
|
152
|
-
await callWriteMethodWithReceipt({
|
|
153
|
-
contract,
|
|
154
|
-
methodName: 'claimWithdrawal',
|
|
155
|
-
payload: [requestId, receiver || account.address],
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
stvStrategyPoolWrite
|
|
159
|
-
.command('claim-withdrawals')
|
|
160
|
-
.description('claim multiple finalized withdrawal requests')
|
|
161
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
162
|
-
.argument('<requestIds>', 'the array of withdrawal request IDs to claim', stringToBigIntArray)
|
|
163
|
-
.argument('<hints>', 'the checkpoint hints. Can be found with `WQ.findCheckpointHints(_requestIds, 1, getLastCheckpointIndex())`', stringToBigIntArray)
|
|
164
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
165
|
-
.action(async (address, requestIds, hints, { receiver }) => {
|
|
166
|
-
const contract = getStvStrategyPoolContract(address);
|
|
167
|
-
const account = await getAccount();
|
|
168
|
-
const confirmationMessage = `Are you sure you want to claim withdrawal requests ${requestIds.join(', ')} to ${receiver}?`;
|
|
169
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
170
|
-
if (!confirm)
|
|
171
|
-
return;
|
|
172
|
-
await callWriteMethodWithReceipt({
|
|
173
|
-
contract,
|
|
174
|
-
methodName: 'claimWithdrawals',
|
|
175
|
-
payload: [requestIds, hints, receiver || account.address],
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
stvStrategyPoolWrite
|
|
179
|
-
.command('burn-stv-for-withdrawal-queue')
|
|
180
|
-
.description('burn stv from WithdrawalQueue contract when processing withdrawal requests')
|
|
181
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
182
|
-
.argument('<stv>', 'amount of stv to burn (27 decimals)', stringToBigInt)
|
|
183
|
-
.action(async (address, stv) => {
|
|
184
|
-
const contract = getStvStrategyPoolContract(address);
|
|
185
|
-
const confirmationMessage = `Are you sure you want to burn ${stv} stv for the withdrawal queue ${address}?`;
|
|
186
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
187
|
-
if (!confirm)
|
|
188
|
-
return;
|
|
189
|
-
await callWriteMethodWithReceipt({
|
|
190
|
-
contract,
|
|
191
|
-
methodName: 'burnStvForWithdrawalQueue',
|
|
192
|
-
payload: [stv],
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
stvStrategyPoolWrite
|
|
196
|
-
.command('disconnect-vault')
|
|
197
|
-
.description('initiates voluntary vault disconnection from VaultHub')
|
|
198
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
199
|
-
.action(async (address) => {
|
|
200
|
-
const contract = getStvStrategyPoolContract(address);
|
|
201
|
-
const confirmationMessage = `Are you sure you want to disconnect the vault ${address}?`;
|
|
202
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
203
|
-
if (!confirm)
|
|
204
|
-
return;
|
|
205
|
-
await callWriteMethodWithReceipt({
|
|
206
|
-
contract,
|
|
207
|
-
methodName: 'disconnectVault',
|
|
208
|
-
payload: [],
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
stvStrategyPoolWrite
|
|
212
|
-
.command('claim-connect-deposit')
|
|
213
|
-
.description('claims the connect deposit after vault has been disconnected')
|
|
214
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
215
|
-
.option('-r, --receiver <receiver>', 'the address to receive the claimed ether, or address(0)', stringToAddress)
|
|
216
|
-
.action(async (address, { receiver }) => {
|
|
217
|
-
const contract = getStvStrategyPoolContract(address);
|
|
218
|
-
const account = await getAccount();
|
|
219
|
-
const confirmationMessage = `Are you sure you want to claim the connect deposit for the vault ${address} to ${receiver}?`;
|
|
220
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
221
|
-
if (!confirm)
|
|
222
|
-
return;
|
|
223
|
-
await callWriteMethodWithReceipt({
|
|
224
|
-
contract,
|
|
225
|
-
methodName: 'claimConnectDeposit',
|
|
226
|
-
payload: [receiver || account.address],
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
stvStrategyPoolWrite
|
|
230
|
-
.command('trigger-validator-withdrawals')
|
|
231
|
-
.description('triggers validator withdrawals')
|
|
232
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
233
|
-
.argument('<pubkeys>', 'validator public keys', stringToHexArray)
|
|
234
|
-
.argument('<amounts>', 'amounts to withdraw (in ETH)', stringToBigIntArray)
|
|
235
|
-
.argument('<refundRecipient>', 'refund recipient address', stringToAddress)
|
|
236
|
-
.action(async (address, pubkeys, amounts, refundRecipient) => {
|
|
237
|
-
const contract = getStvStrategyPoolContract(address);
|
|
238
|
-
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}?`;
|
|
239
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
240
|
-
if (!confirm)
|
|
241
|
-
return;
|
|
242
|
-
await callWriteMethodWithReceipt({
|
|
243
|
-
contract,
|
|
244
|
-
methodName: 'triggerValidatorWithdrawals',
|
|
245
|
-
payload: [pubkeys.join(''), amounts, refundRecipient],
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
stvStrategyPoolWrite
|
|
249
|
-
.command('request-validator-exit')
|
|
250
|
-
.description('requests validator exit')
|
|
251
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
252
|
-
.argument('<pubkeys>', 'validator public keys', stringToHexArray)
|
|
253
|
-
.action(async (address, pubkeys) => {
|
|
254
|
-
const contract = getStvStrategyPoolContract(address);
|
|
255
|
-
const confirmationMessage = `Are you sure you want to request validator exit for the vault ${address} with pubkeys ${pubkeys.join(', ')}?`;
|
|
256
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
257
|
-
if (!confirm)
|
|
258
|
-
return;
|
|
259
|
-
await callWriteMethodWithReceipt({
|
|
260
|
-
contract,
|
|
261
|
-
methodName: 'requestValidatorExit',
|
|
262
|
-
payload: [pubkeys.join('')],
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
stvStrategyPoolWrite
|
|
266
|
-
.command('add-to-allow-list')
|
|
267
|
-
.description('add an address to the allowlist')
|
|
268
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
269
|
-
.argument('<user>', 'address to add to the allowlist', stringToAddress)
|
|
270
|
-
.action(async (address, user) => {
|
|
271
|
-
const contract = getStvStrategyPoolContract(address);
|
|
272
|
-
const confirmationMessage = `Are you sure you want to add ${user} to the allowlist for the vault ${address}?`;
|
|
273
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
274
|
-
if (!confirm)
|
|
275
|
-
return;
|
|
276
|
-
await callWriteMethodWithReceipt({
|
|
277
|
-
contract,
|
|
278
|
-
methodName: 'addToAllowList',
|
|
279
|
-
payload: [user],
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
stvStrategyPoolWrite
|
|
283
|
-
.command('remove-from-allow-list')
|
|
284
|
-
.description('remove an address from the allowlist')
|
|
285
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
286
|
-
.argument('<user>', 'address to remove from the allowlist', stringToAddress)
|
|
287
|
-
.action(async (address, user) => {
|
|
288
|
-
const contract = getStvStrategyPoolContract(address);
|
|
289
|
-
const confirmationMessage = `Are you sure you want to remove ${user} from the allowlist for the vault ${address}?`;
|
|
290
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
291
|
-
if (!confirm)
|
|
292
|
-
return;
|
|
293
|
-
await callWriteMethodWithReceipt({
|
|
294
|
-
contract,
|
|
295
|
-
methodName: 'removeFromAllowList',
|
|
296
|
-
payload: [user],
|
|
297
|
-
});
|
|
298
|
-
});
|
|
299
|
-
stvStrategyPoolWrite
|
|
300
|
-
.command('mint-steth-shares')
|
|
301
|
-
.description("mint stETH shares up to the user's minting capacity")
|
|
302
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
303
|
-
.argument('<stethShares>', 'the amount of stETH shares to mint', stringToBigInt)
|
|
304
|
-
.action(async (address, stethShares) => {
|
|
305
|
-
const contract = getStvStrategyPoolContract(address);
|
|
306
|
-
const confirmationMessage = `Are you sure you want to mint stETH shares up to the user's minting capacity for the vault ${address}? (stethShares: ${stethShares})`;
|
|
307
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
308
|
-
if (!confirm)
|
|
309
|
-
return;
|
|
310
|
-
await callWriteMethodWithReceipt({
|
|
311
|
-
contract,
|
|
312
|
-
methodName: 'mintStethShares',
|
|
313
|
-
payload: [stethShares],
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
stvStrategyPoolWrite
|
|
317
|
-
.command('burn-steth-shares')
|
|
318
|
-
.description("burn stETH shares to reduce the user's minted stETH obligation")
|
|
319
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
320
|
-
.argument('<stethShares>', 'the amount of stETH shares to burn', stringToBigInt)
|
|
321
|
-
.action(async (address, stethShares) => {
|
|
322
|
-
const contract = getStvStrategyPoolContract(address);
|
|
323
|
-
const confirmationMessage = `Are you sure you want to burn stETH shares to reduce the user's minted stETH obligation for the vault ${address}? (stethShares: ${stethShares})`;
|
|
324
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
325
|
-
if (!confirm)
|
|
326
|
-
return;
|
|
327
|
-
await callWriteMethodWithReceipt({
|
|
328
|
-
contract,
|
|
329
|
-
methodName: 'burnStethShares',
|
|
330
|
-
payload: [stethShares],
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
stvStrategyPoolWrite
|
|
334
|
-
.command('rebalance-minted-steth-shares')
|
|
335
|
-
.description("rebalance the user's minted stETH shares by burning stv")
|
|
336
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
337
|
-
.argument('<stethShares>', 'the amount of stETH shares to rebalance', stringToBigInt)
|
|
338
|
-
.argument('<maxStvToBurn>', 'the maximum amount of stv to burn for rebalancing', stringToBigInt)
|
|
339
|
-
.action(async (address, stethShares, maxStvToBurn) => {
|
|
340
|
-
const contract = getStvStrategyPoolContract(address);
|
|
341
|
-
const confirmationMessage = `Are you sure you want to rebalance the user's minted stETH shares by burning stv for the vault ${address}? (stethShares: ${stethShares}, maxStvToBurn: ${maxStvToBurn})`;
|
|
342
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
343
|
-
if (!confirm)
|
|
344
|
-
return;
|
|
345
|
-
await callWriteMethodWithReceipt({
|
|
346
|
-
contract,
|
|
347
|
-
methodName: 'rebalanceMintedStethShares',
|
|
348
|
-
payload: [stethShares, maxStvToBurn],
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
stvStrategyPoolWrite
|
|
352
|
-
.command('transfer-with-liability')
|
|
353
|
-
.description('transfer stETH shares with liability to another address')
|
|
354
|
-
.argument('<address>', 'distributor address', stringToAddress)
|
|
355
|
-
.argument('<to>', 'the address to transfer to', stringToAddress)
|
|
356
|
-
.argument('<stv>', 'the amount of stv to transfer', stringToBigInt)
|
|
357
|
-
.argument('<stethShares>', 'the amount of stETH shares liability to transfer', stringToBigInt)
|
|
358
|
-
.action(async (address, to, stv, stethShares) => {
|
|
359
|
-
const contract = getStvStrategyPoolContract(address);
|
|
360
|
-
const confirmationMessage = `Are you sure you want to transfer ${stv} stv and ${stethShares} stETH shares liability to ${to} for the vault ${address}?`;
|
|
361
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
362
|
-
if (!confirm)
|
|
363
|
-
return;
|
|
364
|
-
await callWriteMethodWithReceipt({
|
|
365
|
-
contract,
|
|
366
|
-
methodName: 'transferWithLiability',
|
|
367
|
-
payload: [to, stv, stethShares],
|
|
368
|
-
});
|
|
369
|
-
});
|
|
370
|
-
//# sourceMappingURL=write.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-strategy-pool/write.ts"],"names":[],"mappings":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E,EAAE,GAAG,EAAE,WAAW,CAAC;KAChC,CAAC,CAAC;AACL,CAAC,CACF,CAAC"}
|
/package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/index.js
RENAMED
|
File without changes
|
/package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/read.d.ts
RENAMED
|
File without changes
|
/package/dist/programs/defi-wrapper/{contracts/stv-strategy-pool → use-cases/health}/write.d.ts
RENAMED
|
File without changes
|