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,7 +1,7 @@
import { web3Factory } from '@0x/dev-utils';
import { Provider } from 'ethereum-types';
import Web3ProviderEngine = require('web3-provider-engine');
const providerConfigs = { shouldUseInProcessGanache: true };
const provider: Provider = web3Factory.getRpcProvider(providerConfigs);
const provider: Web3ProviderEngine = web3Factory.getRpcProvider(providerConfigs);
export { provider };