diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-18 02:27:38 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:21:42 +0800 |
commit | 57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151 (patch) | |
tree | 68596be050d6f84e3b7e6f51f91d09a542ac3129 /packages/pipeline/src/zrx.ts | |
parent | c43ba6b3c7082544f8aa8f1c297eb271ca079ea4 (diff) | |
download | dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.gz dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.bz2 dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.lz dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.xz dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.zst dexon-sol-tools-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.zip |
Rebase pipeline branch off development
Diffstat (limited to 'packages/pipeline/src/zrx.ts')
-rw-r--r-- | packages/pipeline/src/zrx.ts | 11 |
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 }; |