Skip to content

Commit

Permalink
fix: circular dependencies in layer-2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Aug 29, 2023
1 parent d480811 commit 05fa188
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SendFlowParameters, TokenSendFlowParameters } from '@core/wallet/types'
import BigInteger from 'big-integer'
import { estimateGasForLayer1ToLayer2Transaction } from '../actions/estimateGasForLayer1ToLayer2Transaction'
import { estimateGasForLayer1ToLayer2Transaction } from './estimateGasForLayer1ToLayer2Transaction'
import { SpecialStream } from '../classes'
import { ACCOUNTS_CONTRACT, EXTERNALLY_OWNED_ACCOUNT, GAS_LIMIT_MULTIPLIER, TRANSFER_ALLOWANCE } from '../constants'
import { encodeAddress, encodeAssetAllowance, encodeSmartContractParameters } from '../helpers'
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/lib/core/layer-2/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from './fetchSelectedAccountLayer2Balance'
export * from './generateAndStoreEvmAddressForAccount'
export * from './getGasFeesForLayer1ToLayer2Transaction'
export * from './getGasPriceInWei'
export * from './getLayer2MetadataForTransfer'
export * from './pollLayer2Tokens'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getEvmTransactionValueFromAmount } from '@core/layer-2'
import { Converter } from '@core/utils'
import Web3 from 'web3'
import { getEvmTransactionValueFromAmount } from './getEvmTransactionValueFromAmount'
import { GAS_LIMIT_MULTIPLIER } from '../constants'
import { EvmTransactionData } from '../types'

Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/lib/core/layer-2/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export * from './getErc20TokenMetadata'
export * from './getErc20TransferSmartContractData'
export * from './getEvmTransactionValueFromAmount'
export * from './getIscpTransferSmartContractData'
export * from './getLayer2MetadataForTransfer'
export * from './getLayer2NetworkFromAddress'
export * from './getSmartContractHexName'
export * from './parseLayer2Metadata'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getLayer2MetadataForTransfer } from '@core/layer-2'
import { getGasFeesForLayer1ToLayer2Transaction } from '@core/layer-2/actions'
import { getGasFeesForLayer1ToLayer2Transaction, getLayer2MetadataForTransfer } from '@core/layer-2/actions'
import { ChainConfiguration, ChainType, getActiveNetworkId, getChainConfiguration, isEvmChain } from '@core/network'
import { getCoinType } from '@core/profile/actions'
import { Converter, convertDateToUnixTimestamp } from '@core/utils'
Expand Down

0 comments on commit 05fa188

Please sign in to comment.