|
|
@ -2,8 +2,9 @@ const assert = require('assert') |
|
|
|
const EventEmitter = require('events') |
|
|
|
const EventEmitter = require('events') |
|
|
|
const ObservableStore = require('obs-store') |
|
|
|
const ObservableStore = require('obs-store') |
|
|
|
const ComposedStore = require('obs-store/lib/composed') |
|
|
|
const ComposedStore = require('obs-store/lib/composed') |
|
|
|
const extend = require('xtend') |
|
|
|
|
|
|
|
const EthQuery = require('eth-query') |
|
|
|
const EthQuery = require('eth-query') |
|
|
|
|
|
|
|
const JsonRpcEngine = require('json-rpc-engine') |
|
|
|
|
|
|
|
const providerFromEngine = require('eth-json-rpc-middle/providerFromEngine') |
|
|
|
const log = require('loglevel') |
|
|
|
const log = require('loglevel') |
|
|
|
const createMetamaskMiddleware = require('./createMetamaskMiddleware') |
|
|
|
const createMetamaskMiddleware = require('./createMetamaskMiddleware') |
|
|
|
const createInfuraClient = require('./createInfuraClient') |
|
|
|
const createInfuraClient = require('./createInfuraClient') |
|
|
@ -19,7 +20,6 @@ const { |
|
|
|
MAINNET, |
|
|
|
MAINNET, |
|
|
|
LOCALHOST, |
|
|
|
LOCALHOST, |
|
|
|
} = require('./enums') |
|
|
|
} = require('./enums') |
|
|
|
const LOCALHOST_RPC_URL = 'http://localhost:8545' |
|
|
|
|
|
|
|
const INFURA_PROVIDER_TYPES = [ROPSTEN, RINKEBY, KOVAN, MAINNET] |
|
|
|
const INFURA_PROVIDER_TYPES = [ROPSTEN, RINKEBY, KOVAN, MAINNET] |
|
|
|
|
|
|
|
|
|
|
|
const env = process.env.METAMASK_ENV |
|
|
|
const env = process.env.METAMASK_ENV |
|
|
|