diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-01-03 09:05:32 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | b90c3196a331eee28c09dd6abcfe7f2e0f9e296c (patch) | |
tree | 7d2e85be4de6dd9851df7486bbfde5218918adb9 /packages/pipeline | |
parent | 1dda10b4f34eb19b731e58c26f13ecc08e367bbe (diff) | |
download | dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar.gz dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar.bz2 dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar.lz dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar.xz dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.tar.zst dexon-sol-tools-b90c3196a331eee28c09dd6abcfe7f2e0f9e296c.zip |
FIx linting errors
Diffstat (limited to 'packages/pipeline')
3 files changed, 8 insertions, 0 deletions
diff --git a/packages/pipeline/src/parsers/events/exchange_events.ts b/packages/pipeline/src/parsers/events/exchange_events.ts index 50fad7e00..8d2e7dec7 100644 --- a/packages/pipeline/src/parsers/events/exchange_events.ts +++ b/packages/pipeline/src/parsers/events/exchange_events.ts @@ -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. diff --git a/packages/pipeline/src/parsers/sra_orders/index.ts b/packages/pipeline/src/parsers/sra_orders/index.ts index 663b8f509..10546921d 100644 --- a/packages/pipeline/src/parsers/sra_orders/index.ts +++ b/packages/pipeline/src/parsers/sra_orders/index.ts @@ -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. diff --git a/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts b/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts index bc83ad283..ffeaaca52 100644 --- a/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts +++ b/packages/pipeline/src/utils/transformers/asset_proxy_id_types.ts @@ -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: |