FIx linting errors
This commit is contained in:
parent
1dda10b4f3
commit
b90c3196a3
@ -1,4 +1,3 @@
|
||||
import { artifacts as interfacesArtifacts, IAssetDataContract } from '@0x/contracts-interfaces';
|
||||
import {
|
||||
chaiSetup,
|
||||
constants,
|
||||
|
@ -22,6 +22,7 @@ import * as UnlimitedAllowanceToken_v1 from '../../generated-artifacts/Unlimited
|
||||
import * as WETH9 from '../../generated-artifacts/WETH9.json';
|
||||
import * as ZRXToken from '../../generated-artifacts/ZRXToken.json';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
export const artifacts = {
|
||||
DummyERC20Token: DummyERC20Token as ContractArtifact,
|
||||
DummyMultipleReturnERC20Token: DummyMultipleReturnERC20Token as ContractArtifact,
|
||||
|
@ -7,6 +7,8 @@ import * as R from 'ramda';
|
||||
import { ExchangeCancelEvent, ExchangeCancelUpToEvent, ExchangeFillEvent } from '../../entities';
|
||||
import { bigNumbertoStringOrNull, convertAssetProxyIdToType } from '../../utils';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
|
||||
/**
|
||||
* Parses raw event logs for a fill event and returns an array of
|
||||
* ExchangeFillEvent entities.
|
||||
|
@ -6,6 +6,8 @@ import * as R from 'ramda';
|
||||
import { SraOrder } from '../../entities';
|
||||
import { bigNumbertoStringOrNull, convertAssetProxyIdToType } from '../../utils';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
|
||||
/**
|
||||
* Parses a raw order response from an SRA endpoint and returns an array of
|
||||
* SraOrder entities.
|
||||
|
@ -2,6 +2,10 @@ import { AssetProxyId } from '@0x/types';
|
||||
|
||||
import { AssetType } from '../../types';
|
||||
|
||||
/**
|
||||
* Converts an assetProxyId to its string equivalent
|
||||
* @param assetProxyId Id of AssetProxy
|
||||
*/
|
||||
export function convertAssetProxyIdToType(assetProxyId: AssetProxyId): AssetType {
|
||||
switch (assetProxyId) {
|
||||
case AssetProxyId.ERC20:
|
||||
|
Loading…
x
Reference in New Issue
Block a user