diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-02-07 03:45:55 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-02-07 03:45:55 +0800 |
commit | 5fcb77e591c612be8beef1a3761132e053eaf8f3 (patch) | |
tree | 824de6de4d114c9cb2b3aa3d0633fa6791a6ff71 /packages/long-lived-subscriptions-test | |
parent | 83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf (diff) | |
parent | 629653425da973df0ac5d21d11da5a61c3a31e09 (diff) | |
download | dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar.gz dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar.bz2 dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar.lz dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar.xz dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.tar.zst dexon-sol-tools-5fcb77e591c612be8beef1a3761132e053eaf8f3.zip |
Merge branch 'development' into feature/testnet-faucets/order-dispenser
* development:
Update utils in top level package to 0.3.0
Add 0.2.0 back to yarn lock
Reword comment on any
Link to the wiki article in the README
Justify the any usage
Publish
Revert "Temp"
Changelog
Change the InjectedWeb3Subprovider to accept Web3.Provider
Diffstat (limited to 'packages/long-lived-subscriptions-test')
5 files changed, 0 insertions, 77 deletions
diff --git a/packages/long-lived-subscriptions-test/Dockerfile b/packages/long-lived-subscriptions-test/Dockerfile deleted file mode 100644 index 47d24ec08..000000000 --- a/packages/long-lived-subscriptions-test/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM node - -WORKDIR /src - -COPY package.json . -RUN yarn install - -COPY . . - -CMD ["./lib/index.js"] diff --git a/packages/long-lived-subscriptions-test/package.json b/packages/long-lived-subscriptions-test/package.json deleted file mode 100644 index ec45d631a..000000000 --- a/packages/long-lived-subscriptions-test/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "long-lived-subscriptions-test", - "version": "0.0.1", - "description": "", - "scripts": { - "build:watch": "tsc -w", - "build": "tsc", - "start": "node lib/index.js", - "clean": "shx rm -rf lib", - "lint": "tslint --project . 'src/**/*.ts'" - }, - "dependencies": { - "0x.js": "^0.31.1", - "lodash": "^4.17.4", - "web3": "^0.20.0" - }, - "devDependencies": { - "@0xproject/tslint-config": "^0.4.6", - "@types/lodash": "^4.14.86", - "shx": "^0.2.2", - "tslint": "5.8.0", - "typescript": "2.7.1", - "web3-typescript-typings": "^0.9.8" - } -} 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(); diff --git a/packages/long-lived-subscriptions-test/tsconfig.json b/packages/long-lived-subscriptions-test/tsconfig.json deleted file mode 100644 index 3d967d05f..000000000 --- a/packages/long-lived-subscriptions-test/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig", - "compilerOptions": { - "outDir": "lib" - }, - "include": ["./src/**/*", "../../node_modules/web3-typescript-typings/index.d.ts"] -} diff --git a/packages/long-lived-subscriptions-test/tslint.json b/packages/long-lived-subscriptions-test/tslint.json deleted file mode 100644 index ffaefe83a..000000000 --- a/packages/long-lived-subscriptions-test/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["@0xproject/tslint-config"] -} |