@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
|
@@ -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;A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W,CAAC,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,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/stv-steth-pool/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,EAChB,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAW,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,iBAAiB,GAAG,YAAY;KACnC,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,gBAAgB,CAAC,CAAC;AAEjC,iBAAiB,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACrD,iBAAiB,CAAC,EAAE,CAAC,kBAAkB,EAAE;IACvC,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,iBAAiB;KACd,OAAO,CAAC,oBAAoB,CAAC;KAC7B,WAAW,CACV,+EAA+E,CAChF;KACA,QAAQ,CAAC,WAAW,EAAE,wBAAwB,EAAE,eAAe,CAAC;KAChE,QAAQ,CACP,YAAY,EACZ,sCAAsC,EACtC,eAAe,CAChB;KACA,QAAQ,CACP,qBAAqB,EACrB,+IAA+I,EAC/I,cAAc,CACf;KACA,MAAM,CACL,KAAK,EAAE,OAAgB,EAAE,QAAiB,EAAE,iBAAyB,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,mBAAmB,GAAG,0EAA0E,QAAQ,wBAAwB,iBAAiB,GAAG,C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C7D,QAAQ,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":["../../../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C,MAAM,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/cont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CAAoC;aACrC;YACD,CAAC,gCAAgC,EAAE,8BAA8B,CAAC;YAClE,CAAC,wBAAwB,EAAE,sBAAsB,CAAC;YAClD,CAAC,2BAA2B,EAAE,yBAAyB,CAAC;YACxD,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;YACtC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;YACxC,CAAC,gBAAgB,EAAE,cAAc,CAAC;SACnC;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB,CAClB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,iBAAiB,CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToBigInt, stringToBigIntArray, } from '../../../../utils/index.js';
|
|
3
|
+
import { withdrawalQueue } from './main.js';
|
|
4
|
+
import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/index.js';
|
|
5
|
+
const withdrawalQueueWrite = withdrawalQueue
|
|
6
|
+
.command('write')
|
|
7
|
+
.alias('w')
|
|
8
|
+
.description('withdrawal queue write commands');
|
|
9
|
+
withdrawalQueueWrite.addOption(new Option('-cmd2json'));
|
|
10
|
+
withdrawalQueueWrite.on('option:-cmd2json', function () {
|
|
11
|
+
logInfo(getCommandsJson(withdrawalQueueWrite));
|
|
12
|
+
process.exit();
|
|
13
|
+
});
|
|
14
|
+
withdrawalQueueWrite
|
|
15
|
+
.command('pause')
|
|
16
|
+
.description('pause withdrawal requests placement and finalization')
|
|
17
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
18
|
+
.action(async (address) => {
|
|
19
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
20
|
+
const confirmationMessage = `Are you sure you want to pause withdrawal requests placement and finalization for the withdrawal queue ${address}?`;
|
|
21
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
22
|
+
if (!confirm)
|
|
23
|
+
return;
|
|
24
|
+
await callWriteMethodWithReceipt({
|
|
25
|
+
contract,
|
|
26
|
+
methodName: 'pauseWithdrawals',
|
|
27
|
+
payload: [],
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
withdrawalQueueWrite
|
|
31
|
+
.command('resume')
|
|
32
|
+
.description('resume withdrawal requests placement and finalization')
|
|
33
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
34
|
+
.action(async (address) => {
|
|
35
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
36
|
+
const confirmationMessage = `Are you sure you want to resume withdrawal requests placement and finalization for the withdrawal queue ${address}?`;
|
|
37
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
38
|
+
if (!confirm)
|
|
39
|
+
return;
|
|
40
|
+
await callWriteMethodWithReceipt({
|
|
41
|
+
contract,
|
|
42
|
+
methodName: 'resumeWithdrawals',
|
|
43
|
+
payload: [],
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
withdrawalQueueWrite
|
|
47
|
+
.command('pause-finalization')
|
|
48
|
+
.description('pause withdrawal requests finalization')
|
|
49
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
50
|
+
.action(async (address) => {
|
|
51
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
52
|
+
const confirmationMessage = `Are you sure you want to pause withdrawal requests finalization for the withdrawal queue ${address}?`;
|
|
53
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
54
|
+
if (!confirm)
|
|
55
|
+
return;
|
|
56
|
+
await callWriteMethodWithReceipt({
|
|
57
|
+
contract,
|
|
58
|
+
methodName: 'pauseFinalization',
|
|
59
|
+
payload: [],
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
withdrawalQueueWrite
|
|
63
|
+
.command('resume-finalization')
|
|
64
|
+
.description('resume withdrawal requests finalization')
|
|
65
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
66
|
+
.action(async (address) => {
|
|
67
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
68
|
+
const confirmationMessage = `Are you sure you want to resume withdrawal requests finalization for the withdrawal queue ${address}?`;
|
|
69
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
70
|
+
if (!confirm)
|
|
71
|
+
return;
|
|
72
|
+
await callWriteMethodWithReceipt({
|
|
73
|
+
contract,
|
|
74
|
+
methodName: 'resumeFinalization',
|
|
75
|
+
payload: [],
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
withdrawalQueueWrite
|
|
79
|
+
.command('request-withdrawals')
|
|
80
|
+
.description('request multiple withdrawals for a user')
|
|
81
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
82
|
+
.argument('<stv>', 'array of amounts of stv to withdraw', stringToBigIntArray)
|
|
83
|
+
.argument('<steth>', 'array of amounts of stETH shares to rebalance', stringToBigIntArray)
|
|
84
|
+
.argument('<address>', 'address that will be able to claim the created request', stringToAddress)
|
|
85
|
+
.action(async (address, stvToWithdraw, stethSharesToRebalance, owner) => {
|
|
86
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
87
|
+
const confirmationMessage = `Are you sure you want to request multiple withdrawals for ${owner} with ${stvToWithdraw.join(', ')} stv and ${stethSharesToRebalance.join(', ')} steth shares for the withdrawal queue ${address}?`;
|
|
88
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
89
|
+
if (!confirm)
|
|
90
|
+
return;
|
|
91
|
+
await callWriteMethodWithReceipt({
|
|
92
|
+
contract,
|
|
93
|
+
methodName: 'requestWithdrawalBatch',
|
|
94
|
+
payload: [owner, stvToWithdraw, stethSharesToRebalance],
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
withdrawalQueueWrite
|
|
98
|
+
.command('request-withdrawal')
|
|
99
|
+
.description('request a withdrawal for a user')
|
|
100
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
101
|
+
.argument('<stv>', 'amount of stv to withdraw', stringToBigInt)
|
|
102
|
+
.argument('<steth>', 'amount of steth shares to rebalance', stringToBigInt)
|
|
103
|
+
.argument('<address>', 'address that will be able to claim the created request', stringToAddress)
|
|
104
|
+
.action(async (address, stvToWithdraw, stethSharesToRebalance, owner) => {
|
|
105
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
106
|
+
const confirmationMessage = `Are you sure you want to request a withdrawal for ${owner} with ${stvToWithdraw} stv and ${stethSharesToRebalance} steth shares for the withdrawal queue ${address}?`;
|
|
107
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
108
|
+
if (!confirm)
|
|
109
|
+
return;
|
|
110
|
+
await callWriteMethodWithReceipt({
|
|
111
|
+
contract,
|
|
112
|
+
methodName: 'requestWithdrawal',
|
|
113
|
+
payload: [owner, stvToWithdraw, stethSharesToRebalance],
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
withdrawalQueueWrite
|
|
117
|
+
.command('finalize')
|
|
118
|
+
.description('finalize withdrawal requests')
|
|
119
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
120
|
+
.argument('<maxRequests>', 'the maximum number of requests to finalize', stringToBigInt)
|
|
121
|
+
.argument('<gasCostCoverageRecipient>', 'address to receive gas cost coverage', stringToAddress)
|
|
122
|
+
.action(async (address, maxRequests, gasCostCoverageRecipient) => {
|
|
123
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
124
|
+
const confirmationMessage = `Are you sure you want to finalize up to ${maxRequests} withdrawal requests for the withdrawal queue ${address} to ${gasCostCoverageRecipient}?`;
|
|
125
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
126
|
+
if (!confirm)
|
|
127
|
+
return;
|
|
128
|
+
await callWriteMethodWithReceipt({
|
|
129
|
+
contract,
|
|
130
|
+
methodName: 'finalize',
|
|
131
|
+
payload: [maxRequests, gasCostCoverageRecipient],
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
withdrawalQueueWrite
|
|
135
|
+
.command('claim-withdrawal')
|
|
136
|
+
.description('claim one `_requestId` request once finalized sending locked ether to the owner')
|
|
137
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
138
|
+
.argument('<requestId>', 'request id to claim', stringToBigInt)
|
|
139
|
+
.argument('<recipient>', 'address where claimed ether will be sent to', stringToAddress)
|
|
140
|
+
.action(async (address, requestId, recipient) => {
|
|
141
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
142
|
+
const confirmationMessage = `Are you sure you want to claim request ${requestId} and send the claimed ether to ${recipient} for the withdrawal queue ${address}?`;
|
|
143
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
144
|
+
if (!confirm)
|
|
145
|
+
return;
|
|
146
|
+
await callWriteMethodWithReceipt({
|
|
147
|
+
contract,
|
|
148
|
+
methodName: 'claimWithdrawal',
|
|
149
|
+
payload: [recipient, requestId],
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
withdrawalQueueWrite
|
|
153
|
+
.command('claim-withdrawals')
|
|
154
|
+
.description('claim one `_requestId` request once finalized sending locked ether to the owner')
|
|
155
|
+
.argument('<address>', 'withdrawal queue address', stringToAddress)
|
|
156
|
+
.argument('<requestIds>', 'array of request ids to claim', stringToBigIntArray)
|
|
157
|
+
.argument('<hints>', 'checkpoint hints. can be found with `findCheckpointHints(_requestIds, 1, getLastCheckpointIndex())`', stringToBigIntArray)
|
|
158
|
+
.argument('<recipient>', 'address where claimed ether will be sent to', stringToAddress)
|
|
159
|
+
.action(async (address, requestIds, hints, recipient) => {
|
|
160
|
+
const contract = await getWithdrawalQueueContract(address);
|
|
161
|
+
const confirmationMessage = `Are you sure you want to claim requests ${requestIds.join(', ')} and send the claimed ether to ${recipient} for the withdrawal queue ${address}?`;
|
|
162
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
163
|
+
if (!confirm)
|
|
164
|
+
return;
|
|
165
|
+
await callWriteMethodWithReceipt({
|
|
166
|
+
contract,
|
|
167
|
+
methodName: 'claimWithdrawalBatch',
|
|
168
|
+
payload: [recipient, requestIds, hints],
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/withdrawal-queue/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,oBAAoB,GAAG,eAAe;KACzC,OAAO,CAAC,OAAO,CAAC;KAChB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAElD,oBAAoB,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACxD,oBAAoB,CAAC,EAAE,CAAC,kBAAkB,EAAE;IAC1C,OAAO,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,oBAAoB;KACjB,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,sDAAsD,CAAC;KACnE,QAAQ,CAAC,WAAW,EAAE,0BAA0B,EAAE,eAAe,CAAC;KAClE,MAAM,CAAC,KAAK,EAAE,OAAgB,EAAE,EAAE;IACjC,MAAM,QAAQ,GAAG,MAAM,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,mBAAmB,GAAG,0GAA0G,OAAO,GAAG,CAAC;IACjJ,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC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;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,oBAAoB;KACjB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,WAAW,CACV,iFAAiF,CAClF;KACA,QAAQ,CAAC,WAAW,EAAE,0BAA0B,EAAE,eAAe,CAAC;KAClE,QAAQ,CACP,cAAc,EACd,+BAA+B,EAC/B,mBAAmB,CACpB;KACA,QAAQ,CACP,SAAS,EACT,qGAAqG,EACrG,mBAAmB,CACpB;KACA,QAAQ,CACP,aAAa,EACb,6CAA6C,EAC7C,eAAe,CAChB;KACA,MAAM,CACL,KAAK,EACH,OAAgB,EAChB,UAAoB,EACpB,KAAe,EACf,SAAkB,EAClB,EAAE;IACF,MAAM,QAAQ,GAAG,MAAM,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,mBAAmB,GAAG,2CAA2C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kCAAkC,SAAS,6BAA6B,OAAO,GAAG,CAAC;IAC/K,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,sBAAsB;QAClC,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;KACxC,CAAC,CAAC;AACL,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../programs/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defiWrapper: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../programs/defi-wrapper/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO;KAC/B,OAAO,CAAC,cAAc,CAAC;KACvB,KAAK,CAAC,IAAI,CAAC;KACX,WAAW,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/health/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const health: import("commander").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/health/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ;KAC3B,OAAO,CAAC,QAAQ,CAAC;KACjB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,yDAAyD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|