@lidofinance/lsv-cli 1.0.0-alpha.62 → 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/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 +121 -88
- package/dist/abi/Dashboard.js +67 -78
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/LazyOracle.d.ts +44 -3
- package/dist/abi/LazyOracle.js +57 -3
- package/dist/abi/LazyOracle.js.map +1 -1
- package/dist/abi/OperatorGrid.d.ts +615 -1
- package/dist/abi/OperatorGrid.js +50 -1
- package/dist/abi/OperatorGrid.js.map +1 -1
- package/dist/abi/PredepositGuarantee.d.ts +33 -34
- package/dist/abi/PredepositGuarantee.js +6 -37
- package/dist/abi/PredepositGuarantee.js.map +1 -1
- package/dist/abi/StakingVault.d.ts +57 -9
- package/dist/abi/StakingVault.js +3 -6
- package/dist/abi/StakingVault.js.map +1 -1
- package/dist/abi/VaultFactory.d.ts +78 -24
- package/dist/abi/VaultFactory.js +19 -1
- package/dist/abi/VaultFactory.js.map +1 -1
- package/dist/abi/VaultHub.d.ts +38 -4
- package/dist/abi/VaultHub.js +13 -0
- package/dist/abi/VaultHub.js.map +1 -1
- package/dist/abi/VaultViewer.d.ts +130 -196
- package/dist/abi/VaultViewer.js +169 -257
- 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/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 -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/vault-factory.d.ts +3 -26297
- 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 -11789
- 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 +2 -0
- package/dist/features/index.js +2 -0
- package/dist/features/index.js.map +1 -1
- 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-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.js +4 -4
- package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
- package/dist/features/vault-operations/vault-info.js +5 -3
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +13 -13
- 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 +4 -2
- package/dist/features/vault.js.map +1 -1
- package/dist/index.js +17 -10
- 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 +4 -4
- package/dist/programs/contracts/dashboard/config.js.map +1 -1
- package/dist/programs/contracts/dashboard/read.js +9 -9
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +118 -46
- 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 +1 -1
- package/dist/programs/contracts/hub/write.js.map +1 -1
- package/dist/programs/contracts/lazy-oracle/config.js +33 -0
- package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
- package/dist/programs/contracts/operator-grid/write.js +2 -75
- package/dist/programs/contracts/operator-grid/write.js.map +1 -1
- package/dist/programs/contracts/pdg/read.js +2 -5
- package/dist/programs/contracts/pdg/read.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +41 -9
- package/dist/programs/contracts/pdg/write.js.map +1 -1
- package/dist/programs/contracts/vault/write.js +34 -23
- 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 +4 -4
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/deposits/write.js +111 -16
- package/dist/programs/use-cases/deposits/write.js.map +1 -1
- package/dist/programs/use-cases/metrics/read.js +29 -13
- package/dist/programs/use-cases/metrics/read.js.map +1 -1
- package/dist/programs/use-cases/report/write.js +3 -0
- package/dist/programs/use-cases/report/write.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/create-vault.js +13 -7
- package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +5 -0
- package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
- package/dist/providers/wallet.d.ts +6981 -166
- package/dist/providers/wallet.js +15 -5
- package/dist/providers/wallet.js.map +1 -1
- package/dist/utils/arguments.d.ts +5 -0
- package/dist/utils/arguments.js +24 -3
- 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/charts/blessed/charts-apr.js +1 -1
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/simple/simple-charts.js +1 -1
- package/dist/utils/charts/simple/simple-charts.js.map +1 -1
- package/dist/utils/commands/confirmations.d.ts +1 -1
- package/dist/utils/commands/confirmations.js +5 -5
- package/dist/utils/commands/confirmations.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/health-utils.d.ts +54 -54
- package/dist/utils/health/health-utils.js +1 -1
- 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 +1 -1
- package/dist/utils/report/report.js.map +1 -1
- package/dist/utils/report/statistic-data.js +1 -1
- package/dist/utils/report/statistic-data.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 +43 -26
- 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 +5 -6
package/dist/contracts/wsteth.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { getContract, createPublicClient, http } from 'viem';
|
|
1
|
+
import { getContract, createPublicClient, http, } from 'viem';
|
|
2
2
|
import { WstEthAbi } from '../abi/index.js';
|
|
3
3
|
import { getChain, getElUrl } from '../configs/index.js';
|
|
4
4
|
import { getLocatorContract } from './index.js';
|
|
5
5
|
export const getWstethContract = async () => {
|
|
6
|
-
const locator = getLocatorContract();
|
|
6
|
+
const locator = await getLocatorContract();
|
|
7
7
|
const elUrl = getElUrl();
|
|
8
|
+
const chain = await getChain();
|
|
8
9
|
const address = await locator.read.wstETH();
|
|
9
10
|
return getContract({
|
|
10
11
|
address: address,
|
|
11
12
|
abi: WstEthAbi,
|
|
12
13
|
client: createPublicClient({
|
|
13
|
-
chain
|
|
14
|
+
chain,
|
|
14
15
|
transport: http(elUrl),
|
|
15
16
|
}),
|
|
16
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsteth.js","sourceRoot":"","sources":["../../contracts/wsteth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"wsteth.js","sourceRoot":"","sources":["../../contracts/wsteth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,IAAI,GAGL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,IAEpC,EAAE;IACF,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAE5C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,SAAS;QACd,MAAM,EAAE,kBAAkB,CAAC;YACzB,KAAK;YACL,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;SACvB,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type CommonPoolConfig, type TimelockConfig, type VaultConfig } from './defi-wrapper-factory.js';
|
|
2
|
+
/**
|
|
3
|
+
* Get the min withdrawal delay time
|
|
4
|
+
* @param minWithdrawalDelayTime - The min withdrawal delay time
|
|
5
|
+
* @returns The min withdrawal delay time in seconds
|
|
6
|
+
*/
|
|
7
|
+
export declare const getMinWithdrawalDelayTime: (minWithdrawalDelayTime?: number) => Promise<number>;
|
|
8
|
+
/**
|
|
9
|
+
* Get the min delay seconds
|
|
10
|
+
* @param minDelaySeconds - The min delay seconds
|
|
11
|
+
* @returns The min delay seconds in seconds
|
|
12
|
+
*/
|
|
13
|
+
export declare const getMinDelaySeconds: (minDelaySeconds?: number) => Promise<number>;
|
|
14
|
+
export declare const getPoolTokenName: (name?: string) => Promise<string>;
|
|
15
|
+
export declare const getPoolTokenSymbol: (symbol?: string) => Promise<string>;
|
|
16
|
+
export declare const getReserveRatioGapBP: (reserveRatioGapBP?: number) => Promise<number>;
|
|
17
|
+
export declare const prepareCreationConfigrationText: (vaultConfig: VaultConfig, timelockConfig: TimelockConfig, commonPoolConfig: CommonPoolConfig) => string;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { getOperatorGridContract } from '../../contracts/index.js';
|
|
2
|
+
import { callReadMethodSilent, numberPrompt, textPrompt } from '../../utils/index.js';
|
|
3
|
+
const MIN_TIME_IN_HOURS = 60 * 60; // 1 hour
|
|
4
|
+
const MAX_TIME_IN_HOURS = 24 * 60 * 60 * 30; // 30 days
|
|
5
|
+
const MAX_POOL_TOKEN_NAME_LENGTH = 14;
|
|
6
|
+
const MIN_POOL_TOKEN_NAME_LENGTH = 3;
|
|
7
|
+
const MAX_POOL_TOKEN_SYMBOL_LENGTH = 8;
|
|
8
|
+
const MIN_POOL_TOKEN_SYMBOL_LENGTH = 3;
|
|
9
|
+
const MAX_BASIS_POINTS = 10000;
|
|
10
|
+
/**
|
|
11
|
+
* Validate the pool token symbol
|
|
12
|
+
* @param symbol - The pool token symbol
|
|
13
|
+
* @throws Error if the pool token symbol is invalid
|
|
14
|
+
*/
|
|
15
|
+
const validatePoolTokenSymbol = (symbol) => {
|
|
16
|
+
if (symbol.length < MIN_POOL_TOKEN_SYMBOL_LENGTH)
|
|
17
|
+
throw new Error(`Pool token symbol must be at least ${MIN_POOL_TOKEN_SYMBOL_LENGTH} characters long`);
|
|
18
|
+
if (symbol.length > MAX_POOL_TOKEN_SYMBOL_LENGTH)
|
|
19
|
+
throw new Error(`Pool token symbol must be less than ${MAX_POOL_TOKEN_SYMBOL_LENGTH} characters long`);
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Validate the pool token name
|
|
23
|
+
* @param name - The pool token name
|
|
24
|
+
* @throws Error if the pool token name is invalid
|
|
25
|
+
*/
|
|
26
|
+
const validatePoolTokenName = (name) => {
|
|
27
|
+
if (name.length < MIN_POOL_TOKEN_NAME_LENGTH)
|
|
28
|
+
throw new Error(`Pool token name must be at least ${MIN_POOL_TOKEN_NAME_LENGTH} characters long`);
|
|
29
|
+
if (name.length > MAX_POOL_TOKEN_NAME_LENGTH)
|
|
30
|
+
throw new Error(`Pool token name must be less than ${MAX_POOL_TOKEN_NAME_LENGTH} characters long`);
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Validate the time in hours
|
|
34
|
+
* @param timeInHours - The time in hours
|
|
35
|
+
* @param name - The name of the time
|
|
36
|
+
* @throws Error if the time is invalid
|
|
37
|
+
*/
|
|
38
|
+
const validateTimeInHours = (timeInHours, name) => {
|
|
39
|
+
const minInHours = MIN_TIME_IN_HOURS / 3600;
|
|
40
|
+
const maxInHours = MAX_TIME_IN_HOURS / 3600;
|
|
41
|
+
if (timeInHours < minInHours)
|
|
42
|
+
throw new Error(`${name} must be greater than ${minInHours} hours. Current value: ${timeInHours} hours (${timeInHours * 3600} seconds)`);
|
|
43
|
+
if (timeInHours > maxInHours)
|
|
44
|
+
throw new Error(`${name} must be less than ${maxInHours} hours. Current value: ${timeInHours} hours (${timeInHours * 3600} seconds)`);
|
|
45
|
+
if (timeInHours % 1 !== 0)
|
|
46
|
+
throw new Error(`${name} must be a multiple of hours`);
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Get the min withdrawal delay time
|
|
50
|
+
* @param minWithdrawalDelayTime - The min withdrawal delay time
|
|
51
|
+
* @returns The min withdrawal delay time in seconds
|
|
52
|
+
*/
|
|
53
|
+
export const getMinWithdrawalDelayTime = async (minWithdrawalDelayTime) => {
|
|
54
|
+
if (!minWithdrawalDelayTime) {
|
|
55
|
+
const minWithdrawalDelayTimeValue = await numberPrompt(`Enter the min withdrawal delay time (in hours) (min: ${MIN_TIME_IN_HOURS / 3600} hours, max: ${MAX_TIME_IN_HOURS / 3600} hours)`, 'value');
|
|
56
|
+
if (!minWithdrawalDelayTimeValue.value)
|
|
57
|
+
throw new Error('Invalid min withdrawal delay time');
|
|
58
|
+
validateTimeInHours(minWithdrawalDelayTimeValue.value, 'Min withdrawal delay time');
|
|
59
|
+
return minWithdrawalDelayTimeValue.value * 3600;
|
|
60
|
+
}
|
|
61
|
+
validateTimeInHours(minWithdrawalDelayTime / 3600, 'Min withdrawal delay time');
|
|
62
|
+
return minWithdrawalDelayTime;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Get the min delay seconds
|
|
66
|
+
* @param minDelaySeconds - The min delay seconds
|
|
67
|
+
* @returns The min delay seconds in seconds
|
|
68
|
+
*/
|
|
69
|
+
export const getMinDelaySeconds = async (minDelaySeconds) => {
|
|
70
|
+
if (!minDelaySeconds) {
|
|
71
|
+
const minDelaySecondsValue = await numberPrompt(`Enter the min execution delay for timelock governance (min: ${MIN_TIME_IN_HOURS / 3600} hours, max: ${MAX_TIME_IN_HOURS / 3600} hours)`, 'value');
|
|
72
|
+
if (!minDelaySecondsValue.value)
|
|
73
|
+
throw new Error('Invalid min delay seconds');
|
|
74
|
+
validateTimeInHours(minDelaySecondsValue.value, 'Min delay seconds');
|
|
75
|
+
return minDelaySecondsValue.value * 3600;
|
|
76
|
+
}
|
|
77
|
+
validateTimeInHours(minDelaySeconds / 3600, 'Min delay seconds');
|
|
78
|
+
return minDelaySeconds;
|
|
79
|
+
};
|
|
80
|
+
export const getPoolTokenName = async (name) => {
|
|
81
|
+
if (!name) {
|
|
82
|
+
const nameValue = await textPrompt(`Enter the pool token name (min: ${MIN_POOL_TOKEN_NAME_LENGTH} characters, max: ${MAX_POOL_TOKEN_NAME_LENGTH} characters)`, 'value');
|
|
83
|
+
if (!nameValue.value)
|
|
84
|
+
throw new Error('Invalid pool token name');
|
|
85
|
+
validatePoolTokenName(nameValue.value);
|
|
86
|
+
return nameValue.value;
|
|
87
|
+
}
|
|
88
|
+
validatePoolTokenName(name);
|
|
89
|
+
return name;
|
|
90
|
+
};
|
|
91
|
+
export const getPoolTokenSymbol = async (symbol) => {
|
|
92
|
+
if (!symbol) {
|
|
93
|
+
const symbolValue = await textPrompt(`Enter the pool token symbol (min: ${MIN_POOL_TOKEN_SYMBOL_LENGTH} characters, max: ${MAX_POOL_TOKEN_SYMBOL_LENGTH} characters)`, 'value');
|
|
94
|
+
if (!symbolValue.value)
|
|
95
|
+
throw new Error('Invalid pool token symbol');
|
|
96
|
+
validatePoolTokenSymbol(symbolValue.value);
|
|
97
|
+
return symbolValue.value;
|
|
98
|
+
}
|
|
99
|
+
validatePoolTokenSymbol(symbol);
|
|
100
|
+
return symbol;
|
|
101
|
+
};
|
|
102
|
+
export const getReserveRatioGapBP = async (reserveRatioGapBP) => {
|
|
103
|
+
if (!reserveRatioGapBP) {
|
|
104
|
+
const reserveRatioGapBPValue = await numberPrompt(`Enter the reserve ratio gap (in basis points) (max: ${MAX_BASIS_POINTS} basis points)`, 'value');
|
|
105
|
+
if (!reserveRatioGapBPValue.value)
|
|
106
|
+
throw new Error('Invalid reserve ratio gap');
|
|
107
|
+
await validateReserveRatioGapBP(reserveRatioGapBPValue.value);
|
|
108
|
+
return reserveRatioGapBPValue.value;
|
|
109
|
+
}
|
|
110
|
+
await validateReserveRatioGapBP(reserveRatioGapBP);
|
|
111
|
+
return reserveRatioGapBP;
|
|
112
|
+
};
|
|
113
|
+
const validateReserveRatioGapBP = async (reserveRatioGapBP) => {
|
|
114
|
+
const operatorGrid = await getOperatorGridContract();
|
|
115
|
+
const defaultTier = await callReadMethodSilent(operatorGrid, 'tier', [0n]);
|
|
116
|
+
if (!defaultTier)
|
|
117
|
+
throw new Error('Default tier not found. Cannot validate reserve ratio gap.');
|
|
118
|
+
const { reserveRatioBP } = defaultTier;
|
|
119
|
+
const expectedResult = reserveRatioBP + reserveRatioGapBP;
|
|
120
|
+
if (expectedResult > MAX_BASIS_POINTS)
|
|
121
|
+
throw new Error(`Reserve ratio gap must be less than ${MAX_BASIS_POINTS - reserveRatioBP} basis points. Current value: ${reserveRatioGapBP}`);
|
|
122
|
+
};
|
|
123
|
+
// common text for vault configuration conformatin
|
|
124
|
+
export const prepareCreationConfigrationText = (vaultConfig, timelockConfig, commonPoolConfig) => {
|
|
125
|
+
return `nodeOperator: ${vaultConfig.nodeOperator}
|
|
126
|
+
nodeOperatorManager: ${vaultConfig.nodeOperatorManager}
|
|
127
|
+
nodeOperatorFeeBP: ${vaultConfig.nodeOperatorFeeBP}
|
|
128
|
+
confirmExpiry: ${vaultConfig.confirmExpiry}
|
|
129
|
+
minDelaySeconds: ${timelockConfig.minDelaySeconds}
|
|
130
|
+
proposer: ${timelockConfig.proposer}
|
|
131
|
+
executor: ${timelockConfig.executor}
|
|
132
|
+
emergencyCommittee: ${commonPoolConfig.emergencyCommittee}
|
|
133
|
+
minWithdrawalDelayTime: ${commonPoolConfig.minWithdrawalDelayTime}
|
|
134
|
+
name: ${commonPoolConfig.name}
|
|
135
|
+
symbol: ${commonPoolConfig.symbol}`;
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=create-vault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-vault.js","sourceRoot":"","sources":["../../../features/defi-wrapper/create-vault.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAQvE,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS;AAC5C,MAAM,iBAAiB,GAAG,EAAE,GA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BAAkB;kCAC/B,gBAAgB,CAAC,sBAAsB;gBACzD,gBAAgB,CAAC,IAAI;kBACnB,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { TransactionReceipt, Hex, Address } from 'viem';
|
|
2
|
+
import { getFactoryContract } from '../../contracts/defi-wrapper/index.js';
|
|
3
|
+
export type VaultConfig = {
|
|
4
|
+
nodeOperator: Address;
|
|
5
|
+
nodeOperatorManager: Address;
|
|
6
|
+
nodeOperatorFeeBP: bigint;
|
|
7
|
+
confirmExpiry: bigint;
|
|
8
|
+
};
|
|
9
|
+
export type TimelockConfig = {
|
|
10
|
+
minDelaySeconds: bigint;
|
|
11
|
+
proposer: Address;
|
|
12
|
+
executor: Address;
|
|
13
|
+
};
|
|
14
|
+
export type CommonPoolConfig = {
|
|
15
|
+
minWithdrawalDelayTime: bigint;
|
|
16
|
+
name: string;
|
|
17
|
+
symbol: string;
|
|
18
|
+
emergencyCommittee: Address;
|
|
19
|
+
};
|
|
20
|
+
export type BaseFactoryOptions = {
|
|
21
|
+
nodeOperator?: Address;
|
|
22
|
+
nodeOperatorManager?: Address;
|
|
23
|
+
nodeOperatorFeeRate?: number;
|
|
24
|
+
confirmExpiry?: number;
|
|
25
|
+
minDelaySeconds?: number;
|
|
26
|
+
emergencyCommittee?: Address;
|
|
27
|
+
proposer?: Address;
|
|
28
|
+
executor?: Address;
|
|
29
|
+
minWithdrawalDelayTime?: number;
|
|
30
|
+
name?: string;
|
|
31
|
+
symbol?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const finalizePoolCreation: (contract: Awaited<ReturnType<typeof getFactoryContract>>, vaultConfig: VaultConfig, timelockConfig: TimelockConfig, commonPoolConfig: CommonPoolConfig, creationEventData: Awaited<ReturnType<typeof getCreatePoolEventData>>) => Promise<void>;
|
|
34
|
+
export declare const getCreatePoolEventData: (receipt: TransactionReceipt, tx: Hex) => Promise<{
|
|
35
|
+
tx: `0x${string}`;
|
|
36
|
+
sender?: undefined;
|
|
37
|
+
vaultConfig?: undefined;
|
|
38
|
+
commonPoolConfig?: undefined;
|
|
39
|
+
auxiliaryConfig?: undefined;
|
|
40
|
+
timelockConfig?: undefined;
|
|
41
|
+
strategyFactory?: undefined;
|
|
42
|
+
strategyDeployBytes?: undefined;
|
|
43
|
+
intermediate?: undefined;
|
|
44
|
+
finishDeadline?: undefined;
|
|
45
|
+
blockNumber?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
sender: `0x${string}` | undefined;
|
|
48
|
+
vaultConfig: {
|
|
49
|
+
nodeOperator: `0x${string}`;
|
|
50
|
+
nodeOperatorManager: `0x${string}`;
|
|
51
|
+
nodeOperatorFeeBP: bigint;
|
|
52
|
+
confirmExpiry: bigint;
|
|
53
|
+
} | undefined;
|
|
54
|
+
commonPoolConfig: {
|
|
55
|
+
minWithdrawalDelayTime: bigint;
|
|
56
|
+
name: string;
|
|
57
|
+
symbol: string;
|
|
58
|
+
emergencyCommittee: `0x${string}`;
|
|
59
|
+
} | undefined;
|
|
60
|
+
auxiliaryConfig: {
|
|
61
|
+
allowlistEnabled: boolean;
|
|
62
|
+
mintingEnabled: boolean;
|
|
63
|
+
reserveRatioGapBP: bigint;
|
|
64
|
+
} | undefined;
|
|
65
|
+
timelockConfig: {
|
|
66
|
+
minDelaySeconds: bigint;
|
|
67
|
+
proposer: `0x${string}`;
|
|
68
|
+
executor: `0x${string}`;
|
|
69
|
+
} | undefined;
|
|
70
|
+
strategyFactory: `0x${string}` | undefined;
|
|
71
|
+
strategyDeployBytes: `0x${string}` | undefined;
|
|
72
|
+
intermediate: {
|
|
73
|
+
dashboard: `0x${string}`;
|
|
74
|
+
poolProxy: `0x${string}`;
|
|
75
|
+
poolImpl: `0x${string}`;
|
|
76
|
+
withdrawalQueueProxy: `0x${string}`;
|
|
77
|
+
wqImpl: `0x${string}`;
|
|
78
|
+
timelock: `0x${string}`;
|
|
79
|
+
} | undefined;
|
|
80
|
+
finishDeadline: bigint | undefined;
|
|
81
|
+
tx: `0x${string}`;
|
|
82
|
+
blockNumber: bigint;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const logCreatePoolEventData: (eventData: Awaited<ReturnType<typeof getCreatePoolEventData>>) => Promise<void>;
|
|
85
|
+
export declare const getFinalizePoolEventData: (receipt: TransactionReceipt, tx: Hex) => Promise<{
|
|
86
|
+
tx: `0x${string}`;
|
|
87
|
+
vault?: undefined;
|
|
88
|
+
pool?: undefined;
|
|
89
|
+
poolType?: undefined;
|
|
90
|
+
withdrawalQueue?: undefined;
|
|
91
|
+
strategyFactory?: undefined;
|
|
92
|
+
strategyDeployBytes?: undefined;
|
|
93
|
+
strategy?: undefined;
|
|
94
|
+
blockNumber?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
vault: `0x${string}` | undefined;
|
|
97
|
+
pool: `0x${string}` | undefined;
|
|
98
|
+
poolType: `0x${string}` | undefined;
|
|
99
|
+
withdrawalQueue: `0x${string}` | undefined;
|
|
100
|
+
strategyFactory: `0x${string}` | undefined;
|
|
101
|
+
strategyDeployBytes: `0x${string}` | undefined;
|
|
102
|
+
strategy: `0x${string}` | undefined;
|
|
103
|
+
tx: `0x${string}`;
|
|
104
|
+
blockNumber: bigint;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const logFinalizePoolEventData: (createEventData: Awaited<ReturnType<typeof getCreatePoolEventData>>, finalizeEventData: Awaited<ReturnType<typeof getFinalizePoolEventData>>) => Promise<void>;
|
|
107
|
+
export declare const promtBaseVaultConfiguration: ({ nodeOperator, nodeOperatorManager, nodeOperatorFeeRate, confirmExpiry, minDelaySeconds, proposer, executor, emergencyCommittee, minWithdrawalDelayTime, name, symbol, }: BaseFactoryOptions) => Promise<{
|
|
108
|
+
vaultConfig: VaultConfig;
|
|
109
|
+
timelockConfig: TimelockConfig;
|
|
110
|
+
commonPoolConfig: CommonPoolConfig;
|
|
111
|
+
CONNECT_DEPOSIT: bigint;
|
|
112
|
+
}>;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { parseEventLogs, fromHex, isAddressEqual, zeroAddress, } from 'viem';
|
|
2
|
+
import { FactoryAbi } from '../../abi/defi-wrapper/Factory.js';
|
|
3
|
+
import { program } from '../../command/index.js';
|
|
4
|
+
import { getVaultHubContract } from '../../contracts/index.js';
|
|
5
|
+
import { getAddress, getConfirmExpiry, getMinDelaySeconds, getMinWithdrawalDelayTime, getNodeOperatorFeeRate, getPoolTokenName, getPoolTokenSymbol, } from '../index.js';
|
|
6
|
+
import { logInfo, logResult, logError, callWriteMethodWithReceipt, } from '../../utils/index.js';
|
|
7
|
+
// сommon filaliztion step between two pools
|
|
8
|
+
export const finalizePoolCreation = async (contract, vaultConfig, timelockConfig, commonPoolConfig, creationEventData) => {
|
|
9
|
+
if (!creationEventData.auxiliaryConfig ||
|
|
10
|
+
!creationEventData.strategyFactory ||
|
|
11
|
+
!creationEventData.strategyDeployBytes ||
|
|
12
|
+
!creationEventData.intermediate) {
|
|
13
|
+
logError('Missing required data for pool creation finalize');
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
logInfo('Pool Creation Finalize');
|
|
17
|
+
const finalizeResult = await callWriteMethodWithReceipt({
|
|
18
|
+
contract,
|
|
19
|
+
methodName: 'createPoolFinish',
|
|
20
|
+
payload: [
|
|
21
|
+
vaultConfig,
|
|
22
|
+
timelockConfig,
|
|
23
|
+
commonPoolConfig,
|
|
24
|
+
creationEventData.auxiliaryConfig,
|
|
25
|
+
creationEventData.strategyFactory,
|
|
26
|
+
creationEventData.strategyDeployBytes,
|
|
27
|
+
creationEventData.intermediate,
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
if (!finalizeResult.receipt || !finalizeResult.tx) {
|
|
31
|
+
logInfo('Transaction has been sent');
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const finalizeEventData = await getFinalizePoolEventData(finalizeResult.receipt, finalizeResult.tx);
|
|
35
|
+
await logFinalizePoolEventData(creationEventData, finalizeEventData);
|
|
36
|
+
};
|
|
37
|
+
export const getCreatePoolEventData = async (receipt, tx) => {
|
|
38
|
+
if (program.opts().populateTx) {
|
|
39
|
+
return { tx };
|
|
40
|
+
}
|
|
41
|
+
const events = parseEventLogs({
|
|
42
|
+
abi: FactoryAbi,
|
|
43
|
+
logs: receipt.logs,
|
|
44
|
+
strict: true,
|
|
45
|
+
});
|
|
46
|
+
const poolEvent = events.find((event) => event.eventName === 'PoolCreationStarted');
|
|
47
|
+
const sender = poolEvent?.args.sender;
|
|
48
|
+
const vaultConfig = poolEvent?.args.vaultConfig;
|
|
49
|
+
const commonPoolConfig = poolEvent?.args.commonPoolConfig;
|
|
50
|
+
const auxiliaryConfig = poolEvent?.args.auxiliaryConfig;
|
|
51
|
+
const timelockConfig = poolEvent?.args.timelockConfig;
|
|
52
|
+
const strategyFactory = poolEvent?.args.strategyFactory;
|
|
53
|
+
const strategyDeployBytes = poolEvent?.args.strategyDeployBytes;
|
|
54
|
+
const intermediate = poolEvent?.args.intermediate;
|
|
55
|
+
const finishDeadline = poolEvent?.args.finishDeadline;
|
|
56
|
+
return {
|
|
57
|
+
sender,
|
|
58
|
+
vaultConfig,
|
|
59
|
+
commonPoolConfig,
|
|
60
|
+
auxiliaryConfig,
|
|
61
|
+
timelockConfig,
|
|
62
|
+
strategyFactory,
|
|
63
|
+
strategyDeployBytes,
|
|
64
|
+
intermediate,
|
|
65
|
+
finishDeadline,
|
|
66
|
+
tx,
|
|
67
|
+
blockNumber: receipt.blockNumber,
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export const logCreatePoolEventData = async (eventData) => {
|
|
71
|
+
logInfo('Pool Creation Started');
|
|
72
|
+
logResult({
|
|
73
|
+
data: [
|
|
74
|
+
['Sender', eventData.sender],
|
|
75
|
+
['Strategy Factory', eventData.strategyFactory],
|
|
76
|
+
['Strategy Deploy Bytes', eventData.strategyDeployBytes],
|
|
77
|
+
['Finish Deadline', eventData.finishDeadline],
|
|
78
|
+
['Transaction Hash', eventData.tx],
|
|
79
|
+
['Block Number', eventData.blockNumber],
|
|
80
|
+
],
|
|
81
|
+
});
|
|
82
|
+
logInfo('Vault Config');
|
|
83
|
+
logResult({
|
|
84
|
+
data: [
|
|
85
|
+
['Node Operator', eventData.vaultConfig?.nodeOperator],
|
|
86
|
+
['Node Operator Manager', eventData.vaultConfig?.nodeOperatorManager],
|
|
87
|
+
['Node Operator Fee BP', eventData.vaultConfig?.nodeOperatorFeeBP],
|
|
88
|
+
['Confirm Expiry', eventData.vaultConfig?.confirmExpiry],
|
|
89
|
+
],
|
|
90
|
+
});
|
|
91
|
+
logInfo('Common Pool Config');
|
|
92
|
+
logResult({
|
|
93
|
+
data: [
|
|
94
|
+
[
|
|
95
|
+
'Min Withdrawal Delay Time',
|
|
96
|
+
eventData.commonPoolConfig?.minWithdrawalDelayTime,
|
|
97
|
+
],
|
|
98
|
+
['Name', eventData.commonPoolConfig?.name],
|
|
99
|
+
['Symbol', eventData.commonPoolConfig?.symbol],
|
|
100
|
+
],
|
|
101
|
+
});
|
|
102
|
+
logInfo('Auxiliary Config');
|
|
103
|
+
logResult({
|
|
104
|
+
data: [
|
|
105
|
+
['Allowlist Enabled', eventData.auxiliaryConfig?.allowlistEnabled],
|
|
106
|
+
['Minting Enabled', eventData.auxiliaryConfig?.mintingEnabled],
|
|
107
|
+
['Reserve Ratio Gap BP', eventData.auxiliaryConfig?.reserveRatioGapBP],
|
|
108
|
+
],
|
|
109
|
+
});
|
|
110
|
+
logInfo('Timelock Config');
|
|
111
|
+
logResult({
|
|
112
|
+
data: [
|
|
113
|
+
['Min Delay Seconds', eventData.timelockConfig?.minDelaySeconds],
|
|
114
|
+
['Proposer', eventData.timelockConfig?.proposer],
|
|
115
|
+
['Executor', eventData.timelockConfig?.executor],
|
|
116
|
+
],
|
|
117
|
+
});
|
|
118
|
+
logInfo('Intermediate');
|
|
119
|
+
logResult({
|
|
120
|
+
data: [
|
|
121
|
+
['Dashboard', eventData.intermediate?.dashboard],
|
|
122
|
+
['Pool Proxy', eventData.intermediate?.poolProxy],
|
|
123
|
+
['Withdrawal Queue Proxy', eventData.intermediate?.withdrawalQueueProxy],
|
|
124
|
+
['Timelock', eventData.intermediate?.timelock],
|
|
125
|
+
],
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
export const getFinalizePoolEventData = async (receipt, tx) => {
|
|
129
|
+
if (program.opts().populateTx) {
|
|
130
|
+
return { tx };
|
|
131
|
+
}
|
|
132
|
+
const events = parseEventLogs({
|
|
133
|
+
abi: FactoryAbi,
|
|
134
|
+
logs: receipt.logs,
|
|
135
|
+
});
|
|
136
|
+
const poolEvent = events.find((event) => event.eventName === 'PoolCreated');
|
|
137
|
+
const vault = poolEvent?.args.vault;
|
|
138
|
+
const pool = poolEvent?.args.pool;
|
|
139
|
+
const poolType = poolEvent?.args.poolType;
|
|
140
|
+
const withdrawalQueue = poolEvent?.args.withdrawalQueue;
|
|
141
|
+
const strategyFactory = poolEvent?.args.strategyFactory;
|
|
142
|
+
const strategyDeployBytes = poolEvent?.args.strategyDeployBytes;
|
|
143
|
+
const strategy = poolEvent?.args.strategy;
|
|
144
|
+
return {
|
|
145
|
+
vault,
|
|
146
|
+
pool,
|
|
147
|
+
poolType,
|
|
148
|
+
withdrawalQueue,
|
|
149
|
+
strategyFactory,
|
|
150
|
+
strategyDeployBytes,
|
|
151
|
+
strategy,
|
|
152
|
+
tx,
|
|
153
|
+
blockNumber: receipt.blockNumber,
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
export const logFinalizePoolEventData = async (createEventData, finalizeEventData) => {
|
|
157
|
+
const poolType = finalizeEventData.poolType &&
|
|
158
|
+
fromHex(finalizeEventData.poolType, 'string').replace(/\W/g, '');
|
|
159
|
+
logInfo('Pool Creation Finalized');
|
|
160
|
+
logResult({
|
|
161
|
+
data: [
|
|
162
|
+
['Vault', finalizeEventData.vault],
|
|
163
|
+
['Pool', finalizeEventData.pool],
|
|
164
|
+
['Pool Type', poolType],
|
|
165
|
+
['Withdrawal Queue', finalizeEventData.withdrawalQueue],
|
|
166
|
+
['Timelock', createEventData.intermediate?.timelock],
|
|
167
|
+
['Strategy Factory', finalizeEventData.strategyFactory],
|
|
168
|
+
['Strategy Deploy Bytes', finalizeEventData.strategyDeployBytes],
|
|
169
|
+
['Strategy', finalizeEventData.strategy],
|
|
170
|
+
['Transaction Hash', finalizeEventData.tx],
|
|
171
|
+
['Block Number', finalizeEventData.blockNumber],
|
|
172
|
+
],
|
|
173
|
+
});
|
|
174
|
+
// log UI strategy ENV only if it's not the zero address - meaning it's stvStrategyPool
|
|
175
|
+
const strategyDataEntry = finalizeEventData.strategy &&
|
|
176
|
+
!isAddressEqual(finalizeEventData.strategy, zeroAddress)
|
|
177
|
+
? [['VITE_STRATEGY_ADDRESS', finalizeEventData.strategy]]
|
|
178
|
+
: [];
|
|
179
|
+
logInfo('UI Environment Variables:');
|
|
180
|
+
logResult({
|
|
181
|
+
data: [
|
|
182
|
+
['VITE_POOL_TYPE', poolType],
|
|
183
|
+
['VITE_POOL_ADDRESS', finalizeEventData.pool],
|
|
184
|
+
...strategyDataEntry,
|
|
185
|
+
],
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
export const promtBaseVaultConfiguration = async ({ nodeOperator, nodeOperatorManager, nodeOperatorFeeRate, confirmExpiry, minDelaySeconds, proposer, executor, emergencyCommittee, minWithdrawalDelayTime, name, symbol, }) => {
|
|
189
|
+
const vaultHubContract = await getVaultHubContract();
|
|
190
|
+
const CONNECT_DEPOSIT = await vaultHubContract.read.CONNECT_DEPOSIT();
|
|
191
|
+
const nodeOperatorAddress = await getAddress(nodeOperator, 'Node Operator');
|
|
192
|
+
const nodeOperatorManagerAddress = await getAddress(nodeOperatorManager, 'Node Operator Manager');
|
|
193
|
+
const nodeOperatorFeeRateValue = await getNodeOperatorFeeRate(nodeOperatorFeeRate);
|
|
194
|
+
const confirmExpiryValue = await getConfirmExpiry({
|
|
195
|
+
confirmExpiry,
|
|
196
|
+
});
|
|
197
|
+
const minDelaySecondsValue = await getMinDelaySeconds(minDelaySeconds);
|
|
198
|
+
const proposerAddress = await getAddress(proposer, 'Proposer');
|
|
199
|
+
const executorAddress = await getAddress(executor, 'Executor');
|
|
200
|
+
const emergencyCommitteeAddress = await getAddress(emergencyCommittee, 'Emergency Committee');
|
|
201
|
+
const minWithdrawalDelayTimeValue = await getMinWithdrawalDelayTime(minWithdrawalDelayTime);
|
|
202
|
+
const nameValue = await getPoolTokenName(name);
|
|
203
|
+
const symbolValue = await getPoolTokenSymbol(symbol);
|
|
204
|
+
const vaultConfig = {
|
|
205
|
+
nodeOperator: nodeOperatorAddress,
|
|
206
|
+
nodeOperatorManager: nodeOperatorManagerAddress,
|
|
207
|
+
nodeOperatorFeeBP: BigInt(nodeOperatorFeeRateValue),
|
|
208
|
+
confirmExpiry: BigInt(confirmExpiryValue),
|
|
209
|
+
};
|
|
210
|
+
const timelockConfig = {
|
|
211
|
+
minDelaySeconds: BigInt(minDelaySecondsValue),
|
|
212
|
+
proposer: proposerAddress,
|
|
213
|
+
executor: executorAddress,
|
|
214
|
+
};
|
|
215
|
+
const commonPoolConfig = {
|
|
216
|
+
minWithdrawalDelayTime: BigInt(minWithdrawalDelayTimeValue),
|
|
217
|
+
name: nameValue,
|
|
218
|
+
symbol: symbolValue,
|
|
219
|
+
emergencyCommittee: emergencyCommitteeAddress,
|
|
220
|
+
};
|
|
221
|
+
return {
|
|
222
|
+
vaultConfig,
|
|
223
|
+
timelockConfig,
|
|
224
|
+
commonPoolConfig,
|
|
225
|
+
CONNECT_DEPOSIT,
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
//# sourceMappingURL=defi-wrapper-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defi-wrapper-factory.js","sourceRoot":"","sources":["../../../features/defi-wrapper/defi-wrapper-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc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QACX,cAAc;QACd,gBAAgB;QAChB,eAAe;KAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../features/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
export declare const getPoolInfo: (address: Address) => Promise<{
|
|
3
|
+
poolTypeName: string;
|
|
4
|
+
isStvStethPool: boolean;
|
|
5
|
+
isStvPool: boolean;
|
|
6
|
+
WSTETH?: `0x${string}` | undefined;
|
|
7
|
+
RESERVE_RATIO_GAP_BP?: bigint | undefined;
|
|
8
|
+
totalMintedStethShares?: bigint | undefined;
|
|
9
|
+
reserveRatioBP?: bigint | undefined;
|
|
10
|
+
forcedRebalanceThresholdBP?: bigint | undefined;
|
|
11
|
+
totalExceedingMintedStethShares?: bigint | undefined;
|
|
12
|
+
totalExceedingMintedSteth?: bigint | undefined;
|
|
13
|
+
maxLossSocializationBP?: bigint | undefined;
|
|
14
|
+
isMintingPaused?: boolean | undefined;
|
|
15
|
+
MINTING_FEATURE?: `0x${string}` | undefined;
|
|
16
|
+
vault: `0x${string}`;
|
|
17
|
+
stETH: `0x${string}`;
|
|
18
|
+
Dashboard: `0x${string}`;
|
|
19
|
+
VaultHub: `0x${string}`;
|
|
20
|
+
WithdrawalQueue: `0x${string}`;
|
|
21
|
+
Distributor: `0x${string}`;
|
|
22
|
+
poolType: `0x${string}`;
|
|
23
|
+
totalNominalAssets: bigint;
|
|
24
|
+
totalAssets: bigint;
|
|
25
|
+
totalSupply: bigint;
|
|
26
|
+
totalLiabilityShares: bigint;
|
|
27
|
+
totalUnassignedLiabilityShares: bigint;
|
|
28
|
+
totalUnassignedLiabilitySteth: bigint;
|
|
29
|
+
decimals: number;
|
|
30
|
+
isDepositsPaused: boolean;
|
|
31
|
+
ALLOW_LIST_ENABLED: boolean;
|
|
32
|
+
DEPOSITS_FEATURE: `0x${string}`;
|
|
33
|
+
allowListSize: bigint;
|
|
34
|
+
isReportFresh: boolean;
|
|
35
|
+
}>;
|