@lidofinance/lsv-cli 1.0.0-alpha.61 → 1.0.0-alpha.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/abi/AccessControlConfirmable.d.ts +4 -3
- package/dist/abi/AccessControlConfirmable.js +4 -2
- package/dist/abi/AccessControlConfirmable.js.map +1 -1
- package/dist/abi/Dashboard.d.ts +731 -437
- package/dist/abi/Dashboard.js +322 -302
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/LazyOracle.d.ts +319 -27
- package/dist/abi/LazyOracle.js +406 -27
- package/dist/abi/LazyOracle.js.map +1 -1
- package/dist/abi/LidoLocator.d.ts +28 -0
- package/dist/abi/LidoLocator.js +36 -0
- package/dist/abi/LidoLocator.js.map +1 -1
- package/dist/abi/OperatorGrid.d.ts +879 -100
- package/dist/abi/OperatorGrid.js +224 -2
- package/dist/abi/OperatorGrid.js.map +1 -1
- package/dist/abi/PredepositGuarantee.d.ts +210 -169
- package/dist/abi/PredepositGuarantee.js +192 -198
- package/dist/abi/PredepositGuarantee.js.map +1 -1
- package/dist/abi/StEth.d.ts +1 -1
- package/dist/abi/StEth.js +1 -1
- package/dist/abi/StEth.js.map +1 -1
- package/dist/abi/StakingVault.d.ts +241 -41
- package/dist/abi/StakingVault.js +206 -43
- package/dist/abi/StakingVault.js.map +1 -1
- package/dist/abi/VaultFactory.d.ts +524 -72
- package/dist/abi/VaultFactory.js +42 -1
- package/dist/abi/VaultFactory.js.map +1 -1
- package/dist/abi/VaultHub.d.ts +439 -409
- package/dist/abi/VaultHub.js +363 -399
- package/dist/abi/VaultHub.js.map +1 -1
- package/dist/abi/VaultViewer.d.ts +204 -238
- package/dist/abi/VaultViewer.js +251 -299
- package/dist/abi/VaultViewer.js.map +1 -1
- package/dist/abi/defi-wrapper/Distributor.d.ts +486 -0
- package/dist/abi/defi-wrapper/Distributor.js +633 -0
- package/dist/abi/defi-wrapper/Distributor.js.map +1 -0
- package/dist/abi/defi-wrapper/Factory.d.ts +1184 -0
- package/dist/abi/defi-wrapper/Factory.js +932 -0
- package/dist/abi/defi-wrapper/Factory.js.map +1 -0
- package/dist/abi/defi-wrapper/StvPool.d.ts +1079 -0
- package/dist/abi/defi-wrapper/StvPool.js +1410 -0
- package/dist/abi/defi-wrapper/StvPool.js.map +1 -0
- package/dist/abi/defi-wrapper/StvStETHPool.d.ts +1772 -0
- package/dist/abi/defi-wrapper/StvStETHPool.js +2316 -0
- package/dist/abi/defi-wrapper/StvStETHPool.js.map +1 -0
- package/dist/abi/defi-wrapper/WithdrawalQueue.d.ts +1265 -0
- package/dist/abi/defi-wrapper/WithdrawalQueue.js +1647 -0
- package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -0
- package/dist/abi/defi-wrapper/index.d.ts +5 -0
- package/dist/abi/defi-wrapper/index.js +6 -0
- package/dist/abi/defi-wrapper/index.js.map +1 -0
- package/dist/abi/index.d.ts +0 -2
- package/dist/abi/index.js +0 -2
- package/dist/abi/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 +48 -6
- package/dist/configs/deployed.js.map +1 -1
- package/dist/configs/utils.d.ts +1 -0
- package/dist/configs/utils.js +4 -0
- package/dist/configs/utils.js.map +1 -1
- package/dist/contracts/dashboard-impl.d.ts +4 -0
- package/dist/contracts/dashboard-impl.js +17 -0
- package/dist/contracts/dashboard-impl.js.map +1 -0
- 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 +4 -0
- package/dist/contracts/defi-wrapper/distributor.js +12 -0
- package/dist/contracts/defi-wrapper/distributor.js.map +1 -0
- package/dist/contracts/defi-wrapper/factory.d.ts +4 -0
- package/dist/contracts/defi-wrapper/factory.js +12 -0
- package/dist/contracts/defi-wrapper/factory.js.map +1 -0
- package/dist/contracts/defi-wrapper/index.d.ts +5 -0
- package/dist/contracts/defi-wrapper/index.js +6 -0
- package/dist/contracts/defi-wrapper/index.js.map +1 -0
- package/dist/contracts/defi-wrapper/stv-pool.d.ts +4 -0
- package/dist/contracts/defi-wrapper/stv-pool.js +12 -0
- package/dist/contracts/defi-wrapper/stv-pool.js.map +1 -0
- package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +4 -0
- package/dist/contracts/defi-wrapper/stv-steth-pool.js +12 -0
- package/dist/contracts/defi-wrapper/stv-steth-pool.js.map +1 -0
- package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +4 -0
- package/dist/contracts/defi-wrapper/withdrawal-queue.js +12 -0
- package/dist/contracts/defi-wrapper/withdrawal-queue.js.map +1 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +1 -1
- 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 -8239
- 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 +128 -128
- package/dist/contracts/steth.js +3 -2
- package/dist/contracts/steth.js.map +1 -1
- package/dist/contracts/vault-factory.d.ts +3 -16404
- 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 -11197
- 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/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 +112 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +228 -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.d.ts +2 -1
- package/dist/features/deposits/check-bls-deposits.js +11 -2
- package/dist/features/deposits/check-bls-deposits.js.map +1 -1
- package/dist/features/deposits/make-pdg-proof.d.ts +8 -0
- package/dist/features/deposits/make-pdg-proof.js +17 -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/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 +3 -0
- package/dist/features/index.js +3 -0
- package/dist/features/index.js.map +1 -1
- package/dist/features/lazy-oracle.d.ts +1 -0
- package/dist/features/lazy-oracle.js +42 -0
- package/dist/features/lazy-oracle.js.map +1 -0
- package/dist/features/mint-burn/allowance.js +1 -1
- package/dist/features/mint-burn/allowance.js.map +1 -1
- package/dist/features/pdg.d.ts +7 -0
- package/dist/features/pdg.js +5 -5
- package/dist/features/pdg.js.map +1 -1
- 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/quarantine.d.ts +2 -0
- package/dist/features/utils/quarantine.js +2 -0
- package/dist/features/utils/quarantine.js.map +1 -1
- package/dist/features/utils/report-fresh.js +17 -1
- package/dist/features/utils/report-fresh.js.map +1 -1
- package/dist/features/utils/settled-growth.d.ts +1 -0
- package/dist/features/utils/settled-growth.js +16 -0
- package/dist/features/utils/settled-growth.js.map +1 -0
- package/dist/features/vault-factory.d.ts +2 -2
- package/dist/features/vault-factory.js +8 -3
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/vault-hub.js +0 -4
- package/dist/features/vault-hub.js.map +1 -1
- package/dist/features/vault-operations/create-vault.d.ts +4 -2
- package/dist/features/vault-operations/create-vault.js +13 -5
- package/dist/features/vault-operations/create-vault.js.map +1 -1
- package/dist/features/vault-operations/dashboard-by-vault.d.ts +2 -1
- package/dist/features/vault-operations/dashboard-by-vault.js +6 -4
- package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
- package/dist/features/vault-operations/vault-health.js +2 -2
- package/dist/features/vault-operations/vault-health.js.map +1 -1
- package/dist/features/vault-operations/vault-info.js +32 -33
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +46 -39
- package/dist/features/vault-operations/vault-overview.js.map +1 -1
- package/dist/features/vault-operations/vault-roles.d.ts +2 -1
- package/dist/features/vault-operations/vault-roles.js +22 -23
- package/dist/features/vault-operations/vault-roles.js.map +1 -1
- package/dist/features/vault-operations/vaults-by-role.d.ts +5 -0
- package/dist/features/vault-operations/vaults-by-role.js +123 -36
- package/dist/features/vault-operations/vaults-by-role.js.map +1 -1
- package/dist/features/vault.js +8 -4
- package/dist/features/vault.js.map +1 -1
- package/dist/index.js +18 -6
- 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/config.js +49 -40
- package/dist/programs/contracts/dashboard/config.js.map +1 -1
- package/dist/programs/contracts/dashboard/read.js +44 -9
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +236 -127
- package/dist/programs/contracts/dashboard/write.js.map +1 -1
- package/dist/programs/contracts/hub/config.js +7 -27
- 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 +8 -70
- package/dist/programs/contracts/hub/write.js.map +1 -1
- package/dist/programs/contracts/lazy-oracle/config.js +38 -0
- package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
- package/dist/programs/contracts/lazy-oracle/read.js +7 -0
- package/dist/programs/contracts/lazy-oracle/read.js.map +1 -1
- package/dist/programs/contracts/operator-grid/config.js +21 -10
- package/dist/programs/contracts/operator-grid/config.js.map +1 -1
- package/dist/programs/contracts/operator-grid/read.js +21 -1
- package/dist/programs/contracts/operator-grid/read.js.map +1 -1
- package/dist/programs/contracts/operator-grid/write.js +40 -71
- package/dist/programs/contracts/operator-grid/write.js.map +1 -1
- package/dist/programs/contracts/pdg/config.js +9 -2
- package/dist/programs/contracts/pdg/config.js.map +1 -1
- package/dist/programs/contracts/pdg/read.js +13 -1
- package/dist/programs/contracts/pdg/read.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +55 -86
- package/dist/programs/contracts/pdg/write.js.map +1 -1
- package/dist/programs/contracts/vault/config.js +12 -0
- package/dist/programs/contracts/vault/config.js.map +1 -1
- package/dist/programs/contracts/vault/write.js +110 -35
- package/dist/programs/contracts/vault/write.js.map +1 -1
- package/dist/programs/contracts/vault-factory/config.js +14 -1
- package/dist/programs/contracts/vault-factory/config.js.map +1 -1
- package/dist/programs/contracts/vault-factory/write.js +25 -15
- package/dist/programs/contracts/vault-factory/write.js.map +1 -1
- package/dist/programs/contracts/vault-viewer/config.js +102 -59
- package/dist/programs/contracts/vault-viewer/config.js.map +1 -1
- package/dist/programs/contracts/vault-viewer/read.js +22 -76
- package/dist/programs/contracts/vault-viewer/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/distributor/config.js +44 -0
- package/dist/programs/defi-wrapper/contracts/distributor/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/distributor/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/distributor/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/main.js +5 -0
- package/dist/programs/defi-wrapper/contracts/distributor/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/read.js +40 -0
- package/dist/programs/defi-wrapper/contracts/distributor/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/distributor/write.js +70 -0
- package/dist/programs/defi-wrapper/contracts/distributor/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/factory/config.js +2 -0
- package/dist/programs/defi-wrapper/contracts/factory/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/factory/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/factory/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/factory/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/read.js +50 -0
- package/dist/programs/defi-wrapper/contracts/factory/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/factory/write.js +144 -0
- package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/index.d.ts +6 -0
- package/dist/programs/defi-wrapper/contracts/index.js +7 -0
- package/dist/programs/defi-wrapper/contracts/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.js +73 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js +70 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.js +138 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js +120 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js +70 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +173 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +66 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +65 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +171 -0
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -0
- package/dist/programs/defi-wrapper/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/index.js +4 -0
- package/dist/programs/defi-wrapper/index.js.map +1 -0
- package/dist/programs/defi-wrapper/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/main.js +6 -0
- package/dist/programs/defi-wrapper/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/health/index.js +4 -0
- 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.d.ts +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.d.ts +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 +143 -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 +2 -0
- package/dist/programs/index.js +2 -0
- package/dist/programs/index.js.map +1 -1
- package/dist/programs/pdg-helpers.js +5 -5
- package/dist/programs/pdg-helpers.js.map +1 -1
- package/dist/programs/use-cases/deposits/read.js +19 -2
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/deposits/write.js +130 -45
- package/dist/programs/use-cases/deposits/write.js.map +1 -1
- package/dist/programs/use-cases/metrics/read.js +36 -19
- package/dist/programs/use-cases/metrics/read.js.map +1 -1
- package/dist/programs/use-cases/report/read.js +14 -7
- package/dist/programs/use-cases/report/read.js.map +1 -1
- package/dist/programs/use-cases/report/write.js +7 -2
- package/dist/programs/use-cases/report/write.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/create-vault.js +18 -8
- package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +103 -8
- package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
- package/dist/providers/wallet.d.ts +6984 -169
- package/dist/providers/wallet.js +15 -5
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/utils/calculate-overview.test.js +1 -1
- package/dist/tests/utils/calculate-overview.test.js.map +1 -1
- package/dist/tests/utils/health.test.js +2 -2
- package/dist/tests/utils/health.test.js.map +1 -1
- package/dist/types/common.d.ts +4 -0
- package/dist/utils/arguments.d.ts +8 -1
- package/dist/utils/arguments.js +61 -1
- package/dist/utils/arguments.js.map +1 -1
- 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 +26 -0
- package/dist/utils/cache.js +88 -3
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/calculate-overview-v2.d.ts +4 -2
- package/dist/utils/calculate-overview-v2.js +5 -8
- package/dist/utils/calculate-overview-v2.js.map +1 -1
- package/dist/utils/calculate-overview.d.ts +1 -1
- 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 +3 -2
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +3 -2
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/overview.d.ts +1 -1
- package/dist/utils/charts/overview.js +1 -1
- package/dist/utils/charts/overview.js.map +1 -1
- package/dist/utils/charts/simple/simple-charts.js +3 -2
- package/dist/utils/charts/simple/simple-charts.js.map +1 -1
- package/dist/utils/commands/confirmations.d.ts +8 -4
- package/dist/utils/commands/confirmations.js +44 -34
- package/dist/utils/commands/confirmations.js.map +1 -1
- package/dist/utils/commands/report.js +2 -1
- package/dist/utils/commands/report.js.map +1 -1
- package/dist/utils/fetchCL.d.ts +1 -5
- package/dist/utils/fetchCL.js +5 -7
- package/dist/utils/fetchCL.js.map +1 -1
- package/dist/utils/health/calculate-health.d.ts +1 -1
- package/dist/utils/health/calculate-health.js +2 -2
- package/dist/utils/health/calculate-health.js.map +1 -1
- package/dist/utils/health/health-utils.d.ts +131 -131
- package/dist/utils/health/health-utils.js +12 -11
- package/dist/utils/health/health-utils.js.map +1 -1
- package/dist/utils/prompts/confirmations.js +1 -1
- package/dist/utils/prompts/confirmations.js.map +1 -1
- package/dist/utils/proof/constants.d.ts +6 -0
- package/dist/utils/proof/constants.js +7 -0
- package/dist/utils/proof/constants.js.map +1 -0
- package/dist/utils/proof/first-validator-gindex.js +0 -4
- package/dist/utils/proof/first-validator-gindex.js.map +1 -1
- package/dist/utils/proof/proofs.d.ts +7 -8
- package/dist/utils/proof/proofs.js +36 -28
- package/dist/utils/proof/proofs.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 +2 -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/report/types.d.ts +10 -2
- package/dist/utils/statistic/report-statistic.js +13 -14
- package/dist/utils/statistic/report-statistic.js.map +1 -1
- package/dist/utils/transactions/tx-private-key.d.ts +2 -2
- package/dist/utils/transactions/tx-private-key.js +6 -6
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.d.ts +29 -1
- package/dist/utils/transactions/tx-wc.js +58 -28
- package/dist/utils/transactions/tx-wc.js.map +1 -1
- package/dist/utils/wallet-connect.d.ts +4 -7664
- package/dist/utils/wallet-connect.js +17 -5
- package/dist/utils/wallet-connect.js.map +1 -1
- package/dist/version/index.js +1 -1
- package/package.json +16 -7
- package/dist/abi/TokenManager.d.ts +0 -577
- package/dist/abi/TokenManager.js +0 -756
- package/dist/abi/TokenManager.js.map +0 -1
- package/dist/abi/Voting.d.ts +0 -676
- package/dist/abi/Voting.js +0 -884
- package/dist/abi/Voting.js.map +0 -1
- package/dist/contracts/token-manager.d.ts +0 -3
- package/dist/contracts/token-manager.js +0 -13
- package/dist/contracts/token-manager.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const factory: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB;KACxC,OAAO,CAAC,SAAS,CAAC;KAClB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { FactoryAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
3
|
+
import { getFactoryContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
4
|
+
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
5
|
+
import { factory } from './main.js';
|
|
6
|
+
import { readCommandConfig } from './config.js';
|
|
7
|
+
const factoryRead = factory
|
|
8
|
+
.command('read')
|
|
9
|
+
.alias('r')
|
|
10
|
+
.description('read commands');
|
|
11
|
+
factoryRead.addOption(new Option('-cmd2json'));
|
|
12
|
+
factoryRead.on('option:-cmd2json', function () {
|
|
13
|
+
logInfo(getCommandsJson(factoryRead));
|
|
14
|
+
process.exit();
|
|
15
|
+
});
|
|
16
|
+
factoryRead
|
|
17
|
+
.command('info')
|
|
18
|
+
.description('get factory base info')
|
|
19
|
+
.argument('<address>', 'factory address', stringToAddress)
|
|
20
|
+
.action(async (address) => {
|
|
21
|
+
const contract = await getFactoryContract(address);
|
|
22
|
+
const [dummyImplementation, ggvStrategyFactory, stvPoolFactory, stvStethPoolFactory, timelockFactory, vaultFactory, withdrawalQueueFactory, lazyOracle, steth, wsteth,] = await Promise.all([
|
|
23
|
+
callReadMethodSilent(contract, 'DUMMY_IMPLEMENTATION'),
|
|
24
|
+
callReadMethodSilent(contract, 'GGV_STRATEGY_FACTORY'),
|
|
25
|
+
callReadMethodSilent(contract, 'STV_POOL_FACTORY'),
|
|
26
|
+
callReadMethodSilent(contract, 'STV_STETH_POOL_FACTORY'),
|
|
27
|
+
callReadMethodSilent(contract, 'TIMELOCK_FACTORY'),
|
|
28
|
+
callReadMethodSilent(contract, 'VAULT_FACTORY'),
|
|
29
|
+
callReadMethodSilent(contract, 'WITHDRAWAL_QUEUE_FACTORY'),
|
|
30
|
+
callReadMethodSilent(contract, 'LAZY_ORACLE'),
|
|
31
|
+
callReadMethodSilent(contract, 'STETH'),
|
|
32
|
+
callReadMethodSilent(contract, 'WSTETH'),
|
|
33
|
+
]);
|
|
34
|
+
logResult({
|
|
35
|
+
data: [
|
|
36
|
+
['dummyImplementation', dummyImplementation],
|
|
37
|
+
['ggvStrategyFactory', ggvStrategyFactory],
|
|
38
|
+
['stvPoolFactory', stvPoolFactory],
|
|
39
|
+
['stvStethPoolFactory', stvStethPoolFactory],
|
|
40
|
+
['timelockFactory', timelockFactory],
|
|
41
|
+
['vaultFactory', vaultFactory],
|
|
42
|
+
['withdrawalQueueFactory', withdrawalQueueFactory],
|
|
43
|
+
['lazyOracle', lazyOracle],
|
|
44
|
+
['steth', steth],
|
|
45
|
+
['wsteth', wsteth],
|
|
46
|
+
],
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
generateReadCommands(FactoryAbi, getFactoryContract, factoryRead, readCommandConfig);
|
|
50
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/read.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,GAAG,OAAO;KACxB,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,eAAe,CAAC,CAAC;AAEhC,WAAW,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAC/C,WAAW,CAAC,EAAE,CAAC,kBAAkB,EAAE;IACjC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,WAAW;KACR,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,uBAAuB,CAAC;KACpC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,EAAE,eAAe,CAAC;KACzD,MAAM,CAAC,KAAK,EAAE,OAAgB,EAAE,EAAE;IACjC,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAEnD,MAAM,CACJ,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,UAAU,EACV,KAAK,EACL,MAAM,EACP,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpB,oBAAoB,CAAC,QAAQ,EAAE,sBAAsB,CAAC;QACtD,oBAAoB,CAAC,QAAQ,EAAE,sBAAsB,CAAC;QACtD,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,CAAC;QAClD,oBAAoB,CAAC,QAAQ,EAAE,wBAAwB,CAAC;QACxD,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,CAAC;QAClD,oBAAoB,CAAC,QAAQ,EAAE,eAAe,CAAC;QAC/C,oBAAoB,CAAC,QAAQ,EAAE,0BAA0B,CAAC;QAE1D,oBAAoB,CAAC,QAAQ,EAAE,aAAa,CAAC;QAC7C,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC;QACvC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC;KACzC,CAAC,CAAC;IAEH,SAAS,CAAC;QACR,IAAI,EAAE;YACJ,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;YAC5C,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;YAC1C,CAAC,gBAAgB,EAAE,cAAc,CAAC;YAClC,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;YAC5C,CAAC,iBAAiB,EAAE,eAAe,CAAC;YACpC,CAAC,cAAc,EAAE,YAAY,CAAC;YAC9B,CAAC,wBAAwB,EAAE,sBAAsB,CAAC;YAClD,CAAC,YAAY,EAAE,UAAU,CAAC;YAC1B,CAAC,OAAO,EAAE,KAAK,CAAC;YAChB,CAAC,QAAQ,EAAE,MAAM,CAAC;SACnB;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,iBAAiB,CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { logInfo, logError, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToNumber, stringToBoolean, } from '../../../../utils/index.js';
|
|
3
|
+
import { getFactoryContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
4
|
+
import { getCreatePoolEventData, getReserveRatioGapBP, getBoolean, promtBaseVaultConfiguration, logCreatePoolEventData, finalizePoolCreation, prepareCreationConfigrationText, } from '../../../../features/index.js';
|
|
5
|
+
import { factory } from './main.js';
|
|
6
|
+
const factoryWrite = factory
|
|
7
|
+
.command('write')
|
|
8
|
+
.alias('w')
|
|
9
|
+
.description('write commands');
|
|
10
|
+
factoryWrite.addOption(new Option('-cmd2json'));
|
|
11
|
+
factoryWrite.on('option:-cmd2json', function () {
|
|
12
|
+
logInfo(getCommandsJson(factoryWrite));
|
|
13
|
+
process.exit();
|
|
14
|
+
});
|
|
15
|
+
// adds common options for all wrapper creation commands
|
|
16
|
+
const applyCommonOptions = (command) => {
|
|
17
|
+
return command
|
|
18
|
+
.option('-no, --nodeOperator <nodeOperator>', 'node operator address')
|
|
19
|
+
.option('-nom, --nodeOperatorManager <nodeOperatorManager>', 'node operator manager address')
|
|
20
|
+
.option('-nof , --nodeOperatorFeeRate <nodeOperatorFeeRate>', 'Node operator fee rate in basis points, for e.g. 100 == 1%', stringToNumber)
|
|
21
|
+
.option('-ce, --confirmExpiry <confirmExpiry>', 'confirm expiry in seconds', stringToNumber)
|
|
22
|
+
.option('-md, --minDelaySeconds <minDelaySeconds>', 'minimum delay in seconds', stringToNumber)
|
|
23
|
+
.option('-mwd, --minWithdrawalDelayTime <minWithdrawalDelayTime>', 'minimum withdrawal delay time in seconds', stringToNumber)
|
|
24
|
+
.option('-n, --name <name>', 'name of the pool shares')
|
|
25
|
+
.option('-s, --symbol <symbol>', 'symbol of the pool shares')
|
|
26
|
+
.option('-p, --proposer <proposer>', 'proposer address', stringToAddress)
|
|
27
|
+
.option('-e, --executor <executor>', 'executor address', stringToAddress)
|
|
28
|
+
.option('-ec, --emergencyCommittee <emergencyCommittee>', 'emergency committee address', stringToAddress);
|
|
29
|
+
};
|
|
30
|
+
applyCommonOptions(factoryWrite
|
|
31
|
+
.command('create-pool-ggv')
|
|
32
|
+
.description('initiates deployment of a GGV strategy pool')
|
|
33
|
+
.argument('<address>', 'factory address', stringToAddress))
|
|
34
|
+
.option('-rrg, --reserveRatioGapBP <reserveRatioGapBP>', 'reserve ratio gap in basis points', stringToNumber)
|
|
35
|
+
.action(async (address, { reserveRatioGapBP, ...baseOptions }) => {
|
|
36
|
+
const contract = await getFactoryContract(address);
|
|
37
|
+
const { vaultConfig, timelockConfig, commonPoolConfig, CONNECT_DEPOSIT } = await promtBaseVaultConfiguration(baseOptions);
|
|
38
|
+
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
39
|
+
const confirmationMessage = `Are you sure you want to create a new pool GGV strategy with a configured wrapper?\n
|
|
40
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
41
|
+
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
42
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
43
|
+
if (!confirm)
|
|
44
|
+
return;
|
|
45
|
+
const result = await callWriteMethodWithReceipt({
|
|
46
|
+
contract,
|
|
47
|
+
methodName: 'createPoolGGVStart',
|
|
48
|
+
payload: [
|
|
49
|
+
vaultConfig,
|
|
50
|
+
timelockConfig,
|
|
51
|
+
commonPoolConfig,
|
|
52
|
+
BigInt(reserveRatioGapBPValue),
|
|
53
|
+
],
|
|
54
|
+
value: CONNECT_DEPOSIT,
|
|
55
|
+
});
|
|
56
|
+
if (!result.receipt || !result.tx) {
|
|
57
|
+
logInfo('Transaction has been sent');
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
61
|
+
await logCreatePoolEventData(eventData);
|
|
62
|
+
await finalizePoolCreation(contract, vaultConfig, timelockConfig, commonPoolConfig, eventData);
|
|
63
|
+
});
|
|
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, CONNECT_DEPOSIT } = 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`;
|
|
76
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
77
|
+
if (!confirm)
|
|
78
|
+
return;
|
|
79
|
+
const result = await callWriteMethodWithReceipt({
|
|
80
|
+
contract,
|
|
81
|
+
methodName: 'createPoolStvStart',
|
|
82
|
+
payload: [
|
|
83
|
+
vaultConfig,
|
|
84
|
+
timelockConfig,
|
|
85
|
+
commonPoolConfig,
|
|
86
|
+
allowListEnabledValue,
|
|
87
|
+
],
|
|
88
|
+
value: CONNECT_DEPOSIT,
|
|
89
|
+
});
|
|
90
|
+
if (!result.receipt || !result.tx) {
|
|
91
|
+
logInfo('Transaction has been sent');
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
95
|
+
await logCreatePoolEventData(eventData);
|
|
96
|
+
if (!eventData.auxiliaryConfig ||
|
|
97
|
+
!eventData.strategyFactory ||
|
|
98
|
+
!eventData.strategyDeployBytes ||
|
|
99
|
+
!eventData.intermediate) {
|
|
100
|
+
logError('Missing required data for pool creation finalize');
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
logInfo('Pool Creation Finalize');
|
|
104
|
+
await finalizePoolCreation(contract, vaultConfig, timelockConfig, commonPoolConfig, eventData);
|
|
105
|
+
});
|
|
106
|
+
applyCommonOptions(factoryWrite
|
|
107
|
+
.command('create-pool-stv-steth')
|
|
108
|
+
.description('initiates deployment of a STV-STETH pool with minting enabled')
|
|
109
|
+
.argument('<address>', 'factory address', stringToAddress))
|
|
110
|
+
.option('-rrg, --reserveRatioGapBP <reserveRatioGapBP>', 'reserve ratio gap in basis points', stringToNumber)
|
|
111
|
+
.option('-al, --allowList <allowListEnabled>', 'is allowlist enabled (true/false)', stringToBoolean)
|
|
112
|
+
.action(async (address, { reserveRatioGapBP, allowListEnabled, ...baseOptions }) => {
|
|
113
|
+
const contract = await getFactoryContract(address);
|
|
114
|
+
const { vaultConfig, timelockConfig, commonPoolConfig, CONNECT_DEPOSIT } = await promtBaseVaultConfiguration(baseOptions);
|
|
115
|
+
const allowListEnabledValue = await getBoolean(allowListEnabled, 'AllowList');
|
|
116
|
+
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
117
|
+
const confirmationMessage = `Are you sure you want to create a new STV-STETH pool with minting enabled?\n
|
|
118
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
119
|
+
allowListEnabled: ${allowListEnabledValue}
|
|
120
|
+
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
121
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
122
|
+
if (!confirm)
|
|
123
|
+
return;
|
|
124
|
+
const result = await callWriteMethodWithReceipt({
|
|
125
|
+
contract,
|
|
126
|
+
methodName: 'createPoolStvStETHStart',
|
|
127
|
+
payload: [
|
|
128
|
+
vaultConfig,
|
|
129
|
+
timelockConfig,
|
|
130
|
+
commonPoolConfig,
|
|
131
|
+
allowListEnabledValue,
|
|
132
|
+
BigInt(reserveRatioGapBPValue),
|
|
133
|
+
],
|
|
134
|
+
value: CONNECT_DEPOSIT,
|
|
135
|
+
});
|
|
136
|
+
if (!result.receipt || !result.tx) {
|
|
137
|
+
logInfo('Transaction has been sent');
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
141
|
+
await logCreatePoolEventData(eventData);
|
|
142
|
+
await finalizePoolCreation(contract, vaultConfig, timelockConfig, commonPoolConfig, eventData);
|
|
143
|
+
});
|
|
144
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,2BAA2B,EAC3B,sBAAsB,EAEtB,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,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,wDAAwD;AACxD,MAAM,kBAAkB,G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C;QACrC,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,CACxB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,SAAS,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './distributor/index.js';
|
|
3
|
+
export * from './withdrawal-queue/index.js';
|
|
4
|
+
export * from './stv-pool/index.js';
|
|
5
|
+
export * from './stv-steth-pool/index.js';
|
|
6
|
+
export * from './factory/index.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defiWrapperContracts: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../programs/defi-wrapper/contracts/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW;KAC5C,OAAO,CAAC,WAAW,CAAC;KACpB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { stringToAddress, stringToBigInt, } from '../../../../utils/index.js';
|
|
2
|
+
export const readCommandConfig = {
|
|
3
|
+
totalUnassignedLiabilityShares: {
|
|
4
|
+
name: 'total-unassigned-liability-shares',
|
|
5
|
+
aliases: ['tul-shares'],
|
|
6
|
+
description: 'get the total liability stETH shares that are not assigned to any users',
|
|
7
|
+
},
|
|
8
|
+
totalUnassignedLiabilitySteth: {
|
|
9
|
+
name: 'total-unassigned-liability-steth',
|
|
10
|
+
aliases: ['tul-steth'],
|
|
11
|
+
description: 'get the total unassigned liability in stETH',
|
|
12
|
+
},
|
|
13
|
+
totalAssets: {
|
|
14
|
+
name: 'total-assets',
|
|
15
|
+
aliases: ['ta'],
|
|
16
|
+
description: 'get the total assets managed by the pool',
|
|
17
|
+
},
|
|
18
|
+
totalLiabilityShares: {
|
|
19
|
+
name: 'total-liability-shares',
|
|
20
|
+
aliases: ['tls'],
|
|
21
|
+
description: 'get the total liability stETH shares issued to the vault',
|
|
22
|
+
},
|
|
23
|
+
previewWithdraw: {
|
|
24
|
+
name: 'preview-withdraw',
|
|
25
|
+
description: 'get preview the amount of stv that would be burned for a given asset withdrawal',
|
|
26
|
+
arguments: {
|
|
27
|
+
_assets: {
|
|
28
|
+
name: 'assets',
|
|
29
|
+
description: 'the amount of assets to withdraw (18 decimals)',
|
|
30
|
+
modifier: stringToBigInt,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
previewRedeem: {
|
|
35
|
+
name: 'preview-redeem',
|
|
36
|
+
description: 'get preview the amount of assets that would be received for a given stv amount',
|
|
37
|
+
arguments: {
|
|
38
|
+
_stv: {
|
|
39
|
+
name: 'stv',
|
|
40
|
+
description: 'the amount of stv to redeem (27 decimals)',
|
|
41
|
+
modifier: stringToBigInt,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
previewDeposit: {
|
|
46
|
+
name: 'preview-deposit',
|
|
47
|
+
description: 'get preview the amount of stv that would be received for a given asset amount',
|
|
48
|
+
arguments: {
|
|
49
|
+
_assets: {
|
|
50
|
+
name: 'assets',
|
|
51
|
+
description: 'the amount of assets to deposit (18 decimals)',
|
|
52
|
+
modifier: stringToBigInt,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
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
|
+
},
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +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,8BAA8B,EAAE;QAC9B,IAAI,EAAE,mCAAmC;QACzC,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,WAAW,EACT,yEAAyE;KAC5E;IACD,6BAA6B,EAAE;QAC7B,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,WAAW,EAAE,6CAA6C;KAC3D;IACD,WAAW,EAAE;QACX,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0CAA0C;KACxD;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,0DAA0D;KACxE;IACD,eAAe,EAAE;QACf,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,iFAAiF;QACnF,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gDAAgD;gBAC7D,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,aAAa,EAAE;QACb,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,gFAAgF;QAClF,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,IAAI,EAAE,KAAK;gBACX,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,cAAc,EAAE;QACd,IAAI,EAAE,iBAAiB;QACvB,WAAW,EACT,+EAA+E;QACjF,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;gBAC5D,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,kDAAkD;KAChE;IACD,aAAa,EAAE;QACb,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,yCAAyC;QACtD,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,sBAAsB;gBACnC,QAAQ,EAAE,eAAe;aAC1B;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stvPool: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB;KACxC,OAAO,CAAC,UAAU,CAAC;KACnB,KAAK,CAAC,KAAK,CAAC;KACZ,WAAW,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { formatEther, formatUnits } from 'viem';
|
|
2
|
+
import { Option } from 'commander';
|
|
3
|
+
import { StvPoolAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
4
|
+
import { getStvPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
5
|
+
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
6
|
+
import { stvPool } from './main.js';
|
|
7
|
+
import { readCommandConfig } from './config.js';
|
|
8
|
+
const stvPoolRead = stvPool
|
|
9
|
+
.command('read')
|
|
10
|
+
.alias('r')
|
|
11
|
+
.description('read commands');
|
|
12
|
+
stvPoolRead.addOption(new Option('-cmd2json'));
|
|
13
|
+
stvPoolRead.on('option:-cmd2json', function () {
|
|
14
|
+
logInfo(getCommandsJson(stvPoolRead));
|
|
15
|
+
process.exit();
|
|
16
|
+
});
|
|
17
|
+
stvPoolRead
|
|
18
|
+
.command('info')
|
|
19
|
+
.description('get stv pool base info')
|
|
20
|
+
.argument('<address>', 'stv pool address', stringToAddress)
|
|
21
|
+
.action(async (address) => {
|
|
22
|
+
const contract = await getStvPoolContract(address);
|
|
23
|
+
const [poolType, DEFAULT_ADMIN_ROLE, DEPOSIT_ROLE, ALLOW_LIST_MANAGER_ROLE, VAULT, DASHBOARD, STETH, VAULT_HUB, WITHDRAWAL_QUEUE, DISTRIBUTOR, ALLOW_LIST_ENABLED, name, symbol, totalAssets, totalLiabilityShares, totalNominalAssets, totalSupply, totalUnassignedLiabilityShares,] = await Promise.all([
|
|
24
|
+
callReadMethodSilent(contract, 'poolType'),
|
|
25
|
+
callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
|
|
26
|
+
callReadMethodSilent(contract, 'DEPOSIT_ROLE'),
|
|
27
|
+
callReadMethodSilent(contract, 'ALLOW_LIST_MANAGER_ROLE'),
|
|
28
|
+
callReadMethodSilent(contract, 'VAULT'),
|
|
29
|
+
callReadMethodSilent(contract, 'DASHBOARD'),
|
|
30
|
+
callReadMethodSilent(contract, 'STETH'),
|
|
31
|
+
callReadMethodSilent(contract, 'VAULT_HUB'),
|
|
32
|
+
callReadMethodSilent(contract, 'WITHDRAWAL_QUEUE'),
|
|
33
|
+
callReadMethodSilent(contract, 'DISTRIBUTOR'),
|
|
34
|
+
callReadMethodSilent(contract, 'ALLOW_LIST_ENABLED'),
|
|
35
|
+
callReadMethodSilent(contract, 'name'),
|
|
36
|
+
callReadMethodSilent(contract, 'symbol'),
|
|
37
|
+
callReadMethodSilent(contract, 'totalAssets'),
|
|
38
|
+
callReadMethodSilent(contract, 'totalLiabilityShares'),
|
|
39
|
+
callReadMethodSilent(contract, 'totalNominalAssets'),
|
|
40
|
+
callReadMethodSilent(contract, 'totalSupply'),
|
|
41
|
+
callReadMethodSilent(contract, 'totalUnassignedLiabilityShares'),
|
|
42
|
+
]);
|
|
43
|
+
logResult({
|
|
44
|
+
data: [
|
|
45
|
+
['poolType', poolType],
|
|
46
|
+
['DEFAULT_ADMIN_ROLE', DEFAULT_ADMIN_ROLE],
|
|
47
|
+
['DEPOSIT_ROLE', DEPOSIT_ROLE],
|
|
48
|
+
['ALLOW_LIST_MANAGER_ROLE', ALLOW_LIST_MANAGER_ROLE],
|
|
49
|
+
['VAULT', VAULT],
|
|
50
|
+
['DASHBOARD', DASHBOARD],
|
|
51
|
+
['STETH', STETH],
|
|
52
|
+
['VAULT_HUB', VAULT_HUB],
|
|
53
|
+
['WITHDRAWAL_QUEUE', WITHDRAWAL_QUEUE],
|
|
54
|
+
['DISTRIBUTOR', DISTRIBUTOR],
|
|
55
|
+
['ALLOW_LIST_ENABLED', ALLOW_LIST_ENABLED],
|
|
56
|
+
['name', name],
|
|
57
|
+
['symbol', symbol],
|
|
58
|
+
['totalAssets', formatEther(totalAssets)],
|
|
59
|
+
['totalLiabilityShares', formatEther(totalLiabilityShares)],
|
|
60
|
+
['totalNominalAssets', formatUnits(totalNominalAssets, 27)],
|
|
61
|
+
['totalSupply', formatUnits(totalSupply, 27)],
|
|
62
|
+
[
|
|
63
|
+
'totalUnassignedLiabilityShares',
|
|
64
|
+
formatEther(totalUnassignedLiabilityShares),
|
|
65
|
+
],
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
generateReadCommands(StvPoolAbi, getStvPoolContract, stvPoolRead, readCommandConfig);
|
|
70
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,GAAG,OAAO;KACxB,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,e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AC,8BAA8B,CAAC;aAC5C;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,iBAAiB,CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, } from '../../../../utils/index.js';
|
|
3
|
+
import { getAccount } from '../../../../providers/index.js';
|
|
4
|
+
import { stvPool } from './main.js';
|
|
5
|
+
import { formatEther } from 'viem';
|
|
6
|
+
import { getStvPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
7
|
+
const stvPoolWrite = stvPool
|
|
8
|
+
.command('write')
|
|
9
|
+
.alias('w')
|
|
10
|
+
.description('stv pool write commands');
|
|
11
|
+
stvPoolWrite.addOption(new Option('-cmd2json'));
|
|
12
|
+
stvPoolWrite.on('option:-cmd2json', function () {
|
|
13
|
+
logInfo(getCommandsJson(stvPoolWrite));
|
|
14
|
+
process.exit();
|
|
15
|
+
});
|
|
16
|
+
stvPoolWrite
|
|
17
|
+
.command('deposit-eth')
|
|
18
|
+
.description('convenience function to deposit ETH to msg.sender')
|
|
19
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
20
|
+
.argument('<amount>', 'amount of ETH to deposit (in ETH)', etherToWei)
|
|
21
|
+
.argument('<referral>', 'address of the referral (if any)', stringToAddress)
|
|
22
|
+
.option('-s, --receiver <receiver>', 'address to receive the minted shares', stringToAddress)
|
|
23
|
+
.action(async (address, amount, referral, { receiver }) => {
|
|
24
|
+
const contract = await getStvPoolContract(address);
|
|
25
|
+
const account = await getAccount();
|
|
26
|
+
const confirmationMessage = `Are you sure you want to deposit ETH to the stv pool? (referral: ${referral}, receiver: ${receiver || account.address}, amount: ${formatEther(amount)})`;
|
|
27
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
28
|
+
if (!confirm)
|
|
29
|
+
return;
|
|
30
|
+
await callWriteMethodWithReceipt({
|
|
31
|
+
contract,
|
|
32
|
+
methodName: 'depositETH',
|
|
33
|
+
payload: [receiver || account.address, referral],
|
|
34
|
+
value: amount,
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
stvPoolWrite
|
|
38
|
+
.command('rebalance-unassigned-liability')
|
|
39
|
+
.description('rebalance unassigned liability by repaying it with assets held by the vault')
|
|
40
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
41
|
+
.argument('<stethShares>', 'amount of stETH shares to rebalance (in shares)', stringToBigInt)
|
|
42
|
+
.action(async (address, stethShares) => {
|
|
43
|
+
const contract = await getStvPoolContract(address);
|
|
44
|
+
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${stethShares} stETH shares?`;
|
|
45
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
46
|
+
if (!confirm)
|
|
47
|
+
return;
|
|
48
|
+
await callWriteMethodWithReceipt({
|
|
49
|
+
contract,
|
|
50
|
+
methodName: 'rebalanceUnassignedLiability',
|
|
51
|
+
payload: [stethShares],
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
stvPoolWrite
|
|
55
|
+
.command('rebalance-unassigned-liability-with-ether')
|
|
56
|
+
.description('rebalance unassigned liability by repaying it with external ether')
|
|
57
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
58
|
+
.argument('<ether>', 'amount of ether to rebalance (in ETH)', etherToWei)
|
|
59
|
+
.action(async (address, ether) => {
|
|
60
|
+
const contract = await getStvPoolContract(address);
|
|
61
|
+
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${formatEther(ether)} ether?`;
|
|
62
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
63
|
+
if (!confirm)
|
|
64
|
+
return;
|
|
65
|
+
await callWriteMethodWithReceipt({
|
|
66
|
+
contract,
|
|
67
|
+
methodName: 'rebalanceUnassignedLiabilityWithEther',
|
|
68
|
+
payload: [],
|
|
69
|
+
value: ether,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
stvPoolWrite
|
|
73
|
+
.command('pause-deposits')
|
|
74
|
+
.description('pause deposits')
|
|
75
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
76
|
+
.action(async (address) => {
|
|
77
|
+
const contract = await getStvPoolContract(address);
|
|
78
|
+
const confirmationMessage = `Are you sure you want to pause deposits for the pool ${address}?`;
|
|
79
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
80
|
+
if (!confirm)
|
|
81
|
+
return;
|
|
82
|
+
await callWriteMethodWithReceipt({
|
|
83
|
+
contract,
|
|
84
|
+
methodName: 'pauseDeposits',
|
|
85
|
+
payload: [],
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
stvPoolWrite
|
|
89
|
+
.command('resume-deposits')
|
|
90
|
+
.description('resume deposits')
|
|
91
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
92
|
+
.action(async (address) => {
|
|
93
|
+
const contract = await getStvPoolContract(address);
|
|
94
|
+
const confirmationMessage = `Are you sure you want to resume deposits for the pool ${address}?`;
|
|
95
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
96
|
+
if (!confirm)
|
|
97
|
+
return;
|
|
98
|
+
await callWriteMethodWithReceipt({
|
|
99
|
+
contract,
|
|
100
|
+
methodName: 'resumeDeposits',
|
|
101
|
+
payload: [],
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
stvPoolWrite
|
|
105
|
+
.command('add-to-allow-list')
|
|
106
|
+
.description('add an address to the allowlist')
|
|
107
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
108
|
+
.argument('<user>', 'address to add to the allowlist', stringToAddress)
|
|
109
|
+
.action(async (address, user) => {
|
|
110
|
+
const contract = await getStvPoolContract(address);
|
|
111
|
+
const confirmationMessage = `Are you sure you want to add ${user} to the allowlist for the vault ${address}?`;
|
|
112
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
113
|
+
if (!confirm)
|
|
114
|
+
return;
|
|
115
|
+
await callWriteMethodWithReceipt({
|
|
116
|
+
contract,
|
|
117
|
+
methodName: 'addToAllowList',
|
|
118
|
+
payload: [user],
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
stvPoolWrite
|
|
122
|
+
.command('remove-from-allow-list')
|
|
123
|
+
.description('remove an address from the allowlist')
|
|
124
|
+
.argument('<address>', 'pool address', stringToAddress)
|
|
125
|
+
.argument('<user>', 'address to remove from the allowlist', stringToAddress)
|
|
126
|
+
.action(async (address, user) => {
|
|
127
|
+
const contract = await getStvPoolContract(address);
|
|
128
|
+
const confirmationMessage = `Are you sure you want to remove ${user} from the allowlist for the vault ${address}?`;
|
|
129
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
130
|
+
if (!confirm)
|
|
131
|
+
return;
|
|
132
|
+
await callWriteMethodWithReceipt({
|
|
133
|
+
contract,
|
|
134
|
+
methodName: 'removeFromAllowList',
|
|
135
|
+
payload: [user],
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-pool/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,EAChB,cAAc,GACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAW,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,YAAY,GAAG,OAAO;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