13 lines
452 B
TypeScript
13 lines
452 B
TypeScript
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 };
|