aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/order_watcher/order_state_watcher.ts3
-rw-r--r--src/types.ts5
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;
}
/*