Add ifExists suffix
This commit is contained in:
		@@ -18,8 +18,8 @@ export class ExpirationWatcher {
 | 
				
			|||||||
    private callbackIfExists?: (orderHash: string) => void;
 | 
					    private callbackIfExists?: (orderHash: string) => void;
 | 
				
			||||||
    private orderExpirationCheckingIntervalMs: number;
 | 
					    private orderExpirationCheckingIntervalMs: number;
 | 
				
			||||||
    private orderExpirationCheckingIntervalIdIfExists?: NodeJS.Timer;
 | 
					    private orderExpirationCheckingIntervalIdIfExists?: NodeJS.Timer;
 | 
				
			||||||
    constructor(orderExpirationCheckingIntervalMs?: number) {
 | 
					    constructor(orderExpirationCheckingIntervalMsIfExists?: number) {
 | 
				
			||||||
        this.orderExpirationCheckingIntervalMs = orderExpirationCheckingIntervalMs ||
 | 
					        this.orderExpirationCheckingIntervalMs = orderExpirationCheckingIntervalMsIfExists ||
 | 
				
			||||||
                                                 DEFAULT_ORDER_EXPIRATION_CHECKING_INTERVAL_MS;
 | 
					                                                 DEFAULT_ORDER_EXPIRATION_CHECKING_INTERVAL_MS;
 | 
				
			||||||
        const scoreFunction = (orderHash: string) => this.expiration[orderHash].toNumber();
 | 
					        const scoreFunction = (orderHash: string) => this.expiration[orderHash].toNumber();
 | 
				
			||||||
        this.orderHashHeapByExpiration = new Heap(scoreFunction);
 | 
					        this.orderHashHeapByExpiration = new Heap(scoreFunction);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,10 +74,10 @@ export class OrderStateWatcher {
 | 
				
			|||||||
        this._orderStateUtils = new OrderStateUtils(
 | 
					        this._orderStateUtils = new OrderStateUtils(
 | 
				
			||||||
            this._balanceAndProxyAllowanceLazyStore, this._orderFilledCancelledLazyStore,
 | 
					            this._balanceAndProxyAllowanceLazyStore, this._orderFilledCancelledLazyStore,
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        const orderExpirationCheckingIntervalMs = _.isUndefined(config) ?
 | 
					        const orderExpirationCheckingIntervalMsIfExists = _.isUndefined(config) ?
 | 
				
			||||||
                                                  undefined :
 | 
					                                                          undefined :
 | 
				
			||||||
                                                  config.orderExpirationCheckingIntervalMs;
 | 
					                                                          config.orderExpirationCheckingIntervalMs;
 | 
				
			||||||
        this._expirationWatcher = new ExpirationWatcher(orderExpirationCheckingIntervalMs);
 | 
					        this._expirationWatcher = new ExpirationWatcher(orderExpirationCheckingIntervalMsIfExists);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Add an order to the orderStateWatcher. Before the order is added, it's
 | 
					     * Add an order to the orderStateWatcher. Before the order is added, it's
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user