aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils/web3_wrapper.ts
blob: bc4e1cfd83378e7d02d72deeee1bfcc8fc24cb25 (plain) (blame)
1
2
3
4
5
6
7
8
import { web3Factory } from '@0xproject/dev-utils';
import { Provider } from '@0xproject/types';
import { Web3Wrapper } from '@0xproject/web3-wrapper';

const providerConfigs = { shouldUseInProcessGanache: true };
export const web3 = web3Factory.create(providerConfigs);
export const provider: Provider = web3.currentProvider;
export const web3Wrapper = new Web3Wrapper(provider);