Fix linter issues
This commit is contained in:
parent
df9f6004f2
commit
ef76d83d2a
@ -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';
|
||||
|
@ -1,6 +1,3 @@
|
||||
import { generatePseudoRandomSalt } from '@0xproject/order-utils';
|
||||
import { BigNumber } from '@0xproject/utils';
|
||||
|
||||
import { artifacts } from '../../src/artifacts';
|
||||
|
||||
import { constants } from './constants';
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user