From 2a25ece3636015e8429fe4556b62fc84545dc7c7 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 30 Oct 2017 15:01:20 +0200 Subject: Add empty implementation of order state watcher --- src/mempool/order_watcher.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/mempool/order_watcher.ts (limited to 'src/mempool/order_watcher.ts') diff --git a/src/mempool/order_watcher.ts b/src/mempool/order_watcher.ts deleted file mode 100644 index b2c8598e7..000000000 --- a/src/mempool/order_watcher.ts +++ /dev/null @@ -1,28 +0,0 @@ -import * as _ from 'lodash'; -import {ZeroEx} from '../'; -import {assert} from '../utils/assert'; -import {Web3Provider, SignedOrder, OnOrderFillabilityStateChangeCallback} from '../types'; -import {Web3Wrapper} from '../web3_wrapper'; - -export class OrderWatcher { - private _orders = new Map(); - private _web3Wrapper: Web3Wrapper; - constructor(provider: Web3Provider) { - assert.isWeb3Provider('provider', provider); - this._web3Wrapper = new Web3Wrapper(provider); - } - public addOrder(signedOrder: SignedOrder): void { - const orderHash = ZeroEx.getOrderHashHex(signedOrder); - this._orders.set(orderHash, signedOrder); - } - public removeOrder(signedOrder: SignedOrder): void { - const orderHash = ZeroEx.getOrderHashHex(signedOrder); - this._orders.delete(orderHash); - } - public subscribe(callback: OnOrderFillabilityStateChangeCallback): void { - // - } - public unsubscribe(): void { - // - } -} -- cgit v1.2.3