@@ -4,20 +4,37 @@ import BigNumber from 'bignumber.js';
44import { groupBy } from 'lodash' ;
55import memoizee from 'memoizee' ;
66
7+ import {
8+ InvalidAddress ,
9+ OneKeyInternalError ,
10+ } from '@onekeyhq/engine/src/errors' ;
11+ import { decrypt } from '@onekeyhq/engine/src/secret/encryptors/aes256' ;
712import type { DBSimpleAccount } from '@onekeyhq/engine/src/types/account' ;
8- import { getTimeDurationMs } from '@onekeyhq/kit/src/utils/helper' ;
9-
10- import { InvalidAddress , OneKeyInternalError } from '../../../errors' ;
11- import { decrypt } from '../../../secret/encryptors/aes256' ;
12- import { TransactionStatus } from '../../../types/provider' ;
13+ import { TransactionStatus } from '@onekeyhq/engine/src/types/provider' ;
14+ import type { KeyringSoftwareBase } from '@onekeyhq/engine/src/vaults/keyring/KeyringSoftwareBase' ;
1315import {
1416 IDecodedTxActionType ,
1517 IDecodedTxDirection ,
1618 IDecodedTxStatus ,
1719 IEncodedTxUpdateType ,
18- } from '../../types' ;
19- import { convertFeeValueToGwei } from '../../utils/feeInfoUtils' ;
20- import { VaultBase } from '../../VaultBase' ;
20+ } from '@onekeyhq/engine/src/vaults/types' ;
21+ import type {
22+ IDecodedTx ,
23+ IDecodedTxActionNativeTransfer ,
24+ IDecodedTxLegacy ,
25+ IEncodedTxUpdateOptions ,
26+ IEncodedTxUpdatePayloadTransfer ,
27+ IFeeInfo ,
28+ IFeeInfoUnit ,
29+ IHistoryTx ,
30+ ISignedTxPro ,
31+ ITransferInfo ,
32+ IUnsignedTxPro ,
33+ } from '@onekeyhq/engine/src/vaults/types' ;
34+ import type { TxInput } from '@onekeyhq/engine/src/vaults/utils/btcForkChain/types' ;
35+ import { convertFeeValueToGwei } from '@onekeyhq/engine/src/vaults/utils/feeInfoUtils' ;
36+ import { VaultBase } from '@onekeyhq/engine/src/vaults/VaultBase' ;
37+ import { getTimeDurationMs } from '@onekeyhq/kit/src/utils/helper' ;
2138
2239import { KeyringHardware } from './KeyringHardware' ;
2340import { KeyringHd } from './KeyringHd' ;
@@ -39,21 +56,6 @@ import {
3956import { toTransaction } from './sdk/transaction' ;
4057import settings from './settings' ;
4158
42- import type { KeyringSoftwareBase } from '../../keyring/KeyringSoftwareBase' ;
43- import type {
44- IDecodedTx ,
45- IDecodedTxActionNativeTransfer ,
46- IDecodedTxLegacy ,
47- IEncodedTxUpdateOptions ,
48- IEncodedTxUpdatePayloadTransfer ,
49- IFeeInfo ,
50- IFeeInfoUnit ,
51- IHistoryTx ,
52- ISignedTxPro ,
53- ITransferInfo ,
54- IUnsignedTxPro ,
55- } from '../../types' ;
56- import type { TxInput } from '../../utils/btcForkChain/types' ;
5759import type { IEncodedTxKaspa } from './types' ;
5860
5961// @ts -ignore
0 commit comments