@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,8 +1,9 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { logInfo,
|
|
2
|
+
import { logInfo, logError, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToNumber, stringToBoolean, } from '../../../../utils/index.js';
|
|
3
3
|
import { getFactoryContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { getCreatePoolEventData, getReserveRatioGapBP, getBoolean, promtBaseVaultConfiguration, logCreatePoolEventData, finalizePoolCreation, prepareCreationConfigrationText, } from '../../../../features/index.js';
|
|
5
5
|
import { factory } from './main.js';
|
|
6
|
+
const FIRST_STEP_MESSAGE = 'Transaction has been sent. Use "dw use-cases wrapper-operations write create-pool-finalize" command to finalize the pool creation after the transaction is signed and executed';
|
|
6
7
|
const factoryWrite = factory
|
|
7
8
|
.command('write')
|
|
8
9
|
.alias('w')
|
|
@@ -12,316 +13,130 @@ factoryWrite.on('option:-cmd2json', function () {
|
|
|
12
13
|
logInfo(getCommandsJson(factoryWrite));
|
|
13
14
|
process.exit();
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
reserveRatioGapBP: ${reserveRatioGapBP}
|
|
43
|
-
timelockExecutor: ${timelockExecutor}\n`;
|
|
16
|
+
// adds common options for all wrapper creation commands
|
|
17
|
+
const applyCommonOptions = (command) => {
|
|
18
|
+
return command
|
|
19
|
+
.option('-no, --nodeOperator <nodeOperator>', 'node operator address')
|
|
20
|
+
.option('-nom, --nodeOperatorManager <nodeOperatorManager>', 'node operator manager address')
|
|
21
|
+
.option('-nof, --nodeOperatorFeeRate <nodeOperatorFeeRate>', 'Node operator fee rate in basis points, for e.g. 100 == 1%', stringToNumber)
|
|
22
|
+
.option('-ce, --confirmExpiry <confirmExpiry>', 'confirm expiry in seconds', stringToNumber)
|
|
23
|
+
.option('-md, --minDelaySeconds <minDelaySeconds>', 'minimum delay in seconds', stringToNumber)
|
|
24
|
+
.option('-mwd, --minWithdrawalDelayTime <minWithdrawalDelayTime>', 'minimum withdrawal delay time in seconds', stringToNumber)
|
|
25
|
+
.option('-n, --name <name>', 'name of the pool shares')
|
|
26
|
+
.option('-s, --symbol <symbol>', 'symbol of the pool shares')
|
|
27
|
+
.option('-p, --proposer <proposer>', 'proposer address', stringToAddress)
|
|
28
|
+
.option('-e, --executor <executor>', 'executor address', stringToAddress)
|
|
29
|
+
.option('-ec, --emergencyCommittee <emergencyCommittee>', 'emergency committee address', stringToAddress);
|
|
30
|
+
};
|
|
31
|
+
applyCommonOptions(factoryWrite
|
|
32
|
+
.command('create-pool-ggv')
|
|
33
|
+
.description('initiates deployment of a GGV strategy pool')
|
|
34
|
+
.argument('<address>', 'factory address', stringToAddress))
|
|
35
|
+
.option('-rrg, --reserveRatioGapBP <reserveRatioGapBP>', 'reserve ratio gap in basis points', stringToNumber)
|
|
36
|
+
.action(async (address, { reserveRatioGapBP, ...baseOptions }) => {
|
|
37
|
+
const contract = await getFactoryContract(address);
|
|
38
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promtBaseVaultConfiguration(baseOptions);
|
|
39
|
+
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
40
|
+
const confirmationMessage = `Are you sure you want to create a new GGV strategy pool with a configured wrapper?\n
|
|
41
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
42
|
+
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
44
43
|
const confirm = await confirmOperation(confirmationMessage);
|
|
45
44
|
if (!confirm)
|
|
46
45
|
return;
|
|
47
46
|
const result = await callWriteMethodWithReceipt({
|
|
48
47
|
contract,
|
|
49
|
-
methodName: '
|
|
48
|
+
methodName: 'createPoolGGVStart',
|
|
50
49
|
payload: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
maxFinalizationTime,
|
|
56
|
-
minWithdrawalDelayTime,
|
|
57
|
-
configuration,
|
|
58
|
-
strategy,
|
|
59
|
-
allowlistEnabled,
|
|
60
|
-
reserveRatioGapBP,
|
|
61
|
-
timelockExecutor,
|
|
50
|
+
vaultConfig,
|
|
51
|
+
timelockConfig,
|
|
52
|
+
commonPoolConfig,
|
|
53
|
+
BigInt(reserveRatioGapBPValue),
|
|
62
54
|
],
|
|
63
55
|
});
|
|
64
56
|
if (!result.receipt || !result.tx) {
|
|
65
|
-
logInfo(
|
|
57
|
+
logInfo(FIRST_STEP_MESSAGE);
|
|
66
58
|
return;
|
|
67
59
|
}
|
|
68
|
-
const eventData = await
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
['Vault Address', eventData.vault],
|
|
72
|
-
['Pool Address', eventData.pool],
|
|
73
|
-
['Withdrawal Queue Address', eventData.withdrawalQueue],
|
|
74
|
-
['Strategy Address', eventData.strategy],
|
|
75
|
-
['Configuration', eventData.configuration],
|
|
76
|
-
['Transaction Hash', result.tx],
|
|
77
|
-
['Block Number', eventData.blockNumber],
|
|
78
|
-
],
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
factoryWrite
|
|
82
|
-
.command('create-vault-with-no-minting-no-strategy')
|
|
83
|
-
.description('create a new vault with no minting no strategy')
|
|
84
|
-
.argument('<address>', 'factory address', stringToAddress)
|
|
85
|
-
.argument('<nodeOperator>', 'node operator address', stringToAddress)
|
|
86
|
-
.argument('<nodeOperatorManager>', 'node operator manager address', stringToAddress)
|
|
87
|
-
.argument('<nodeOperatorFeeBP>', 'node operator fee basis points', stringToBigInt)
|
|
88
|
-
.argument('<confirmExpiry>', 'confirm expiry', stringToBigInt)
|
|
89
|
-
.argument('<maxFinalizationTime>', 'max finalization time', stringToBigInt)
|
|
90
|
-
.argument('<minWithdrawalDelayTime>', 'min withdrawal delay time', stringToBigInt)
|
|
91
|
-
.argument('<allowlistEnabled>', 'allowlist enabled', Boolean)
|
|
92
|
-
.option('-te, --timelockExecutor', 'timelockExecutor', stringToAddress)
|
|
93
|
-
.action(async (address, nodeOperator, nodeOperatorManager, nodeOperatorFeeBP, confirmExpiry, maxFinalizationTime, minWithdrawalDelayTime, allowlistEnabled, { timelockExecutor }) => {
|
|
94
|
-
const contract = getFactoryContract(address);
|
|
95
|
-
const confirmationMessage = `Are you sure you want to create a new vault with no minting no strategy?\n
|
|
96
|
-
nodeOperator: ${nodeOperator}
|
|
97
|
-
nodeOperatorManager: ${nodeOperatorManager}
|
|
98
|
-
nodeOperatorFeeBP: ${nodeOperatorFeeBP}
|
|
99
|
-
confirmExpiry: ${confirmExpiry}
|
|
100
|
-
maxFinalizationTime: ${maxFinalizationTime}
|
|
101
|
-
minWithdrawalDelayTime: ${minWithdrawalDelayTime}
|
|
102
|
-
allowlistEnabled: ${allowlistEnabled}
|
|
103
|
-
timelockExecutor: ${timelockExecutor ?? 'undefined'}\n`;
|
|
104
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
105
|
-
if (!confirm)
|
|
106
|
-
return;
|
|
107
|
-
const result = await callWriteMethodWithReceipt({
|
|
108
|
-
contract,
|
|
109
|
-
methodName: 'createVaultWithNoMintingNoStrategy',
|
|
110
|
-
payload: [
|
|
111
|
-
nodeOperator,
|
|
112
|
-
nodeOperatorManager,
|
|
113
|
-
nodeOperatorFeeBP,
|
|
114
|
-
confirmExpiry,
|
|
115
|
-
maxFinalizationTime,
|
|
116
|
-
minWithdrawalDelayTime,
|
|
117
|
-
allowlistEnabled,
|
|
118
|
-
timelockExecutor ?? undefined,
|
|
119
|
-
],
|
|
120
|
-
});
|
|
121
|
-
if (!result.receipt || !result.tx) {
|
|
122
|
-
logInfo('Transaction has been sent');
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const eventData = await getCreateVaultEventData(result.receipt, result.tx);
|
|
126
|
-
logResult({
|
|
127
|
-
data: [
|
|
128
|
-
['Vault Address', eventData.vault],
|
|
129
|
-
['Pool Address', eventData.pool],
|
|
130
|
-
['Withdrawal Queue Address', eventData.withdrawalQueue],
|
|
131
|
-
['Strategy Address', eventData.strategy],
|
|
132
|
-
['Configuration', eventData.configuration],
|
|
133
|
-
['Transaction Hash', result.tx],
|
|
134
|
-
['Block Number', eventData.blockNumber],
|
|
135
|
-
],
|
|
136
|
-
});
|
|
60
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
61
|
+
await logCreatePoolEventData(eventData);
|
|
62
|
+
await finalizePoolCreation(contract, eventData);
|
|
137
63
|
});
|
|
138
|
-
factoryWrite
|
|
139
|
-
.command('create-
|
|
140
|
-
.description('
|
|
141
|
-
.argument('<address>', 'factory address', stringToAddress)
|
|
142
|
-
.
|
|
143
|
-
.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.option('-te, --timelockExecutor', 'timelockExecutor', stringToAddress)
|
|
151
|
-
.action(async (address, nodeOperator, nodeOperatorManager, nodeOperatorFeeBP, confirmExpiry, maxFinalizationTime, minWithdrawalDelayTime, allowlistEnabled, reserveRatioGapBP, { timelockExecutor }) => {
|
|
152
|
-
const contract = getFactoryContract(address);
|
|
153
|
-
const confirmationMessage = `Are you sure you want to create a new vault with minting no strategy?\n
|
|
154
|
-
nodeOperator: ${nodeOperator}
|
|
155
|
-
nodeOperatorManager: ${nodeOperatorManager}
|
|
156
|
-
nodeOperatorFeeBP: ${nodeOperatorFeeBP}
|
|
157
|
-
confirmExpiry: ${confirmExpiry}
|
|
158
|
-
maxFinalizationTime: ${maxFinalizationTime}
|
|
159
|
-
minWithdrawalDelayTime: ${minWithdrawalDelayTime}
|
|
160
|
-
allowlistEnabled: ${allowlistEnabled}
|
|
161
|
-
reserveRatioGapBP: ${reserveRatioGapBP}
|
|
162
|
-
timelockExecutor: ${timelockExecutor ?? 'undefined'}\n`;
|
|
64
|
+
applyCommonOptions(factoryWrite
|
|
65
|
+
.command('create-pool-stv')
|
|
66
|
+
.description('initiates deployment of a STV staking pool')
|
|
67
|
+
.argument('<address>', 'factory address', stringToAddress))
|
|
68
|
+
.option('-al, --allowList <allowListEnabled>', 'is allowlist enabled (true/false)', stringToBoolean)
|
|
69
|
+
.action(async (address, { allowListEnabled, ...baseOptions }) => {
|
|
70
|
+
const contract = await getFactoryContract(address);
|
|
71
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promtBaseVaultConfiguration(baseOptions);
|
|
72
|
+
const allowListEnabledValue = await getBoolean(allowListEnabled, 'AllowList');
|
|
73
|
+
const confirmationMessage = `Are you sure you want to create a new STV pool with a configured wrapper?\n
|
|
74
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
75
|
+
allowListEnabled: ${allowListEnabledValue}\n`;
|
|
163
76
|
const confirm = await confirmOperation(confirmationMessage);
|
|
164
77
|
if (!confirm)
|
|
165
78
|
return;
|
|
166
79
|
const result = await callWriteMethodWithReceipt({
|
|
167
80
|
contract,
|
|
168
|
-
methodName: '
|
|
81
|
+
methodName: 'createPoolStvStart',
|
|
169
82
|
payload: [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
maxFinalizationTime,
|
|
175
|
-
minWithdrawalDelayTime,
|
|
176
|
-
allowlistEnabled,
|
|
177
|
-
reserveRatioGapBP,
|
|
178
|
-
timelockExecutor ?? undefined,
|
|
83
|
+
vaultConfig,
|
|
84
|
+
timelockConfig,
|
|
85
|
+
commonPoolConfig,
|
|
86
|
+
allowListEnabledValue,
|
|
179
87
|
],
|
|
180
88
|
});
|
|
181
89
|
if (!result.receipt || !result.tx) {
|
|
182
|
-
logInfo(
|
|
90
|
+
logInfo(FIRST_STEP_MESSAGE);
|
|
183
91
|
return;
|
|
184
92
|
}
|
|
185
|
-
const eventData = await
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
['Configuration', eventData.configuration],
|
|
193
|
-
['Transaction Hash', result.tx],
|
|
194
|
-
['Block Number', eventData.blockNumber],
|
|
195
|
-
],
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
factoryWrite
|
|
199
|
-
.command('create-vault-with-loop-strategy')
|
|
200
|
-
.description('create a new vault with loop strategy')
|
|
201
|
-
.argument('<address>', 'factory address', stringToAddress)
|
|
202
|
-
.argument('<nodeOperator>', 'node operator address', stringToAddress)
|
|
203
|
-
.argument('<nodeOperatorManager>', 'node operator manager address', stringToAddress)
|
|
204
|
-
.argument('<nodeOperatorFeeBP>', 'node operator fee basis points', stringToBigInt)
|
|
205
|
-
.argument('<confirmExpiry>', 'confirm expiry', stringToBigInt)
|
|
206
|
-
.argument('<maxFinalizationTime>', 'max finalization time', stringToBigInt)
|
|
207
|
-
.argument('<minWithdrawalDelayTime>', 'min withdrawal delay time', stringToBigInt)
|
|
208
|
-
.argument('<allowlistEnabled>', 'allowlist enabled', Boolean)
|
|
209
|
-
.argument('<reserveRatioGapBP>', 'reserve ratio gap basis points', stringToBigInt)
|
|
210
|
-
.argument('<loops>', 'loops', stringToBigInt)
|
|
211
|
-
.option('-te, --timelockExecutor', 'timelockExecutor', stringToAddress)
|
|
212
|
-
.action(async (address, nodeOperator, nodeOperatorManager, nodeOperatorFeeBP, confirmExpiry, maxFinalizationTime, minWithdrawalDelayTime, allowlistEnabled, reserveRatioGapBP, loops, { timelockExecutor }) => {
|
|
213
|
-
const contract = getFactoryContract(address);
|
|
214
|
-
const confirmationMessage = `Are you sure you want to create a new vault with loop strategy?\n
|
|
215
|
-
nodeOperator: ${nodeOperator}
|
|
216
|
-
nodeOperatorManager: ${nodeOperatorManager}
|
|
217
|
-
nodeOperatorFeeBP: ${nodeOperatorFeeBP}
|
|
218
|
-
confirmExpiry: ${confirmExpiry}
|
|
219
|
-
maxFinalizationTime: ${maxFinalizationTime}
|
|
220
|
-
minWithdrawalDelayTime: ${minWithdrawalDelayTime}
|
|
221
|
-
allowlistEnabled: ${allowlistEnabled}
|
|
222
|
-
reserveRatioGapBP: ${reserveRatioGapBP}
|
|
223
|
-
loops: ${loops}
|
|
224
|
-
timelockExecutor: ${timelockExecutor ?? 'undefined'}\n`;
|
|
225
|
-
const confirm = await confirmOperation(confirmationMessage);
|
|
226
|
-
if (!confirm)
|
|
227
|
-
return;
|
|
228
|
-
const result = await callWriteMethodWithReceipt({
|
|
229
|
-
contract,
|
|
230
|
-
methodName: 'createVaultWithLoopStrategy',
|
|
231
|
-
payload: [
|
|
232
|
-
nodeOperator,
|
|
233
|
-
nodeOperatorManager,
|
|
234
|
-
nodeOperatorFeeBP,
|
|
235
|
-
confirmExpiry,
|
|
236
|
-
maxFinalizationTime,
|
|
237
|
-
minWithdrawalDelayTime,
|
|
238
|
-
allowlistEnabled,
|
|
239
|
-
reserveRatioGapBP,
|
|
240
|
-
loops,
|
|
241
|
-
timelockExecutor ?? undefined,
|
|
242
|
-
],
|
|
243
|
-
});
|
|
244
|
-
if (!result.receipt || !result.tx) {
|
|
245
|
-
logInfo('Transaction has been sent');
|
|
93
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
94
|
+
await logCreatePoolEventData(eventData);
|
|
95
|
+
if (!eventData.auxiliaryConfig ||
|
|
96
|
+
!eventData.strategyFactory ||
|
|
97
|
+
!eventData.strategyDeployBytes ||
|
|
98
|
+
!eventData.intermediate) {
|
|
99
|
+
logError('Missing required data for pool creation finalize');
|
|
246
100
|
return;
|
|
247
101
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
data: [
|
|
251
|
-
['Vault Address', eventData.vault],
|
|
252
|
-
['Pool Address', eventData.pool],
|
|
253
|
-
['Withdrawal Queue Address', eventData.withdrawalQueue],
|
|
254
|
-
['Strategy Address', eventData.strategy],
|
|
255
|
-
['Configuration', eventData.configuration],
|
|
256
|
-
['Transaction Hash', result.tx],
|
|
257
|
-
['Block Number', eventData.blockNumber],
|
|
258
|
-
],
|
|
259
|
-
});
|
|
102
|
+
logInfo('Pool Creation Finalize');
|
|
103
|
+
await finalizePoolCreation(contract, eventData);
|
|
260
104
|
});
|
|
261
|
-
factoryWrite
|
|
262
|
-
.command('create-
|
|
263
|
-
.description('
|
|
264
|
-
.argument('<address>', 'factory address', stringToAddress)
|
|
265
|
-
.
|
|
266
|
-
.
|
|
267
|
-
.
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
.action(async (address, nodeOperator, nodeOperatorManager, nodeOperatorFeeBP, confirmExpiry, maxFinalizationTime, minWithdrawalDelayTime, allowlistEnabled, reserveRatioGapBP, teller, boringQueue, { timelockExecutor }) => {
|
|
277
|
-
const contract = getFactoryContract(address);
|
|
278
|
-
const confirmationMessage = `Are you sure you want to create a new vault with ggv strategy?\n
|
|
279
|
-
nodeOperator: ${nodeOperator}
|
|
280
|
-
nodeOperatorManager: ${nodeOperatorManager}
|
|
281
|
-
nodeOperatorFeeBP: ${nodeOperatorFeeBP}
|
|
282
|
-
confirmExpiry: ${confirmExpiry}
|
|
283
|
-
maxFinalizationTime: ${maxFinalizationTime}
|
|
284
|
-
minWithdrawalDelayTime: ${minWithdrawalDelayTime}
|
|
285
|
-
allowlistEnabled: ${allowlistEnabled}
|
|
286
|
-
reserveRatioGapBP: ${reserveRatioGapBP}
|
|
287
|
-
teller: ${teller}
|
|
288
|
-
boringQueue: ${boringQueue}
|
|
289
|
-
timelockExecutor: ${timelockExecutor ?? 'undefined'}\n`;
|
|
105
|
+
applyCommonOptions(factoryWrite
|
|
106
|
+
.command('create-pool-stv-steth')
|
|
107
|
+
.description('initiates deployment of a STV-STETH pool with minting enabled')
|
|
108
|
+
.argument('<address>', 'factory address', stringToAddress))
|
|
109
|
+
.option('-rrg, --reserveRatioGapBP <reserveRatioGapBP>', 'reserve ratio gap in basis points', stringToNumber)
|
|
110
|
+
.option('-al, --allowList <allowListEnabled>', 'is allowlist enabled (true/false)', stringToBoolean)
|
|
111
|
+
.action(async (address, { reserveRatioGapBP, allowListEnabled, ...baseOptions }) => {
|
|
112
|
+
const contract = await getFactoryContract(address);
|
|
113
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promtBaseVaultConfiguration(baseOptions);
|
|
114
|
+
const allowListEnabledValue = await getBoolean(allowListEnabled, 'AllowList');
|
|
115
|
+
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
116
|
+
const confirmationMessage = `Are you sure you want to create a new STV-STETH pool with minting enabled?\n
|
|
117
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
118
|
+
allowListEnabled: ${allowListEnabledValue}
|
|
119
|
+
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
290
120
|
const confirm = await confirmOperation(confirmationMessage);
|
|
291
121
|
if (!confirm)
|
|
292
122
|
return;
|
|
293
123
|
const result = await callWriteMethodWithReceipt({
|
|
294
124
|
contract,
|
|
295
|
-
methodName: '
|
|
125
|
+
methodName: 'createPoolStvStETHStart',
|
|
296
126
|
payload: [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
minWithdrawalDelayTime,
|
|
303
|
-
allowlistEnabled,
|
|
304
|
-
reserveRatioGapBP,
|
|
305
|
-
teller,
|
|
306
|
-
boringQueue,
|
|
307
|
-
timelockExecutor ?? undefined,
|
|
127
|
+
vaultConfig,
|
|
128
|
+
timelockConfig,
|
|
129
|
+
commonPoolConfig,
|
|
130
|
+
allowListEnabledValue,
|
|
131
|
+
BigInt(reserveRatioGapBPValue),
|
|
308
132
|
],
|
|
309
133
|
});
|
|
310
134
|
if (!result.receipt || !result.tx) {
|
|
311
|
-
logInfo(
|
|
135
|
+
logInfo(FIRST_STEP_MESSAGE);
|
|
312
136
|
return;
|
|
313
137
|
}
|
|
314
|
-
const eventData = await
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
['Vault Address', eventData.vault],
|
|
318
|
-
['Pool Address', eventData.pool],
|
|
319
|
-
['Withdrawal Queue Address', eventData.withdrawalQueue],
|
|
320
|
-
['Strategy Address', eventData.strategy],
|
|
321
|
-
['Configuration', eventData.configuration],
|
|
322
|
-
['Transaction Hash', result.tx],
|
|
323
|
-
['Block Number', eventData.blockNumber],
|
|
324
|
-
],
|
|
325
|
-
});
|
|
138
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
139
|
+
await logCreatePoolEventData(eventData);
|
|
140
|
+
await finalizePoolCreation(contract, eventData);
|
|
326
141
|
});
|
|
327
142
|
//# sourceMappingURL=write.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,SAAS,EACT,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,cAAc,GACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,YAAY,GAAG,OAAO;KACzB,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,gBAAgB,CAAC,CAAC;AAEjC,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,sCAAsC,CAAC;KAC/C,WAAW,CAAC,8CAA8C,CAAC;KAC3D,QAAQ,CAAC,WAAW,EAAE,iBAAiB,EAAE,eAAe,CAAC;KACzD,QAAQ,CAAC,gBAAgB,EAAE,uBAAuB,EAAE,eAAe,CAAC;KACpE,QAAQ,CACP,uBAAuB,EACvB,+BAA+B,EAC/B,eAAe,CAChB;KACA,QAAQ,CACP,qBAAqB,E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;YACP,YAAY;YACZ,mBAAmB;YACnB,iBAAiB;YACjB,aAAa;YACb,mBAAmB;YACnB,sBAAsB;YACtB,gBAAgB;YAChB,iBAAiB;YACjB,MAAM;YACN,WAAW;YACX,gBAAgB,IAAI,SAAS;SAC9B;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QAClC,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACrC,OAAO;IACT,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,uBAAuB,CAC7C,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,EAAE,CACV,CAAC;IAEF,SAAS,CAAC;QACR,IAAI,EAAE;YACJ,CAAC,eAAe,EAAE,SAAS,CAAC,KAAK,CAAC;YAClC,CAAC,cAAc,EAAE,SAAS,CAAC,IAAI,CAAC;YAChC,CAAC,0BAA0B,EAAE,SAAS,CAAC,eAAe,CAAC;YACvD,CAAC,kBAAkB,EAAE,SAAS,CAAC,QAAQ,CAAC;YACxC,CAAC,eAAe,EAAE,SAAS,CAAC,aAAa,CAAC;YAC1C,CAAC,kBAAkB,EAAE,MAAM,CAAC,EAAE,CAAC;YAC/B,CAAC,cAAc,EAAE,SAAS,CAAC,WAAW,CAAC;SACxC;KACF,CAAC,CAAC;AACL,CAAC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/write.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EACL,OAAO,EACP,QAAQ,EACR,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,2BA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B,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC;QAC9C,QAAQ;QACR,UAAU,EAAE,yBAAyB;QACrC,OAAO,EAAE;YACP,WAAW;YACX,cAAc;YACd,gBAAgB;YAChB,qBAAqB;YACrB,MAAM,CAAC,sBAAsB,CAAC;SAC/B;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QAClC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAC5B,OAAO;IACT,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,sBAAsB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAE1E,MAAM,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAExC,MAAM,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC,CACF,CAAC"}
|
|
@@ -3,6 +3,5 @@ export * from './distributor/index.js';
|
|
|
3
3
|
export * from './withdrawal-queue/index.js';
|
|
4
4
|
export * from './stv-pool/index.js';
|
|
5
5
|
export * from './stv-steth-pool/index.js';
|
|
6
|
-
export * from './stv-strategy-pool/index.js';
|
|
7
6
|
export * from './factory/index.js';
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../programs/defi-wrapper/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../programs/defi-wrapper/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,36 +1,15 @@
|
|
|
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
|
-
aliases: ['
|
|
5
|
+
aliases: ['tul-shares'],
|
|
32
6
|
description: 'get the total liability stETH shares that are not assigned to any users',
|
|
33
7
|
},
|
|
8
|
+
totalUnassignedLiabilitySteth: {
|
|
9
|
+
name: 'total-unassigned-liability-steth',
|
|
10
|
+
aliases: ['tul-steth'],
|
|
11
|
+
description: 'get the total unassigned liability in stETH',
|
|
12
|
+
},
|
|
34
13
|
totalAssets: {
|
|
35
14
|
name: 'total-assets',
|
|
36
15
|
aliases: ['ta'],
|
|
@@ -41,11 +20,6 @@ export const readCommandConfig = {
|
|
|
41
20
|
aliases: ['tls'],
|
|
42
21
|
description: 'get the total liability stETH shares issued to the vault',
|
|
43
22
|
},
|
|
44
|
-
totalExceedingMintedSteth: {
|
|
45
|
-
name: 'total-exceeding-minted-steth',
|
|
46
|
-
aliases: ['tems'],
|
|
47
|
-
description: "get the amount of minted stETH exceeding the Staking Vault's liability",
|
|
48
|
-
},
|
|
49
23
|
previewWithdraw: {
|
|
50
24
|
name: 'preview-withdraw',
|
|
51
25
|
description: 'get preview the amount of stv that would be burned for a given asset withdrawal',
|
|
@@ -79,5 +53,21 @@ export const readCommandConfig = {
|
|
|
79
53
|
},
|
|
80
54
|
},
|
|
81
55
|
},
|
|
56
|
+
totalNominalAssets: {
|
|
57
|
+
name: 'total-nominal-assets',
|
|
58
|
+
aliases: ['tna'],
|
|
59
|
+
description: 'get the total nominal assets managed by the pool',
|
|
60
|
+
},
|
|
61
|
+
isAllowListed: {
|
|
62
|
+
name: 'is-allow-listed',
|
|
63
|
+
description: 'get whether the address is allow listed',
|
|
64
|
+
arguments: {
|
|
65
|
+
_user: {
|
|
66
|
+
name: 'user',
|
|
67
|
+
description: 'the address to check',
|
|
68
|
+
modifier: stringToAddress,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
82
72
|
};
|
|
83
73
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAAgD;IAC5E,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,cA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