Fix linter issues

This commit is contained in:
Fabio Berger 2018-07-11 19:15:39 +02:00
parent df9f6004f2
commit ef76d83d2a
3 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import { ContractWrappers } from '@0xproject/contract-wrappers';
import { BlockchainLifecycle } from '@0xproject/dev-utils'; import { BlockchainLifecycle } from '@0xproject/dev-utils';
import { BigNumber } from '@0xproject/utils'; import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai'; import * as chai from 'chai';
import * as _ from 'lodash';
import 'mocha'; import 'mocha';
import { ERC20TokenApprovalEventArgs, ERC20TokenEvents, LogWithDecodedArgs, ZeroEx } from '../src'; import { ERC20TokenApprovalEventArgs, ERC20TokenEvents, LogWithDecodedArgs, ZeroEx } from '../src';

View File

@ -1,6 +1,3 @@
import { generatePseudoRandomSalt } from '@0xproject/order-utils';
import { BigNumber } from '@0xproject/utils';
import { artifacts } from '../../src/artifacts'; import { artifacts } from '../../src/artifacts';
import { constants } from './constants'; import { constants } from './constants';

View File

@ -252,6 +252,7 @@ export class OrderWatcher {
switch (decodedLog.event) { switch (decodedLog.event) {
case TokenEvents.Approval: { case TokenEvents.Approval: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as TokenApprovalEventArgs; const args = decodedLog.args as TokenApprovalEventArgs;
this._balanceAndProxyAllowanceLazyStore.deleteProxyAllowance(decodedLog.address, args._owner); this._balanceAndProxyAllowanceLazyStore.deleteProxyAllowance(decodedLog.address, args._owner);
// Revalidate orders // Revalidate orders
@ -268,6 +269,7 @@ export class OrderWatcher {
} }
case TokenEvents.Transfer: { case TokenEvents.Transfer: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as TokenTransferEventArgs; const args = decodedLog.args as TokenTransferEventArgs;
this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._from); this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._from);
this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._to); this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._to);
@ -285,6 +287,7 @@ export class OrderWatcher {
} }
case EtherTokenEvents.Deposit: { case EtherTokenEvents.Deposit: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as EtherTokenDepositEventArgs; const args = decodedLog.args as EtherTokenDepositEventArgs;
this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner); this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner);
// Revalidate orders // Revalidate orders
@ -301,6 +304,7 @@ export class OrderWatcher {
} }
case EtherTokenEvents.Withdrawal: { case EtherTokenEvents.Withdrawal: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as EtherTokenWithdrawalEventArgs; const args = decodedLog.args as EtherTokenWithdrawalEventArgs;
this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner); this._balanceAndProxyAllowanceLazyStore.deleteBalance(decodedLog.address, args._owner);
// Revalidate orders // Revalidate orders
@ -317,6 +321,7 @@ export class OrderWatcher {
} }
case ExchangeEvents.LogFill: { case ExchangeEvents.LogFill: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as ExchangeLogFillEventArgs; const args = decodedLog.args as ExchangeLogFillEventArgs;
this._orderFilledCancelledLazyStore.deleteFilledTakerAmount(args.orderHash); this._orderFilledCancelledLazyStore.deleteFilledTakerAmount(args.orderHash);
// Revalidate orders // Revalidate orders
@ -329,6 +334,7 @@ export class OrderWatcher {
} }
case ExchangeEvents.LogCancel: { case ExchangeEvents.LogCancel: {
// Invalidate cache // Invalidate cache
// tslint:disable-next-line:no-unnecessary-type-assertion
const args = decodedLog.args as ExchangeLogCancelEventArgs; const args = decodedLog.args as ExchangeLogCancelEventArgs;
this._orderFilledCancelledLazyStore.deleteCancelledTakerAmount(args.orderHash); this._orderFilledCancelledLazyStore.deleteCancelledTakerAmount(args.orderHash);
// Revalidate orders // Revalidate orders