aboutsummaryrefslogtreecommitdiffstats
path: root/packages/long-lived-subscriptions-test/src/index.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-06 05:26:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-06 05:26:50 +0800
commit855fdd7921fb548537daec5350573c71db2dd403 (patch)
tree8f8e2f29942946a54d5741ceb47797ba0ddc3a4f /packages/long-lived-subscriptions-test/src/index.ts
parent46ad7b1b38df0f302821258629ffa749e7dd00b9 (diff)
downloaddexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar.gz
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar.bz2
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar.lz
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar.xz
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.tar.zst
dexon-sol-tools-855fdd7921fb548537daec5350573c71db2dd403.zip
Revert "Temp"
This reverts commit 881d32e73324b226bdc97f96fb583edb7a5311c1.
Diffstat (limited to 'packages/long-lived-subscriptions-test/src/index.ts')
-rw-r--r--packages/long-lived-subscriptions-test/src/index.ts32
1 files changed, 0 insertions, 32 deletions
diff --git a/packages/long-lived-subscriptions-test/src/index.ts b/packages/long-lived-subscriptions-test/src/index.ts
deleted file mode 100644
index 2d79dcc89..000000000
--- a/packages/long-lived-subscriptions-test/src/index.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { DecodedLogEvent, ExchangeEvents, LogFillContractEventArgs, ZeroEx } from '0x.js';
-import * as _ from 'lodash';
-import * as Web3 from 'web3';
-
-const zeroExConfig = {
- networkId: 1,
-};
-
-const RPC_URL = 'https://mainnet.infura.io/T5WSC8cautR4KXyYgsRs';
-// const RPC_URL = 'https://mainnet.0xproject.com';
-
-const web3 = new Web3(new Web3.providers.HttpProvider(RPC_URL));
-const zeroEx = new ZeroEx(web3.currentProvider, zeroExConfig);
-
-const subscribe = () => {
- console.log('subscribing...');
- zeroEx.exchange.subscribe<LogFillContractEventArgs>(
- ExchangeEvents.LogFill,
- {},
- (err: Error | null, event?: DecodedLogEvent<LogFillContractEventArgs>) => {
- if (_.isNull(err)) {
- console.log('EVENT');
- console.log(event);
- } else {
- console.log('ERROR');
- console.log(err);
- subscribe();
- }
- },
- );
-};
-subscribe();