@lidofinance/lsv-cli 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/AccessControlConfirmable.d.ts +3 -2
- package/dist/abi/AccessControlConfirmable.js +3 -1
- package/dist/abi/AccessControlConfirmable.js.map +1 -1
- package/dist/abi/Dashboard.d.ts +87 -30
- package/dist/abi/Dashboard.js +46 -32
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/LazyOracle.d.ts +408 -3
- package/dist/abi/LazyOracle.js +59 -3
- package/dist/abi/LazyOracle.js.map +1 -1
- package/dist/abi/OperatorGrid.d.ts +52 -0
- package/dist/abi/OperatorGrid.js +16 -0
- package/dist/abi/OperatorGrid.js.map +1 -1
- package/dist/abi/PredepositGuarantee.d.ts +28 -0
- package/dist/abi/StakingVault.d.ts +56 -0
- package/dist/abi/StakingVault.js +2 -0
- package/dist/abi/StakingVault.js.map +1 -1
- package/dist/abi/ValidatorConsolidationRequests.d.ts +121 -0
- package/dist/abi/ValidatorConsolidationRequests.js +159 -0
- package/dist/abi/ValidatorConsolidationRequests.js.map +1 -0
- package/dist/abi/VaultFactory.d.ts +48 -4
- package/dist/abi/VaultHub.d.ts +38 -0
- 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/abi/index.d.ts +1 -0
- package/dist/abi/index.js +1 -0
- 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 +2 -0
- package/dist/configs/utils.js +12 -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 +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/lazy-oracle.js +3 -2
- package/dist/contracts/lazy-oracle.js.map +1 -1
- package/dist/contracts/locator.d.ts +3 -9655
- package/dist/contracts/locator.js +4 -3
- package/dist/contracts/locator.js.map +1 -1
- package/dist/contracts/operator-grid.d.ts +1 -1
- package/dist/contracts/operator-grid.js +3 -2
- package/dist/contracts/operator-grid.js.map +1 -1
- package/dist/contracts/pdg.js +3 -2
- package/dist/contracts/pdg.js.map +1 -1
- package/dist/contracts/steth.d.ts +54 -54
- package/dist/contracts/steth.js +3 -2
- package/dist/contracts/steth.js.map +1 -1
- package/dist/contracts/validator-consolidation-requests.d.ts +5 -0
- package/dist/contracts/validator-consolidation-requests.js +13 -0
- package/dist/contracts/validator-consolidation-requests.js.map +1 -0
- package/dist/contracts/vault-factory.d.ts +3 -27674
- 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/consolidation.d.ts +18 -0
- package/dist/features/consolidation.js +199 -0
- package/dist/features/consolidation.js.map +1 -0
- package/dist/features/defi-wrapper/create-vault.d.ts +17 -0
- package/dist/features/defi-wrapper/create-vault.js +137 -0
- package/dist/features/defi-wrapper/create-vault.js.map +1 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +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/index.d.ts +1 -0
- package/dist/features/deposits/index.js +1 -0
- package/dist/features/deposits/index.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/deposits/pdg.d.ts +2 -0
- package/dist/features/deposits/pdg.js +18 -0
- package/dist/features/deposits/pdg.js.map +1 -0
- package/dist/features/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 +4 -0
- package/dist/features/index.js +4 -0
- package/dist/features/index.js.map +1 -1
- package/dist/features/metrics.d.ts +4 -0
- package/dist/features/metrics.js +48 -0
- package/dist/features/metrics.js.map +1 -0
- package/dist/features/mint-burn/allowance.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 +9 -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 +1 -0
- package/dist/features/utils/index.js +1 -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 +19 -3
- package/dist/features/utils/report-fresh.js.map +1 -1
- 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 +2 -2
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +10 -12
- 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 +25 -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 +13 -4
- 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 -0
- package/dist/programs/contracts/dashboard/config.js.map +1 -1
- package/dist/programs/contracts/dashboard/read.js +7 -7
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +85 -61
- package/dist/programs/contracts/dashboard/write.js.map +1 -1
- package/dist/programs/contracts/hub/config.js +0 -10
- package/dist/programs/contracts/hub/config.js.map +1 -1
- package/dist/programs/contracts/hub/read.js +63 -2
- package/dist/programs/contracts/hub/read.js.map +1 -1
- package/dist/programs/contracts/hub/write.js +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 +4 -6
- package/dist/programs/contracts/pdg/read.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +76 -10
- 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/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 +22 -18
- package/dist/programs/pdg-helpers.js.map +1 -1
- package/dist/programs/use-cases/consolidation/index.d.ts +2 -0
- package/dist/programs/use-cases/consolidation/index.js +3 -0
- package/dist/programs/use-cases/consolidation/index.js.map +1 -0
- package/dist/programs/use-cases/consolidation/main.d.ts +1 -0
- package/dist/programs/use-cases/consolidation/main.js +5 -0
- package/dist/programs/use-cases/consolidation/main.js.map +1 -0
- package/dist/programs/use-cases/consolidation/write.d.ts +1 -0
- package/dist/programs/use-cases/consolidation/write.js +78 -0
- package/dist/programs/use-cases/consolidation/write.js.map +1 -0
- package/dist/programs/use-cases/deposits/read.js +8 -4
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/deposits/write.js +141 -16
- package/dist/programs/use-cases/deposits/write.js.map +1 -1
- package/dist/programs/use-cases/index.d.ts +1 -0
- package/dist/programs/use-cases/index.js +1 -0
- package/dist/programs/use-cases/index.js.map +1 -1
- package/dist/programs/use-cases/metrics/read.js +38 -33
- 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/providers/wallet.d.ts +6986 -171
- package/dist/providers/wallet.js +15 -5
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/utils/bigInt.test.d.ts +1 -0
- package/dist/tests/utils/bigInt.test.js +61 -0
- package/dist/tests/utils/bigInt.test.js.map +1 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/utils/arguments.d.ts +8 -0
- package/dist/utils/arguments.js +56 -4
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/bigInt.d.ts +2 -0
- package/dist/utils/bigInt.js +3 -0
- package/dist/utils/bigInt.js.map +1 -0
- package/dist/utils/bls.d.ts +2 -2
- package/dist/utils/bls.js +8 -7
- package/dist/utils/bls.js.map +1 -1
- package/dist/utils/cache.d.ts +30 -0
- package/dist/utils/cache.js +140 -3
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/calculate-overview-v2.js +1 -2
- package/dist/utils/calculate-overview-v2.js.map +1 -1
- package/dist/utils/calculate-overview.js +1 -2
- package/dist/utils/calculate-overview.js.map +1 -1
- package/dist/utils/charts/blessed/charts-apr.js +8 -18
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +7 -17
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/blessed/datasets/prepare-metrics.d.ts +5 -5
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js +11 -11
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
- package/dist/utils/charts/simple/simple-charts.js +8 -18
- package/dist/utils/charts/simple/simple-charts.js.map +1 -1
- package/dist/utils/commands/confirmations.js +1 -1
- package/dist/utils/commands/confirmations.js.map +1 -1
- package/dist/utils/commands/report.d.ts +1 -1
- package/dist/utils/commands/report.js +3 -2
- package/dist/utils/commands/report.js.map +1 -1
- package/dist/utils/consolidation/checks.d.ts +7 -0
- package/dist/utils/consolidation/checks.js +40 -0
- package/dist/utils/consolidation/checks.js.map +1 -0
- package/dist/utils/consolidation/confirms.d.ts +4 -0
- package/dist/utils/consolidation/confirms.js +41 -0
- package/dist/utils/consolidation/confirms.js.map +1 -0
- package/dist/utils/consolidation/index.d.ts +6 -0
- package/dist/utils/consolidation/index.js +7 -0
- package/dist/utils/consolidation/index.js.map +1 -0
- package/dist/utils/consolidation/logs.d.ts +3 -0
- package/dist/utils/consolidation/logs.js +41 -0
- package/dist/utils/consolidation/logs.js.map +1 -0
- package/dist/utils/consolidation/pubkeys.d.ts +8 -0
- package/dist/utils/consolidation/pubkeys.js +40 -0
- package/dist/utils/consolidation/pubkeys.js.map +1 -0
- package/dist/utils/consolidation/types.d.ts +11 -0
- package/dist/utils/consolidation/types.js +2 -0
- package/dist/utils/consolidation/types.js.map +1 -0
- package/dist/utils/consolidation/validator-info.d.ts +4 -0
- package/dist/utils/consolidation/validator-info.js +34 -0
- package/dist/utils/consolidation/validator-info.js.map +1 -0
- package/dist/utils/consolidation/validators-checks.d.ts +10 -0
- package/dist/utils/consolidation/validators-checks.js +58 -0
- package/dist/utils/consolidation/validators-checks.js.map +1 -0
- package/dist/utils/fetchCL.d.ts +36 -19
- package/dist/utils/fetchCL.js +82 -11
- 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/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.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 +3 -3
- package/dist/utils/report/statistic-data.js.map +1 -1
- package/dist/utils/statistic/report-statistic.d.ts +6 -5
- package/dist/utils/statistic/report-statistic.js +15 -16
- package/dist/utils/statistic/report-statistic.js.map +1 -1
- package/dist/utils/transactions/tx-private-key.d.ts +2 -2
- package/dist/utils/transactions/tx-private-key.js +14 -9
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.d.ts +32 -2
- package/dist/utils/transactions/tx-wc.js +61 -33
- package/dist/utils/transactions/tx-wc.js.map +1 -1
- package/dist/utils/transactions/types.d.ts +4 -2
- 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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { stringToAddress, stringToBigInt, } from '../../../../utils/index.js';
|
|
2
|
+
export const readCommandConfig = {
|
|
3
|
+
totalUnassignedLiabilityShares: {
|
|
4
|
+
name: 'total-unassigned-liability-shares',
|
|
5
|
+
aliases: ['tuls'],
|
|
6
|
+
description: 'get the total liability stETH shares that are not assigned to any users',
|
|
7
|
+
},
|
|
8
|
+
totalAssets: {
|
|
9
|
+
name: 'total-assets',
|
|
10
|
+
aliases: ['ta'],
|
|
11
|
+
description: 'get the total assets managed by the pool',
|
|
12
|
+
},
|
|
13
|
+
totalLiabilityShares: {
|
|
14
|
+
name: 'total-liability-shares',
|
|
15
|
+
aliases: ['tls'],
|
|
16
|
+
description: 'get the total liability stETH shares issued to the vault',
|
|
17
|
+
},
|
|
18
|
+
totalExceedingMintedSteth: {
|
|
19
|
+
name: 'total-exceeding-minted-steth',
|
|
20
|
+
aliases: ['tems'],
|
|
21
|
+
description: "get the amount of minted stETH exceeding the Staking Vault's liability",
|
|
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
|
+
calcAssetsToLockForStethShares: {
|
|
57
|
+
name: 'calc-assets-to-lock-for-steth-shares',
|
|
58
|
+
description: 'get calculated the min amount of assets to lock for a given amount of stETH shares',
|
|
59
|
+
arguments: {
|
|
60
|
+
_stethShares: {
|
|
61
|
+
name: 'stethShares',
|
|
62
|
+
description: 'the amount of stETH shares (18 decimals)',
|
|
63
|
+
modifier: stringToBigInt,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
calcStethSharesToMintForAssets: {
|
|
68
|
+
name: 'calc-steth-shares-to-mint-for-assets',
|
|
69
|
+
description: 'get calculated the amount of stETH shares to mint for a given amount of assets',
|
|
70
|
+
arguments: {
|
|
71
|
+
_assets: {
|
|
72
|
+
name: 'assets',
|
|
73
|
+
description: 'the amount of assets (18 decimals)',
|
|
74
|
+
modifier: stringToBigInt,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
calcStethSharesToMintForStv: {
|
|
79
|
+
name: 'calc-steth-shares-to-mint-for-stv',
|
|
80
|
+
description: 'get calculated amount of stETH shares to mint for a given amount of stv',
|
|
81
|
+
arguments: {
|
|
82
|
+
_stv: {
|
|
83
|
+
name: 'stv',
|
|
84
|
+
description: 'the amount of stv (27 decimals)',
|
|
85
|
+
modifier: stringToBigInt,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
calcStvToLockForStethShares: {
|
|
90
|
+
name: 'calc-stv-to-lock-for-steth-shares',
|
|
91
|
+
description: 'get calculated min amount of stv to lock for a given amount of stETH shares',
|
|
92
|
+
arguments: {
|
|
93
|
+
_stethShares: {
|
|
94
|
+
name: 'stethShares',
|
|
95
|
+
description: 'the amount of stETH shares (18 decimals)',
|
|
96
|
+
modifier: stringToBigInt,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
totalMintedStethShares: {
|
|
101
|
+
name: 'total-minted-steth-shares',
|
|
102
|
+
description: 'get the total stETH shares minted by the pool',
|
|
103
|
+
},
|
|
104
|
+
mintedStethSharesOf: {
|
|
105
|
+
name: 'minted-steth-shares-of',
|
|
106
|
+
description: 'get the amount of stETH shares minted by the pool for a specific account',
|
|
107
|
+
arguments: {
|
|
108
|
+
_account: {
|
|
109
|
+
name: 'account',
|
|
110
|
+
description: 'the address of the account',
|
|
111
|
+
modifier: stringToAddress,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
totalExceedingMintedStethShares: {
|
|
116
|
+
name: 'total-exceeding-minted-steth-shares',
|
|
117
|
+
description: "get the amount of minted stETH shares exceeding the Staking Vault's liability",
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAE1B;IACF,8BAA8B,EAAE;QAC9B,IAAI,EAAE,mCAAm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I,EAAE,sCAAsC;QAC5C,WAAW,EACT,gFAAgF;QAClF,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;gBACjD,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,2BAA2B,EAAE;QAC3B,IAAI,EAAE,mCAAmC;QACzC,WAAW,EACT,yEAAyE;QAC3E,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,IAAI,EAAE,KAAK;gBACX,WAAW,EAAE,iCAAiC;gBAC9C,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,2BAA2B,EAAE;QAC3B,IAAI,EAAE,mCAAmC;QACzC,WAAW,EACT,6EAA6E;QAC/E,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,cAAc;aACzB;SACF;KACF;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,+CAA+C;KAC7D;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,0EAA0E;QAC5E,SAAS,EAAE;YACT,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,4BAA4B;gBACzC,QAAQ,EAAE,eAAe;aAC1B;SACF;KACF;IACD,+BAA+B,EAAE;QAC/B,IAAI,EAAE,qCAAqC;QAC3C,WAAW,EACT,+EAA+E;KAClF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stvStethPool: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB;KAC7C,OAAO,CAAC,gBAAgB,CAAC;KACzB,KAAK,CAAC,WAAW,CAAC;KAClB,WAAW,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { formatEther, formatUnits } from 'viem';
|
|
2
|
+
import { Option } from 'commander';
|
|
3
|
+
import { StvStETHPoolAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
4
|
+
import { getStvStethPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
5
|
+
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
6
|
+
import { stvStethPool } from './main.js';
|
|
7
|
+
import { readCommandConfig } from './config.js';
|
|
8
|
+
const stvStethPoolRead = stvStethPool
|
|
9
|
+
.command('read')
|
|
10
|
+
.alias('r')
|
|
11
|
+
.description('read commands');
|
|
12
|
+
stvStethPoolRead.addOption(new Option('-cmd2json'));
|
|
13
|
+
stvStethPoolRead.on('option:-cmd2json', function () {
|
|
14
|
+
logInfo(getCommandsJson(stvStethPoolRead));
|
|
15
|
+
process.exit();
|
|
16
|
+
});
|
|
17
|
+
stvStethPoolRead
|
|
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 getStvStethPoolContract(address);
|
|
23
|
+
const [poolType, DEFAULT_ADMIN_ROLE, DEPOSIT_ROLE, ALLOW_LIST_MANAGER_ROLE, DASHBOARD, VAULT, STETH, VAULT_HUB, WITHDRAWAL_QUEUE, ALLOW_LIST_ENABLED, name, symbol, totalAssets, totalExceedingMintedSteth, totalLiabilityShares, totalNominalAssets, totalSupply, totalUnassignedLiabilityShares,] = await Promise.all([
|
|
24
|
+
callReadMethodSilent(contract, 'poolType'),
|
|
25
|
+
callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
|
|
26
|
+
callReadMethodSilent(contract, 'DEPOSIT_ROLE'),
|
|
27
|
+
callReadMethodSilent(contract, 'ALLOW_LIST_MANAGER_ROLE'),
|
|
28
|
+
callReadMethodSilent(contract, 'DASHBOARD'),
|
|
29
|
+
callReadMethodSilent(contract, 'VAULT'),
|
|
30
|
+
callReadMethodSilent(contract, 'STETH'),
|
|
31
|
+
callReadMethodSilent(contract, 'VAULT_HUB'),
|
|
32
|
+
callReadMethodSilent(contract, 'WITHDRAWAL_QUEUE'),
|
|
33
|
+
callReadMethodSilent(contract, 'ALLOW_LIST_ENABLED'),
|
|
34
|
+
callReadMethodSilent(contract, 'name'),
|
|
35
|
+
callReadMethodSilent(contract, 'symbol'),
|
|
36
|
+
callReadMethodSilent(contract, 'totalAssets'),
|
|
37
|
+
callReadMethodSilent(contract, 'totalExceedingMintedSteth'),
|
|
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
|
+
['DASHBOARD', DASHBOARD],
|
|
50
|
+
['VAULT', VAULT],
|
|
51
|
+
['STETH', STETH],
|
|
52
|
+
['VAULT_HUB', VAULT_HUB],
|
|
53
|
+
['WITHDRAWAL_QUEUE', WITHDRAWAL_QUEUE],
|
|
54
|
+
['ALLOW_LIST_ENABLED', ALLOW_LIST_ENABLED],
|
|
55
|
+
['name', name],
|
|
56
|
+
['symbol', symbol],
|
|
57
|
+
['totalAssets', formatEther(totalAssets)],
|
|
58
|
+
['totalExceedingMintedSteth', formatEther(totalExceedingMintedSteth)],
|
|
59
|
+
['totalLiabilityShares', formatEther(totalLiabilityShares)],
|
|
60
|
+
['totalNominalAssets', formatEther(totalNominalAssets)],
|
|
61
|
+
['totalSupply', formatUnits(totalSupply, 27)],
|
|
62
|
+
[
|
|
63
|
+
'totalUnassignedLiabilityShares',
|
|
64
|
+
formatEther(totalUnassignedLiabilityShares),
|
|
65
|
+
],
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
generateReadCommands(StvStETHPoolAbi, getStvStethPoolContract, stvStethPoolRead, readCommandConfig);
|
|
70
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,M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,kBAAkB,CAAC,CAAC;YACvD,CAAC,aAAa,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAC7C;gBACE,gCAAgC;gBAChC,WAAW,CAAC,8BAA8B,CAAC;aAC5C;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, } from '../../../../utils/index.js';
|
|
3
|
+
import { stvStethPool } from './main.js';
|
|
4
|
+
import { formatEther } from 'viem';
|
|
5
|
+
import { getStvStethPoolContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
6
|
+
const stvStethPoolWrite = stvStethPool
|
|
7
|
+
.command('write')
|
|
8
|
+
.alias('w')
|
|
9
|
+
.description('write commands');
|
|
10
|
+
stvStethPoolWrite.addOption(new Option('-cmd2json'));
|
|
11
|
+
stvStethPoolWrite.on('option:-cmd2json', function () {
|
|
12
|
+
logInfo(getCommandsJson(stvStethPoolWrite));
|
|
13
|
+
process.exit();
|
|
14
|
+
});
|
|
15
|
+
stvStethPoolWrite
|
|
16
|
+
.command('deposit-eth-shares')
|
|
17
|
+
.description('deposit native ETH and receive stv, minting a specific amount of stETH shares')
|
|
18
|
+
.argument('<address>', 'stv steth pool address', stringToAddress)
|
|
19
|
+
.argument('<referral>', 'the address of the referral (if any)', stringToAddress)
|
|
20
|
+
.argument('<stethSharesToMint>', 'amount of stETH shares to mint (up to maximum capacity for this deposit). Pass MAX_MINTABLE_AMOUNT to mint maximum available for this deposit', stringToBigInt)
|
|
21
|
+
.action(async (address, referral, stethSharesToMint) => {
|
|
22
|
+
const contract = await getStvStethPoolContract(address);
|
|
23
|
+
const confirmationMessage = `Are you sure you want to deposit ETH to the stv steth pool? (referral: ${referral}, stethSharesToMint: ${stethSharesToMint})`;
|
|
24
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
25
|
+
if (!confirm)
|
|
26
|
+
return;
|
|
27
|
+
await callWriteMethodWithReceipt({
|
|
28
|
+
contract,
|
|
29
|
+
methodName: 'depositETHAndMintStethShares',
|
|
30
|
+
payload: [referral, stethSharesToMint],
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
stvStethPoolWrite
|
|
34
|
+
.command('deposit-eth-wsteth')
|
|
35
|
+
.description('deposit native ETH and receive stv, minting a specific amount of stETH shares')
|
|
36
|
+
.argument('<address>', 'stv steth pool address', stringToAddress)
|
|
37
|
+
.argument('<referral>', 'the address of the referral (if any)', stringToAddress)
|
|
38
|
+
.argument('<stethSharesToMint>', 'amount of stETH shares to mint (up to maximum capacity for this deposit). Pass MAX_MINTABLE_AMOUNT to mint maximum available for this deposit', stringToBigInt)
|
|
39
|
+
.action(async (address, referral, stethSharesToMint) => {
|
|
40
|
+
const contract = await getStvStethPoolContract(address);
|
|
41
|
+
const confirmationMessage = `Are you sure you want to deposit ETH to the stv steth pool? (referral: ${referral}, stethSharesToMint: ${stethSharesToMint})`;
|
|
42
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
43
|
+
if (!confirm)
|
|
44
|
+
return;
|
|
45
|
+
await callWriteMethodWithReceipt({
|
|
46
|
+
contract,
|
|
47
|
+
methodName: 'depositETHAndMintWsteth',
|
|
48
|
+
payload: [referral, stethSharesToMint],
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
stvStethPoolWrite
|
|
52
|
+
.command('rebalance-unassigned-liability')
|
|
53
|
+
.description('rebalance unassigned liability by repaying it with assets held by the vault')
|
|
54
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
55
|
+
.argument('<stethShares>', 'amount of stETH shares to rebalance (in shares)', stringToBigInt)
|
|
56
|
+
.action(async (address, stethShares) => {
|
|
57
|
+
const contract = await getStvStethPoolContract(address);
|
|
58
|
+
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${stethShares} stETH shares?`;
|
|
59
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
60
|
+
if (!confirm)
|
|
61
|
+
return;
|
|
62
|
+
await callWriteMethodWithReceipt({
|
|
63
|
+
contract,
|
|
64
|
+
methodName: 'rebalanceUnassignedLiability',
|
|
65
|
+
payload: [stethShares],
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
stvStethPoolWrite
|
|
69
|
+
.command('rebalance-unassigned-liability-with-ether')
|
|
70
|
+
.description('rebalance unassigned liability by repaying it with external ether')
|
|
71
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
72
|
+
.argument('<ether>', 'amount of ether to rebalance (in ETH)', etherToWei)
|
|
73
|
+
.action(async (address, ether) => {
|
|
74
|
+
const contract = await getStvStethPoolContract(address);
|
|
75
|
+
const confirmationMessage = `Are you sure you want to rebalance unassigned liability with ${formatEther(ether)} ether?`;
|
|
76
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
77
|
+
if (!confirm)
|
|
78
|
+
return;
|
|
79
|
+
await callWriteMethodWithReceipt({
|
|
80
|
+
contract,
|
|
81
|
+
methodName: 'rebalanceUnassignedLiabilityWithEther',
|
|
82
|
+
payload: [],
|
|
83
|
+
value: ether,
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
stvStethPoolWrite
|
|
87
|
+
.command('add-to-allow-list')
|
|
88
|
+
.description('add an address to the allowlist')
|
|
89
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
90
|
+
.argument('<user>', 'address to add to the allowlist', stringToAddress)
|
|
91
|
+
.action(async (address, user) => {
|
|
92
|
+
const contract = await getStvStethPoolContract(address);
|
|
93
|
+
const confirmationMessage = `Are you sure you want to add ${user} to the allowlist for the vault ${address}?`;
|
|
94
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
95
|
+
if (!confirm)
|
|
96
|
+
return;
|
|
97
|
+
await callWriteMethodWithReceipt({
|
|
98
|
+
contract,
|
|
99
|
+
methodName: 'addToAllowList',
|
|
100
|
+
payload: [user],
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
stvStethPoolWrite
|
|
104
|
+
.command('remove-from-allow-list')
|
|
105
|
+
.description('remove an address from the allowlist')
|
|
106
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
107
|
+
.argument('<user>', 'address to remove from the allowlist', stringToAddress)
|
|
108
|
+
.action(async (address, user) => {
|
|
109
|
+
const contract = await getStvStethPoolContract(address);
|
|
110
|
+
const confirmationMessage = `Are you sure you want to remove ${user} from the allowlist for the vault ${address}?`;
|
|
111
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
112
|
+
if (!confirm)
|
|
113
|
+
return;
|
|
114
|
+
await callWriteMethodWithReceipt({
|
|
115
|
+
contract,
|
|
116
|
+
methodName: 'removeFromAllowList',
|
|
117
|
+
payload: [user],
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
stvStethPoolWrite
|
|
121
|
+
.command('mint-steth-shares')
|
|
122
|
+
.description("mint stETH shares up to the user's minting capacity")
|
|
123
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
124
|
+
.argument('<stethShares>', 'the amount of stETH shares to mint', stringToBigInt)
|
|
125
|
+
.action(async (address, stethShares) => {
|
|
126
|
+
const contract = await getStvStethPoolContract(address);
|
|
127
|
+
const confirmationMessage = `Are you sure you want to mint stETH shares up to the user's minting capacity for the vault ${address}? (stethShares: ${stethShares})`;
|
|
128
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
129
|
+
if (!confirm)
|
|
130
|
+
return;
|
|
131
|
+
await callWriteMethodWithReceipt({
|
|
132
|
+
contract,
|
|
133
|
+
methodName: 'mintStethShares',
|
|
134
|
+
payload: [stethShares],
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
stvStethPoolWrite
|
|
138
|
+
.command('burn-steth-shares')
|
|
139
|
+
.description("burn stETH shares to reduce the user's minted stETH obligation")
|
|
140
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
141
|
+
.argument('<stethShares>', 'the amount of stETH shares to burn', stringToBigInt)
|
|
142
|
+
.action(async (address, stethShares) => {
|
|
143
|
+
const contract = await getStvStethPoolContract(address);
|
|
144
|
+
const confirmationMessage = `Are you sure you want to burn stETH shares to reduce the user's minted stETH obligation for the vault ${address}? (stethShares: ${stethShares})`;
|
|
145
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
146
|
+
if (!confirm)
|
|
147
|
+
return;
|
|
148
|
+
await callWriteMethodWithReceipt({
|
|
149
|
+
contract,
|
|
150
|
+
methodName: 'burnStethShares',
|
|
151
|
+
payload: [stethShares],
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
stvStethPoolWrite
|
|
155
|
+
.command('transfer-with-liability')
|
|
156
|
+
.description('transfer stETH shares with liability to another address')
|
|
157
|
+
.argument('<address>', 'distributor address', stringToAddress)
|
|
158
|
+
.argument('<to>', 'the address to transfer to', stringToAddress)
|
|
159
|
+
.argument('<stv>', 'the amount of stv to transfer', stringToBigInt)
|
|
160
|
+
.argument('<stethShares>', 'the amount of stETH shares liability to transfer', stringToBigInt)
|
|
161
|
+
.action(async (address, to, stv, stethShares) => {
|
|
162
|
+
const contract = await getStvStethPoolContract(address);
|
|
163
|
+
const confirmationMessage = `Are you sure you want to transfer ${stv} stv and ${stethShares} stETH shares liability to ${to} for the vault ${address}?`;
|
|
164
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
165
|
+
if (!confirm)
|
|
166
|
+
return;
|
|
167
|
+
await callWriteMethodWithReceipt({
|
|
168
|
+
contract,
|
|
169
|
+
methodName: 'transferWithLiability',
|
|
170
|
+
payload: [to, stv, stethShares],
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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AQ,CAAC,MAAM,EAAE,4BAA4B,EAAE,eAAe,CAAC;KAC/D,QAAQ,CAAC,OAAO,EAAE,+BAA+B,EAAE,cAAc,CAAC;KAClE,QAAQ,CACP,eAAe,EACf,kDAAkD,EAClD,cAAc,CACf;KACA,MAAM,CACL,KAAK,EAAE,OAAgB,EAAE,EAAW,EAAE,GAAW,EAAE,WAAmB,EAAE,EAAE;IACxE,MAAM,QAAQ,GAAG,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,mBAAmB,GAAG,qCAAqC,GAAG,YAAY,WAAW,8BAA8B,EAAE,kBAAkB,OAAO,GAAG,CAAC;IACxJ,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,0BAA0B,CAAC;QAC/B,QAAQ;QACR,UAAU,EAAE,uBAAuB;QACnC,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC;KAChC,CAAC,CAAC;AACL,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { stringToBigIntArray } from '../../../../utils/index.js';
|
|
2
|
+
export const readCommandConfig = {
|
|
3
|
+
MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS: {
|
|
4
|
+
name: 'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS',
|
|
5
|
+
description: 'get min delay between withdrawal request and finalization',
|
|
6
|
+
},
|
|
7
|
+
calculateCurrentStethShareRate: {
|
|
8
|
+
name: 'calc-steth-share-rate',
|
|
9
|
+
description: 'get calculated current stETH share rate',
|
|
10
|
+
},
|
|
11
|
+
calculateCurrentStvRate: {
|
|
12
|
+
name: 'calc-stv-rate',
|
|
13
|
+
description: 'get calculate current stv rate of the vault',
|
|
14
|
+
},
|
|
15
|
+
getLastCheckpointIndex: {
|
|
16
|
+
name: 'last-checkpoint-index',
|
|
17
|
+
aliases: ['lci'],
|
|
18
|
+
description: 'get the last checkpoint index',
|
|
19
|
+
},
|
|
20
|
+
getLastFinalizedRequestId: {
|
|
21
|
+
name: 'last-finalized-request-id',
|
|
22
|
+
aliases: ['lfri'],
|
|
23
|
+
description: 'get the last finalized request id',
|
|
24
|
+
},
|
|
25
|
+
getLastRequestId: {
|
|
26
|
+
name: 'last-request-id',
|
|
27
|
+
aliases: ['lri'],
|
|
28
|
+
description: 'get the last request id',
|
|
29
|
+
},
|
|
30
|
+
getClaimableEther: {
|
|
31
|
+
name: 'get-claimable-ether',
|
|
32
|
+
description: 'get amount of ether available for claim for each provided request id',
|
|
33
|
+
arguments: {
|
|
34
|
+
_requestIds: {
|
|
35
|
+
name: 'requestIds',
|
|
36
|
+
description: 'request ids',
|
|
37
|
+
modifier: stringToBigIntArray,
|
|
38
|
+
},
|
|
39
|
+
_hints: {
|
|
40
|
+
name: 'hints',
|
|
41
|
+
description: 'hints',
|
|
42
|
+
modifier: stringToBigIntArray,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
getWithdrawalStatus: {
|
|
47
|
+
name: 'w-status',
|
|
48
|
+
description: 'get the status for a single request',
|
|
49
|
+
arguments: {
|
|
50
|
+
_requestId: {
|
|
51
|
+
name: 'requestId',
|
|
52
|
+
description: 'request id',
|
|
53
|
+
modifier: (value) => BigInt(value),
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
unfinalizedAssets: {
|
|
58
|
+
name: 'unfinal-assets',
|
|
59
|
+
description: 'get the amount of assets in the queue yet to be finalized',
|
|
60
|
+
},
|
|
61
|
+
unfinalizedStv: {
|
|
62
|
+
name: 'unfinal-stv',
|
|
63
|
+
description: 'get the amount of stv in the queue yet to be finalized',
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../programs/def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,CAAC,KAAK,CAAC;aACnC;SACF;KACF;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,2DAA2D;KACzE;IACD,cAAc,EAAE;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,wDAAwD;KACtE;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withdrawalQueue: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB;KAChD,OAAO,CAAC,kBAAkB,CAAC;KAC3B,KAAK,CAAC,IAAI,CAAC;KACX,WAAW,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { WithdrawalQueueAbi } from '../../../../abi/defi-wrapper/index.js';
|
|
3
|
+
import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
4
|
+
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
5
|
+
import { withdrawalQueue } from './main.js';
|
|
6
|
+
import { readCommandConfig } from './config.js';
|
|
7
|
+
const withdrawalQueueRead = withdrawalQueue
|
|
8
|
+
.command('read')
|
|
9
|
+
.alias('r')
|
|
10
|
+
.description('read commands');
|
|
11
|
+
withdrawalQueueRead.addOption(new Option('-cmd2json'));
|
|
12
|
+
withdrawalQueueRead.on('option:-cmd2json', function () {
|
|
13
|
+
logInfo(getCommandsJson(withdrawalQueueRead));
|
|
14
|
+
process.exit();
|
|
15
|
+
});
|
|
16
|
+
withdrawalQueueRead
|
|
17
|
+
.command('info')
|
|
18
|
+
.description('get withdrawal queue base info')
|
|
19
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
20
|
+
.action(async (address) => {
|
|
21
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
22
|
+
const [DEFAULT_ADMIN_ROLE, WITHDRAWALS_PAUSE_ROLE, WITHDRAWALS_RESUME_ROLE, FINALIZE_ROLE, DASHBOARD, LAZY_ORACLE, STETH, VAULT_HUB, VAULT, MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS, calculateCurrentStethShareRate, getLastCheckpointIndex, getLastFinalizedRequestId, getLastRequestId, unfinalizedAssets, unfinalizedStv,] = await Promise.all([
|
|
23
|
+
callReadMethodSilent(contract, 'DEFAULT_ADMIN_ROLE'),
|
|
24
|
+
callReadMethodSilent(contract, 'WITHDRAWALS_PAUSE_ROLE'),
|
|
25
|
+
callReadMethodSilent(contract, 'WITHDRAWALS_RESUME_ROLE'),
|
|
26
|
+
callReadMethodSilent(contract, 'FINALIZE_ROLE'),
|
|
27
|
+
callReadMethodSilent(contract, 'DASHBOARD'),
|
|
28
|
+
callReadMethodSilent(contract, 'LAZY_ORACLE'),
|
|
29
|
+
callReadMethodSilent(contract, 'STETH'),
|
|
30
|
+
callReadMethodSilent(contract, 'VAULT_HUB'),
|
|
31
|
+
callReadMethodSilent(contract, 'VAULT'),
|
|
32
|
+
callReadMethodSilent(contract, 'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS'),
|
|
33
|
+
callReadMethodSilent(contract, 'calculateCurrentStethShareRate'),
|
|
34
|
+
callReadMethodSilent(contract, 'getLastCheckpointIndex'),
|
|
35
|
+
callReadMethodSilent(contract, 'getLastFinalizedRequestId'),
|
|
36
|
+
callReadMethodSilent(contract, 'getLastRequestId'),
|
|
37
|
+
callReadMethodSilent(contract, 'unfinalizedAssets'),
|
|
38
|
+
callReadMethodSilent(contract, 'unfinalizedStv'),
|
|
39
|
+
]);
|
|
40
|
+
logResult({
|
|
41
|
+
data: [
|
|
42
|
+
['DEFAULT_ADMIN_ROLE', DEFAULT_ADMIN_ROLE],
|
|
43
|
+
['WITHDRAWALS_PAUSE_ROLE', WITHDRAWALS_PAUSE_ROLE],
|
|
44
|
+
['WITHDRAWALS_RESUME_ROLE', WITHDRAWALS_RESUME_ROLE],
|
|
45
|
+
['FINALIZE_ROLE', FINALIZE_ROLE],
|
|
46
|
+
['DASHBOARD', DASHBOARD],
|
|
47
|
+
['LAZY_ORACLE', LAZY_ORACLE],
|
|
48
|
+
['STETH', STETH],
|
|
49
|
+
['VAULT_HUB', VAULT_HUB],
|
|
50
|
+
['VAULT', VAULT],
|
|
51
|
+
[
|
|
52
|
+
'MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS',
|
|
53
|
+
MIN_WITHDRAWAL_DELAY_TIME_IN_SECONDS,
|
|
54
|
+
],
|
|
55
|
+
['calculateCurrentStethShareRate', calculateCurrentStethShareRate],
|
|
56
|
+
['getLastCheckpointIndex', getLastCheckpointIndex],
|
|
57
|
+
['getLastFinalizedRequestId', getLastFinalizedRequestId],
|
|
58
|
+
['getLastRequestId', getLastRequestId],
|
|
59
|
+
['unfinalizedAssets', unfinalizedAssets],
|
|
60
|
+
['unfinalizedStv', unfinalizedStv],
|
|
61
|
+
],
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
generateReadCommands(WithdrawalQueueAbi, getWithdrawalQueueContract, withdrawalQueueRead, readCommandConfig);
|
|
65
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdr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