@lidofinance/lsv-cli 1.6.0 → 1.8.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/README.md +15 -9
- package/dist/abi/defi-wrapper/GenericStrategy.d.ts +308 -0
- package/dist/abi/defi-wrapper/GenericStrategy.js +409 -0
- package/dist/abi/defi-wrapper/GenericStrategy.js.map +1 -0
- package/dist/abi/defi-wrapper/{StvStETHPool.js → StvStEthPool.js} +1 -1
- package/dist/abi/defi-wrapper/{StvStETHPool.js.map → StvStEthPool.js.map} +1 -1
- package/dist/abi/defi-wrapper/index.d.ts +2 -1
- package/dist/abi/defi-wrapper/index.js +2 -1
- package/dist/abi/defi-wrapper/index.js.map +1 -1
- package/dist/abi/defi-wrapper/sources.d.ts +103 -0
- package/dist/abi/defi-wrapper/sources.js +104 -0
- package/dist/abi/defi-wrapper/sources.js.map +1 -0
- package/dist/command/index.js.map +1 -1
- package/dist/configs/constants.d.ts +21 -6
- package/dist/configs/deployed.d.ts +5 -0
- package/dist/configs/deployed.js +29 -10
- package/dist/configs/deployed.js.map +1 -1
- package/dist/configs/envs.js +2 -0
- package/dist/configs/envs.js.map +1 -1
- package/dist/configs/utils.js +1 -1
- package/dist/configs/utils.js.map +1 -1
- package/dist/contracts/dashboard-impl.d.ts +1 -1
- package/dist/contracts/dashboard-impl.js +1 -1
- package/dist/contracts/defi-wrapper/distributor.d.ts +1 -1
- package/dist/contracts/defi-wrapper/distributor.js +1 -1
- package/dist/contracts/defi-wrapper/factory.d.ts +1 -1
- package/dist/contracts/defi-wrapper/factory.js +1 -1
- package/dist/contracts/defi-wrapper/generic-strategy.d.ts +5 -0
- package/dist/contracts/defi-wrapper/generic-strategy.js +12 -0
- package/dist/contracts/defi-wrapper/generic-strategy.js.map +1 -0
- 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 +1 -1
- package/dist/contracts/defi-wrapper/ossifiable-proxy.js +1 -1
- package/dist/contracts/defi-wrapper/strategy-factory.d.ts +1 -1
- package/dist/contracts/defi-wrapper/strategy-factory.js +1 -1
- package/dist/contracts/defi-wrapper/stv-pool.d.ts +1 -1
- package/dist/contracts/defi-wrapper/stv-pool.js +1 -1
- package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +1 -1
- package/dist/contracts/defi-wrapper/stv-steth-pool.js +1 -1
- package/dist/contracts/defi-wrapper/timelock.d.ts +1 -1
- package/dist/contracts/defi-wrapper/timelock.js +1 -1
- package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +1 -1
- package/dist/contracts/defi-wrapper/withdrawal-queue.js +1 -1
- package/dist/contracts/lazy-oracle.d.ts +2 -2
- package/dist/contracts/lazy-oracle.js +3 -3
- package/dist/contracts/lazy-oracle.js.map +1 -1
- package/dist/contracts/locator.d.ts +1 -1
- package/dist/contracts/locator.js +1 -1
- package/dist/contracts/operator-grid.d.ts +2 -2
- package/dist/contracts/operator-grid.js +3 -3
- package/dist/contracts/operator-grid.js.map +1 -1
- package/dist/contracts/pdg.d.ts +2 -2
- package/dist/contracts/pdg.js +3 -3
- package/dist/contracts/pdg.js.map +1 -1
- package/dist/contracts/steth.d.ts +2 -2
- package/dist/contracts/steth.js +3 -3
- package/dist/contracts/steth.js.map +1 -1
- package/dist/contracts/vault-factory.d.ts +2 -2
- package/dist/contracts/vault-factory.js +2 -2
- package/dist/contracts/vault-hub.d.ts +2 -2
- package/dist/contracts/vault-hub.js +3 -3
- package/dist/contracts/vault-hub.js.map +1 -1
- package/dist/contracts/vault-viewer.d.ts +1 -1
- package/dist/contracts/vault-viewer.js +2 -3
- package/dist/contracts/vault-viewer.js.map +1 -1
- package/dist/contracts/vault.d.ts +1 -1
- package/dist/contracts/vault.js +1 -1
- package/dist/contracts/wsteth.d.ts +2 -2
- package/dist/contracts/wsteth.js +3 -3
- package/dist/contracts/wsteth.js.map +1 -1
- package/dist/features/consolidation.d.ts +1 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +4 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +7 -4
- package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
- package/dist/features/defi-wrapper/distributor.d.ts +3 -1
- package/dist/features/defi-wrapper/distributor.js +31 -16
- package/dist/features/defi-wrapper/distributor.js.map +1 -1
- 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 +18 -1
- package/dist/features/defi-wrapper/pool-info.js +52 -8
- package/dist/features/defi-wrapper/pool-info.js.map +1 -1
- package/dist/features/defi-wrapper/timelock-roles.d.ts +5 -0
- package/dist/features/defi-wrapper/timelock-roles.js +43 -0
- package/dist/features/defi-wrapper/timelock-roles.js.map +1 -0
- package/dist/features/defi-wrapper/timelock.d.ts +2 -7
- package/dist/features/defi-wrapper/timelock.js +6 -53
- package/dist/features/defi-wrapper/timelock.js.map +1 -1
- package/dist/features/defi-wrapper/verify-contracts.d.ts +20 -0
- package/dist/features/defi-wrapper/verify-contracts.js +145 -0
- package/dist/features/defi-wrapper/verify-contracts.js.map +1 -0
- package/dist/features/deposits/make-pdg-proof.js +1 -1
- package/dist/features/metrics.d.ts +2 -2
- package/dist/features/metrics.js +1 -1
- package/dist/features/mint-burn/mint-limit.js +1 -1
- package/dist/features/mint-burn/mint-limit.js.map +1 -1
- package/dist/features/utils/minting-capacity.js +1 -1
- package/dist/features/utils/try-fetch.js +4 -2
- package/dist/features/utils/try-fetch.js.map +1 -1
- package/dist/features/vault-factory.js +6 -5
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/vault-operations/dashboard-by-vault.js +3 -7
- package/dist/features/vault-operations/dashboard-by-vault.js.map +1 -1
- package/dist/features/vault-operations/vault-info.js +1 -1
- package/dist/features/vault-operations/vault-info.js.map +1 -1
- package/dist/features/vault-operations/vault-overview.js +1 -1
- package/dist/features/vault-operations/vault-overview.js.map +1 -1
- package/dist/features/with-report.d.ts +1 -1
- package/dist/features/with-report.js +1 -1
- package/dist/features/with-report.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/programs/account/write.js +2 -1
- package/dist/programs/account/write.js.map +1 -1
- package/dist/programs/config.js +4 -2
- package/dist/programs/config.js.map +1 -1
- package/dist/programs/contracts/dashboard/read.js +3 -6
- package/dist/programs/contracts/dashboard/read.js.map +1 -1
- package/dist/programs/contracts/dashboard/write.js +2 -2
- package/dist/programs/contracts/dashboard/write.js.map +1 -1
- package/dist/programs/contracts/lazy-oracle/config.js +2 -2
- package/dist/programs/contracts/lazy-oracle/config.js.map +1 -1
- package/dist/programs/contracts/pdg/write.js +1 -1
- package/dist/programs/contracts/vault/config.js +1 -1
- package/dist/programs/contracts/vault/config.js.map +1 -1
- package/dist/programs/contracts/vault-factory/write.js +8 -9
- package/dist/programs/contracts/vault-factory/write.js.map +1 -1
- package/dist/programs/contracts/vault-viewer/config.js +8 -8
- package/dist/programs/contracts/vault-viewer/config.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/distributor/config.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/read.js +2 -2
- package/dist/programs/defi-wrapper/contracts/factory/write.js +79 -8
- package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/index.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/index.js +1 -0
- package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/strategy/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/strategy/config.js +40 -0
- package/dist/programs/defi-wrapper/contracts/strategy/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/read.js +30 -0
- package/dist/programs/defi-wrapper/contracts/strategy/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.js +34 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-pool/config.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/read.js +2 -2
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +58 -22
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.d.ts +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +2 -2
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +4 -5
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/distributor/read.js +2 -2
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js +139 -31
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/read.js +2 -2
- package/dist/programs/defi-wrapper/use-cases/health/utils.js +2 -2
- package/dist/programs/defi-wrapper/use-cases/health/utils.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/health/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +7 -12
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +6 -10
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +5 -5
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +6 -6
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +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 +5 -5
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js +57 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +5 -5
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +37 -16
- 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 +18 -17
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
- package/dist/programs/dev-tools/anvil/write.js +2 -2
- package/dist/programs/dev-tools/anvil/write.js.map +1 -1
- package/dist/programs/dev-tools/defi-wrapper/write.js +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/write.js +4 -3
- package/dist/programs/use-cases/consolidation/write.js.map +1 -1
- package/dist/programs/use-cases/deposits/read.js +1 -2
- package/dist/programs/use-cases/deposits/read.js.map +1 -1
- package/dist/programs/use-cases/metrics/read.js +115 -1
- package/dist/programs/use-cases/metrics/read.js.map +1 -1
- package/dist/programs/use-cases/report/write.js +1 -3
- package/dist/programs/use-cases/report/write.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/create-vault.js +8 -9
- package/dist/programs/use-cases/vault-operations/create-vault.js.map +1 -1
- package/dist/programs/use-cases/vault-operations/write.js +2 -14
- package/dist/programs/use-cases/vault-operations/write.js.map +1 -1
- package/dist/providers/wallet.d.ts +687 -10399
- package/dist/providers/wallet.js +80 -9
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/fixtures/consolidation-fixtures.d.ts +64 -0
- package/dist/tests/fixtures/consolidation-fixtures.js +56 -0
- package/dist/tests/fixtures/consolidation-fixtures.js.map +1 -0
- package/dist/tests/integration/deposits.test.js +1 -1
- package/dist/tests/integration/gas-estimation.test.d.ts +1 -0
- package/dist/tests/integration/gas-estimation.test.js +76 -0
- package/dist/tests/integration/gas-estimation.test.js.map +1 -0
- package/dist/tests/integration/{globalSetup.js → global-setup.js} +2 -2
- package/dist/tests/integration/global-setup.js.map +1 -0
- package/dist/tests/integration/helpers/test-client.d.ts +586 -7068
- package/dist/tests/integration/helpers/test-config.js +4 -4
- package/dist/tests/integration/helpers/test-config.js.map +1 -1
- package/dist/tests/integration/metrics.test.js +1 -2
- package/dist/tests/integration/metrics.test.js.map +1 -1
- package/dist/tests/integration/mint-burn.test.js +1 -2
- package/dist/tests/integration/mint-burn.test.js.map +1 -1
- package/dist/tests/integration/minting-capacity.test.d.ts +1 -0
- package/dist/tests/integration/minting-capacity.test.js +52 -0
- package/dist/tests/integration/minting-capacity.test.js.map +1 -0
- package/dist/tests/integration/quarantine.test.d.ts +1 -0
- package/dist/tests/integration/quarantine.test.js +32 -0
- package/dist/tests/integration/quarantine.test.js.map +1 -0
- package/dist/tests/integration/report-fresh.test.d.ts +1 -0
- package/dist/tests/integration/report-fresh.test.js +47 -0
- package/dist/tests/integration/report-fresh.test.js.map +1 -0
- package/dist/tests/utils/arguments-security.test.d.ts +1 -0
- package/dist/tests/utils/arguments-security.test.js +34 -0
- package/dist/tests/utils/arguments-security.test.js.map +1 -0
- package/dist/tests/utils/arguments.test.js +5 -24
- package/dist/tests/utils/arguments.test.js.map +1 -1
- package/dist/tests/utils/big-int.test.d.ts +1 -0
- package/dist/tests/utils/{bigInt.test.js → big-int.test.js} +2 -2
- package/dist/tests/utils/big-int.test.js.map +1 -0
- package/dist/tests/utils/cache-security.test.d.ts +1 -0
- package/dist/tests/utils/cache-security.test.js +62 -0
- package/dist/tests/utils/cache-security.test.js.map +1 -0
- package/dist/tests/utils/cache.test.d.ts +1 -0
- package/dist/tests/utils/cache.test.js +233 -0
- package/dist/tests/utils/cache.test.js.map +1 -0
- package/dist/tests/utils/calculate-overview-v2.test.js +1 -1
- package/dist/tests/utils/calculate-overview.test.js +4 -2
- package/dist/tests/utils/calculate-overview.test.js.map +1 -1
- package/dist/tests/utils/confirmations.test.d.ts +1 -0
- package/dist/tests/utils/confirmations.test.js +35 -0
- package/dist/tests/utils/confirmations.test.js.map +1 -0
- package/dist/tests/utils/consolidation-checks.test.d.ts +1 -0
- package/dist/tests/utils/consolidation-checks.test.js +77 -0
- package/dist/tests/utils/consolidation-checks.test.js.map +1 -0
- package/dist/tests/utils/consolidation-pubkeys.test.d.ts +1 -0
- package/dist/tests/utils/consolidation-pubkeys.test.js +101 -0
- package/dist/tests/utils/consolidation-pubkeys.test.js.map +1 -0
- package/dist/tests/utils/consolidation-validator-info.test.d.ts +1 -0
- package/dist/tests/utils/consolidation-validator-info.test.js +101 -0
- package/dist/tests/utils/consolidation-validator-info.test.js.map +1 -0
- package/dist/tests/utils/consolidation-validators-checks.test.d.ts +1 -0
- package/dist/tests/utils/consolidation-validators-checks.test.js +156 -0
- package/dist/tests/utils/consolidation-validators-checks.test.js.map +1 -0
- package/dist/tests/utils/consts.test.d.ts +1 -0
- package/dist/tests/utils/consts.test.js +24 -0
- package/dist/tests/utils/consts.test.js.map +1 -0
- package/dist/tests/utils/contract-write-stateoverride.test.d.ts +1 -0
- package/dist/tests/utils/contract-write-stateoverride.test.js +135 -0
- package/dist/tests/utils/contract-write-stateoverride.test.js.map +1 -0
- package/dist/tests/utils/csv-file.test.js +1 -1
- package/dist/tests/utils/data-validators.test.js +22 -6
- package/dist/tests/utils/data-validators.test.js.map +1 -1
- package/dist/tests/utils/deployed-security.test.d.ts +1 -0
- package/dist/tests/utils/deployed-security.test.js +51 -0
- package/dist/tests/utils/deployed-security.test.js.map +1 -0
- package/dist/tests/utils/get-commands.test.js +1 -1
- package/dist/tests/utils/get-commands.test.js.map +1 -1
- package/dist/tests/utils/get-confirmations.test.d.ts +1 -0
- package/dist/tests/utils/get-confirmations.test.js +40 -0
- package/dist/tests/utils/get-confirmations.test.js.map +1 -0
- package/dist/tests/utils/ipfs-security.test.d.ts +1 -0
- package/dist/tests/utils/ipfs-security.test.js +105 -0
- package/dist/tests/utils/ipfs-security.test.js.map +1 -0
- package/dist/tests/utils/ipfs.test.js +10 -9
- package/dist/tests/utils/ipfs.test.js.map +1 -1
- package/dist/tests/utils/lido-apr.test.js +1 -1
- package/dist/tests/utils/logging.test.js +1 -1
- package/dist/tests/utils/logging.test.js.map +1 -1
- package/dist/tests/utils/merkle-utils.test.js +1 -0
- package/dist/tests/utils/merkle-utils.test.js.map +1 -1
- package/dist/tests/utils/public-client-gas-estimation.test.d.ts +1 -0
- package/dist/tests/utils/public-client-gas-estimation.test.js +231 -0
- package/dist/tests/utils/public-client-gas-estimation.test.js.map +1 -0
- package/dist/tests/utils/rate-limit-security.test.d.ts +1 -0
- package/dist/tests/utils/rate-limit-security.test.js +82 -0
- package/dist/tests/utils/rate-limit-security.test.js.map +1 -0
- package/dist/tests/utils/rebase-rewards.test.js +1 -1
- package/dist/tests/utils/report-statistic.test.js +1 -1
- package/dist/tests/utils/resove-path.test.js +2 -2
- package/dist/tests/utils/resove-path.test.js.map +1 -1
- package/dist/tests/utils/salt.test.d.ts +1 -0
- package/dist/tests/utils/salt.test.js +20 -0
- package/dist/tests/utils/salt.test.js.map +1 -0
- package/dist/tests/utils/snake-to-camel.test.js +1 -1
- package/dist/tests/utils/timestamp.test.js +1 -1
- package/dist/tests/utils/with-error.test.d.ts +1 -0
- package/dist/tests/utils/with-error.test.js +42 -0
- package/dist/tests/utils/with-error.test.js.map +1 -0
- package/dist/utils/arguments.d.ts +2 -7
- package/dist/utils/arguments.js +34 -34
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/big-int.js +7 -0
- package/dist/utils/big-int.js.map +1 -0
- package/dist/utils/cache.js +25 -22
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/calculate-overview-v2.js +1 -1
- package/dist/utils/calculate-overview-v2.js.map +1 -1
- package/dist/utils/calculate-overview.js +2 -2
- package/dist/utils/calculate-overview.js.map +1 -1
- package/dist/utils/charts/blessed/charts-apr.js +2 -2
- package/dist/utils/charts/blessed/charts-apr.js.map +1 -1
- package/dist/utils/charts/blessed/charts-rewards.js +2 -2
- package/dist/utils/charts/blessed/charts-rewards.js.map +1 -1
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js +1 -2
- package/dist/utils/charts/blessed/datasets/prepare-metrics.js.map +1 -1
- package/dist/utils/charts/blessed/utils.js +1 -0
- package/dist/utils/charts/blessed/utils.js.map +1 -1
- package/dist/utils/charts/overview.js +3 -3
- package/dist/utils/charts/overview.js.map +1 -1
- package/dist/utils/commands/confirmations.js +15 -8
- package/dist/utils/commands/confirmations.js.map +1 -1
- package/dist/utils/consolidation/validator-info.d.ts +1 -1
- package/dist/utils/consolidation/validator-info.js +4 -4
- package/dist/utils/consolidation/validator-info.js.map +1 -1
- package/dist/utils/consolidation/validators-checks.d.ts +1 -1
- package/dist/utils/consolidation/validators-checks.js +5 -5
- package/dist/utils/consolidation/validators-checks.js.map +1 -1
- package/dist/utils/csv-file.js +1 -1
- package/dist/utils/csv-file.js.map +1 -1
- package/dist/utils/data-validators.d.ts +3 -2
- package/dist/utils/data-validators.js +11 -14
- package/dist/utils/data-validators.js.map +1 -1
- package/dist/utils/{fetchCL.d.ts → fetch-cl.d.ts} +15 -17
- package/dist/utils/{fetchCL.js → fetch-cl.js} +5 -3
- package/dist/utils/fetch-cl.js.map +1 -0
- package/dist/utils/get-commands.js +3 -2
- package/dist/utils/get-commands.js.map +1 -1
- package/dist/utils/get-value.js +1 -1
- package/dist/utils/get-value.js.map +1 -1
- package/dist/utils/index.d.ts +7 -6
- package/dist/utils/index.js +7 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/interrupt-handler.js +1 -1
- package/dist/utils/interrupt-handler.js.map +1 -1
- package/dist/utils/ipfs.d.ts +11 -2
- package/dist/utils/ipfs.js +52 -12
- package/dist/utils/ipfs.js.map +1 -1
- package/dist/utils/logging/console.d.ts +1 -0
- package/dist/utils/logging/console.js +35 -7
- package/dist/utils/logging/console.js.map +1 -1
- package/dist/utils/prompts/account.d.ts +1 -0
- package/dist/utils/prompts/account.js +13 -0
- package/dist/utils/prompts/account.js.map +1 -0
- package/dist/utils/prompts/index.d.ts +3 -0
- package/dist/utils/prompts/index.js +3 -0
- package/dist/utils/prompts/index.js.map +1 -1
- package/dist/utils/prompts/predeposit-guarantee.js +1 -1
- package/dist/utils/prompts/strategy.d.ts +15398 -0
- package/dist/utils/prompts/strategy.js +10 -0
- package/dist/utils/prompts/strategy.js.map +1 -0
- package/dist/utils/prompts/timelock-roles.d.ts +1 -0
- package/dist/utils/prompts/timelock-roles.js +13 -0
- package/dist/utils/prompts/timelock-roles.js.map +1 -0
- package/dist/utils/proof/create-proof.js +1 -1
- package/dist/utils/proof/create-proof.js.map +1 -1
- package/dist/utils/proof/merkle-utils.js +1 -1
- package/dist/utils/proof/merkle-utils.js.map +1 -1
- package/dist/utils/rate-limit.d.ts +6 -9
- package/dist/utils/rate-limit.js +27 -5
- package/dist/utils/rate-limit.js.map +1 -1
- package/dist/utils/read-programs-by-abi.d.ts +1 -1
- package/dist/utils/read-programs-by-abi.js +11 -12
- package/dist/utils/read-programs-by-abi.js.map +1 -1
- package/dist/utils/report/report-proof.js +1 -1
- package/dist/utils/report/report-proof.js.map +1 -1
- package/dist/utils/report/report.js +2 -2
- package/dist/utils/report/report.js.map +1 -1
- package/dist/utils/report/statistic-data.js +1 -1
- package/dist/utils/resolve-path.js +2 -2
- package/dist/utils/resolve-path.js.map +1 -1
- package/dist/utils/salt.d.ts +3 -0
- package/dist/utils/salt.js +8 -0
- package/dist/utils/salt.js.map +1 -0
- package/dist/utils/share-rate.js +1 -1
- package/dist/utils/share-rate.js.map +1 -1
- package/dist/utils/snake-to-camel.js +1 -1
- package/dist/utils/snake-to-camel.js.map +1 -1
- package/dist/utils/spinner/spinners.js +2 -1
- package/dist/utils/spinner/spinners.js.map +1 -1
- package/dist/utils/statistic/report-statistic.d.ts +1 -1
- package/dist/utils/transactions/tx-private-key.d.ts +2 -1
- package/dist/utils/transactions/tx-private-key.js +5 -8
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.d.ts +2 -2
- package/dist/utils/transactions/tx-wc.js +11 -15
- 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 +12 -0
- package/dist/utils/transactions/utils.js.map +1 -1
- package/dist/utils/wallet-connect.js +2 -3
- package/dist/utils/wallet-connect.js.map +1 -1
- package/dist/version/index.js +1 -1
- package/dist/vitest.config.js +1 -1
- package/dist/vitest.config.js.map +1 -1
- package/dist/vitest.integration.config.js +2 -2
- package/dist/vitest.integration.config.js.map +1 -1
- package/package.json +18 -24
- package/dist/tests/integration/globalSetup.js.map +0 -1
- package/dist/tests/utils/bigInt.test.js.map +0 -1
- package/dist/utils/bigInt.js +0 -3
- package/dist/utils/bigInt.js.map +0 -1
- package/dist/utils/fetchCL.js.map +0 -1
- /package/dist/abi/defi-wrapper/{StvStETHPool.d.ts → StvStEthPool.d.ts} +0 -0
- /package/dist/{tests/utils/bigInt.test.d.ts → programs/defi-wrapper/contracts/strategy/read.d.ts} +0 -0
- /package/dist/tests/integration/{globalSetup.d.ts → global-setup.d.ts} +0 -0
- /package/dist/utils/{bigInt.d.ts → big-int.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../../abi/defi-wrapper/sources.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,KAAK,EAAE;QACL,UAAU,EACR,q08BAAq08B;QACv08B,GAAG,EAAE,i8EAAi8E;QACt8E,YAAY,EAAE,iBAAiB;QAC/B,eAAe,EAAE,yBAAyB;QAC1C,UAAU,EAAE,8BAA8B;QAC1C,YAAY,EAAE,QAAQ;QACtB,g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AAW,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAErC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,4BAA4B,CAAC,CAAC;AACpE,OAAO,CAAC,MAAM,CACZ,eAAe,EACf,gDAAgD,CACjD,CAAC;AACF,OAAO,CAAC,MAAM,CACZ,WAAW,EACX,0DAA0D,CAC3D,CAAC;AACF,OAAO,CAAC,MAAM,CACZ,gBAAgB,EAChB,8CAA8C,CAC/C,CAAC;AACF,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,yCAAyC,CAAC,CAAC;AAC9E,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,gCAAgC,CAAC,CAAC;AACjE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,8BAA8B,CAAC,CAAC;AAEzD,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,GAAG,EAAE;IACnC,OAAO;;;;;;;;GAQN,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -29,9 +29,18 @@ export declare const SUPPORTED_CHAINS_LIST: ({
|
|
|
29
29
|
sourceId?: number | undefined | undefined;
|
|
30
30
|
testnet: true;
|
|
31
31
|
custom?: Record<string, unknown> | undefined;
|
|
32
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
32
33
|
fees?: import("node_modules/viem/_types/index.js").ChainFees<undefined> | undefined;
|
|
33
34
|
formatters?: undefined;
|
|
35
|
+
prepareTransactionRequest?: ((args: import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters, options: {
|
|
36
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
37
|
+
}) => Promise<import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters>) | [fn: ((args: import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters, options: {
|
|
38
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
39
|
+
}) => Promise<import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
40
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
41
|
+
}] | undefined;
|
|
34
42
|
serializers?: import("node_modules/viem/_types/index.js").ChainSerializers<undefined, import("node_modules/viem/_types/index.js").TransactionSerializable> | undefined;
|
|
43
|
+
verifyHash?: ((client: import("node_modules/viem/_types/index.js").Client, parameters: import("node_modules/viem/_types/index.js").VerifyHashActionParameters) => Promise<import("node_modules/viem/_types/index.js").VerifyHashActionReturnType>) | undefined;
|
|
35
44
|
} | {
|
|
36
45
|
blockExplorers: {
|
|
37
46
|
readonly default: {
|
|
@@ -40,14 +49,11 @@ export declare const SUPPORTED_CHAINS_LIST: ({
|
|
|
40
49
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
41
50
|
};
|
|
42
51
|
};
|
|
43
|
-
blockTime
|
|
52
|
+
blockTime: 12000;
|
|
44
53
|
contracts: {
|
|
45
|
-
readonly ensRegistry: {
|
|
46
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
47
|
-
};
|
|
48
54
|
readonly ensUniversalResolver: {
|
|
49
|
-
readonly address: "
|
|
50
|
-
readonly blockCreated:
|
|
55
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
56
|
+
readonly blockCreated: 23085558;
|
|
51
57
|
};
|
|
52
58
|
readonly multicall3: {
|
|
53
59
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -71,7 +77,16 @@ export declare const SUPPORTED_CHAINS_LIST: ({
|
|
|
71
77
|
sourceId?: number | undefined | undefined;
|
|
72
78
|
testnet?: boolean | undefined | undefined;
|
|
73
79
|
custom?: Record<string, unknown> | undefined;
|
|
80
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
74
81
|
fees?: import("node_modules/viem/_types/index.js").ChainFees<undefined> | undefined;
|
|
75
82
|
formatters?: undefined;
|
|
83
|
+
prepareTransactionRequest?: ((args: import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters, options: {
|
|
84
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
85
|
+
}) => Promise<import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters>) | [fn: ((args: import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters, options: {
|
|
86
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
87
|
+
}) => Promise<import("node_modules/viem/_types/index.js").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
88
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
89
|
+
}] | undefined;
|
|
76
90
|
serializers?: import("node_modules/viem/_types/index.js").ChainSerializers<undefined, import("node_modules/viem/_types/index.js").TransactionSerializable> | undefined;
|
|
91
|
+
verifyHash?: ((client: import("node_modules/viem/_types/index.js").Client, parameters: import("node_modules/viem/_types/index.js").VerifyHashActionParameters) => Promise<import("node_modules/viem/_types/index.js").VerifyHashActionReturnType>) | undefined;
|
|
77
92
|
})[];
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Chain } from 'viem';
|
|
2
2
|
import { Config } from '../types/index.js';
|
|
3
|
+
import { SUPPORTED_CHAINS_LIST } from './constants.js';
|
|
3
4
|
export declare const importDeployFile: () => Record<string, any>;
|
|
4
5
|
export declare const importConfigFromEnv: () => Config;
|
|
5
6
|
export declare const getConfig: () => Config;
|
|
6
7
|
export declare const getDeployed: () => Record<string, any>;
|
|
7
8
|
export declare const getChainId: () => Promise<number>;
|
|
9
|
+
export declare const getExplorerUrl: () => Promise<string>;
|
|
10
|
+
export declare const CHAIN_CACHE: {
|
|
11
|
+
currentChain: (typeof SUPPORTED_CHAINS_LIST)[number] | undefined;
|
|
12
|
+
};
|
|
8
13
|
export declare const getChain: () => Promise<Chain>;
|
|
9
14
|
export declare const getElUrl: () => string;
|
|
10
15
|
export declare const getContracts: () => {
|
package/dist/configs/deployed.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { lstatSync, readFileSync } from 'fs';
|
|
1
|
+
import { lstatSync, readFileSync } from 'node:fs';
|
|
2
2
|
import * as process from 'node:process';
|
|
3
|
-
import path from 'path';
|
|
3
|
+
import path from 'node:path';
|
|
4
4
|
import { zeroAddress } from 'viem';
|
|
5
5
|
import { getValueByPath, logError, logInfo, validateConfig } from '../utils/index.js';
|
|
6
6
|
import { envs } from './envs.js';
|
|
7
7
|
import { SUPPORTED_CHAINS_LIST } from './constants.js';
|
|
8
8
|
export const importDeployFile = () => {
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
9
|
+
const deployedFile = envs?.DEPLOYED;
|
|
10
|
+
if (!deployedFile) {
|
|
11
11
|
throw new Error('Deployed contracts file is not set, check .env file');
|
|
12
12
|
}
|
|
13
|
+
const configsDir = path.resolve('configs');
|
|
14
|
+
const fullPath = path.resolve(configsDir, deployedFile);
|
|
15
|
+
if (!fullPath.startsWith(configsDir + path.sep) && fullPath !== configsDir) {
|
|
16
|
+
throw new Error(`Path traversal detected in DEPLOYED: ${deployedFile}`);
|
|
17
|
+
}
|
|
13
18
|
let json = {};
|
|
14
19
|
if (lstatSync(fullPath).isFile()) {
|
|
15
|
-
const fileContent = readFileSync(fullPath, '
|
|
20
|
+
const fileContent = readFileSync(fullPath, 'utf8');
|
|
16
21
|
const config = JSON.parse(fileContent);
|
|
17
22
|
json = structuredClone(config);
|
|
18
23
|
}
|
|
@@ -28,7 +33,8 @@ export const getConfig = () => {
|
|
|
28
33
|
const errors = validateConfig(config);
|
|
29
34
|
const errorKeys = Object.keys(errors);
|
|
30
35
|
if (errorKeys.length > 0) {
|
|
31
|
-
|
|
36
|
+
for (const key of errorKeys)
|
|
37
|
+
console.error(`${errors[key]}`);
|
|
32
38
|
process.exit(1);
|
|
33
39
|
}
|
|
34
40
|
return config;
|
|
@@ -40,7 +46,7 @@ export const getDeployed = () => {
|
|
|
40
46
|
let chainIdCache;
|
|
41
47
|
const getRpcChainId = async (elURL) => {
|
|
42
48
|
if (!elURL) {
|
|
43
|
-
return
|
|
49
|
+
return;
|
|
44
50
|
}
|
|
45
51
|
if (chainIdCache) {
|
|
46
52
|
return chainIdCache;
|
|
@@ -65,11 +71,11 @@ const getRpcChainId = async (elURL) => {
|
|
|
65
71
|
if (rpcChainIdData?.error) {
|
|
66
72
|
throw new Error(`RPC error: ${rpcChainIdData.error.message || JSON.stringify(rpcChainIdData.error)}`);
|
|
67
73
|
}
|
|
68
|
-
const rpcChainId = parseInt(rpcChainIdData.result, 16);
|
|
74
|
+
const rpcChainId = Number.parseInt(rpcChainIdData.result, 16);
|
|
69
75
|
chainIdCache = rpcChainId;
|
|
70
76
|
return rpcChainId;
|
|
71
77
|
}
|
|
72
|
-
catch
|
|
78
|
+
catch {
|
|
73
79
|
logError('Failed to get RPC chainId. Please check if the EL_URL environment variable is correct or try to use another EL.');
|
|
74
80
|
logInfo('Continue work without RPC validation');
|
|
75
81
|
return chainIdCache;
|
|
@@ -102,12 +108,25 @@ export const getChainId = async () => {
|
|
|
102
108
|
}
|
|
103
109
|
return chainId;
|
|
104
110
|
};
|
|
111
|
+
export const getExplorerUrl = async () => {
|
|
112
|
+
const chainId = await getChainId();
|
|
113
|
+
const chain = SUPPORTED_CHAINS_LIST.find((chain) => chain.id === chainId);
|
|
114
|
+
if (!chain) {
|
|
115
|
+
throw new Error(`Chain ${chainId} is not supported`);
|
|
116
|
+
}
|
|
117
|
+
const explorerUrl = chain.blockExplorers.default.url;
|
|
118
|
+
return explorerUrl;
|
|
119
|
+
};
|
|
120
|
+
export const CHAIN_CACHE = {
|
|
121
|
+
currentChain: undefined,
|
|
122
|
+
};
|
|
105
123
|
export const getChain = async () => {
|
|
106
124
|
const chainId = await getChainId();
|
|
107
125
|
const chain = SUPPORTED_CHAINS_LIST.find((chain) => chain.id === chainId);
|
|
108
126
|
if (!chain) {
|
|
109
127
|
throw new Error(`Chain ${chainId} is not supported`);
|
|
110
128
|
}
|
|
129
|
+
CHAIN_CACHE.currentChain = chain;
|
|
111
130
|
return chain;
|
|
112
131
|
};
|
|
113
132
|
export const getElUrl = () => {
|
|
@@ -129,7 +148,7 @@ export const getContractDeploy = (path) => {
|
|
|
129
148
|
};
|
|
130
149
|
export const getDeployedAddress = (...contractKeys) => {
|
|
131
150
|
const contracts = contractKeys.map((contractKey) => getContractDeploy(contractKey));
|
|
132
|
-
const contract = contracts.find(
|
|
151
|
+
const contract = contracts.find(Boolean);
|
|
133
152
|
if (typeof contract === 'string') {
|
|
134
153
|
return contract;
|
|
135
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployed.js","sourceRoot":"","sources":["../../configs/deployed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deployed.js","sourceRoot":"","sources":["../../configs/deployed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAkB,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,CAAC,MAAM,gB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O,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;QAC3C,CAAC;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAA4B,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,eAAmD,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,eAAe,GAAG,aAAa,EAAE,CAAC;IACpC,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC"}
|
package/dist/configs/envs.js
CHANGED
|
@@ -12,5 +12,7 @@ if (envs) {
|
|
|
12
12
|
envs.CL_URL = process.env.CL_URL ?? envs?.CL_URL;
|
|
13
13
|
envs.EL_URL = process.env.EL_URL ?? envs?.EL_URL;
|
|
14
14
|
envs.CHAIN_ID = process.env.CHAIN_ID ?? envs?.CHAIN_ID;
|
|
15
|
+
envs.ETHERSCAN_API_KEY =
|
|
16
|
+
process.env.ETHERSCAN_API_KEY ?? envs?.ETHERSCAN_API_KEY;
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=envs.js.map
|
package/dist/configs/envs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envs.js","sourceRoot":"","sources":["../../configs/envs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;AAEnC,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAC5C,IAAI,IAAI,EAAE,CAAC;IACT,IAAI,CAAC,QAAQ,GAAI,OAAO,CAAC,GAAG,CAAC,QAAmB,IAAI,IAAI,EAAE,QAAQ,CAAC;IACnE,IAAI,CAAC,WAAW,GAAI,OAAO,CAAC,GAAG,CAAC,WAAsB,IAAI,IAAI,EAAE,WAAW,CAAC;IAC5E,IAAI,CA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,GAAI,OAAO,CAAC,GAAG,CAAC,MAAiB,IAAI,IAAI,EAAE,MAAM,CAAC;IAC7D,IAAI,CAAC,QAAQ,GAAI,OAAO,CAAC,GAAG,CAAC,QAAmB,IAAI,IAAI,EAAE,QAAQ,CAAC;IACnE,IAAI,CAAC,iBAAiB;QACnB,OAAO,CAAC,GAAG,CAAC,iBAA4B,IAAI,IAAI,EAAE,iBAAiB,CAAC;AACzE,CAAC"}
|
package/dist/configs/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../configs/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../configs/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAY,EAAE;IAC7C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,OAAkB,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAY,EAAE;IACjD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED,OAAO,QAAQ,CAAC,0BAA0B,CAAC,CAAC,KAAK,CAAC,OAAkB,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAY,EAAE;IAC5C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO,QAAQ,CAAC,mBAAmB,CAAC,CAAC,KAAK,CAAC,OAAkB,CAAC;AAChE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAY,EAAE;IACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAI,MAAM,CAAC,gCAAgC,EAAE,CAAC;QAC5C,OAAO,MAAM,CAAC,gCAAgC,CAAC;IACjD,CAAC;IACD,OAAO,QAAQ,CAAC,8BAA8B,CAAC,OAAkB,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAY,EAAE;IACnD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,OAAO,QAAQ,CAAC,aAAa,CAAC,OAAkB,CAAC;AACnD,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
2
|
import { DashboardAbi } from '../abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export declare const getDashboardImplContract: () => Promise<DashboardImplContract>;
|
|
5
5
|
export type DashboardImplContract = Awaited<GetContractReturnType<typeof DashboardAbi, RegisteredPublicClient>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
2
|
import { DashboardAbi } from '../abi/index.js';
|
|
3
3
|
import { getDashboardImplAddress } from '../configs/index.js';
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getDashboardImplContract = async () => {
|
|
6
6
|
const publicClient = await getPublicClient();
|
|
7
7
|
const address = getDashboardImplAddress();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { DistributorAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { DistributorAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getDistributorContract: (address: Address) => Promise<DistributorContract>;
|
|
5
5
|
export type DistributorContract = GetContractReturnType<typeof DistributorAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { DistributorAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { DistributorAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getDistributorContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { FactoryAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { FactoryAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getFactoryContract: (address: Address) => Promise<FactoryContract>;
|
|
5
5
|
export type FactoryContract = GetContractReturnType<typeof FactoryAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { FactoryAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { FactoryAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getFactoryContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
+
import { GenericStrategyAbiType } from '../../abi/defi-wrapper/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
|
+
export declare const getGenericStrategyContract: (address: Address) => Promise<GenericStrategyContract>;
|
|
5
|
+
export type GenericStrategyContract = GetContractReturnType<GenericStrategyAbiType, RegisteredPublicClient>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getContract } from 'viem';
|
|
2
|
+
import { GenericStrategyAbi, } from '../../abi/defi-wrapper/index.js';
|
|
3
|
+
import { getPublicClient } from '../../providers/index.js';
|
|
4
|
+
export const getGenericStrategyContract = async (address) => {
|
|
5
|
+
const publicClient = await getPublicClient();
|
|
6
|
+
return getContract({
|
|
7
|
+
address: address,
|
|
8
|
+
abi: GenericStrategyAbi,
|
|
9
|
+
client: publicClient,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=generic-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-strategy.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/generic-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkC,MAAM,MAAM,CAAC;AACnE,OAAO,EACL,kBAAkB,GAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAA0B,MAAM,WAAW,CAAC;AAEpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAgB,EACkB,EAAE;IACpC,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../contracts/defi-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { OssifiableProxyAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { OssifiableProxyAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getOssifiableProxyContract: (address: Address) => Promise<OssifiableProxyContract>;
|
|
5
5
|
export type OssifiableProxyContract = GetContractReturnType<typeof OssifiableProxyAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { OssifiableProxyAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { OssifiableProxyAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getOssifiableProxyContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { StrategyFactoryAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StrategyFactoryAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getStrategyFactoryContract: (address: Address) => Promise<StrategyFactoryContract>;
|
|
5
5
|
export type StrategyFactoryContract = GetContractReturnType<typeof StrategyFactoryAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { StrategyFactoryAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StrategyFactoryAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getStrategyFactoryContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StvPoolAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getStvPoolContract: (address: Address) => Promise<StvPoolContract>;
|
|
5
5
|
export type StvPoolContract = GetContractReturnType<typeof StvPoolAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StvPoolAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getStvPoolContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StvStETHPoolAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getStvStethPoolContract: (address: Address) => Promise<StvStethPoolContract>;
|
|
5
5
|
export type StvStethPoolContract = GetContractReturnType<typeof StvStETHPoolAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { StvStETHPoolAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getStvStethPoolContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { TimeLockAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { TimeLockAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getTimeLockContract: (address: Address) => Promise<TimeLockContract>;
|
|
5
5
|
export type TimeLockContract = GetContractReturnType<typeof TimeLockAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { TimeLockAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { TimeLockAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getTimeLockContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, GetContractReturnType } from 'viem';
|
|
2
|
-
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { WithdrawalQueueAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { RegisteredPublicClient } from '../../providers/index.js';
|
|
4
4
|
export declare const getWithdrawalQueueContract: (address: Address) => Promise<WithdrawalQueueContract>;
|
|
5
5
|
export type WithdrawalQueueContract = GetContractReturnType<typeof WithdrawalQueueAbi, RegisteredPublicClient>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
|
|
2
|
+
import { WithdrawalQueueAbi } from '../../abi/defi-wrapper/index.js';
|
|
3
3
|
import { getPublicClient } from '../../providers/index.js';
|
|
4
4
|
export const getWithdrawalQueueContract = async (address) => {
|
|
5
5
|
const publicClient = await getPublicClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
|
-
import { LazyOracleAbi } from 'abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
2
|
+
import { LazyOracleAbi } from '../abi/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export type LazyOracleContract = GetContractReturnType<typeof LazyOracleAbi, RegisteredPublicClient>;
|
|
5
5
|
export declare const getLazyOracleContract: () => Promise<LazyOracleContract>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { LazyOracleAbi } from 'abi/index.js';
|
|
3
|
-
import { getLocatorContract } from '
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
2
|
+
import { LazyOracleAbi } from '../abi/index.js';
|
|
3
|
+
import { getLocatorContract } from '../contracts/locator.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getLazyOracleContract = async () => {
|
|
6
6
|
const publicClient = await getPublicClient();
|
|
7
7
|
const locator = await getLocatorContract();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-oracle.js","sourceRoot":"","sources":["../../contracts/lazy-oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"lazy-oracle.js","sourceRoot":"","sources":["../../contracts/lazy-oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAO7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,IAAiC,EAAE;IAC3E,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IAEhD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
2
|
import { LidoLocatorAbi } from '../abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export type LocatorContract = GetContractReturnType<typeof LidoLocatorAbi, RegisteredPublicClient>;
|
|
5
5
|
export declare const getLocatorContract: () => Promise<LocatorContract>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
2
|
import { LidoLocatorAbi } from '../abi/index.js';
|
|
3
3
|
import { getLocatorAddress } from '../configs/index.js';
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getLocatorContract = async () => {
|
|
6
6
|
const publicClient = await getPublicClient();
|
|
7
7
|
const address = getLocatorAddress();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
|
-
import { OperatorGridAbi } from 'abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
2
|
+
import { OperatorGridAbi } from '../abi/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export declare const getOperatorGridContract: () => Promise<OperatorGridContract>;
|
|
5
5
|
export type OperatorGridContract = GetContractReturnType<typeof OperatorGridAbi, RegisteredPublicClient>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { OperatorGridAbi } from 'abi/index.js';
|
|
3
|
-
import { getLocatorContract } from '
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
2
|
+
import { OperatorGridAbi } from '../abi/index.js';
|
|
3
|
+
import { getLocatorContract } from '../contracts/locator.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getOperatorGridContract = async () => {
|
|
6
6
|
const locator = await getLocatorContract();
|
|
7
7
|
const publicClient = await getPublicClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-grid.js","sourceRoot":"","sources":["../../contracts/operator-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"operator-grid.js","sourceRoot":"","sources":["../../contracts/operator-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAClC,KAAK,IAAmC,EAAE;IACxC,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;IAElD,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/contracts/pdg.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
|
-
import { PredepositGuaranteeAbi } from 'abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
2
|
+
import { PredepositGuaranteeAbi } from '../abi/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export declare const getPredepositGuaranteeContract: () => Promise<PredepositGuaranteeContract>;
|
|
5
5
|
export type PredepositGuaranteeContract = GetContractReturnType<typeof PredepositGuaranteeAbi, RegisteredPublicClient>;
|
package/dist/contracts/pdg.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { PredepositGuaranteeAbi } from 'abi/index.js';
|
|
3
|
-
import { getLocatorContract } from '
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
2
|
+
import { PredepositGuaranteeAbi } from '../abi/index.js';
|
|
3
|
+
import { getLocatorContract } from '../contracts/locator.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getPredepositGuaranteeContract = async () => {
|
|
6
6
|
const locator = await getLocatorContract();
|
|
7
7
|
const address = await locator.read.predepositGuarantee();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdg.js","sourceRoot":"","sources":["../../contracts/pdg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pdg.js","sourceRoot":"","sources":["../../contracts/pdg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,8BAA8B,GACzC,KAAK,IAA0C,EAAE;IAC/C,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACzD,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAE7C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,sBAAsB;QAC3B,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
|
-
import { StEthAbi } from 'abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
2
|
+
import { StEthAbi } from '../abi/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export declare const getStethContract: () => Promise<StethContract>;
|
|
5
5
|
export type StethContract = GetContractReturnType<typeof StEthAbi, RegisteredPublicClient>;
|
package/dist/contracts/steth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { StEthAbi } from 'abi/index.js';
|
|
3
|
-
import { getLocatorContract } from '
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
2
|
+
import { StEthAbi } from '../abi/index.js';
|
|
3
|
+
import { getLocatorContract } from '../contracts/locator.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getStethContract = async () => {
|
|
6
6
|
const locator = await getLocatorContract();
|
|
7
7
|
const publicClient = await getPublicClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steth.js","sourceRoot":"","sources":["../../contracts/steth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"steth.js","sourceRoot":"","sources":["../../contracts/steth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA0B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,IAA4B,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,MAAM,eAAe,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAE1C,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,GAAG,EAAE,QAAQ;QACb,MAAM,EAAE,YAAY;KACrB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetContractReturnType } from 'viem';
|
|
2
|
-
import { VaultFactoryAbi } from 'abi/index.js';
|
|
3
|
-
import { RegisteredPublicClient } from 'providers/index.js';
|
|
2
|
+
import { VaultFactoryAbi } from '../abi/index.js';
|
|
3
|
+
import { RegisteredPublicClient } from '../providers/index.js';
|
|
4
4
|
export type VaultFactoryContract = GetContractReturnType<typeof VaultFactoryAbi, RegisteredPublicClient>;
|
|
5
5
|
export declare const getVaultFactoryContract: () => Promise<VaultFactoryContract>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContract } from 'viem';
|
|
2
|
-
import { VaultFactoryAbi } from 'abi/index.js';
|
|
2
|
+
import { VaultFactoryAbi } from '../abi/index.js';
|
|
3
3
|
import { getDeployedAddress } from '../configs/index.js';
|
|
4
|
-
import { getPublicClient } from 'providers/index.js';
|
|
4
|
+
import { getPublicClient } from '../providers/index.js';
|
|
5
5
|
export const getVaultFactoryContract = async () => {
|
|
6
6
|
const publicClient = await getPublicClient();
|
|
7
7
|
return getContract({
|