@lidofinance/lsv-cli 1.4.0-alpha.2 → 1.4.0-alpha.3

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.
Files changed (100) hide show
  1. package/dist/command/index.js.map +1 -1
  2. package/dist/contracts/dashboard-impl.d.ts +1 -1
  3. package/dist/contracts/dashboard-impl.js +1 -1
  4. package/dist/contracts/defi-wrapper/distributor.d.ts +1 -1
  5. package/dist/contracts/defi-wrapper/distributor.js +1 -1
  6. package/dist/contracts/defi-wrapper/factory.d.ts +1 -1
  7. package/dist/contracts/defi-wrapper/factory.js +1 -1
  8. package/dist/contracts/defi-wrapper/ossifiable-proxy.d.ts +1 -1
  9. package/dist/contracts/defi-wrapper/ossifiable-proxy.js +1 -1
  10. package/dist/contracts/defi-wrapper/strategy-factory.d.ts +1 -1
  11. package/dist/contracts/defi-wrapper/strategy-factory.js +1 -1
  12. package/dist/contracts/defi-wrapper/stv-pool.d.ts +1 -1
  13. package/dist/contracts/defi-wrapper/stv-pool.js +1 -1
  14. package/dist/contracts/defi-wrapper/stv-steth-pool.d.ts +1 -1
  15. package/dist/contracts/defi-wrapper/stv-steth-pool.js +1 -1
  16. package/dist/contracts/defi-wrapper/timelock.d.ts +1 -1
  17. package/dist/contracts/defi-wrapper/timelock.js +1 -1
  18. package/dist/contracts/defi-wrapper/withdrawal-queue.d.ts +1 -1
  19. package/dist/contracts/defi-wrapper/withdrawal-queue.js +1 -1
  20. package/dist/contracts/lazy-oracle.d.ts +2 -2
  21. package/dist/contracts/lazy-oracle.js +2 -2
  22. package/dist/contracts/locator.d.ts +1 -1
  23. package/dist/contracts/locator.js +1 -1
  24. package/dist/contracts/operator-grid.d.ts +2 -2
  25. package/dist/contracts/operator-grid.js +2 -2
  26. package/dist/contracts/pdg.d.ts +2 -2
  27. package/dist/contracts/pdg.js +2 -2
  28. package/dist/contracts/steth.d.ts +2 -2
  29. package/dist/contracts/steth.js +2 -2
  30. package/dist/contracts/vault-factory.d.ts +2 -2
  31. package/dist/contracts/vault-factory.js +2 -2
  32. package/dist/contracts/vault-hub.d.ts +2 -2
  33. package/dist/contracts/vault-hub.js +2 -2
  34. package/dist/contracts/vault-viewer.d.ts +1 -1
  35. package/dist/contracts/vault-viewer.js +1 -1
  36. package/dist/contracts/vault.d.ts +1 -1
  37. package/dist/contracts/vault.js +1 -1
  38. package/dist/contracts/wsteth.d.ts +2 -2
  39. package/dist/contracts/wsteth.js +2 -2
  40. package/dist/features/consolidation.d.ts +1 -1
  41. package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +1 -1
  42. package/dist/features/defi-wrapper/defi-wrapper-factory.js +2 -2
  43. package/dist/features/defi-wrapper/distributor.js +3 -3
  44. package/dist/features/defi-wrapper/pool-info.js +2 -2
  45. package/dist/features/defi-wrapper/timelock.d.ts +1 -1
  46. package/dist/features/defi-wrapper/timelock.js +1 -1
  47. package/dist/features/deposits/make-pdg-proof.js +1 -1
  48. package/dist/features/metrics.d.ts +2 -2
  49. package/dist/features/metrics.js +1 -1
  50. package/dist/features/mint-burn/mint-limit.js +1 -1
  51. package/dist/features/utils/minting-capacity.js +1 -1
  52. package/dist/features/vault-factory.js +1 -1
  53. package/dist/features/with-report.d.ts +1 -1
  54. package/dist/programs/contracts/pdg/write.js +1 -1
  55. package/dist/programs/defi-wrapper/contracts/distributor/config.d.ts +1 -1
  56. package/dist/programs/defi-wrapper/contracts/distributor/read.js +2 -2
  57. package/dist/programs/defi-wrapper/contracts/distributor/write.js +1 -1
  58. package/dist/programs/defi-wrapper/contracts/factory/config.d.ts +1 -1
  59. package/dist/programs/defi-wrapper/contracts/factory/read.js +2 -2
  60. package/dist/programs/defi-wrapper/contracts/factory/write.js +1 -1
  61. package/dist/programs/defi-wrapper/contracts/stv-pool/config.d.ts +1 -1
  62. package/dist/programs/defi-wrapper/contracts/stv-pool/read.js +2 -2
  63. package/dist/programs/defi-wrapper/contracts/stv-pool/write.js +1 -1
  64. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/config.d.ts +1 -1
  65. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/read.js +2 -2
  66. package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +1 -1
  67. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/config.d.ts +1 -1
  68. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/read.js +2 -2
  69. package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +1 -1
  70. package/dist/programs/defi-wrapper/use-cases/distributor/read.js +2 -2
  71. package/dist/programs/defi-wrapper/use-cases/distributor/write.js +3 -3
  72. package/dist/programs/defi-wrapper/use-cases/health/read.js +2 -2
  73. package/dist/programs/defi-wrapper/use-cases/health/utils.js +1 -1
  74. package/dist/programs/defi-wrapper/use-cases/health/write.js +3 -3
  75. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +8 -8
  76. package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +1 -1
  77. package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
  78. package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +3 -3
  79. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/read.js +1 -1
  80. package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
  81. package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +3 -3
  82. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +3 -3
  83. package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +4 -4
  84. package/dist/programs/dev-tools/defi-wrapper/write.js +1 -1
  85. package/dist/programs/use-cases/consolidation/write.js +1 -1
  86. package/dist/tests/integration/deposits.test.js +1 -1
  87. package/dist/tests/utils/calculate-overview-v2.test.js +1 -1
  88. package/dist/tests/utils/csv-file.test.js +1 -1
  89. package/dist/tests/utils/lido-apr.test.js +1 -1
  90. package/dist/tests/utils/rebase-rewards.test.js +1 -1
  91. package/dist/tests/utils/report-statistic.test.js +1 -1
  92. package/dist/tests/utils/snake-to-camel.test.js +1 -1
  93. package/dist/tests/utils/timestamp.test.js +1 -1
  94. package/dist/utils/arguments.d.ts +1 -1
  95. package/dist/utils/prompts/predeposit-guarantee.js +1 -1
  96. package/dist/utils/report/statistic-data.js +1 -1
  97. package/dist/utils/statistic/report-statistic.d.ts +1 -1
  98. package/dist/utils/wallet-connect.js +2 -2
  99. package/dist/version/index.js +1 -1
  100. package/package.json +1 -1
@@ -1 +1 @@
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,qBAAqB,CAAC;AAE9C,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"}
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"}
@@ -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();
@@ -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';
2
+ import { LazyOracleAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.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,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';
2
+ import { OperatorGridAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.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,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>;
@@ -1,7 +1,7 @@
1
1
  import { getContract } from 'viem';
2
- import { PredepositGuaranteeAbi } from 'abi/index.js';
2
+ import { PredepositGuaranteeAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.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,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>;
@@ -1,7 +1,7 @@
1
1
  import { getContract } from 'viem';
2
- import { StEthAbi } from 'abi/index.js';
2
+ import { StEthAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.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,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({
@@ -1,5 +1,5 @@
1
1
  import { GetContractReturnType } from 'viem';
2
- import { VaultHubAbi } from 'abi/index.js';
3
- import { RegisteredPublicClient } from 'providers/index.js';
2
+ import { VaultHubAbi } from '../abi/index.js';
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
4
  export type VaultHubContract = GetContractReturnType<typeof VaultHubAbi, RegisteredPublicClient>;
5
5
  export declare const getVaultHubContract: () => Promise<VaultHubContract>;
@@ -1,7 +1,7 @@
1
1
  import { getContract } from 'viem';
2
- import { VaultHubAbi } from 'abi/index.js';
2
+ import { VaultHubAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getVaultHubContract = async () => {
6
6
  const publicClient = await getPublicClient();
7
7
  const locator = await getLocatorContract();
@@ -1,5 +1,5 @@
1
1
  import { GetContractReturnType } from 'viem';
2
2
  import { VaultViewerAbi } from '../abi/index.js';
3
- import { RegisteredPublicClient } from 'providers/index.js';
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
4
  export type VaultViewerContract = GetContractReturnType<typeof VaultViewerAbi, RegisteredPublicClient>;
5
5
  export declare const getVaultViewerContract: () => Promise<VaultViewerContract>;
@@ -2,7 +2,7 @@ import { getContract } from 'viem';
2
2
  import { mainnet } from 'viem/chains';
3
3
  import { hoodi } from 'viem/chains';
4
4
  import { VaultViewerAbi } from '../abi/index.js';
5
- import { getPublicClient } from 'providers/index.js';
5
+ import { getPublicClient } from '../providers/index.js';
6
6
  const VaultViewerAddresses = {
7
7
  [hoodi.id]: '0xEAfD3F8DC0ABA14B81344ea0B869DdF9F7e18221',
8
8
  [mainnet.id]: '0x93DaaEa5D290Da9a7A6A65fe4F6C1D3ebb44E0e1',
@@ -1,5 +1,5 @@
1
1
  import { Address, GetContractReturnType } from 'viem';
2
- import { StakingVaultAbi } from 'abi/index.js';
2
+ import { StakingVaultAbi } from '../abi/index.js';
3
3
  import { RegisteredPublicClient } from '../providers/index.js';
4
4
  export type StakingVaultContract = GetContractReturnType<typeof StakingVaultAbi, RegisteredPublicClient>;
5
5
  export declare const getStakingVaultContract: (address: Address) => Promise<StakingVaultContract>;
@@ -1,5 +1,5 @@
1
1
  import { getContract } from 'viem';
2
- import { StakingVaultAbi } from 'abi/index.js';
2
+ import { StakingVaultAbi } from '../abi/index.js';
3
3
  import { getPublicClient } from '../providers/index.js';
4
4
  export const getStakingVaultContract = async (address) => {
5
5
  const publicClient = await getPublicClient();
@@ -1,5 +1,5 @@
1
1
  import { GetContractReturnType } from 'viem';
2
- import { WstEthAbi } from 'abi/index.js';
3
- import { RegisteredPublicClient } from 'providers/index.js';
2
+ import { WstEthAbi } from '../abi/index.js';
3
+ import { RegisteredPublicClient } from '../providers/index.js';
4
4
  export type WstEthContract = GetContractReturnType<typeof WstEthAbi, RegisteredPublicClient>;
5
5
  export declare const getWstethContract: () => Promise<WstEthContract>;
@@ -1,7 +1,7 @@
1
1
  import { getContract } from 'viem';
2
- import { WstEthAbi } from 'abi/index.js';
2
+ import { WstEthAbi } from '../abi/index.js';
3
3
  import { getLocatorContract } from './index.js';
4
- import { getPublicClient } from 'providers/index.js';
4
+ import { getPublicClient } from '../providers/index.js';
5
5
  export const getWstethContract = async () => {
6
6
  const publicClient = await getPublicClient();
7
7
  const locator = await getLocatorContract();
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
2
  import { DashboardContract } from '../contracts/index.js';
3
3
  import { PopulatedTx } from '../utils/index.js';
4
- import { TargetAndSourceValidators } from 'utils/consolidation/types.js';
4
+ import { TargetAndSourceValidators } from '../utils/consolidation/types.js';
5
5
  export declare const consolidationRequestsAndIncreaseFeeExemption: ({ targetAndSourceValidators, feeExemption, dashboard, }: {
6
6
  targetAndSourceValidators: TargetAndSourceValidators;
7
7
  feeExemption: bigint;
@@ -1,5 +1,5 @@
1
1
  import { TransactionReceipt, Hex, Address } from 'viem';
2
- import { FactoryContract } from 'contracts/defi-wrapper/index.js';
2
+ import { FactoryContract } from '../../contracts/defi-wrapper/index.js';
3
3
  export type VaultConfig = {
4
4
  nodeOperator: Address;
5
5
  nodeOperatorManager: Address;
@@ -1,9 +1,9 @@
1
1
  import { parseEventLogs, fromHex, isAddressEqual, zeroAddress, encodeFunctionData, } from 'viem';
2
- import { FactoryAbi } from 'abi/defi-wrapper/Factory.js';
2
+ import { FactoryAbi } from '../../abi/defi-wrapper/Factory.js';
3
3
  import { getVaultHubContract } from '../../contracts/index.js';
4
4
  import { getAddress, getBoolean, getConfirmExpiry, getMinDelaySeconds, getMinWithdrawalDelayTime, getNodeOperatorFeeRate, getPoolTokenName, getPoolTokenSymbol, } from '../index.js';
5
5
  import { logInfo, logResult, logError, callWriteMethodWithReceipt, } from '../../utils/index.js';
6
- import { getAccount, getPublicClient } from 'providers/wallet.js';
6
+ import { getAccount, getPublicClient } from '../../providers/wallet.js';
7
7
  export const MELLOW_VAULTS_STRATEGY_ID = 'strategy.mellow.v1';
8
8
  // сommon filaliztion step between two pools
9
9
  export const finalizePoolCreation = async (contract, creationEventData) => {
@@ -1,9 +1,9 @@
1
1
  import { StandardMerkleTree } from '@openzeppelin/merkle-tree';
2
- import { getDistributorContract } from 'contracts/defi-wrapper/distributor.js';
3
- import { getStvPoolContract, } from 'contracts/defi-wrapper/stv-pool.js';
2
+ import { getDistributorContract } from '../../contracts/defi-wrapper/distributor.js';
3
+ import { getStvPoolContract, } from '../../contracts/defi-wrapper/stv-pool.js';
4
4
  import { getPublicClient } from '../../providers/index.js';
5
5
  import { fetchIPFS, getIndexedEventsFromCache, logError, logInfo, V3_START_BLOCKS, } from '../../utils/index.js';
6
- import { bigIntMax } from 'utils/bigInt.js';
6
+ import { bigIntMax } from '../../utils/bigInt.js';
7
7
  import { zeroAddress, zeroHash } from 'viem';
8
8
  const treeFromData = (data) => {
9
9
  return StandardMerkleTree.load({
@@ -1,9 +1,9 @@
1
1
  import { fromHex } from 'viem';
2
- import { getStvStethPoolContract, getStvPoolContract, getWithdrawalQueueContract, } from 'contracts/defi-wrapper/index.js';
2
+ import { getStvStethPoolContract, getStvPoolContract, getWithdrawalQueueContract, } from '../../contracts/defi-wrapper/index.js';
3
3
  import { callReadMethodSilent, fetchAndCalculateVaultHealth } from '../../utils/index.js';
4
4
  import { reportFreshWarning, vaultMintLimit } from '../index.js';
5
5
  import { getDashboardContract, getStakingVaultContract } from '../../contracts/index.js';
6
- import { bigIntMax } from 'utils/bigInt.js';
6
+ import { bigIntMax } from '../../utils/bigInt.js';
7
7
  export const STV_POOL_NAME = 'StvPool';
8
8
  export const STV_STETH_POOL_NAME = 'StvStETHPool';
9
9
  export const STV_STRATEGY_POOL_NAME = 'StvStrategyPool';
@@ -1,5 +1,5 @@
1
1
  import { Address, Hex, GetContractReturnType, PublicClient, Abi } from 'viem';
2
- import { TimeLockContract } from 'contracts/defi-wrapper/index.js';
2
+ import { TimeLockContract } from '../../contracts/defi-wrapper/index.js';
3
3
  export declare const DEFAULT_SALT: "0x0000000000000000000000000000000000000000000000000000000000000000";
4
4
  export declare const DEFAULT_PREDECESSOR: "0x0000000000000000000000000000000000000000000000000000000000000000";
5
5
  export declare const TIMELOCK_ARGUMENT: readonly ["[timelock]", "timelock contract address", (value: string) => Address];
@@ -1,6 +1,6 @@
1
1
  import { logInfo, callWriteMethodWithReceipt, confirmOperation, callReadMethodSilent, stringToAddress, addressPrompt, stringToHash, textPrompt, stringToHex, } from '../../utils/index.js';
2
2
  import { zeroHash, isHash, formatEther, } from 'viem';
3
- import { getTimeLockContract, } from 'contracts/defi-wrapper/index.js';
3
+ import { getTimeLockContract, } from '../../contracts/defi-wrapper/index.js';
4
4
  // Common constants
5
5
  export const DEFAULT_SALT = zeroHash;
6
6
  export const DEFAULT_PREDECESSOR = zeroHash;
@@ -1,7 +1,7 @@
1
1
  import { formatEther } from 'viem';
2
2
  import { logInfo, logResult, logTable, showSpinner, createPDGProof, confirmMakeProof, callReadMethodSilent, } from '../../utils/index.js';
3
3
  import { getStakingVaultContract, } from '../../contracts/index.js';
4
- import { VALIDATOR_STAGES } from 'features/pdg.js';
4
+ import { VALIDATOR_STAGES } from '../../features/pdg.js';
5
5
  export const checkValidatorStageAndStagedBalanceForActivation = async (pdgContract, pubkey) => {
6
6
  const { stage, stakingVault } = await callReadMethodSilent({
7
7
  contract: pdgContract,
@@ -1,5 +1,5 @@
1
- import { NOFeeSnapshot } from 'utils/statistic/report-statistic.js';
2
- import { VaultReport } from 'utils/report/types.js';
1
+ import { NOFeeSnapshot } from '../utils/statistic/report-statistic.js';
2
+ import { VaultReport } from '../utils/report/types.js';
3
3
  import { DashboardContract } from '../contracts/index.js';
4
4
  export declare const getNodeOperatorFeeRatesByBlockNumbers: (vaultAddress: string, blockNumbers: number[], dashboardContract: DashboardContract) => Promise<bigint[]>;
5
5
  export declare const getSettledGrowthsByBlockNumbers: (vaultAddress: string, blockNumbers: number[], dashboardContract: DashboardContract) => Promise<bigint[]>;
@@ -1,5 +1,5 @@
1
1
  import { callReadMethodSilent, cache } from '../utils/index.js';
2
- import { calcAccruedFeeOffChain, } from 'utils/statistic/report-statistic.js';
2
+ import { calcAccruedFeeOffChain, } from '../utils/statistic/report-statistic.js';
3
3
  export const getNodeOperatorFeeRatesByBlockNumbers = async (vaultAddress, blockNumbers, dashboardContract) => {
4
4
  // Get nodeOperatorFeeBP for each report block with caching
5
5
  const nodeOperatorFeeBPs = [];
@@ -1,5 +1,5 @@
1
1
  import { getStethContract } from '../../contracts/index.js';
2
- import { bigIntMax, bigIntMin } from 'utils/bigInt.js';
2
+ import { bigIntMax, bigIntMin } from '../../utils/bigInt.js';
3
3
  export const vaultMintLimit = async (dashboard, ethToAdd = 0n) => {
4
4
  const lido = await getStethContract();
5
5
  const [totalMintingCapacityShares, remainingMintingCapacityShares, liabilityShares, lidoExternalShares, lidoMaxMintableExternalShares,] = await Promise.all([
@@ -1,6 +1,6 @@
1
1
  import { formatEther } from 'viem';
2
2
  import { logError } from '../../utils/index.js';
3
- import { vaultMintLimit } from 'features/mint-burn/mint-limit.js';
3
+ import { vaultMintLimit } from '../../features/mint-burn/mint-limit.js';
4
4
  export const checkMintingCapacity = async (contract, amountOfShares) => {
5
5
  const { remainingMintingCapacityShares } = await vaultMintLimit(contract);
6
6
  if (remainingMintingCapacityShares < amountOfShares) {
@@ -1,6 +1,6 @@
1
1
  import { parseEventLogs, parseEther, } from 'viem';
2
2
  import { getDashboardContract, getStakingVaultContract, getVaultFactoryContract, } from '../contracts/index.js';
3
- import { VaultFactoryAbi } from 'abi/index.js';
3
+ import { VaultFactoryAbi } from '../abi/index.js';
4
4
  import { callWriteMethodWithReceipt, logResult, printError, showSpinner, logError, transformAddressesToArray, validateAddressesMap, validateAddressMap, logInfo, callReadMethodSilent, } from '../utils/index.js';
5
5
  import { program } from '../command/index.js';
6
6
  export const isCreateVaultResult = (result) => {
@@ -1,5 +1,5 @@
1
1
  import { Address } from 'viem';
2
- import { PartialContract, PopulatedTx, WriteTxArgs } from 'utils/transactions/types.js';
2
+ import { PartialContract, PopulatedTx, WriteTxArgs } from '../utils/transactions/types.js';
3
3
  export declare const callWriteMethodsWithReportFresh: <T extends PartialContract, M extends keyof T["write"] & string>(args: WriteTxArgs<T, M> & {
4
4
  calls?: PopulatedTx[];
5
5
  vault: Address;
@@ -3,7 +3,7 @@ import { Option } from 'commander';
3
3
  import { getAccount } from '../../../providers/index.js';
4
4
  import { getPredepositGuaranteeContract, getStakingVaultContract, } from '../../../contracts/index.js';
5
5
  import { checkPdgIsPaused } from '../../../features/index.js';
6
- import { makePDGProofByIndexes } from 'features/deposits/make-pdg-proof.js';
6
+ import { makePDGProofByIndexes } from '../../../features/deposits/make-pdg-proof.js';
7
7
  import { callWriteMethodWithReceipt, createPDGProof, showSpinner, printError, parseDepositArray, etherToWei, callReadMethod, logResult, logInfo, confirmOperation, confirmMakeProof, getCommandsJson, isValidBLSDeposit, expandBLSSignature, logTable, stringToNumber, stringToNumberArray, parseValidatorTopUpArray, etherToWeiArray, fetchNodeSyncingStatus, fetchBeaconHeader, } from '../../../utils/index.js';
8
8
  import { pdg } from './main.js';
9
9
  const pdgWrite = pdg
@@ -1,3 +1,3 @@
1
- import { DistributorAbi } from 'abi/defi-wrapper/index.js';
1
+ import { DistributorAbi } from '../../../../abi/defi-wrapper/index.js';
2
2
  import { ReadProgramCommandConfig } from '../../../../utils/index.js';
3
3
  export declare const readCommandConfig: ReadProgramCommandConfig<typeof DistributorAbi>;
@@ -1,6 +1,6 @@
1
1
  import { Option } from 'commander';
2
- import { DistributorAbi } from 'abi/defi-wrapper/index.js';
3
- import { getDistributorContract } from 'contracts/defi-wrapper/index.js';
2
+ import { DistributorAbi } from '../../../../abi/defi-wrapper/index.js';
3
+ import { getDistributorContract } from '../../../../contracts/defi-wrapper/index.js';
4
4
  import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, } from '../../../../utils/index.js';
5
5
  import { distributor } from './main.js';
6
6
  import { readCommandConfig } from './config.js';
@@ -2,7 +2,7 @@ import { Option } from 'commander';
2
2
  import { logInfo, getCommandsJson, stringToAddress, callWriteMethodWithReceipt, etherToWei, stringToHexArray, confirmOperation, } from '../../../../utils/index.js';
3
3
  import { distributor } from './main.js';
4
4
  import { formatEther, stringToHex } from 'viem';
5
- import { getDistributorContract } from 'contracts/defi-wrapper/index.js';
5
+ import { getDistributorContract } from '../../../../contracts/defi-wrapper/index.js';
6
6
  const distributorWrite = distributor
7
7
  .command('write')
8
8
  .alias('w')
@@ -1,3 +1,3 @@
1
- import { FactoryAbi } from 'abi/defi-wrapper/index.js';
1
+ import { FactoryAbi } from '../../../../abi/defi-wrapper/index.js';
2
2
  import { ReadProgramCommandConfig } from '../../../../utils/index.js';
3
3
  export declare const readCommandConfig: ReadProgramCommandConfig<typeof FactoryAbi>;
@@ -1,6 +1,6 @@
1
1
  import { Option } from 'commander';
2
- import { FactoryAbi } from 'abi/defi-wrapper/index.js';
3
- import { getFactoryContract } from 'contracts/defi-wrapper/index.js';
2
+ import { FactoryAbi } from '../../../../abi/defi-wrapper/index.js';
3
+ import { getFactoryContract } from '../../../../contracts/defi-wrapper/index.js';
4
4
  import { generateReadCommands, logInfo, getCommandsJson, stringToAddress, callReadMethodSilent, logResult, stringToHash, } from '../../../../utils/index.js';
5
5
  import { factory } from './main.js';
6
6
  import { readCommandConfig } from './config.js';
@@ -2,7 +2,7 @@ import { encodeAbiParameters, keccak256, toBytes, zeroAddress, } from 'viem';
2
2
  import { getTransactionReceipt } from 'viem/actions';
3
3
  import { Option } from 'commander';
4
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';
5
+ import { getFactoryContract, getStrategyFactoryContract, } from '../../../../contracts/defi-wrapper/index.js';
6
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';
@@ -1,3 +1,3 @@
1
- import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
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,7 +1,7 @@
1
1
  import { formatEther, formatUnits } from 'viem';
2
2
  import { Option } from 'commander';
3
- import { StvPoolAbi } from 'abi/defi-wrapper/index.js';
4
- import { getStvPoolContract } from 'contracts/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
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 'abi/defi-wrapper/index.js';
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,7 +1,7 @@
1
1
  import { formatEther, formatUnits } from 'viem';
2
2
  import { Option } from 'commander';
3
- import { StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
4
- import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
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 'abi/defi-wrapper/index.js';
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,6 +1,6 @@
1
1
  import { Option } from 'commander';
2
- import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
3
- import { getWithdrawalQueueContract } from 'contracts/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
4
+ import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/index.js';
5
5
  const withdrawalQueueWrite = withdrawalQueue
6
6
  .command('write')
7
7
  .alias('w')
@@ -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 'contracts/defi-wrapper/index.js';
4
+ import { getDistributorContract, getStvPoolContract, } from '../../../../contracts/defi-wrapper/index.js';
5
5
  import { distributorUseCases } from './main.js';
6
- import { getPublicClient } from 'providers/wallet.js';
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 'contracts/defi-wrapper/index.js';
4
+ import { getDistributorContract, getStvPoolContract, } from '../../../../contracts/defi-wrapper/index.js';
5
5
  import { distributorUseCases } from './main.js';
6
- import { getPublicClient } from 'providers/wallet.js';
7
- import { generateDistribution } from 'features/defi-wrapper/distributor.js';
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,7 +1,7 @@
1
1
  import { formatEther, formatUnits } from 'viem';
2
2
  import { health } from './main.js';
3
- import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
4
- import { getStethContract } from 'contracts/index.js';
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 'contracts/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
4
- import { getStethContract } from 'contracts/index.js';
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 'providers/wallet.js';
6
+ import { getAccount } from '../../../../providers/wallet.js';
7
7
  import { grantLossSocializerRole, setMaxLossSocializationBP } from './utils.js';
8
8
  const healthWrite = health
9
9
  .command('write')
@@ -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 'contracts/defi-wrapper/index.js';
6
- import { getPromptTimelock, OPERATION_ID_ARGUMENT, promptOperationId, TIMELOCK_ARGUMENT, waitTimeTo, } from 'features/defi-wrapper/timelock.js';
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 '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';
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 'features/defi-wrapper/index.js';
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,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 'features/defi-wrapper/index.js';
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 'contracts/index.js';
7
- import { DashboardAbi } from 'abi/index.js';
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,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 'features/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
7
- import { StvPoolAbi, StvStETHPoolAbi } from 'abi/defi-wrapper/index.js';
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,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 'contracts/defi-wrapper/index.js';
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 'features/defi-wrapper/index.js';
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 'abi/defi-wrapper/index.js';
7
- import { getOssifiableProxyContract } from 'contracts/defi-wrapper/index.js';
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,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 'features/defi-wrapper/index.js';
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 'contracts/defi-wrapper/index.js';
7
- import { WithdrawalQueueAbi } from 'abi/defi-wrapper/index.js';
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]',
@@ -1,12 +1,12 @@
1
1
  import { formatEther, formatUnits, zeroAddress } from 'viem';
2
2
  import { Option } from 'commander';
3
3
  import { logInfo, getCommandsJson, stringToAddress, logTable, logResult, formatBP, callReadMethodSilent, stringArrayToAddressArray, logError, } from '../../../../utils/index.js';
4
- import { getPoolInfo } from 'features/defi-wrapper/index.js';
4
+ import { getPoolInfo } from '../../../../features/defi-wrapper/index.js';
5
5
  import { checkIsReportFresh } from '../../../../features/index.js';
6
- import { getStvPoolContract, getWithdrawalQueueContract, } from 'contracts/defi-wrapper/index.js';
6
+ import { getStvPoolContract, getWithdrawalQueueContract, } from '../../../../contracts/defi-wrapper/index.js';
7
7
  import { wrapperOperations } from './main.js';
8
8
  import { getDashboardContract, getStethContract } from '../../../../contracts/index.js';
9
- import { bigIntMin } from 'utils/bigInt.js';
9
+ import { bigIntMin } from '../../../../utils/bigInt.js';
10
10
  import { getPublicClient } from '../../../../providers/index.js';
11
11
  const wrapperOperationsRead = wrapperOperations
12
12
  .command('read')
@@ -1,12 +1,12 @@
1
1
  import { Option, program } from 'commander';
2
2
  import { logInfo, getCommandsJson, stringToAddress, stringToBigInt, callReadMethod, confirmOperation, submitReport, callWriteMethodWithReceipt, logError, logTable, callWriteMethodWithReceiptBatchCalls, stringArrayToAddressArray, callReadMethodSilent, stringToNumber, sleep, } from '../../../../utils/index.js';
3
3
  import { wrapperOperations } from './main.js';
4
- import { getWithdrawalQueueContract } from 'contracts/defi-wrapper/withdrawal-queue.js';
4
+ import { getWithdrawalQueueContract } from '../../../../contracts/defi-wrapper/withdrawal-queue.js';
5
5
  import { ContractFunctionRevertedError, encodeFunctionData, formatEther, parseEventLogs, zeroAddress, } from 'viem';
6
6
  import { getDashboardContract, getLazyOracleContract, getVaultHubContract, } from '../../../../contracts/index.js';
7
- import { getStvPoolContract } from 'contracts/defi-wrapper/stv-pool.js';
8
- import { bigIntMin } from 'utils/bigInt.js';
9
- import { getStvStethPoolContract } from 'contracts/defi-wrapper/stv-steth-pool.js';
7
+ import { getStvPoolContract } from '../../../../contracts/defi-wrapper/stv-pool.js';
8
+ import { bigIntMin } from '../../../../utils/bigInt.js';
9
+ import { getStvStethPoolContract } from '../../../../contracts/defi-wrapper/stv-steth-pool.js';
10
10
  import { areVaultParamsInSync, tryFetchPost } from '../../../../features/index.js';
11
11
  export const wrapperOperationsWrite = wrapperOperations
12
12
  .command('write')
@@ -1,7 +1,7 @@
1
1
  import { encodeAbiParameters, keccak256, parseEther, formatEther, parseUnits, formatUnits, } from 'viem';
2
2
  import { logInfo, callReadMethodSilent, stringToBigInt } from '../../../utils/index.js';
3
3
  import { getTestClient } from '../../../providers/index.js';
4
- import { getStvStethPoolContract } from 'contracts/defi-wrapper/index.js';
4
+ import { getStvStethPoolContract } from '../../../contracts/defi-wrapper/index.js';
5
5
  import { defiWrapperTools } from './main.js';
6
6
  const STORAGE_LOCATION = '0x9eb73ffa4c77d08d5d1746cf5a5e50a47018b610ea5d728ea9bd9e399b76e200';
7
7
  defiWrapperTools
@@ -1,7 +1,7 @@
1
1
  import { program } from '../../../command/index.js';
2
2
  import { stringTo2dArray, stringToAddress, stringToHexArray, jsonFileToPubkeys, confirmOperation, callWriteMethodWithReceiptBatchCalls, logCancel, callReadMethodSilent, } from '../../../utils/index.js';
3
3
  import { consolidation } from './main.js';
4
- import { consolidateAndIncreaseFeeExemptionWithoutBatching, consolidationRequestsAndIncreaseFeeExemption, confirmNewFeeExemption, } from 'features/consolidation.js';
4
+ import { consolidateAndIncreaseFeeExemptionWithoutBatching, consolidationRequestsAndIncreaseFeeExemption, confirmNewFeeExemption, } from '../../../features/consolidation.js';
5
5
  import { checkVaultRole, checkIsReportFresh } from '../../../features/index.js';
6
6
  import { getAccount } from '../../../providers/index.js';
7
7
  import { checkPubkeysArgs, validateConsolidationInput, getValidatorsInfo, getTargetAndSourceValidatorsInfo, logAllSourceValidatorsTable, logAllTargetValidatorsTable, confirmToConsolidate, calculateAndConfirmFeeExemption, removeInactiveValidators, } from '../../../utils/index.js';
@@ -1,6 +1,6 @@
1
1
  import { describe, test, expect, beforeAll } from 'vitest';
2
2
  import { checkValidatorInfo, checkPdgIsPaused } from '../../features/index.js';
3
- import { getPredepositGuaranteeContract, } from 'contracts/pdg.js';
3
+ import { getPredepositGuaranteeContract, } from '../../contracts/pdg.js';
4
4
  import { loadTestConfig } from './helpers/test-config.js';
5
5
  import { setupIntegrationTestsBeforeEach } from './helpers/test-setup.js';
6
6
  describe('Deposits Integration Tests', () => {
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect, vi } from 'vitest';
2
2
  import { calculateOverviewV2 } from '../../utils/index.js';
3
- import * as healthModule from 'utils/health/calculate-health.js';
3
+ import * as healthModule from '../../utils/health/calculate-health.js';
4
4
  vi.mock('utils/health/calculate-health');
5
5
  describe('calculateOverviewV2', () => {
6
6
  const mockCalculateHealth = vi.spyOn(healthModule, 'calculateHealth');
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
2
2
  import fs from 'fs-extra';
3
- import { exportCsv } from 'utils/csv-file.js';
3
+ import { exportCsv } from '../../utils/csv-file.js';
4
4
  vi.mock('fs-extra');
5
5
  describe('exportCsv', () => {
6
6
  const mockEnsureFileSync = vi.mocked(fs.ensureFileSync);
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { calculateLidoAPR, SECONDS_IN_YEAR } from 'utils/lido-apr.js';
2
+ import { calculateLidoAPR, SECONDS_IN_YEAR } from '../../utils/lido-apr.js';
3
3
  describe('calculateLidoAPR', () => {
4
4
  it('should calculate APR for positive share rate increase', () => {
5
5
  const preShareRate = 1;
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { calculateRebaseReward } from 'utils/rebase-rewards.js';
2
+ import { calculateRebaseReward } from '../../utils/rebase-rewards.js';
3
3
  describe('calculateRebaseReward', () => {
4
4
  it('should calculate positive rebase reward (no share change)', () => {
5
5
  const args = {
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { calcAccruedFeeOffChain, calcNoEarnings, getNodeOperatorFeeForPeriod, getGrossStakingRewards, getDailyLidoFees, getNetStakingRewards, getGrossStakingAPR, getNetStakingAPR, getBottomLine, getCarrySpread, reportMetrics, } from 'utils/statistic/report-statistic.js';
2
+ import { calcAccruedFeeOffChain, calcNoEarnings, getNodeOperatorFeeForPeriod, getGrossStakingRewards, getDailyLidoFees, getNetStakingRewards, getGrossStakingAPR, getNetStakingAPR, getBottomLine, getCarrySpread, reportMetrics, } from '../../utils/statistic/report-statistic.js';
3
3
  // ─── Helpers ────────────────────────────────────────────────────────────────
4
4
  const ETH = (n) => BigInt(n) * 1000000000000000000n; // n * 1e18
5
5
  const ONE_YEAR_SECONDS = 31_536_000;
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { snakeToCamel } from 'utils/snake-to-camel.js';
2
+ import { snakeToCamel } from '../../utils/snake-to-camel.js';
3
3
  describe('snakeToCamel', () => {
4
4
  it('should convert snake_case to camelCase', () => {
5
5
  expect(snakeToCamel('hello_world')).toBe('helloWorld');
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { formatTimestamp } from 'utils/timestamp.js';
2
+ import { formatTimestamp } from '../../utils/timestamp.js';
3
3
  describe('formatTimestamp', () => {
4
4
  it('should format timestamp with default format and UTC timezone', () => {
5
5
  // 2024-01-15 12:30:00 UTC
@@ -1,6 +1,6 @@
1
1
  import { Permit, RoleAssignment, Tier, Deposit, ValidatorTopUp } from '../types/index.js';
2
2
  import { Address, Hex } from 'viem';
3
- import { PubkeyMap } from 'utils/consolidation/types.js';
3
+ import { PubkeyMap } from '../utils/consolidation/types.js';
4
4
  export declare const stringToBigIntArray: (value: string) => bigint[];
5
5
  export declare const stringToBigIntArrayWei: (value: string) => bigint[];
6
6
  export declare const stringTo2dArray: (value: string) => string[][];
@@ -1,6 +1,6 @@
1
1
  import { textPrompt } from './default.js';
2
2
  import { confirmOperation } from './operations.js';
3
- import { logCancel } from 'utils/logging/console.js';
3
+ import { logCancel } from '../../utils/logging/console.js';
4
4
  export const enterValidatorIndex = async () => {
5
5
  return await textPrompt('Enter validator index', 'validatorIndex');
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { getDashboardContract } from '../../contracts/index.js';
2
2
  import { calculateRebaseReward, callReadMethodSilent, calculateShareRate, reportMetrics, } from '../index.js';
3
- import { calcAccruedFeeOffChain, } from 'utils/statistic/report-statistic.js';
3
+ import { calcAccruedFeeOffChain, } from '../../utils/statistic/report-statistic.js';
4
4
  const fetchNOFeeSnapshot = async (report, dashboardContract) => {
5
5
  const blockNumber = BigInt(report.blockNumber);
6
6
  const [settledGrowth, feeRate] = await Promise.all([
@@ -1,4 +1,4 @@
1
- import type { VaultReport } from 'utils/report/types.js';
1
+ import type { VaultReport } from '../../utils/report/types.js';
2
2
  export type NOFeeSnapshot = {
3
3
  accruedFee: bigint;
4
4
  settledGrowth: bigint;
@@ -2,8 +2,8 @@ import { SignClient } from '@walletconnect/sign-client';
2
2
  import qrcode from 'qrcode-terminal';
3
3
  import { createWalletClient, custom, } from 'viem';
4
4
  import { getConfig, getChain } from '../configs/index.js';
5
- import { logInfo, logError } from 'utils/logging/index.js';
6
- import { sleep } from 'utils/sleep.js';
5
+ import { logInfo, logError } from '../utils/logging/index.js';
6
+ import { sleep } from '../utils/sleep.js';
7
7
  const DESCRIPTION = 'Lido Staking Vault CLI';
8
8
  const URL = 'https://github.com/lidofinance/lido-staking-vault-cli';
9
9
  const ICONS = [
@@ -1 +1 @@
1
- export const version = 'v1.4.0-alpha.2'
1
+ export const version = 'v1.4.0-alpha.3'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lidofinance/lsv-cli",
3
- "version": "1.4.0-alpha.2",
3
+ "version": "1.4.0-alpha.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"