aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-08 23:47:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-08 23:47:50 +0800
commite0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7 (patch)
treeb0db651ef7aba234ba6b07ff05695a366db734f8 /packages/contracts/deploy/src
parent36125c3539fce6f67d62ab3378bbf09653a1c3c1 (diff)
downloaddexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar.gz
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar.bz2
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar.lz
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar.xz
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.tar.zst
dexon-sol-tools-e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7.zip
Inline network module
Diffstat (limited to 'packages/contracts/deploy/src')
-rw-r--r--packages/contracts/deploy/src/utils/network.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/contracts/deploy/src/utils/network.ts b/packages/contracts/deploy/src/utils/network.ts
deleted file mode 100644
index f9776bb97..000000000
--- a/packages/contracts/deploy/src/utils/network.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import {promisify} from '@0xproject/utils';
-import {Web3Wrapper} from '@0xproject/web3-wrapper';
-import * as _ from 'lodash';
-import * as Web3 from 'web3';
-
-export const network = {
- async getNetworkIdIfExistsAsync(port: number): Promise<number> {
- const url = `http://localhost:${port}`;
- const web3Provider = new Web3.providers.HttpProvider(url);
- const web3Wrapper = new Web3Wrapper(web3Provider);
- const networkId = web3Wrapper.getNetworkIdAsync();
- return networkId;
- },
-};