aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/zrx.ts
blob: cbe10a55aad1568ea74d33250c83db64f84648a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { ExchangeEvents, ZeroEx } from '0x.js';
import * as dotenv from 'dotenv';
import * as Web3 from 'web3';
dotenv.config();
const provider = new Web3.providers.HttpProvider(process.env.WEB3_PROVIDER_URL);
const web3 = new Web3(provider);
const MAINNET = 1;
const zrx = new ZeroEx(provider, {
    networkId: MAINNET,
});
export { web3, zrx };