|
| 1 | +import { ethers } from 'ethers'; |
1 | 2 | import { Inject, Injectable, LoggerService } from '@nestjs/common';
|
2 | 3 | import { LOGGER_PROVIDER } from '@lido-nestjs/logger';
|
3 |
| -import { SLOTS_PER_EPOCH } from '../genesis-time'; |
| 4 | +import { SimpleFallbackJsonRpcBatchProvider } from '@lido-nestjs/execution'; |
| 5 | +import { ConfigService } from 'common/config'; |
4 | 6 | import {
|
5 | 7 | isFullyWithdrawableValidator,
|
6 | 8 | isPartiallyWithdrawableValidator,
|
7 |
| -} from '../../jobs/validators/utils/validator-state-utils'; |
8 |
| -import { FAR_FUTURE_EPOCH } from '../../jobs/validators'; |
9 |
| -import { ConsensusClientService } from '../consensus-provider/consensus-client.service'; |
10 |
| -import { parseGwei } from '../utils/parse-gwei'; |
11 |
| -import { bigNumberMin } from '../utils/big-number-min'; |
12 |
| -import { Withdrawal } from './sweep.types'; |
13 |
| -import { BeaconState, IndexedValidator, Validator } from '../consensus-provider/consensus-provider.types'; |
14 |
| -import { ethers } from 'ethers'; |
15 |
| -import { OracleV2__factory } from '../contracts/generated'; |
16 |
| -import { VALIDATORS_EXIT_BUS_ORACLE_CONTRACT_ADDRESSES } from '../contracts/modules/validators-exit-bus-oracle/validators-exit-bus-oracle.constants'; |
17 |
| -import { ConfigService } from '../config'; |
18 |
| -import { SimpleFallbackJsonRpcBatchProvider } from '@lido-nestjs/execution'; |
| 9 | +} from 'jobs/validators/utils/validator-state-utils'; |
| 10 | +import { ConsensusClientService } from 'common/consensus-provider/consensus-client.service'; |
| 11 | +import { BeaconState, IndexedValidator, Validator } from 'common/consensus-provider/consensus-provider.types'; |
| 12 | +import { parseGwei } from 'common/utils/parse-gwei'; |
| 13 | +import { bigNumberMin } from 'common/utils/big-number-min'; |
| 14 | +import { OracleV2__factory } from 'common/contracts/generated'; |
| 15 | +import { FAR_FUTURE_EPOCH } from 'jobs/validators'; |
| 16 | +import { SLOTS_PER_EPOCH } from 'common/genesis-time'; |
| 17 | +import { VALIDATORS_EXIT_BUS_ORACLE_CONTRACT_ADDRESSES } from 'common/contracts/modules/validators-exit-bus-oracle/validators-exit-bus-oracle.constants'; |
19 | 18 | import {
|
20 | 19 | MAX_PENDING_PARTIALS_PER_WITHDRAWALS_SWEEP,
|
21 | 20 | MAX_WITHDRAWALS_PER_PAYLOAD,
|
22 | 21 | MIN_ACTIVATION_BALANCE,
|
23 |
| -} from '../../waiting-time/waiting-time.constants'; |
| 22 | +} from 'waiting-time/waiting-time.constants'; |
| 23 | +import { Withdrawal } from './sweep.types'; |
24 | 24 |
|
25 | 25 | @Injectable()
|
26 | 26 | export class SweepService {
|
|
0 commit comments