aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/utils/web3_wrapper.ts
blob: 02c8c591889ae53cdb63d06eef120935bd4f8b25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { devConstants, web3Factory } from '@0xproject/dev-utils';
import { Web3Wrapper } from '@0xproject/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 };