diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 20:26:02 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 20:26:02 +0800 |
commit | 512502ca0873a290accb53777ca9d93f8d28e84b (patch) | |
tree | 51dba0dbfd00021a8e84f040900283337010652b /packages/dev-utils | |
parent | 6ce662c7a4d04540920bc2a11a376c71bc051bb0 (diff) | |
download | dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.gz dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.bz2 dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.lz dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.xz dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.zst dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.zip |
Export Web3ProviderEngine from subproviders package
Diffstat (limited to 'packages/dev-utils')
-rw-r--r-- | packages/dev-utils/package.json | 3 | ||||
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index 1808e23e4..f0ef24684 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -51,8 +51,7 @@ "ethereum-types": "^0.0.2", "@0xproject/typescript-typings": "^0.4.2", "@0xproject/web3-wrapper": "^0.7.2", - "lodash": "^4.17.4", - "web3-provider-engine": "14.0.6" + "lodash": "^4.17.4" }, "publishConfig": { "access": "public" diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 67112d410..8e713fa68 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -1,10 +1,9 @@ -import ProviderEngine = require('web3-provider-engine'); - import { EmptyWalletSubprovider, FakeGasEstimateSubprovider, GanacheSubprovider, RPCSubprovider, + Web3ProviderEngine, } from '@0xproject/subproviders'; import * as fs from 'fs'; import * as _ from 'lodash'; @@ -20,8 +19,8 @@ export interface Web3Config { } export const web3Factory = { - getRpcProvider(config: Web3Config = {}): ProviderEngine { - const provider = new ProviderEngine(); + getRpcProvider(config: Web3Config = {}): Web3ProviderEngine { + const provider = new Web3ProviderEngine(); const hasAddresses = _.isUndefined(config.hasAddresses) || config.hasAddresses; config.shouldUseFakeGasEstimate = _.isUndefined(config.shouldUseFakeGasEstimate) || config.shouldUseFakeGasEstimate; |