@lidofinance/lsv-cli 1.3.0 → 1.4.0-alpha.1
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.js.map +1 -1
- package/dist/abi/Dashboard.d.ts +24 -0
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/LazyOracle.js.map +1 -1
- package/dist/abi/LidoLocator.js.map +1 -1
- package/dist/abi/OperatorGrid.js.map +1 -1
- package/dist/abi/PredepositGuarantee.d.ts +48 -0
- package/dist/abi/PredepositGuarantee.js +32 -0
- package/dist/abi/PredepositGuarantee.js.map +1 -1
- package/dist/abi/StEth.d.ts +1175 -59
- package/dist/abi/StEth.js +885 -320
- package/dist/abi/StEth.js.map +1 -1
- package/dist/abi/StakingVault.js.map +1 -1
- package/dist/abi/ValidatorConsolidationRequests.js.map +1 -1
- package/dist/abi/VaultFactory.js.map +1 -1
- package/dist/abi/VaultHub.js.map +1 -1
- package/dist/abi/VaultViewer.js.map +1 -1
- package/dist/abi/WstEth.js.map +1 -1
- package/dist/abi/defi-wrapper/Distributor.js.map +1 -1
- package/dist/abi/defi-wrapper/Factory.d.ts +532 -657
- package/dist/abi/defi-wrapper/Factory.js +1083 -647
- package/dist/abi/defi-wrapper/Factory.js.map +1 -1
- package/dist/abi/defi-wrapper/OssifiableProxy.d.ts +71 -0
- package/dist/abi/defi-wrapper/OssifiableProxy.js +93 -0
- package/dist/abi/defi-wrapper/OssifiableProxy.js.map +1 -0
- package/dist/abi/defi-wrapper/StrategyFactory.d.ts +59 -0
- package/dist/abi/defi-wrapper/StrategyFactory.js +37 -0
- package/dist/abi/defi-wrapper/StrategyFactory.js.map +1 -0
- package/dist/abi/defi-wrapper/StvPool.js.map +1 -1
- package/dist/abi/defi-wrapper/StvStETHPool.d.ts +38 -32
- package/dist/abi/defi-wrapper/StvStETHPool.js +50 -42
- package/dist/abi/defi-wrapper/StvStETHPool.js.map +1 -1
- package/dist/abi/defi-wrapper/TimeLock.d.ts +770 -0
- package/dist/abi/defi-wrapper/TimeLock.js +999 -0
- package/dist/abi/defi-wrapper/TimeLock.js.map +1 -0
- package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -1
- package/dist/abi/defi-wrapper/index.d.ts +3 -0
- package/dist/abi/defi-wrapper/index.js +3 -0
- package/dist/abi/defi-wrapper/index.js.map +1 -1
- package/dist/command/index.js +12 -1
- package/dist/command/index.js.map +1 -1
- package/dist/configs/constants.d.ts +4 -4
- package/dist/contracts/dashboard-impl.d.ts +4 -3
- package/dist/contracts/dashboard-impl.js +5 -8
- package/dist/contracts/dashboard-impl.js.map +1 -1
- package/dist/contracts/dashboard.d.ts +4 -3
- package/dist/contracts/dashboard.js +1 -1
- package/dist/contracts/dashboard.js.map +1 -1
- package/dist/contracts/defi-wrapper/distributor.d.ts +5 -4
- package/dist/contracts/defi-wrapper/distributor.js +2 -2
- package/dist/contracts/defi-wrapper/distributor.js.map +1 -1
- package/dist/contracts/defi-wrapper/factory.d.ts +5 -4
- package/dist/contracts/defi-wrapper/factory.js +2 -2
- package/dist/contracts/defi-wrapper/factory.js.map +1 -1
- package/dist/contracts/defi-wrapper/index.d.ts +3 -0
- package/dist/contracts/defi-wrapper/index.js +3 -0
- package/dist/contracts/defi-wrapper/index.js.map +1 -1
- package/dist/contracts/defi-wrapper/ossifiable-proxy.d.ts +5 -0
- package/dist/contracts/defi-wrapper/ossifiable-proxy.js +12 -0
- package/dist/contracts/defi-wrapper/ossifiable-proxy.js.map +1 -0
- package/dist/contracts/defi-wrapper/strategy-factory.d.ts +5 -0
- package/dist/contracts/defi-wrapper/strategy-factory.js +12 -0
- package/dist/contracts/defi-wrapper/strategy-factory.js.map +1 -0
- package/dist/contracts/defi-wrapper/stv-pool.d.ts +5 -4
- package/dist/contracts/defi-wrapper/stv-pool.js +2 -2
- package/dist/contracts/defi-wrapper/stv-pool.js.map +1 -1
- package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +5 -4
- package/dist/contracts/defi-wrapper/stv-steth-pool.js +2 -2
- package/dist/contracts/defi-wrapper/stv-steth-pool.js.map +1 -1
- package/dist/contracts/defi-wrapper/timelock.d.ts +5 -0
- package/dist/contracts/defi-wrapper/timelock.js +12 -0
- package/dist/contracts/defi-wrapper/timelock.js.map +1 -0
- package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +5 -4
- package/dist/contracts/defi-wrapper/withdrawal-queue.js +2 -2
- package/dist/contracts/defi-wrapper/withdrawal-queue.js.map +1 -1
- package/dist/contracts/lazy-oracle.d.ts +5 -3
- package/dist/contracts/lazy-oracle.js +5 -9
- package/dist/contracts/lazy-oracle.js.map +1 -1
- package/dist/contracts/locator.d.ts +4 -2
- package/dist/contracts/locator.js +5 -8
- package/dist/contracts/locator.js.map +1 -1
- package/dist/contracts/operator-grid.d.ts +5 -4
- package/dist/contracts/operator-grid.js +5 -8
- package/dist/contracts/operator-grid.js.map +1 -1
- package/dist/contracts/pdg.d.ts +5 -4
- package/dist/contracts/pdg.js +5 -8
- package/dist/contracts/pdg.js.map +1 -1
- package/dist/contracts/steth.d.ts +5 -27706
- package/dist/contracts/steth.js +6 -10
- package/dist/contracts/steth.js.map +1 -1
- package/dist/contracts/validator-consolidation-requests.d.ts +3 -3
- package/dist/contracts/validator-consolidation-requests.js.map +1 -1
- package/dist/contracts/vault-factory.d.ts +5 -3
- package/dist/contracts/vault-factory.js +6 -8
- package/dist/contracts/vault-factory.js.map +1 -1
- package/dist/contracts/vault-hub.d.ts +5 -3
- package/dist/contracts/vault-hub.js +5 -9
- package/dist/contracts/vault-hub.js.map +1 -1
- package/dist/contracts/vault-viewer.d.ts +4 -2
- package/dist/contracts/vault-viewer.js +7 -10
- package/dist/contracts/vault-viewer.js.map +1 -1
- package/dist/contracts/vault.d.ts +5 -4
- package/dist/contracts/vault.js +2 -2
- package/dist/contracts/vault.js.map +1 -1
- package/dist/contracts/wsteth.d.ts +5 -3
- package/dist/contracts/wsteth.js +5 -9
- package/dist/contracts/wsteth.js.map +1 -1
- package/dist/features/consolidation.d.ts +1 -1
- package/dist/features/consolidation.js +19 -3
- package/dist/features/consolidation.js.map +1 -1
- package/dist/features/defi-wrapper/create-vault.js +19 -16
- package/dist/features/defi-wrapper/create-vault.js.map +1 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +22 -29
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +124 -17
- package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
- package/dist/features/defi-wrapper/distributor.d.ts +24 -0
- package/dist/features/defi-wrapper/distributor.js +300 -0
- package/dist/features/defi-wrapper/distributor.js.map +1 -0
- package/dist/features/defi-wrapper/index.d.ts +1 -0
- package/dist/features/defi-wrapper/index.js +1 -0
- package/dist/features/defi-wrapper/index.js.map +1 -1
- package/dist/features/defi-wrapper/pool-info.d.ts +17 -2
- package/dist/features/defi-wrapper/pool-info.js +63 -13
- package/dist/features/defi-wrapper/pool-info.js.map +1 -1
- package/dist/features/defi-wrapper/timelock.d.ts +19 -0
- package/dist/features/defi-wrapper/timelock.js +198 -0
- package/dist/features/defi-wrapper/timelock.js.map +1 -0
- package/dist/features/deposits/check-bls-deposits.js +15 -3
- package/dist/features/deposits/check-bls-deposits.js.map +1 -1
- package/dist/features/deposits/make-pdg-proof.js +19 -7
- package/dist/features/deposits/make-pdg-proof.js.map +1 -1
- package/dist/features/deposits/no-pdg.js +50 -14
- package/dist/features/deposits/no-pdg.js.map +1 -1
- package/dist/features/deposits/pdg.js +5 -1
- package/dist/features/deposits/pdg.js.map +1 -1
- package/dist/features/deposits/validators.js +1 -1
- package/dist/features/deposits/validators.js.map +1 -1
- package/dist/features/dev-tools/impersonate.js +5 -1
- package/dist/features/dev-tools/impersonate.js.map +1 -1
- package/dist/features/metrics.d.ts +3 -0
- package/dist/features/metrics.js +49 -6
- package/dist/features/metrics.js.map +1 -1
- package/dist/features/mint-burn/allowance.js +15 -6
- package/dist/features/mint-burn/allowance.js.map +1 -1
- package/dist/features/mint-burn/burn-steth.js +5 -1
- package/dist/features/mint-burn/burn-steth.js.map +1 -1
- package/dist/features/mint-burn/index.d.ts +1 -0
- package/dist/features/mint-burn/index.js +1 -0
- package/dist/features/mint-burn/index.js.map +1 -1
- package/dist/features/mint-burn/mint-limit.d.ts +9 -0
- package/dist/features/mint-burn/mint-limit.js +31 -0
- package/dist/features/mint-burn/mint-limit.js.map +1 -0
- package/dist/features/mint-burn/mint-steth.js +5 -1
- package/dist/features/mint-burn/mint-steth.js.map +1 -1
- package/dist/features/pdg.js +5 -1
- package/dist/features/pdg.js.map +1 -1
- package/dist/features/utils/connection.js +5 -1
- package/dist/features/utils/connection.js.map +1 -1
- 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/liability-shares.js +5 -1
- package/dist/features/utils/liability-shares.js.map +1 -1
- package/dist/features/utils/minting-capacity.js +4 -3
- package/dist/features/utils/minting-capacity.js.map +1 -1
- package/dist/features/utils/quarantine.js +5 -1
- package/dist/features/utils/quarantine.js.map +1 -1
- package/dist/features/utils/report-fresh.js +15 -3
- package/dist/features/utils/report-fresh.js.map +1 -1
- package/dist/features/utils/try-fetch.d.ts +5 -0
- package/dist/features/utils/try-fetch.js +26 -0
- package/dist/features/utils/try-fetch.js.map +1 -0
- package/dist/features/vault-factory.js +16 -4
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/vault-operations/connect-vault.js +10 -2
- package/dist/features/vault-operations/connect-vault.js.map +1 -1
- package/dist/features/vault-operations/dashboard-by-vault.js +10 -2
- package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
- package/dist/features/vault-operations/index.d.ts +1 -0
- package/dist/features/vault-operations/index.js +1 -0
- package/dist/features/vault-operations/index.js.map +1 -1
- package/dist/features/vault-operations/roles.js +10 -2
- package/dist/features/vault-operations/roles.js.map +1 -1
- package/dist/features/vault-operations/share-limit.d.ts +8 -0
- package/dist/features/vault-operations/share-limit.js +20 -0
- package/dist/features/vault-operations/share-limit.js.map +1 -0
- package/dist/features/vault-operations/vault-health.js +5 -1
- package/dist/features/vault-operations/vault-health.js.map +1 -1
- package/dist/features/vault-operations/vault-info.js +10 -2
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +25 -5
- package/dist/features/vault-operations/vault-overview.js.map +1 -1
- package/dist/features/vault-operations/vault-roles.js +10 -2
- package/dist/features/vault-operations/vault-roles.js.map +1 -1
- package/dist/features/vault-operations/vaults-by-role.d.ts +24 -0
- package/dist/features/vault-operations/vaults-by-role.js +78 -27
- package/dist/features/vault-operations/vaults-by-role.js.map +1 -1
- package/dist/features/with-report.d.ts +1 -1
- package/dist/index.js +45 -16
- package/dist/index.js.map +1 -1
- package/dist/programs/account/main.d.ts +1 -1
- package/dist/programs/account/read.js +10 -5
- package/dist/programs/account/read.js.map +1 -1
- package/dist/programs/account/write.js +29 -2
- package/dist/programs/account/write.js.map +1 -1
- package/dist/programs/contracts/dashboard/main.d.ts +1 -1
- package/dist/programs/contracts/dashboard/read.js +15 -3
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +233 -52
- package/dist/programs/contracts/dashboard/write.js.map +1 -1
- package/dist/programs/contracts/hub/main.d.ts +1 -1
- package/dist/programs/contracts/hub/read.js +15 -5
- package/dist/programs/contracts/hub/read.js.map +1 -1
- package/dist/programs/contracts/hub/write.js +12 -3
- package/dist/programs/contracts/hub/write.js.map +1 -1
- package/dist/programs/contracts/lazy-oracle/main.d.ts +1 -1
- package/dist/programs/contracts/main.d.ts +1 -1
- package/dist/programs/contracts/operator-grid/main.d.ts +1 -1
- package/dist/programs/contracts/operator-grid/read.js +5 -1
- package/dist/programs/contracts/operator-grid/read.js.map +1 -1
- package/dist/programs/contracts/operator-grid/write.js +18 -10
- package/dist/programs/contracts/operator-grid/write.js.map +1 -1
- package/dist/programs/contracts/pdg/main.d.ts +1 -1
- package/dist/programs/contracts/pdg/read.js +5 -1
- package/dist/programs/contracts/pdg/read.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +34 -4
- package/dist/programs/contracts/pdg/write.js.map +1 -1
- package/dist/programs/contracts/vault/main.d.ts +1 -1
- package/dist/programs/contracts/vault/write.js +5 -1
- package/dist/programs/contracts/vault/write.js.map +1 -1
- package/dist/programs/contracts/vault-factory/main.d.ts +1 -1
- package/dist/programs/contracts/vault-viewer/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/read.js +19 -7
- package/dist/programs/defi-wrapper/contracts/distributor/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/write.js +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/read.js +75 -15
- package/dist/programs/defi-wrapper/contracts/factory/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/write.js +261 -67
- package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js +64 -20
- package/dist/programs/defi-wrapper/contracts/stv-pool/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-pool/write.js +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js +64 -20
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +66 -18
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +34 -7
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/distributor/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/index.js +4 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/read.js +86 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/read.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js +191 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/health/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/read.js +73 -23
- package/dist/programs/defi-wrapper/use-cases/health/read.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/utils.js +11 -3
- package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/write.js +68 -25
- package/dist/programs/defi-wrapper/use-cases/health/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/index.js +2 -0
- package/dist/programs/defi-wrapper/use-cases/index.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/index.js +4 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +362 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +86 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/index.js +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +369 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +7 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/index.js +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +184 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/index.js +4 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/read.js +80 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/read.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +139 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/index.js +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +118 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js +1 -2
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/index.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +334 -12
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +449 -2
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
- package/dist/programs/dev-tools/anvil/main.d.ts +1 -1
- package/dist/programs/dev-tools/defi-wrapper/main.d.ts +1 -1
- package/dist/programs/dev-tools/defi-wrapper/write.js +42 -12
- package/dist/programs/dev-tools/defi-wrapper/write.js.map +1 -1
- package/dist/programs/dev-tools/main.d.ts +1 -1
- package/dist/programs/pdg-helpers.js +59 -19
- package/dist/programs/pdg-helpers.js.map +1 -1
- package/dist/programs/use-cases/consolidation/main.d.ts +1 -1
- package/dist/programs/use-cases/consolidation/write.d.ts +1 -1
- package/dist/programs/use-cases/consolidation/write.js +6 -2
- package/dist/programs/use-cases/consolidation/write.js.map +1 -1
- package/dist/programs/use-cases/deposits/main.d.ts +1 -1
- package/dist/programs/use-cases/deposits/read.js +40 -8
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/deposits/write.js +15 -3
- package/dist/programs/use-cases/deposits/write.js.map +1 -1
- package/dist/programs/use-cases/metrics/main.d.ts +1 -1
- package/dist/programs/use-cases/metrics/read.js +32 -12
- package/dist/programs/use-cases/metrics/read.js.map +1 -1
- package/dist/programs/use-cases/report/main.d.ts +1 -1
- package/dist/programs/use-cases/report/read.js +25 -5
- package/dist/programs/use-cases/report/read.js.map +1 -1
- package/dist/programs/use-cases/report/write.js +13 -5
- package/dist/programs/use-cases/report/write.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/main.d.ts +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +60 -23
- package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/wallet.d.ts +302 -300
- package/dist/providers/wallet.js +10 -2
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/integration/deposits.test.js +1 -1
- package/dist/tests/integration/deposits.test.js.map +1 -1
- package/dist/tests/integration/helpers/test-client.d.ts +150 -150
- package/dist/tests/integration/metrics.test.js.map +1 -1
- package/dist/tests/integration/mint-burn.test.js.map +1 -1
- package/dist/tests/utils/calculate-overview-v2.test.js +1 -1
- package/dist/tests/utils/csv-file.test.js +1 -1
- package/dist/tests/utils/error-handler.test.js +5 -8
- package/dist/tests/utils/error-handler.test.js.map +1 -1
- package/dist/tests/utils/lido-apr.test.js +1 -1
- package/dist/tests/utils/logging.test.js +30 -14
- package/dist/tests/utils/logging.test.js.map +1 -1
- package/dist/tests/utils/rate-limit.test.d.ts +1 -0
- package/dist/tests/utils/rate-limit.test.js +246 -0
- package/dist/tests/utils/rate-limit.test.js.map +1 -0
- package/dist/tests/utils/rebase-rewards.test.js +44 -43
- package/dist/tests/utils/rebase-rewards.test.js.map +1 -1
- package/dist/tests/utils/report-statistic.test.d.ts +1 -0
- package/dist/tests/utils/report-statistic.test.js +501 -0
- package/dist/tests/utils/report-statistic.test.js.map +1 -0
- package/dist/tests/utils/snake-to-camel.test.js +1 -1
- package/dist/tests/utils/spinner.test.d.ts +1 -0
- package/dist/tests/utils/spinner.test.js +113 -0
- package/dist/tests/utils/spinner.test.js.map +1 -0
- package/dist/tests/utils/timestamp.test.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/dist/utils/arguments.d.ts +15 -1
- package/dist/utils/arguments.js +28 -0
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/cache.d.ts +6 -5
- package/dist/utils/cache.js +15 -13
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/charts/blessed/charts-apr.js +10 -6
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +9 -5
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/blessed/datasets/prepare-metrics.d.ts +6 -6
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js +12 -13
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
- package/dist/utils/charts/blessed/utils.js +5 -2
- package/dist/utils/charts/blessed/utils.js.map +1 -1
- package/dist/utils/charts/simple/simple-charts.js +20 -8
- package/dist/utils/charts/simple/simple-charts.js.map +1 -1
- package/dist/utils/commands/report.d.ts +5 -2
- package/dist/utils/commands/report.js +21 -7
- package/dist/utils/commands/report.js.map +1 -1
- package/dist/utils/consts.d.ts +1 -0
- package/dist/utils/consts.js +5 -0
- package/dist/utils/consts.js.map +1 -1
- package/dist/utils/error-handler.js +3 -0
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/fetchCL.d.ts +10 -0
- package/dist/utils/fetchCL.js +38 -28
- package/dist/utils/fetchCL.js.map +1 -1
- package/dist/utils/health/health-utils.d.ts +2 -27707
- package/dist/utils/health/health-utils.js +26 -8
- package/dist/utils/health/health-utils.js.map +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/interrupt-handler.js +14 -6
- package/dist/utils/interrupt-handler.js.map +1 -1
- package/dist/utils/logging/console.d.ts +5 -1
- package/dist/utils/logging/console.js +36 -25
- package/dist/utils/logging/console.js.map +1 -1
- package/dist/utils/prompts/confirmations.d.ts +1 -1
- package/dist/utils/prompts/operations.d.ts +1 -1
- package/dist/utils/prompts/operations.js +1 -3
- package/dist/utils/prompts/operations.js.map +1 -1
- package/dist/utils/prompts/predeposit-guarantee.d.ts +1 -1
- package/dist/utils/prompts/predeposit-guarantee.js +1 -1
- package/dist/utils/proof/create-proof.js +18 -3
- package/dist/utils/proof/create-proof.js.map +1 -1
- package/dist/utils/rate-limit.d.ts +10 -0
- package/dist/utils/rate-limit.js +30 -0
- package/dist/utils/rate-limit.js.map +1 -0
- package/dist/utils/read-programs-by-abi.js +22 -4
- package/dist/utils/read-programs-by-abi.js.map +1 -1
- package/dist/utils/rebase-rewards.d.ts +0 -1
- package/dist/utils/rebase-rewards.js +12 -3
- package/dist/utils/rebase-rewards.js.map +1 -1
- package/dist/utils/report/statistic-data.js +31 -10
- package/dist/utils/report/statistic-data.js.map +1 -1
- package/dist/utils/share-rate.js +16 -4
- package/dist/utils/share-rate.js.map +1 -1
- package/dist/utils/sleep.js.map +1 -1
- package/dist/utils/spinner/spinners.js +5 -3
- package/dist/utils/spinner/spinners.js.map +1 -1
- package/dist/utils/statistic/report-statistic.d.ts +21 -6
- package/dist/utils/statistic/report-statistic.js +65 -25
- package/dist/utils/statistic/report-statistic.js.map +1 -1
- package/dist/utils/transactions/tx-private-key.d.ts +5 -7
- package/dist/utils/transactions/tx-private-key.js +56 -21
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.d.ts +12 -11
- package/dist/utils/transactions/tx-wc.js +108 -11
- package/dist/utils/transactions/tx-wc.js.map +1 -1
- package/dist/utils/transactions/types.d.ts +7 -0
- package/dist/utils/transactions/utils.d.ts +1 -0
- package/dist/utils/transactions/utils.js +13 -2
- package/dist/utils/transactions/utils.js.map +1 -1
- package/dist/utils/wallet-connect.d.ts +4 -1
- package/dist/utils/wallet-connect.js +52 -4
- package/dist/utils/wallet-connect.js.map +1 -1
- package/dist/utils/with-error.d.ts +7 -0
- package/dist/utils/with-error.js +6 -0
- package/dist/utils/with-error.js.map +1 -0
- package/dist/version/index.js +1 -1
- package/package.json +4 -13
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js +0 -180
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/create-pool.js.map +0 -1
- /package/dist/programs/defi-wrapper/use-cases/{wrapper-operations/create-pool.d.ts → distributor/read.d.ts} +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, callReadMethodSilent, addressPrompt, textPrompt, stringToBigInt, } from '../../../../../utils/index.js';
|
|
3
|
+
import { common } from './main.js';
|
|
4
|
+
import { stringToHex, isHex } from 'viem';
|
|
5
|
+
import { DEFAULT_PREDECESSOR, executeOperation, getPromptTimelock, OPERATION_ID_ARGUMENT, processSalt, promptOperationId, SALT_OPTION, TIMELOCK_ARGUMENT, } from 'features/defi-wrapper/index.js';
|
|
6
|
+
const commonWrite = common
|
|
7
|
+
.command('write')
|
|
8
|
+
.alias('w')
|
|
9
|
+
.description('common timelock write commands');
|
|
10
|
+
commonWrite.addOption(new Option('-cmd2json'));
|
|
11
|
+
commonWrite.on('option:-cmd2json', function () {
|
|
12
|
+
logInfo(getCommandsJson(commonWrite));
|
|
13
|
+
process.exit();
|
|
14
|
+
});
|
|
15
|
+
commonWrite
|
|
16
|
+
.command('execute')
|
|
17
|
+
.description('execute a scheduled timelock operation')
|
|
18
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
19
|
+
.argument('[target]', 'target contract address', stringToAddress)
|
|
20
|
+
.argument('[value]', 'ETH value to send (in wei, default: 0)', stringToBigInt, 0n)
|
|
21
|
+
.argument('[payload]', 'call data payload (hex)')
|
|
22
|
+
.option('-p, --predecessor <predecessor>', 'predecessor operation ID (bytes32 hex, default: 0x0)')
|
|
23
|
+
.option(...SALT_OPTION)
|
|
24
|
+
.action(async (timelock, target, value, payloadInput, options) => {
|
|
25
|
+
// Interactive prompts for missing parameters
|
|
26
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
27
|
+
if (!target) {
|
|
28
|
+
const targetPrompt = await addressPrompt('Enter target contract address', 'target');
|
|
29
|
+
target = targetPrompt.target;
|
|
30
|
+
}
|
|
31
|
+
const finalValue = value ?? 0n;
|
|
32
|
+
let payload;
|
|
33
|
+
if (!payloadInput) {
|
|
34
|
+
const payloadPrompt = await textPrompt('Enter call data payload (hex)', 'payload');
|
|
35
|
+
payloadInput = payloadPrompt.payload;
|
|
36
|
+
}
|
|
37
|
+
// Validate and convert to hex - if already hex, use as is
|
|
38
|
+
if (isHex(payloadInput)) {
|
|
39
|
+
payload = payloadInput;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
payload = stringToHex(payloadInput);
|
|
43
|
+
}
|
|
44
|
+
const predecessor = options?.predecessor
|
|
45
|
+
? isHex(options.predecessor)
|
|
46
|
+
? options.predecessor
|
|
47
|
+
: stringToHex(options.predecessor)
|
|
48
|
+
: DEFAULT_PREDECESSOR;
|
|
49
|
+
const salt = processSalt(options?.salt);
|
|
50
|
+
await executeOperation(timelockContract.address, target, payload, salt, 'Unknown execute operation', `Are you sure you want to execute this operation on target ${target}?`, finalValue, predecessor);
|
|
51
|
+
});
|
|
52
|
+
commonWrite
|
|
53
|
+
.command('cancel')
|
|
54
|
+
.description('cancel a scheduled timelock operation')
|
|
55
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
56
|
+
.argument(...OPERATION_ID_ARGUMENT)
|
|
57
|
+
.action(async (timelock, operationIdInput) => {
|
|
58
|
+
// Interactive prompts for missing parameters
|
|
59
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
60
|
+
const operationId = await promptOperationId(operationIdInput);
|
|
61
|
+
// Check operation state
|
|
62
|
+
const state = await callReadMethodSilent({
|
|
63
|
+
contract: timelockContract,
|
|
64
|
+
methodName: 'getOperationState',
|
|
65
|
+
payload: [[operationId]],
|
|
66
|
+
});
|
|
67
|
+
if (state === 0) {
|
|
68
|
+
logInfo('❌ Operation not found (Unset)');
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (state === 3) {
|
|
72
|
+
logInfo('❌ Cannot cancel: operation already executed (Done)');
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const confirmationMessage = `Are you sure you want to cancel this operation?
|
|
76
|
+
Operation ID: ${operationId}`;
|
|
77
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
78
|
+
if (!confirm)
|
|
79
|
+
return;
|
|
80
|
+
await callWriteMethodWithReceipt({
|
|
81
|
+
contract: timelockContract,
|
|
82
|
+
methodName: 'cancel',
|
|
83
|
+
payload: [operationId],
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/common/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,cAA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;IAC7C,MAAM,gBAAgB,GAAG,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC3D,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAE9D,wBAAwB;IACxB,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC;QACvC,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,mBAAmB;QAC/B,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;KACzB,CAAC,CAAC;IACH,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QAChB,OAAO,CAAC,+BAA+B,CAAC,CAAC;QACzC,OAAO;IACT,CAAC;IACD,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QAChB,OAAO,CAAC,oDAAoD,CAAC,CAAC;QAC9D,OAAO;IACT,CAAC;IAED,MAAM,mBAAmB,GAAG;gBAChB,WAAW,EAAE,CAAC;IAE1B,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,0BAA0B,CAAC;QAC/B,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,CAAC,WAAW,CAAC;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/dashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardTimelockGovernance: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB;KAC1D,OAAO,CAAC,WAAW,CAAC;KACpB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { Option } from 'commander';
|
|
2
|
+
import { proposeOperation, executeOperation, processSalt, TIMELOCK_ARGUMENT, getPromptTimelock, ACCOUNT_GRANT_ARGUMENT, SALT_OPTION, ROLE_ARGUMENT, ACCOUNT_REVOKE_ARGUMENT, promptRole, promptAccount, } from 'features/defi-wrapper/index.js';
|
|
3
|
+
import { logInfo, getCommandsJson, stringToAddress, addressPrompt, textPrompt, } from '../../../../../utils/index.js';
|
|
4
|
+
import { dashboardTimelockGovernance } from './main.js';
|
|
5
|
+
import { encodeFunctionData } from 'viem';
|
|
6
|
+
import { getDashboardContract } from 'contracts/index.js';
|
|
7
|
+
import { DashboardAbi } from 'abi/index.js';
|
|
8
|
+
// local helpers
|
|
9
|
+
const DASHBOARD_ARGUMENT = [
|
|
10
|
+
'[dashboard]',
|
|
11
|
+
'dashboard contract address',
|
|
12
|
+
stringToAddress,
|
|
13
|
+
];
|
|
14
|
+
const promptDashboard = async (dashboardAddress) => {
|
|
15
|
+
if (!dashboardAddress) {
|
|
16
|
+
const dashboardPrompt = await addressPrompt('Enter dashboard contract address', 'dashboard');
|
|
17
|
+
dashboardAddress = dashboardPrompt.dashboard;
|
|
18
|
+
}
|
|
19
|
+
return getDashboardContract(dashboardAddress);
|
|
20
|
+
};
|
|
21
|
+
// command definitions
|
|
22
|
+
const dashboardWrite = dashboardTimelockGovernance
|
|
23
|
+
.command('write')
|
|
24
|
+
.alias('w')
|
|
25
|
+
.description('dashboard timelock write commands');
|
|
26
|
+
dashboardWrite.addOption(new Option('-cmd2json'));
|
|
27
|
+
dashboardWrite.on('option:-cmd2json', function () {
|
|
28
|
+
logInfo(getCommandsJson(dashboardWrite));
|
|
29
|
+
process.exit();
|
|
30
|
+
});
|
|
31
|
+
// propose-grant-role
|
|
32
|
+
dashboardWrite
|
|
33
|
+
.command('propose-grant-role')
|
|
34
|
+
.description('propose granting a role on Dashboard via Timelock')
|
|
35
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
36
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
37
|
+
.argument(...ROLE_ARGUMENT)
|
|
38
|
+
.argument(...ACCOUNT_GRANT_ARGUMENT)
|
|
39
|
+
.option(...SALT_OPTION)
|
|
40
|
+
.action(async (timelock, dashboardAddress, roleInput, accountInput, options) => {
|
|
41
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
42
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
43
|
+
const role = await promptRole(roleInput, dashboardContract);
|
|
44
|
+
const account = await promptAccount(accountInput, 'Enter account address to grant role to');
|
|
45
|
+
const finalSalt = processSalt(options?.salt);
|
|
46
|
+
const data = encodeFunctionData({
|
|
47
|
+
abi: DashboardAbi,
|
|
48
|
+
functionName: 'grantRole',
|
|
49
|
+
args: [role, account],
|
|
50
|
+
});
|
|
51
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `grantRole(${role}, ${account})`, `Are you sure you want to propose granting role ${role} to ${account} on dashboard ${dashboardContract.address}?`);
|
|
52
|
+
});
|
|
53
|
+
// execute-grant-role
|
|
54
|
+
dashboardWrite
|
|
55
|
+
.command('execute-grant-role')
|
|
56
|
+
.description('execute granting a role on Dashboard via Timelock')
|
|
57
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
58
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
59
|
+
.argument(...ROLE_ARGUMENT)
|
|
60
|
+
.argument(...ACCOUNT_GRANT_ARGUMENT)
|
|
61
|
+
.option(...SALT_OPTION)
|
|
62
|
+
.action(async (timelock, dashboardAddress, roleInput, accountInput, options) => {
|
|
63
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
64
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
65
|
+
const role = await promptRole(roleInput, dashboardContract);
|
|
66
|
+
const finalSalt = processSalt(options?.salt);
|
|
67
|
+
const account = await promptAccount(accountInput, 'Enter account address to grant role to');
|
|
68
|
+
const data = encodeFunctionData({
|
|
69
|
+
abi: DashboardAbi,
|
|
70
|
+
functionName: 'grantRole',
|
|
71
|
+
args: [role, account],
|
|
72
|
+
});
|
|
73
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `grantRole(${role}, ${account})`, `Are you sure you want to execute granting role ${role} to ${account} on dashboard ${dashboardContract.address}?`);
|
|
74
|
+
});
|
|
75
|
+
// propose-revoke-role
|
|
76
|
+
dashboardWrite
|
|
77
|
+
.command('propose-revoke-role')
|
|
78
|
+
.description('propose revoking a role on Dashboard via Timelock')
|
|
79
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
80
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
81
|
+
.argument(...ROLE_ARGUMENT)
|
|
82
|
+
.argument(...ACCOUNT_REVOKE_ARGUMENT)
|
|
83
|
+
.option(...SALT_OPTION)
|
|
84
|
+
.action(async (timelock, dashboardAddress, roleInput, accountInput, options) => {
|
|
85
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
86
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
87
|
+
const role = await promptRole(roleInput, dashboardContract);
|
|
88
|
+
const finalSalt = processSalt(options?.salt);
|
|
89
|
+
const account = await promptAccount(accountInput, 'Enter account address to revoke role from');
|
|
90
|
+
const data = encodeFunctionData({
|
|
91
|
+
abi: DashboardAbi,
|
|
92
|
+
functionName: 'revokeRole',
|
|
93
|
+
args: [role, account],
|
|
94
|
+
});
|
|
95
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `revokeRole(${role}, ${account})`, `Are you sure you want to propose revoking role ${role} from ${account} on dashboard ${dashboardContract.address}?`);
|
|
96
|
+
});
|
|
97
|
+
// execute-revoke-role
|
|
98
|
+
dashboardWrite
|
|
99
|
+
.command('execute-revoke-role')
|
|
100
|
+
.description('execute revoking a role on Dashboard via Timelock')
|
|
101
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
102
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
103
|
+
.argument(...ROLE_ARGUMENT)
|
|
104
|
+
.argument(...ACCOUNT_REVOKE_ARGUMENT)
|
|
105
|
+
.option(...SALT_OPTION)
|
|
106
|
+
.action(async (timelock, dashboardAddress, roleInput, accountInput, options) => {
|
|
107
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
108
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
109
|
+
const role = await promptRole(roleInput, dashboardContract);
|
|
110
|
+
const finalSalt = processSalt(options?.salt);
|
|
111
|
+
const account = await promptAccount(accountInput, 'Enter account address to revoke role from');
|
|
112
|
+
const data = encodeFunctionData({
|
|
113
|
+
abi: DashboardAbi,
|
|
114
|
+
functionName: 'revokeRole',
|
|
115
|
+
args: [role, account],
|
|
116
|
+
});
|
|
117
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `revokeRole(${role}, ${account})`, `Are you sure you want to execute revoking role ${role} from ${account} on dashboard ${dashboardContract.address}?`);
|
|
118
|
+
});
|
|
119
|
+
// propose-change-tier
|
|
120
|
+
dashboardWrite
|
|
121
|
+
.command('propose-change-tier')
|
|
122
|
+
.description('propose changing tier on Dashboard via Timelock')
|
|
123
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
124
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
125
|
+
.argument('[tierId]', 'tier ID (uint256)')
|
|
126
|
+
.argument('[shareLimit]', 'share limit (uint256)')
|
|
127
|
+
.option(...SALT_OPTION)
|
|
128
|
+
.action(async (timelock, dashboardAddress, tierIdInput, shareLimitInput, options) => {
|
|
129
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
130
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
131
|
+
if (!tierIdInput) {
|
|
132
|
+
const tierIdPrompt = await textPrompt('Enter tier ID (uint256)', 'tierId');
|
|
133
|
+
tierIdInput = tierIdPrompt.tierId;
|
|
134
|
+
}
|
|
135
|
+
if (!shareLimitInput) {
|
|
136
|
+
const shareLimitPrompt = await textPrompt('Enter share limit (uint256)', 'shareLimit');
|
|
137
|
+
shareLimitInput = shareLimitPrompt.shareLimit;
|
|
138
|
+
}
|
|
139
|
+
const tierId = BigInt(tierIdInput);
|
|
140
|
+
const shareLimit = BigInt(shareLimitInput);
|
|
141
|
+
const finalSalt = processSalt(options?.salt);
|
|
142
|
+
const data = encodeFunctionData({
|
|
143
|
+
abi: DashboardAbi,
|
|
144
|
+
functionName: 'changeTier',
|
|
145
|
+
args: [tierId, shareLimit],
|
|
146
|
+
});
|
|
147
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `changeTier(${tierId}, ${shareLimit})`, `Are you sure you want to propose changing tier ${tierId} with share limit ${shareLimit} on dashboard ${dashboardContract.address}?`);
|
|
148
|
+
});
|
|
149
|
+
// execute-change-tier
|
|
150
|
+
dashboardWrite
|
|
151
|
+
.command('execute-change-tier')
|
|
152
|
+
.description('execute changing tier on Dashboard via Timelock')
|
|
153
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
154
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
155
|
+
.argument('[tierId]', 'tier ID (uint256)')
|
|
156
|
+
.argument('[shareLimit]', 'share limit (uint256)')
|
|
157
|
+
.option(...SALT_OPTION)
|
|
158
|
+
.action(async (timelock, dashboardAddress, tierIdInput, shareLimitInput, options) => {
|
|
159
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
160
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
161
|
+
if (!tierIdInput) {
|
|
162
|
+
const tierIdPrompt = await textPrompt('Enter tier ID (uint256)', 'tierId');
|
|
163
|
+
tierIdInput = tierIdPrompt.tierId;
|
|
164
|
+
}
|
|
165
|
+
if (!shareLimitInput) {
|
|
166
|
+
const shareLimitPrompt = await textPrompt('Enter share limit (uint256)', 'shareLimit');
|
|
167
|
+
shareLimitInput = shareLimitPrompt.shareLimit;
|
|
168
|
+
}
|
|
169
|
+
const tierId = BigInt(tierIdInput);
|
|
170
|
+
const shareLimit = BigInt(shareLimitInput);
|
|
171
|
+
const finalSalt = processSalt(options?.salt);
|
|
172
|
+
const data = encodeFunctionData({
|
|
173
|
+
abi: DashboardAbi,
|
|
174
|
+
functionName: 'changeTier',
|
|
175
|
+
args: [tierId, shareLimit],
|
|
176
|
+
});
|
|
177
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `changeTier(${tierId}, ${shareLimit})`, `Are you sure you want to execute changing tier ${tierId} with share limit ${shareLimit} on dashboard ${dashboardContract.address}?`);
|
|
178
|
+
});
|
|
179
|
+
// propose-sync-tier
|
|
180
|
+
dashboardWrite
|
|
181
|
+
.command('propose-sync-tier')
|
|
182
|
+
.description('propose syncing tier on Dashboard via Timelock')
|
|
183
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
184
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
185
|
+
.option(...SALT_OPTION)
|
|
186
|
+
.action(async (timelock, dashboardAddress, options) => {
|
|
187
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
188
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
189
|
+
const finalSalt = processSalt(options?.salt);
|
|
190
|
+
const data = encodeFunctionData({
|
|
191
|
+
abi: DashboardAbi,
|
|
192
|
+
functionName: 'syncTier',
|
|
193
|
+
args: [],
|
|
194
|
+
});
|
|
195
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, 'syncTier()', `Are you sure you want to propose syncing tier on dashboard ${dashboardContract.address}?`);
|
|
196
|
+
});
|
|
197
|
+
// execute-sync-tier
|
|
198
|
+
dashboardWrite
|
|
199
|
+
.command('execute-sync-tier')
|
|
200
|
+
.description('execute syncing tier on Dashboard via Timelock')
|
|
201
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
202
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
203
|
+
.option(...SALT_OPTION)
|
|
204
|
+
.action(async (timelock, dashboardAddress, options) => {
|
|
205
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
206
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
207
|
+
const finalSalt = processSalt(options?.salt);
|
|
208
|
+
const data = encodeFunctionData({
|
|
209
|
+
abi: DashboardAbi,
|
|
210
|
+
functionName: 'syncTier',
|
|
211
|
+
args: [],
|
|
212
|
+
});
|
|
213
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, 'syncTier()', `Are you sure you want to execute syncing tier on dashboard ${dashboardContract.address}?`);
|
|
214
|
+
});
|
|
215
|
+
// propose-update-share-limit
|
|
216
|
+
dashboardWrite
|
|
217
|
+
.command('propose-update-share-limit')
|
|
218
|
+
.description('propose updating share limit on Dashboard via Timelock')
|
|
219
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
220
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
221
|
+
.argument('[shareLimit]', 'share limit (uint256)')
|
|
222
|
+
.option(...SALT_OPTION)
|
|
223
|
+
.action(async (timelock, dashboardAddress, shareLimitInput, options) => {
|
|
224
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
225
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
226
|
+
if (!shareLimitInput) {
|
|
227
|
+
const shareLimitPrompt = await textPrompt('Enter share limit (uint256)', 'shareLimit');
|
|
228
|
+
shareLimitInput = shareLimitPrompt.shareLimit;
|
|
229
|
+
}
|
|
230
|
+
const shareLimit = BigInt(shareLimitInput);
|
|
231
|
+
const finalSalt = processSalt(options?.salt);
|
|
232
|
+
const data = encodeFunctionData({
|
|
233
|
+
abi: DashboardAbi,
|
|
234
|
+
functionName: 'updateShareLimit',
|
|
235
|
+
args: [shareLimit],
|
|
236
|
+
});
|
|
237
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `updateShareLimit(${shareLimit})`, `Are you sure you want to propose updating share limit to ${shareLimit} on dashboard ${dashboardContract.address}?`);
|
|
238
|
+
});
|
|
239
|
+
// execute-update-share-limit
|
|
240
|
+
dashboardWrite
|
|
241
|
+
.command('execute-update-share-limit')
|
|
242
|
+
.description('execute updating share limit on Dashboard via Timelock')
|
|
243
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
244
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
245
|
+
.argument('[shareLimit]', 'share limit (uint256)')
|
|
246
|
+
.option(...SALT_OPTION)
|
|
247
|
+
.action(async (timelock, dashboardAddress, shareLimitInput, options) => {
|
|
248
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
249
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
250
|
+
if (!shareLimitInput) {
|
|
251
|
+
const shareLimitPrompt = await textPrompt('Enter share limit (uint256)', 'shareLimit');
|
|
252
|
+
shareLimitInput = shareLimitPrompt.shareLimit;
|
|
253
|
+
}
|
|
254
|
+
const shareLimit = BigInt(shareLimitInput);
|
|
255
|
+
const finalSalt = processSalt(options?.salt);
|
|
256
|
+
const data = encodeFunctionData({
|
|
257
|
+
abi: DashboardAbi,
|
|
258
|
+
functionName: 'updateShareLimit',
|
|
259
|
+
args: [shareLimit],
|
|
260
|
+
});
|
|
261
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `updateShareLimit(${shareLimit})`, `Are you sure you want to execute updating share limit to ${shareLimit} on dashboard ${dashboardContract.address}?`);
|
|
262
|
+
});
|
|
263
|
+
// propose-set-pdg-policy
|
|
264
|
+
dashboardWrite
|
|
265
|
+
.command('propose-set-pdg-policy')
|
|
266
|
+
.description('propose setting PDG policy on Dashboard via Timelock (0=STRICT, 1=ALLOW_PROVE, 2=ALLOW_DEPOSIT_AND_PROVE)')
|
|
267
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
268
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
269
|
+
.argument('[policy]', 'PDG policy (uint8: 0=STRICT, 1=ALLOW_PROVE, 2=ALLOW_DEPOSIT_AND_PROVE)')
|
|
270
|
+
.option(...SALT_OPTION)
|
|
271
|
+
.action(async (timelock, dashboardAddress, policyInput, options) => {
|
|
272
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
273
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
274
|
+
if (!policyInput) {
|
|
275
|
+
const policyPrompt = await textPrompt('Enter PDG policy (uint8: 0=STRICT, 1=ALLOW_PROVE, 2=ALLOW_DEPOSIT_AND_PROVE)', 'policy');
|
|
276
|
+
policyInput = policyPrompt.policy;
|
|
277
|
+
}
|
|
278
|
+
const policy = Number(policyInput);
|
|
279
|
+
if (policy < 0 || policy > 2) {
|
|
280
|
+
throw new Error('PDG policy must be 0, 1, or 2');
|
|
281
|
+
}
|
|
282
|
+
const finalSalt = processSalt(options?.salt);
|
|
283
|
+
const data = encodeFunctionData({
|
|
284
|
+
abi: DashboardAbi,
|
|
285
|
+
functionName: 'setPDGPolicy',
|
|
286
|
+
args: [policy],
|
|
287
|
+
});
|
|
288
|
+
const policyNames = ['STRICT', 'ALLOW_PROVE', 'ALLOW_DEPOSIT_AND_PROVE'];
|
|
289
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `setPDGPolicy(${policy})`, `Are you sure you want to propose setting PDG policy to ${policy} (${policyNames[policy]}) on dashboard ${dashboardContract.address}?`);
|
|
290
|
+
});
|
|
291
|
+
// execute-set-pdg-policy
|
|
292
|
+
dashboardWrite
|
|
293
|
+
.command('execute-set-pdg-policy')
|
|
294
|
+
.description('execute setting PDG policy on Dashboard via Timelock')
|
|
295
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
296
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
297
|
+
.argument('[policy]', 'PDG policy (uint8: 0=STRICT, 1=ALLOW_PROVE, 2=ALLOW_DEPOSIT_AND_PROVE)')
|
|
298
|
+
.option(...SALT_OPTION)
|
|
299
|
+
.action(async (timelock, dashboardAddress, policyInput, options) => {
|
|
300
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
301
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
302
|
+
if (!policyInput) {
|
|
303
|
+
const policyPrompt = await textPrompt('Enter PDG policy (uint8: 0=STRICT, 1=ALLOW_PROVE, 2=ALLOW_DEPOSIT_AND_PROVE)', 'policy');
|
|
304
|
+
policyInput = policyPrompt.policy;
|
|
305
|
+
}
|
|
306
|
+
const policy = Number(policyInput);
|
|
307
|
+
if (policy < 0 || policy > 2) {
|
|
308
|
+
throw new Error('PDG policy must be 0, 1, or 2');
|
|
309
|
+
}
|
|
310
|
+
const finalSalt = processSalt(options?.salt);
|
|
311
|
+
const data = encodeFunctionData({
|
|
312
|
+
abi: DashboardAbi,
|
|
313
|
+
functionName: 'setPDGPolicy',
|
|
314
|
+
args: [policy],
|
|
315
|
+
});
|
|
316
|
+
const policyNames = ['STRICT', 'ALLOW_PROVE', 'ALLOW_DEPOSIT_AND_PROVE'];
|
|
317
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `setPDGPolicy(${policy})`, `Are you sure you want to execute setting PDG policy to ${policy} (${policyNames[policy]}) on dashboard ${dashboardContract.address}?`);
|
|
318
|
+
});
|
|
319
|
+
// propose-transfer-vault-ownership
|
|
320
|
+
dashboardWrite
|
|
321
|
+
.command('propose-transfer-vault-ownership')
|
|
322
|
+
.description('propose transferring vault ownership on Dashboard via Timelock')
|
|
323
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
324
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
325
|
+
.argument('[newOwner]', 'new owner address')
|
|
326
|
+
.option(...SALT_OPTION)
|
|
327
|
+
.action(async (timelock, dashboardAddress, newOwnerInput, options) => {
|
|
328
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
329
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
330
|
+
if (!newOwnerInput) {
|
|
331
|
+
const newOwnerPrompt = await addressPrompt('Enter new owner address', 'newOwner');
|
|
332
|
+
newOwnerInput = newOwnerPrompt.newOwner;
|
|
333
|
+
}
|
|
334
|
+
const newOwner = stringToAddress(newOwnerInput);
|
|
335
|
+
const finalSalt = processSalt(options?.salt);
|
|
336
|
+
const data = encodeFunctionData({
|
|
337
|
+
abi: DashboardAbi,
|
|
338
|
+
functionName: 'transferVaultOwnership',
|
|
339
|
+
args: [newOwner],
|
|
340
|
+
});
|
|
341
|
+
logInfo('⚠️ WARNING: transferVaultOwnership requires confirmation through confirmingRoles()');
|
|
342
|
+
await proposeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `transferVaultOwnership(${newOwner})`, `Are you sure you want to propose transferring vault ownership to ${newOwner} on dashboard ${dashboardContract.address}?`);
|
|
343
|
+
});
|
|
344
|
+
// execute-transfer-vault-ownership
|
|
345
|
+
dashboardWrite
|
|
346
|
+
.command('execute-transfer-vault-ownership')
|
|
347
|
+
.description('execute transferring vault ownership on Dashboard via Timelock')
|
|
348
|
+
.argument(...TIMELOCK_ARGUMENT)
|
|
349
|
+
.argument(...DASHBOARD_ARGUMENT)
|
|
350
|
+
.argument('[newOwner]', 'new owner address')
|
|
351
|
+
.option(...SALT_OPTION)
|
|
352
|
+
.action(async (timelock, dashboardAddress, newOwnerInput, options) => {
|
|
353
|
+
const timelockContract = await getPromptTimelock(timelock);
|
|
354
|
+
const dashboardContract = await promptDashboard(dashboardAddress);
|
|
355
|
+
if (!newOwnerInput) {
|
|
356
|
+
const newOwnerPrompt = await addressPrompt('Enter new owner address', 'newOwner');
|
|
357
|
+
newOwnerInput = newOwnerPrompt.newOwner;
|
|
358
|
+
}
|
|
359
|
+
const newOwner = stringToAddress(newOwnerInput);
|
|
360
|
+
const finalSalt = processSalt(options?.salt);
|
|
361
|
+
const data = encodeFunctionData({
|
|
362
|
+
abi: DashboardAbi,
|
|
363
|
+
functionName: 'transferVaultOwnership',
|
|
364
|
+
args: [newOwner],
|
|
365
|
+
});
|
|
366
|
+
logInfo('⚠️ WARNING: transferVaultOwnership requires confirmation through confirmingRoles()');
|
|
367
|
+
await executeOperation(timelockContract.address, dashboardContract.address, data, finalSalt, `transferVaultOwnership(${newOwner})`, `Are you sure you want to execute transferring vault ownership to ${newOwner} on dashboard ${dashboardContract.address}?`);
|
|
368
|
+
});
|
|
369
|
+
//# sourceMappingURL=write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,aAAa,GACd,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,aAAa,EACb,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAW,kBAAkB,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,gBAAgB;AAChB,MAAM,kBAAkB,GAAG;IACzB,aAAa;IACb,4BAA4B;IAC5B,eAAe;CACP,CAAC;AAEX,MAAM,eAAe,GAAG,KAAK,EAAE,gBAAqC,EAAE,EAAE;IACtE,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,eAAe,GAAG,MAAM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,EAAE;IACF,MAAM,gBAAgB,GAAG,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAE3D,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC,gBAAgB,CAAC,CAAC;IAElE,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,cAAc,GAAG,MAAM,aAAa,CACxC,yBAAyB,EACzB,UAAU,CACX,CAAC;QACF,aAAa,GAAG,cAAc,CAAC,QAAkB,CAAC;IACpD,CAAC;IAED,MAAM,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAEhD,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,kBAAkB,CAAC;QAC9B,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,wBAAwB;QACtC,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB,CAAC,CAAC;IAEH,OAAO,CACL,qFAAqF,CACtF,CAAC;IACF,MAAM,gBAAgB,CACpB,gBAAgB,CAAC,OAAO,EACxB,iBAAiB,CAAC,OAAO,EACzB,IAAI,EACJ,SAAS,EACT,0BAA0B,QAAQ,GAAG,EACrC,oEAAoE,QAAQ,iBAAiB,iBAAiB,CAAC,OAAO,GAAG,CAC1H,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/timelock-governance/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const timelockGovernance: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/use-cases/timelock-governance/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ;KACvC,OAAO,CAAC,qBAAqB,CAAC;KAC9B,KAAK,CAAC,IAAI,CAAC;KACX,WAAW,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/pool/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pool: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../../../programs/defi-wrapper/use-cases/timelock-governance/pool/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB;KACnC,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|