aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/0x.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-11 18:34:13 +0800
committerFabio Berger <me@fabioberger.com>2018-07-11 18:34:13 +0800
commit22d3981a7419d088f2bef53da77bcfe6771ebd94 (patch)
tree176a010bd7df384565f77ab4505aec02feff796e /packages/0x.js/src/0x.ts
parentb9627e14d0b30eb50e9169fb7002f942fa089347 (diff)
downloaddexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar.gz
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar.bz2
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar.lz
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar.xz
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.tar.zst
dexon-sol-tools-22d3981a7419d088f2bef53da77bcfe6771ebd94.zip
Temporarily remove OrderWatcher from 0x.js
Diffstat (limited to 'packages/0x.js/src/0x.ts')
-rw-r--r--packages/0x.js/src/0x.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 001f336e7..3d2f23002 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -15,7 +15,6 @@ import {
isValidSignature,
signOrderHashAsync,
} from '@0xproject/order-utils';
-import { OrderWatcher, OrderWatcherConfig } from '@0xproject/order-watcher';
import { ECSignature, Order, Provider, SignedOrder, TransactionReceiptWithDecodedLogs } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
@@ -211,18 +210,4 @@ export class ZeroEx {
);
return transactionReceiptWithDecodedLogs;
}
- /**
- * Instantiates and returns a new OrderWatcher instance.
- * Defaults to watching the pending state.
- * @param config The configuration object. Look up the type for the description.
- * @return An instance of the 0x.js OrderWatcher class.
- */
- public async createOrderWatcherAsync(config?: OrderWatcherConfig): Promise<OrderWatcher> {
- // Hack: Get Web3Wrapper from ContractWrappers
- const web3Wrapper: Web3Wrapper = (this._contractWrappers as any)._web3Wrapper;
- const networkId = await web3Wrapper.getNetworkIdAsync();
- const provider = this._contractWrappers.getProvider();
- const orderWatcher = new OrderWatcher(provider, networkId, config);
- return orderWatcher;
- }
}