Fix up missing Provider interfaces and refactor providerUtils.standardizeOrThrow()

This commit is contained in:
Fabio Berger
2019-02-19 22:34:31 -08:00
parent fe1e8575ea
commit 1fa82c1077
72 changed files with 353 additions and 260 deletions

View File

@@ -1,8 +1,8 @@
import { web3Factory } from '@0x/dev-utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { Provider } from 'ethereum-types';
import Web3ProviderEngine = require('web3-provider-engine');
const provider: Provider = web3Factory.getRpcProvider({ shouldUseInProcessGanache: true });
const provider: Web3ProviderEngine = web3Factory.getRpcProvider({ shouldUseInProcessGanache: true });
const web3Wrapper = new Web3Wrapper(provider);
export { provider, web3Wrapper };