diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-16 20:38:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-16 20:38:51 +0800 |
commit | f9bcf936edbb74acce145af94d23b4945e699f63 (patch) | |
tree | faeacf408e908159f923bae70a4d67e947aba458 /packages/migrations | |
parent | 658214a2e24d3f50aacbc078317358d510e9c351 (diff) | |
parent | acff177c547dee049b97e4b051fe22e1efaf992c (diff) | |
download | dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.gz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.bz2 dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.lz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.xz dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.tar.zst dexon-sol-tools-f9bcf936edbb74acce145af94d23b4945e699f63.zip |
Merge branch 'feature/order-watcher-v2' into feature/order-watcher-erc721-tests
Diffstat (limited to 'packages/migrations')
-rw-r--r-- | packages/migrations/package.json | 3 | ||||
-rw-r--r-- | packages/migrations/src/utils/provider_factory.ts | 12 |
2 files changed, 4 insertions, 11 deletions
diff --git a/packages/migrations/package.json b/packages/migrations/package.json index 84f5025fa..2859bf286 100644 --- a/packages/migrations/package.json +++ b/packages/migrations/package.json @@ -60,8 +60,7 @@ "@ledgerhq/hw-app-eth": "^4.3.0", "ethereum-types": "^0.0.2", "ethers": "3.0.22", - "lodash": "^4.17.4", - "web3-provider-engine": "14.0.6" + "lodash": "^4.17.4" }, "optionalDependencies": { "@ledgerhq/hw-transport-node-hid": "^4.3.0" diff --git a/packages/migrations/src/utils/provider_factory.ts b/packages/migrations/src/utils/provider_factory.ts index 7a217b1e0..5f69b258d 100644 --- a/packages/migrations/src/utils/provider_factory.ts +++ b/packages/migrations/src/utils/provider_factory.ts @@ -1,10 +1,8 @@ -import { LedgerEthereumClient, LedgerSubprovider } from '@0xproject/subproviders'; +import { LedgerEthereumClient, LedgerSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0xproject/subproviders'; import Eth from '@ledgerhq/hw-app-eth'; // tslint:disable:no-implicit-dependencies import TransportNodeHid from '@ledgerhq/hw-transport-node-hid'; import { Provider } from 'ethereum-types'; -import ProviderEngine = require('web3-provider-engine'); -import RpcSubprovider = require('web3-provider-engine/subproviders/rpc'); import { constants } from './constants'; @@ -15,18 +13,14 @@ async function ledgerEthereumNodeJsClientFactoryAsync(): Promise<LedgerEthereumC } export const providerFactory = { async getLedgerProviderAsync(): Promise<Provider> { - const provider = new ProviderEngine(); + const provider = new Web3ProviderEngine(); const ledgerWalletConfigs = { networkId: constants.KOVAN_NETWORK_ID, ledgerEthereumClientFactoryAsync: ledgerEthereumNodeJsClientFactoryAsync, }; const ledgerSubprovider = new LedgerSubprovider(ledgerWalletConfigs); provider.addProvider(ledgerSubprovider); - provider.addProvider( - new RpcSubprovider({ - rpcUrl: constants.RPC_URL, - }), - ); + provider.addProvider(new RPCSubprovider(constants.RPC_URL)); provider.start(); return provider; }, |