@lidofinance/lsv-cli 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/AccessControlConfirmable.js.map +1 -1
- 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.js.map +1 -1
- 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.js.map +1 -1
- package/dist/abi/defi-wrapper/OssifiableProxy.js.map +1 -1
- 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.js.map +1 -1
- package/dist/abi/defi-wrapper/TimeLock.js.map +1 -1
- package/dist/abi/defi-wrapper/WithdrawalQueue.js.map +1 -1
- package/dist/abi/defi-wrapper/index.d.ts +1 -0
- package/dist/abi/defi-wrapper/index.js +1 -0
- package/dist/abi/defi-wrapper/index.js.map +1 -1
- package/dist/command/index.js +11 -0
- 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 +1 -0
- package/dist/contracts/defi-wrapper/index.js +1 -0
- package/dist/contracts/defi-wrapper/index.js.map +1 -1
- package/dist/contracts/defi-wrapper/ossifiable-proxy.d.ts +5 -4
- package/dist/contracts/defi-wrapper/ossifiable-proxy.js +2 -2
- package/dist/contracts/defi-wrapper/ossifiable-proxy.js.map +1 -1
- 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 -4
- package/dist/contracts/defi-wrapper/timelock.js +2 -2
- package/dist/contracts/defi-wrapper/timelock.js.map +1 -1
- 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 -4
- package/dist/contracts/steth.js +5 -9
- 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 +6 -9
- 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/defi-wrapper/create-vault.js +3 -3
- package/dist/features/defi-wrapper/create-vault.js.map +1 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +14 -4
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +21 -4
- package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
- package/dist/features/defi-wrapper/distributor.js +3 -3
- package/dist/features/defi-wrapper/pool-info.js +2 -2
- package/dist/features/defi-wrapper/timelock.d.ts +3 -3
- package/dist/features/defi-wrapper/timelock.js +1 -1
- package/dist/features/defi-wrapper/timelock.js.map +1 -1
- package/dist/features/deposits/make-pdg-proof.js +4 -4
- package/dist/features/deposits/make-pdg-proof.js.map +1 -1
- package/dist/features/deposits/validators.js +1 -1
- package/dist/features/deposits/validators.js.map +1 -1
- package/dist/features/metrics.d.ts +3 -0
- package/dist/features/metrics.js +25 -0
- package/dist/features/metrics.js.map +1 -1
- package/dist/features/mint-burn/mint-limit.js +1 -1
- package/dist/features/utils/minting-capacity.js +1 -1
- package/dist/features/vault-factory.js +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/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/with-report.d.ts +1 -1
- package/dist/index.js +30 -10
- package/dist/index.js.map +1 -1
- package/dist/programs/account/main.d.ts +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/write.js +21 -14
- 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/write.js +2 -1
- 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/write.js +13 -9
- 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/write.js +1 -1
- package/dist/programs/contracts/vault/main.d.ts +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 +2 -2
- 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 +2 -2
- package/dist/programs/defi-wrapper/contracts/factory/write.js +124 -36
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +1 -1
- package/dist/programs/defi-wrapper/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/distributor/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/distributor/read.js +2 -2
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/health/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/read.js +2 -2
- package/dist/programs/defi-wrapper/use-cases/health/utils.js +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +8 -8
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/read.js +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/main.d.ts +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +3 -3
- 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 +3 -3
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +35 -49
- 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 +1 -1
- package/dist/programs/dev-tools/main.d.ts +1 -1
- package/dist/programs/pdg-helpers.js +4 -0
- 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 +1 -1
- package/dist/programs/use-cases/deposits/main.d.ts +1 -1
- package/dist/programs/use-cases/metrics/main.d.ts +1 -1
- package/dist/programs/use-cases/metrics/read.js +7 -7
- 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/vault-operations/main.d.ts +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +29 -15
- package/dist/programs/use-cases/vault-operations/write.js.map +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/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/utils/arguments.d.ts +1 -1
- package/dist/utils/cache.d.ts +0 -1
- package/dist/utils/cache.js +1 -2
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/charts/blessed/charts-apr.js +5 -5
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +4 -4
- 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 +15 -7
- package/dist/utils/charts/simple/simple-charts.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.js +26 -35
- package/dist/utils/fetchCL.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/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/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/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 -16
- package/dist/utils/report/statistic-data.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 +2 -2
- package/dist/utils/transactions/tx-private-key.js +43 -11
- 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/utils.d.ts +1 -0
- package/dist/utils/transactions/utils.js +11 -0
- 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 +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { zeroAddress } from 'viem';
|
|
1
|
+
import { encodeAbiParameters, keccak256, toBytes, zeroAddress, } from 'viem';
|
|
2
2
|
import { getTransactionReceipt } from 'viem/actions';
|
|
3
3
|
import { Option } from 'commander';
|
|
4
|
-
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToNumber, stringToBoolean, stringToHash, } from '../../../../utils/index.js';
|
|
5
|
-
import { getFactoryContract } from '
|
|
6
|
-
import { getCreatePoolEventData, getReserveRatioGapBP,
|
|
4
|
+
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToNumber, stringToBoolean, stringToHash, withError, } from '../../../../utils/index.js';
|
|
5
|
+
import { getFactoryContract, getStrategyFactoryContract, } from 'contracts/defi-wrapper/index.js';
|
|
6
|
+
import { getCreatePoolEventData, getReserveRatioGapBP, promptBaseVaultConfiguration, logCreatePoolEventData, finalizePoolCreation, prepareCreationConfigrationText, simulatePoolCreation, promptAllowListConfiguration, MELLOW_VAULTS_STRATEGY_ID, } from '../../../../features/index.js';
|
|
7
7
|
import { factory } from './main.js';
|
|
8
8
|
import { getPublicClient } from '../../../../providers/index.js';
|
|
9
9
|
// CONSTANTS & HELPERS
|
|
@@ -27,7 +27,7 @@ const applyCommonOptions = (command) => {
|
|
|
27
27
|
.option('--skip-finalization <skipFinalization>', 'skip finalization step', stringToBoolean, false);
|
|
28
28
|
};
|
|
29
29
|
const ALLOW_LIST_ENABLED_OPTION = [
|
|
30
|
-
'-al, --allowList <
|
|
30
|
+
'-al, --allowList <allowList>',
|
|
31
31
|
'is allowlist enabled (true/false)',
|
|
32
32
|
stringToBoolean,
|
|
33
33
|
];
|
|
@@ -73,34 +73,41 @@ applyCommonOptions(factoryWrite
|
|
|
73
73
|
.argument('<address>', 'factory address', stringToAddress))
|
|
74
74
|
.option(...ALLOW_LIST_ENABLED_OPTION)
|
|
75
75
|
.option(...ALLOW_LIST_MANAGER_OPTION)
|
|
76
|
-
.action(async (address, {
|
|
76
|
+
.action(async (address, { allowList, allowListManager, ...baseOptions }) => {
|
|
77
77
|
const contract = await getFactoryContract(address);
|
|
78
|
-
const { vaultConfig, timelockConfig, commonPoolConfig } = await
|
|
79
|
-
const
|
|
80
|
-
|
|
78
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promptBaseVaultConfiguration(baseOptions);
|
|
79
|
+
const allowListConfig = await promptAllowListConfiguration({
|
|
80
|
+
allowList,
|
|
81
|
+
allowListManager,
|
|
82
|
+
});
|
|
81
83
|
const confirmationMessage = `Are you sure you want to create a new STV pool with a configured wrapper?\n
|
|
82
84
|
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
83
|
-
allowListEnabled: ${
|
|
84
|
-
allowListManager: ${
|
|
85
|
+
allowListEnabled: ${allowListConfig.allowListEnabled}
|
|
86
|
+
allowListManager: ${allowListConfig.allowListManager === zeroAddress ? '<none>' : allowListConfig.allowListManager}\n`;
|
|
85
87
|
const confirm = await confirmOperation(confirmationMessage);
|
|
86
88
|
if (!confirm)
|
|
87
89
|
return;
|
|
88
90
|
const methodName = 'createPoolStvStart';
|
|
89
|
-
const payload = [
|
|
90
|
-
vaultConfig,
|
|
91
|
-
timelockConfig,
|
|
92
|
-
commonPoolConfig,
|
|
93
|
-
allowListEnabledValue,
|
|
94
|
-
allowListManagerValue,
|
|
95
|
-
];
|
|
96
91
|
if (!baseOptions.skipSimulation)
|
|
97
|
-
await simulatePoolCreation(contract, methodName,
|
|
92
|
+
await simulatePoolCreation(contract, methodName, [
|
|
93
|
+
vaultConfig,
|
|
94
|
+
timelockConfig,
|
|
95
|
+
commonPoolConfig,
|
|
96
|
+
allowListConfig.allowListEnabled,
|
|
97
|
+
allowListConfig.allowListManager,
|
|
98
|
+
], baseOptions.simulationOnly);
|
|
98
99
|
if (baseOptions.simulationOnly)
|
|
99
100
|
return;
|
|
100
101
|
const result = await callWriteMethodWithReceipt({
|
|
101
102
|
contract,
|
|
102
103
|
methodName,
|
|
103
|
-
payload: [
|
|
104
|
+
payload: [
|
|
105
|
+
vaultConfig,
|
|
106
|
+
timelockConfig,
|
|
107
|
+
commonPoolConfig,
|
|
108
|
+
allowListConfig.allowListEnabled,
|
|
109
|
+
allowListConfig.allowListManager,
|
|
110
|
+
],
|
|
104
111
|
});
|
|
105
112
|
if (!result.receipt || !result.tx) {
|
|
106
113
|
logInfo(FIRST_STEP_MESSAGE);
|
|
@@ -122,16 +129,18 @@ applyCommonOptions(factoryWrite
|
|
|
122
129
|
.option(...RR_GAP_BP_OPTION)
|
|
123
130
|
.option(...ALLOW_LIST_ENABLED_OPTION)
|
|
124
131
|
.option(...ALLOW_LIST_MANAGER_OPTION)
|
|
125
|
-
.action(async (address, { reserveRatioGapBP,
|
|
132
|
+
.action(async (address, { reserveRatioGapBP, allowList, allowListManager, ...baseOptions }) => {
|
|
126
133
|
const contract = await getFactoryContract(address);
|
|
127
|
-
const { vaultConfig, timelockConfig, commonPoolConfig } = await
|
|
128
|
-
const
|
|
134
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promptBaseVaultConfiguration(baseOptions);
|
|
135
|
+
const allowListConfig = await promptAllowListConfiguration({
|
|
136
|
+
allowList,
|
|
137
|
+
allowListManager,
|
|
138
|
+
});
|
|
129
139
|
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
130
|
-
const allowListManagerValue = allowListManager ?? zeroAddress;
|
|
131
140
|
const confirmationMessage = `Are you sure you want to create a new STV-STETH pool with minting enabled?\n
|
|
132
141
|
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
133
|
-
allowListEnabled: ${
|
|
134
|
-
allowListManager: ${
|
|
142
|
+
allowListEnabled: ${allowListConfig.allowListEnabled}
|
|
143
|
+
allowListManager: ${allowListConfig.allowListManager === zeroAddress ? '<none>' : allowListConfig.allowListManager}
|
|
135
144
|
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
136
145
|
const confirm = await confirmOperation(confirmationMessage);
|
|
137
146
|
if (!confirm)
|
|
@@ -141,8 +150,8 @@ applyCommonOptions(factoryWrite
|
|
|
141
150
|
vaultConfig,
|
|
142
151
|
timelockConfig,
|
|
143
152
|
commonPoolConfig,
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
allowListConfig.allowListEnabled,
|
|
154
|
+
allowListConfig.allowListManager,
|
|
146
155
|
BigInt(reserveRatioGapBPValue),
|
|
147
156
|
];
|
|
148
157
|
if (!baseOptions.skipSimulation)
|
|
@@ -177,19 +186,28 @@ applyCommonOptions(factoryWrite
|
|
|
177
186
|
.option(...MINTING_ENABLED_OPTION)
|
|
178
187
|
.option(...STRATEGY_FACTORY_OPTION)
|
|
179
188
|
.option(...STRATEGY_FACTORY_DEPLOY_BYTES_OPTION)
|
|
180
|
-
.action(async (address, { reserveRatioGapBP, allowListManager,
|
|
189
|
+
.action(async (address, { reserveRatioGapBP, allowListManager, allowList, mintingEnabled, strategyFactory, strategyFactoryDeployBytes, ...baseOptions }) => {
|
|
181
190
|
const contract = await getFactoryContract(address);
|
|
182
|
-
const { vaultConfig, timelockConfig, commonPoolConfig } = await
|
|
183
|
-
const
|
|
184
|
-
|
|
191
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promptBaseVaultConfiguration(baseOptions);
|
|
192
|
+
const allowListConfig = await promptAllowListConfiguration({
|
|
193
|
+
allowList,
|
|
194
|
+
allowListManager,
|
|
195
|
+
});
|
|
196
|
+
if (strategyFactory) {
|
|
197
|
+
if (!allowListConfig.allowListEnabled)
|
|
198
|
+
throw new Error('StvStrategyPool creation requires allowlist to be enabled. AllowList can be configured on strategy contract(if supported).');
|
|
199
|
+
if (allowListConfig.allowListManager !== zeroAddress) {
|
|
200
|
+
throw new Error('StvStrategyPool creation with custom strategy factory does not support setting AllowList Manager. This role will be able to manage list of allowed strategies and should only be set via Timelock Governance after the pool creation.');
|
|
201
|
+
}
|
|
202
|
+
}
|
|
185
203
|
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
186
204
|
const confirmationMessage = `Are you sure you want to create a new custom pool?\n
|
|
187
205
|
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
188
206
|
strategyFactory: ${strategyFactory ? strategyFactory : '<none>'}
|
|
189
207
|
strategyFactoryDeployBytes: ${strategyFactoryDeployBytes ? strategyFactoryDeployBytes : '<none>'}
|
|
190
208
|
mintingEnabled: ${mintingEnabled !== undefined ? mintingEnabled : true}
|
|
191
|
-
allowListEnabled: ${
|
|
192
|
-
allowListManager: ${
|
|
209
|
+
allowListEnabled: ${allowListConfig.allowListEnabled}
|
|
210
|
+
allowListManager: ${allowListConfig.allowListManager === zeroAddress ? '<none>' : allowListConfig.allowListManager}
|
|
193
211
|
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
194
212
|
const confirm = await confirmOperation(confirmationMessage);
|
|
195
213
|
if (!confirm)
|
|
@@ -200,8 +218,8 @@ applyCommonOptions(factoryWrite
|
|
|
200
218
|
timelockConfig,
|
|
201
219
|
commonPoolConfig,
|
|
202
220
|
{
|
|
203
|
-
allowListEnabled:
|
|
204
|
-
allowListManager:
|
|
221
|
+
allowListEnabled: allowListConfig.allowListEnabled,
|
|
222
|
+
allowListManager: allowListConfig.allowListManager,
|
|
205
223
|
reserveRatioGapBP: BigInt(reserveRatioGapBPValue),
|
|
206
224
|
mintingEnabled: true,
|
|
207
225
|
},
|
|
@@ -230,6 +248,76 @@ applyCommonOptions(factoryWrite
|
|
|
230
248
|
logInfo('Pool Creation Finalize');
|
|
231
249
|
await finalizePoolCreation(contract, eventData);
|
|
232
250
|
});
|
|
251
|
+
applyCommonOptions(factoryWrite
|
|
252
|
+
.command('create-strategy-pool-lido-earn-eth')
|
|
253
|
+
.description('initiates deployment of a strategy pool with Lido Earn ETH strategy')
|
|
254
|
+
.argument('<address>', 'factory address', stringToAddress)
|
|
255
|
+
.argument('<strategyFactoryAddress>', 'strategy factory address', stringToAddress))
|
|
256
|
+
.option(...RR_GAP_BP_OPTION)
|
|
257
|
+
.option(...ALLOW_LIST_ENABLED_OPTION)
|
|
258
|
+
.action(async (factoryAddress, strategyFactoryAddress, { allowListManager, allowList, reserveRatioGapBP, ...baseOptions }) => {
|
|
259
|
+
const wrapperFactoryContract = await getFactoryContract(factoryAddress);
|
|
260
|
+
const strategyFactoryContract = await getStrategyFactoryContract(strategyFactoryAddress);
|
|
261
|
+
const { result: STRATEGY_ID, error } = await withError(strategyFactoryContract.read.STRATEGY_ID());
|
|
262
|
+
if (error || !STRATEGY_ID) {
|
|
263
|
+
throw new Error(`Error reading STRATEGY_ID from the strategy factory contract: ${error}. Make sure the provided address is correct and the contract is properly deployed.`);
|
|
264
|
+
}
|
|
265
|
+
if (STRATEGY_ID !== keccak256(toBytes(MELLOW_VAULTS_STRATEGY_ID))) {
|
|
266
|
+
throw new Error(`The provided strategy factory contract has an incompatible STRATEGY_ID. Check that the contract at address ${strategyFactoryAddress} is the correct one.`);
|
|
267
|
+
}
|
|
268
|
+
const { vaultConfig, timelockConfig, commonPoolConfig } = await promptBaseVaultConfiguration(baseOptions);
|
|
269
|
+
const allowListConfig = await promptAllowListConfiguration({
|
|
270
|
+
allowList,
|
|
271
|
+
allowListManager,
|
|
272
|
+
promptAllowListManager: false,
|
|
273
|
+
});
|
|
274
|
+
const reserveRatioGapBPValue = await getReserveRatioGapBP(reserveRatioGapBP);
|
|
275
|
+
const confirmationMessage = `Are you sure you want to create a new custom pool?\n
|
|
276
|
+
${prepareCreationConfigrationText(vaultConfig, timelockConfig, commonPoolConfig)}
|
|
277
|
+
strategy.id: ${MELLOW_VAULTS_STRATEGY_ID}
|
|
278
|
+
strategy.allowListEnabled: ${allowListConfig.allowListEnabled}
|
|
279
|
+
reserveRatioGapBP: ${reserveRatioGapBPValue}\n`;
|
|
280
|
+
const confirm = await confirmOperation(confirmationMessage);
|
|
281
|
+
if (!confirm)
|
|
282
|
+
return;
|
|
283
|
+
const strategyFactoryDeployBytes = encodeAbiParameters([{ type: 'bool', name: 'allowListEnabled' }], [allowListConfig.allowListEnabled]);
|
|
284
|
+
const methodName = 'createPoolStart';
|
|
285
|
+
const payload = [
|
|
286
|
+
vaultConfig,
|
|
287
|
+
timelockConfig,
|
|
288
|
+
commonPoolConfig,
|
|
289
|
+
{
|
|
290
|
+
reserveRatioGapBP: BigInt(reserveRatioGapBPValue),
|
|
291
|
+
// correct configuration for stvStrategyPool
|
|
292
|
+
allowListEnabled: true,
|
|
293
|
+
allowListManager: zeroAddress,
|
|
294
|
+
mintingEnabled: true,
|
|
295
|
+
},
|
|
296
|
+
strategyFactoryAddress,
|
|
297
|
+
strategyFactoryDeployBytes,
|
|
298
|
+
];
|
|
299
|
+
if (!baseOptions.skipSimulation)
|
|
300
|
+
await simulatePoolCreation(wrapperFactoryContract, methodName, payload, baseOptions.simulationOnly);
|
|
301
|
+
if (baseOptions.simulationOnly)
|
|
302
|
+
return;
|
|
303
|
+
const result = await callWriteMethodWithReceipt({
|
|
304
|
+
contract: wrapperFactoryContract,
|
|
305
|
+
methodName,
|
|
306
|
+
payload: [...payload],
|
|
307
|
+
});
|
|
308
|
+
if (!result.receipt || !result.tx) {
|
|
309
|
+
logInfo(FIRST_STEP_MESSAGE);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const eventData = await getCreatePoolEventData(result.receipt, result.tx);
|
|
313
|
+
logCreatePoolEventData(eventData);
|
|
314
|
+
if (baseOptions.skipFinalization) {
|
|
315
|
+
logInfo('Skipping pool creation finalization as per user request');
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
logInfo('Pool Creation Finalize');
|
|
319
|
+
await finalizePoolCreation(wrapperFactoryContract, eventData);
|
|
320
|
+
});
|
|
233
321
|
factoryWrite
|
|
234
322
|
.command('create-pool-finalize')
|
|
235
323
|
.description('finalizes the deployment of a pool. Used if the pool creation was not finalized in the first step (Multisig case).')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,YAAY,GACb,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,2BAA2B,EAC3B,sBAAsB,EAEtB,oBAAoB,EACpB,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAiB5C,sBAAsB;AAEtB,MAAM,kBAAkB,GACtB,qKAAqK,CAAC;AAExK,wDAAwD;AACxD,M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AAE,MAAM;KACb,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEhE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAElC,MAAM,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../programs/defi-wrapper/contracts/factory/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAEnB,SAAS,EACT,OAAO,EACP,WAAW,GACZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,SAAS,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EACL,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EAEtB,oBAAoB,EACpB,+BAA+B,EAC/B,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAiB5C,sBAAsB;AAEtB,MAAM,kBAAkB,GACtB,qKAAqK,CAAC;AAExK,wDAAwD;AACxD,MAAM,kBAAkB,GAAG,CAAC,OAAgB,EAAW,EAAE;IACvD,OAAO,OAAO;SACX,MAAM,CAAC,oCAAoC,EAAE,uBAAuB,CAAC;SACrE,MAAM,CACL,mDAAmD,EACnD,+BAA+B,CAChC;SACA,MAAM,CACL,uDA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S,CAAC,CAAC;AAChE,CAAC,CACF,CAAC;AAEJ,YAAY;KACT,OAAO,CAAC,sBAAsB,CAAC;KAC/B,WAAW,CACV,oHAAoH,CACrH;KACA,QAAQ,CAAC,WAAW,EAAE,iBAAiB,EAAE,eAAe,CAAC;KACzD,QAAQ,CACP,UAAU,EACV,yDAAyD,EACzD,YAAY,CACb;KACA,MAAM,CAAC,KAAK,EAAE,OAAgB,EAAE,MAAW,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACnD,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,YAAY,EAAE;QACxD,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEhE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAElC,MAAM,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const defiWrapperContracts: import("commander").Command;
|
|
1
|
+
export declare const defiWrapperContracts: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StvPoolAbi } from '
|
|
1
|
+
import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
2
|
import { ReadProgramCommandConfig } from '../../../../utils/index.js';
|
|
3
3
|
export declare const readCommandConfig: ReadProgramCommandConfig<typeof StvPoolAbi>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const stvPool: import("commander").Command;
|
|
1
|
+
export declare const stvPool: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatEther, formatUnits } from 'viem';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
|
-
import { StvPoolAbi } from '
|
|
4
|
-
import { getStvPoolContract } from '
|
|
3
|
+
import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
4
|
+
import { getStvPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
6
6
|
import { stvPool } from './main.js';
|
|
7
7
|
import { readCommandConfig } from './config.js';
|
|
@@ -3,7 +3,7 @@ import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt,
|
|
|
3
3
|
import { getAccount } from '../../../../providers/index.js';
|
|
4
4
|
import { stvPool } from './main.js';
|
|
5
5
|
import { formatEther } from 'viem';
|
|
6
|
-
import { getStvPoolContract } from '
|
|
6
|
+
import { getStvPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
7
7
|
const stvPoolWrite = stvPool
|
|
8
8
|
.command('write')
|
|
9
9
|
.alias('w')
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StvStETHPoolAbi } from '
|
|
1
|
+
import { StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
2
|
import { ReadProgramCommandConfig } from '../../../../utils/index.js';
|
|
3
3
|
export declare const readCommandConfig: ReadProgramCommandConfig<typeof StvStETHPoolAbi>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const stvStethPool: import("commander").Command;
|
|
1
|
+
export declare const stvStethPool: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatEther, formatUnits } from 'viem';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
|
-
import { StvStETHPoolAbi } from '
|
|
4
|
-
import { getStvStethPoolContract } from '
|
|
3
|
+
import { StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
4
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
6
6
|
import { stvStethPool } from './main.js';
|
|
7
7
|
import { readCommandConfig } from './config.js';
|
|
@@ -2,7 +2,7 @@ import { Option } from 'commander';
|
|
|
2
2
|
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, confirmOperation, stringToBigInt, } from '../../../../utils/index.js';
|
|
3
3
|
import { stvStethPool } from './main.js';
|
|
4
4
|
import { formatEther } from 'viem';
|
|
5
|
-
import { getStvStethPoolContract } from '
|
|
5
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
6
6
|
const stvStethPoolWrite = stvStethPool
|
|
7
7
|
.command('write')
|
|
8
8
|
.alias('w')
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WithdrawalQueueAbi } from '
|
|
1
|
+
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
|
|
2
2
|
import { ReadProgramCommandConfig } from '../../../../utils/index.js';
|
|
3
3
|
export declare const readCommandConfig: ReadProgramCommandConfig<typeof WithdrawalQueueAbi>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const withdrawalQueue: import("commander").Command;
|
|
1
|
+
export declare const withdrawalQueue: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { WithdrawalQueueAbi } from '
|
|
3
|
-
import { getWithdrawalQueueContract } from '
|
|
2
|
+
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
|
|
3
|
+
import { getWithdrawalQueueContract } from 'contracts/defi-wrapper/index.js';
|
|
4
4
|
import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
|
|
5
5
|
import { withdrawalQueue } from './main.js';
|
|
6
6
|
import { readCommandConfig } from './config.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, stringToBigInt, stringToBigIntArray, callReadMethod, } from '../../../../utils/index.js';
|
|
3
3
|
import { withdrawalQueue } from './main.js';
|
|
4
|
-
import { getWithdrawalQueueContract } from '
|
|
4
|
+
import { getWithdrawalQueueContract } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
const withdrawalQueueWrite = withdrawalQueue
|
|
6
6
|
.command('write')
|
|
7
7
|
.alias('w')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const defiWrapper: import("commander").Command;
|
|
1
|
+
export declare const defiWrapper: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const distributorUseCases: import("commander").Command;
|
|
1
|
+
export declare const distributorUseCases: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { erc20Abi, formatUnits, getContract } from 'viem';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
3
|
import { logInfo, getCommandsJson, stringToAddress, logTable } from '../../../../utils/index.js';
|
|
4
|
-
import { getDistributorContract, getStvPoolContract, } from '
|
|
4
|
+
import { getDistributorContract, getStvPoolContract, } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
import { distributorUseCases } from './main.js';
|
|
6
|
-
import { getPublicClient } from '
|
|
6
|
+
import { getPublicClient } from 'providers/wallet.js';
|
|
7
7
|
const distributorRead = distributorUseCases
|
|
8
8
|
.command('read')
|
|
9
9
|
.aliases(['r'])
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { erc20Abi, formatUnits, getContract, isAddressEqual, parseUnits, } from 'viem';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
3
|
import { logInfo, getCommandsJson, stringToAddress, logError, confirmOperation, callWriteMethodWithReceipt, stringArrayToAddressArray, calculateIPFSAddCID, stringToHash, stringToBigInt, stringArrayToTokenPairs, } from '../../../../utils/index.js';
|
|
4
|
-
import { getDistributorContract, getStvPoolContract, } from '
|
|
4
|
+
import { getDistributorContract, getStvPoolContract, } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
import { distributorUseCases } from './main.js';
|
|
6
|
-
import { getPublicClient } from '
|
|
7
|
-
import { generateDistribution } from '
|
|
6
|
+
import { getPublicClient } from 'providers/wallet.js';
|
|
7
|
+
import { generateDistribution } from 'features/defi-wrapper/distributor.js';
|
|
8
8
|
import path from 'path';
|
|
9
9
|
import fs from 'fs/promises';
|
|
10
10
|
const distributorWrite = distributorUseCases
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const health: import("commander").Command;
|
|
1
|
+
export declare const health: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatEther, formatUnits } from 'viem';
|
|
2
2
|
import { health } from './main.js';
|
|
3
|
-
import { getStvStethPoolContract } from '
|
|
4
|
-
import { getStethContract } from '
|
|
3
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
4
|
+
import { getStethContract } from 'contracts/index.js';
|
|
5
5
|
import { stringToAddress, logTable, logInfo, callReadMethodSilent, stringToNumber, formatBP, } from '../../../../utils/index.js';
|
|
6
6
|
import { getPublicClient } from '../../../../providers/index.js';
|
|
7
7
|
import { isThresholdBreached, calculateEffectiveLTV, calculateThresholdExcess, calculateBalancesFromEvents, } from './utils.js';
|
|
@@ -2,7 +2,7 @@ import { zeroAddress } from 'viem';
|
|
|
2
2
|
import { getPublicClient } from '../../../../providers/index.js';
|
|
3
3
|
import { logInfo, logError, getIndexedEventsFromCache, callReadMethodSilent, confirmOperation, logCancel, } from '../../../../utils/index.js';
|
|
4
4
|
import { grantRoleFromImpersonatedAccount, callMethodFromImpersonatedAccount, } from '../../../../features/index.js';
|
|
5
|
-
import { getStvStethPoolContract } from '
|
|
5
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
6
6
|
const TOTAL_BASIS_POINTS = 10000n;
|
|
7
7
|
const fetchEventsForBlocks = async ({ blocks, poolAddress, batchSize = 30000, }) => {
|
|
8
8
|
const publicClient = await getPublicClient();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { formatEther, formatUnits } from 'viem';
|
|
2
2
|
import { health } from './main.js';
|
|
3
|
-
import { getStvStethPoolContract } from '
|
|
4
|
-
import { getStethContract } from '
|
|
3
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
4
|
+
import { getStethContract } from 'contracts/index.js';
|
|
5
5
|
import { stringToAddress, logInfo, logTable, callReadMethodSilent, callWriteMethodWithReceipt, confirmOperation, } from '../../../../utils/index.js';
|
|
6
|
-
import { getAccount } from '
|
|
6
|
+
import { getAccount } from 'providers/wallet.js';
|
|
7
7
|
import { grantLossSocializerRole, setMaxLossSocializationBP } from './utils.js';
|
|
8
8
|
const healthWrite = health
|
|
9
9
|
.command('write')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCases: import("commander").Command;
|
|
1
|
+
export declare const useCases: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const common: import("commander").Command;
|
|
1
|
+
export declare const common: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -2,16 +2,16 @@ import { Option } from 'commander';
|
|
|
2
2
|
import { logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, addressPrompt, logError, stringToBigInt, } from '../../../../../utils/index.js';
|
|
3
3
|
import { common } from './main.js';
|
|
4
4
|
import { decodeFunctionData } from 'viem';
|
|
5
|
-
import { getStvPoolContract } from '
|
|
6
|
-
import { getPromptTimelock, OPERATION_ID_ARGUMENT, promptOperationId, TIMELOCK_ARGUMENT, waitTimeTo, } from '
|
|
5
|
+
import { getStvPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
6
|
+
import { getPromptTimelock, OPERATION_ID_ARGUMENT, promptOperationId, TIMELOCK_ARGUMENT, waitTimeTo, } from 'features/defi-wrapper/timelock.js';
|
|
7
7
|
import { getPublicClient } from '../../../../../providers/index.js';
|
|
8
8
|
import { DashboardAbi } from '../../../../../abi/index.js';
|
|
9
|
-
import { StvPoolAbi } from '
|
|
10
|
-
import { StvStETHPoolAbi } from '
|
|
11
|
-
import { WithdrawalQueueAbi } from '
|
|
12
|
-
import { OssifiableProxyAbi } from '
|
|
13
|
-
import { TimeLockAbi } from '
|
|
14
|
-
import { DistributorAbi } from '
|
|
9
|
+
import { StvPoolAbi } from 'abi/defi-wrapper/StvPool.js';
|
|
10
|
+
import { StvStETHPoolAbi } from 'abi/defi-wrapper/StvStETHPool.js';
|
|
11
|
+
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/WithdrawalQueue.js';
|
|
12
|
+
import { OssifiableProxyAbi } from 'abi/defi-wrapper/OssifiableProxy.js';
|
|
13
|
+
import { TimeLockAbi } from 'abi/defi-wrapper/TimeLock.js';
|
|
14
|
+
import { DistributorAbi } from 'abi/defi-wrapper/Distributor.js';
|
|
15
15
|
// all abis of expected timelock governed contracts
|
|
16
16
|
const mixAbi = [
|
|
17
17
|
...DashboardAbi,
|
|
@@ -2,7 +2,7 @@ import { Option } from 'commander';
|
|
|
2
2
|
import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, confirmOperation, callReadMethodSilent, addressPrompt, textPrompt, stringToBigInt, } from '../../../../../utils/index.js';
|
|
3
3
|
import { common } from './main.js';
|
|
4
4
|
import { stringToHex, isHex } from 'viem';
|
|
5
|
-
import { DEFAULT_PREDECESSOR, executeOperation, getPromptTimelock, OPERATION_ID_ARGUMENT, processSalt, promptOperationId, SALT_OPTION, TIMELOCK_ARGUMENT, } from '
|
|
5
|
+
import { DEFAULT_PREDECESSOR, executeOperation, getPromptTimelock, OPERATION_ID_ARGUMENT, processSalt, promptOperationId, SALT_OPTION, TIMELOCK_ARGUMENT, } from 'features/defi-wrapper/index.js';
|
|
6
6
|
const commonWrite = common
|
|
7
7
|
.command('write')
|
|
8
8
|
.alias('w')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dashboardTimelockGovernance: import("commander").Command;
|
|
1
|
+
export declare const dashboardTimelockGovernance: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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 '
|
|
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
3
|
import { logInfo, getCommandsJson, stringToAddress, addressPrompt, textPrompt, } from '../../../../../utils/index.js';
|
|
4
4
|
import { dashboardTimelockGovernance } from './main.js';
|
|
5
5
|
import { encodeFunctionData } from 'viem';
|
|
6
|
-
import { getDashboardContract } from '
|
|
7
|
-
import { DashboardAbi } from '
|
|
6
|
+
import { getDashboardContract } from 'contracts/index.js';
|
|
7
|
+
import { DashboardAbi } from 'abi/index.js';
|
|
8
8
|
// local helpers
|
|
9
9
|
const DASHBOARD_ARGUMENT = [
|
|
10
10
|
'[dashboard]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const timelockGovernance: import("commander").Command;
|
|
1
|
+
export declare const timelockGovernance: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pool: import("commander").Command;
|
|
1
|
+
export declare const pool: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { ACCOUNT_GRANT_ARGUMENT, ACCOUNT_REVOKE_ARGUMENT, executeOperation, getPromptTimelock, processSalt, promptAccount, promptRole, proposeOperation, ROLE_ARGUMENT, SALT_OPTION, TIMELOCK_ARGUMENT, } from '
|
|
2
|
+
import { ACCOUNT_GRANT_ARGUMENT, ACCOUNT_REVOKE_ARGUMENT, executeOperation, getPromptTimelock, processSalt, promptAccount, promptRole, proposeOperation, ROLE_ARGUMENT, SALT_OPTION, TIMELOCK_ARGUMENT, } from 'features/defi-wrapper/index.js';
|
|
3
3
|
import { logInfo, getCommandsJson, stringToAddress, addressPrompt, textPrompt, } from '../../../../../utils/index.js';
|
|
4
4
|
import { pool } from './main.js';
|
|
5
5
|
import { encodeFunctionData, maxUint16 } from 'viem';
|
|
6
|
-
import { getStvStethPoolContract } from '
|
|
7
|
-
import { StvPoolAbi, StvStETHPoolAbi } from '
|
|
6
|
+
import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
|
|
7
|
+
import { StvPoolAbi, StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
8
8
|
// Common helpers
|
|
9
9
|
const POOL_ARGUMENT = [
|
|
10
10
|
'[pool]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const proxy: import("commander").Command;
|
|
1
|
+
export declare const proxy: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, addressPrompt, } from '../../../../../utils/index.js';
|
|
3
3
|
import { proxy } from './main.js';
|
|
4
|
-
import { getOssifiableProxyContract } from '
|
|
4
|
+
import { getOssifiableProxyContract } from 'contracts/defi-wrapper/index.js';
|
|
5
5
|
const proxyRead = proxy
|
|
6
6
|
.command('read')
|
|
7
7
|
.alias('r')
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { proposeOperation, executeOperation, processSalt, TIMELOCK_ARGUMENT, getPromptTimelock, SALT_OPTION, } from '
|
|
2
|
+
import { proposeOperation, executeOperation, processSalt, TIMELOCK_ARGUMENT, getPromptTimelock, SALT_OPTION, } from 'features/defi-wrapper/index.js';
|
|
3
3
|
import { logInfo, getCommandsJson, stringToAddress, addressPrompt, textPrompt, stringToHex, } from '../../../../../utils/index.js';
|
|
4
4
|
import { proxy } from './main.js';
|
|
5
5
|
import { encodeFunctionData } from 'viem';
|
|
6
|
-
import { OssifiableProxyAbi } from '
|
|
7
|
-
import { getOssifiableProxyContract } from '
|
|
6
|
+
import { OssifiableProxyAbi } from 'abi/defi-wrapper/index.js';
|
|
7
|
+
import { getOssifiableProxyContract } from 'contracts/defi-wrapper/index.js';
|
|
8
8
|
// Common helpers
|
|
9
9
|
const PROXY_ARGUMENT = [
|
|
10
10
|
'[proxy]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const withdrawalQueueTimelockGovernance: import("commander").Command;
|
|
1
|
+
export declare const withdrawalQueueTimelockGovernance: import("node_modules/commander/typings/index.js").Command;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
-
import { proposeOperation, executeOperation, processSalt, TIMELOCK_ARGUMENT, getPromptTimelock, SALT_OPTION, ROLE_ARGUMENT, ACCOUNT_GRANT_ARGUMENT, ACCOUNT_REVOKE_ARGUMENT, promptRole, promptAccount, } from '
|
|
2
|
+
import { proposeOperation, executeOperation, processSalt, TIMELOCK_ARGUMENT, getPromptTimelock, SALT_OPTION, ROLE_ARGUMENT, ACCOUNT_GRANT_ARGUMENT, ACCOUNT_REVOKE_ARGUMENT, promptRole, promptAccount, } from 'features/defi-wrapper/index.js';
|
|
3
3
|
import { logInfo, getCommandsJson, stringToAddress, addressPrompt, } from '../../../../../utils/index.js';
|
|
4
4
|
import { withdrawalQueueTimelockGovernance } from './main.js';
|
|
5
5
|
import { encodeFunctionData } from 'viem';
|
|
6
|
-
import { getWithdrawalQueueContract } from '
|
|
7
|
-
import { WithdrawalQueueAbi } from '
|
|
6
|
+
import { getWithdrawalQueueContract } from 'contracts/defi-wrapper/index.js';
|
|
7
|
+
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
|
|
8
8
|
// Common helpers
|
|
9
9
|
const WITHDRAWAL_QUEUE_ARGUMENT = [
|
|
10
10
|
'[withdrawalQueue]',
|