aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/utils/web3_wrapper.ts
blob: 4e86ebeba2eb8b3f2c74892782479100f086b79b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { devConstants, web3Factory } from '@0x/dev-utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { Provider } from 'ethereum-types';

const txDefaults = {
    from: devConstants.TESTRPC_FIRST_ADDRESS,
    gas: devConstants.GAS_LIMIT,
};
const provider: Provider = web3Factory.getRpcProvider({ shouldUseInProcessGanache: true });
const web3Wrapper = new Web3Wrapper(provider);

export { provider, web3Wrapper, txDefaults };