diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-12 01:15:39 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-12 01:15:39 +0800 |
commit | ef76d83d2a86746cd632c97bedc7fed82d72380e (patch) | |
tree | 72ba2d3d5c1867220e61ca5de6211346261cd9a9 /packages | |
parent | df9f6004f2ee37d2588c6d473b7ad97cd2324e8f (diff) | |
download | dexon-sol-tools-ef76d83d2a86746cd632c97bedc7fed82d72380e.tar.gz dexon-sol-tools-ef76d83d2a86746cd632c97bedc7fed82d72380e.tar.zst dexon-sol-tools-ef76d83d2a86746cd632c97bedc7fed82d72380e.zip |
Fix linter issues
Diffstat (limited to 'packages')
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 1 | ||||
-rw-r--r-- | packages/0x.js/test/utils/token_utils.ts | 3 | ||||
-rw-r--r-- | packages/order-watcher/src/order_watcher/order_watcher.ts | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index 722049955..b4baecb1e 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -2,7 +2,6 @@ import { ContractWrappers } from '@0xproject/contract-wrappers'; import { BlockchainLifecycle } from '@0xproject/dev-utils'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; -import * as _ from 'lodash'; import 'mocha'; import { ERC20TokenApprovalEventArgs, ERC20TokenEvents, LogWithDecodedArgs, ZeroEx } from '../src'; diff --git a/packages/0x.js/test/utils/token_utils.ts b/packages/0x.js/test/utils/token_utils.ts index 76ee80b58..a439c464d 100644 --- a/packages/0x.js/test/utils/token_utils.ts +++ b/packages/0x.js/test/utils/token_utils.ts @@ -1,6 +1,3 @@ -import { generatePseudoRandomSalt } from '@0xproject/order-utils'; -import { BigNumber } from '@0xproject/utils'; - import { artifacts } from '../../src/artifacts'; import { constants } from './constants'; diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts index 999c1c79e..b09ba8d9d 100644 --- a/packages/order-watcher/src/order_watcher/order_watcher.ts +++ b/packages/order-watcher/src/order_watcher/order_watcher.ts @@ -252,6 +252,7 @@ export class OrderWatcher { switch (decodedLog.event) { case TokenEvents.Approval: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as TokenApprovalEventArgs; this._balanceAndProxyAllowanceLazyStore.deleteProxyAllowance(decodedLog.address, args._owner); // Revalidate orders @@ -268,6 +269,7 @@ export class OrderWatcher { } case TokenEvents.Transfer: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as TokenTransferEventArgs; this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._from); this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._to); @@ -285,6 +287,7 @@ export class OrderWatcher { } case EtherTokenEvents.Deposit: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as EtherTokenDepositEventArgs; this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner); // Revalidate orders @@ -301,6 +304,7 @@ export class OrderWatcher { } case EtherTokenEvents.Withdrawal: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as EtherTokenWithdrawalEventArgs; this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner); // Revalidate orders @@ -317,6 +321,7 @@ export class OrderWatcher { } case ExchangeEvents.LogFill: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as ExchangeLogFillEventArgs; this._orderFilledCancelledLazyStore.deleteFilledTakerAmount(args.orderHash); // Revalidate orders @@ -329,6 +334,7 @@ export class OrderWatcher { } case ExchangeEvents.LogCancel: { // Invalidate cache + // tslint:disable-next-line:no-unnecessary-type-assertion const args = decodedLog.args as ExchangeLogCancelEventArgs; this._orderFilledCancelledLazyStore.deleteCancelledTakerAmount(args.orderHash); // Revalidate orders |