aboutsummaryrefslogblamecommitdiffstats
path: root/packages/0x.js/test/utils/web3_wrapper.ts
blob: b7b3f0b7fe7b41a281551515b95ffc75413340f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                 
                                            


                                                      


                                                                     
                                                

                                                          
                                 
import { devConstants, web3Factory } from '@0xproject/dev-utils';
import { Provider } from '@0xproject/types';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as Web3 from 'web3';

import { constants } from './constants';

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

export { provider, web3Wrapper };