aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/zrx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pipeline/src/zrx.ts')
-rw-r--r--packages/pipeline/src/zrx.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/pipeline/src/zrx.ts b/packages/pipeline/src/zrx.ts
new file mode 100644
index 000000000..cbe10a55a
--- /dev/null
+++ b/packages/pipeline/src/zrx.ts
@@ -0,0 +1,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 };