diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:02:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:06:14 +0800 |
commit | 7ea0b138bc7a61037636eb5b4d2ad9b995a27f79 (patch) | |
tree | 9504c885a07c1786d746819971c6ad2bb1967d83 /src | |
parent | d73fb5a23c0e23eaec90aee0b563c06fa8f380d6 (diff) | |
download | dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar.gz dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar.bz2 dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar.lz dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar.xz dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.tar.zst dexon-sol-tools-7ea0b138bc7a61037636eb5b4d2ad9b995a27f79.zip |
Remove unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/order_watcher/order_state_watcher.ts | 3 | ||||
-rw-r--r-- | src/types.ts | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts index b69540716..139f13fdf 100644 --- a/src/order_watcher/order_state_watcher.ts +++ b/src/order_watcher/order_state_watcher.ts @@ -63,12 +63,9 @@ export class OrderStateWatcher { web3Wrapper: Web3Wrapper, abiDecoder: AbiDecoder, token: TokenWrapper, exchange: ExchangeWrapper, config?: OrderStateWatcherConfig, ) { - this._orderByOrderHash = {}; this._abiDecoder = abiDecoder; this._web3Wrapper = web3Wrapper; - this._dependentOrderHashes = {}; const eventPollingIntervalMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs; - const blockPollingIntervalMs = _.isUndefined(config) ? undefined : config.blockPollingIntervalMs; this._eventWatcher = new EventWatcher(web3Wrapper, eventPollingIntervalMs); this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(token); this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange); diff --git a/src/types.ts b/src/types.ts index b34dbfb4e..fcfbdc92b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,14 +18,11 @@ export enum ZeroExError { SubscriptionNotFound = 'SUBSCRIPTION_NOT_FOUND', SubscriptionAlreadyPresent = 'SUBSCRIPTION_ALREADY_PRESENT', TransactionMiningTimeout = 'TRANSACTION_MINING_TIMEOUT', - FailedToFetchLatestBlock = 'FAILED_TO_FETCH_LATEST_BLOCK', } export enum InternalZeroExError { NoAbiDecoder = 'NO_ABI_DECODER', ZrxNotInTokenRegistry = 'ZRX_NOT_IN_TOKEN_REGISTRY', - LatestBlockNumberNotSet = 'LATEST_BLOCK_NUMBER_NOT_SET', - Web3WrapperRequiredToStartBlockStore = 'WEB3_WRAPPER_REQUIRED_TO_START_BLOCK_STORE', } /** @@ -401,11 +398,9 @@ export interface JSONRPCPayload { /* * eventPollingIntervalMs: How often to poll the Ethereum node for new events - * blockPollingIntervalMs: How often to poll the Ethereum node for new blocks */ export interface OrderStateWatcherConfig { eventPollingIntervalMs?: number; - blockPollingIntervalMs?: number; } /* |