Move default exports for all tx classes (#8416)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent b9c82d6ed9
commit b947fd54c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/transactions/index.js
  2. 4
      app/scripts/controllers/transactions/pending-tx-tracker.js
  3. 4
      app/scripts/controllers/transactions/tx-gas-utils.js
  4. 4
      app/scripts/controllers/transactions/tx-state-manager.js

@ -65,7 +65,7 @@ import { hexToBn, bnToHex, BnMultiplyByFraction } from '../../lib/util'
@param {Object} opts.preferencesStore
*/
class TransactionController extends EventEmitter {
export default class TransactionController extends EventEmitter {
constructor (opts) {
super()
this.networkStore = opts.networkStore || new ObservableStore({})
@ -765,5 +765,3 @@ class TransactionController extends EventEmitter {
this.memStore.updateState({ unapprovedTxs, currentNetworkTxList })
}
}
export default TransactionController

@ -19,7 +19,7 @@ import EthQuery from 'ethjs-query'
@class
*/
class PendingTransactionTracker extends EventEmitter {
export default class PendingTransactionTracker extends EventEmitter {
constructor (config) {
super()
this.droppedBuffer = {}
@ -251,5 +251,3 @@ class PendingTransactionTracker extends EventEmitter {
return sameNonce.length > 0
}
}
export default PendingTransactionTracker

@ -15,7 +15,7 @@ and used to do things like calculate gas of a tx.
@param {Object} provider - A network provider.
*/
class TxGasUtil {
export default class TxGasUtil {
constructor (provider) {
this.query = new EthQuery(provider)
@ -150,5 +150,3 @@ class TxGasUtil {
return bnToHex(upperGasLimitBn)
}
}
export default TxGasUtil

@ -26,7 +26,7 @@ import { getFinalStates, normalizeTxParams } from './lib/util'
@param {function} opts.getNetwork return network number
@class
*/
class TransactionStateManager extends EventEmitter {
export default class TransactionStateManager extends EventEmitter {
constructor ({ initState, txHistoryLimit, getNetwork }) {
super()
@ -484,5 +484,3 @@ class TransactionStateManager extends EventEmitter {
this._saveTxList(transactionList.filter((txMeta) => txMeta.id !== txId))
}
}
export default TransactionStateManager

Loading…
Cancel
Save