aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2019-01-04 06:29:56 +0800
committerAmir Bandeali <abandeali1@gmail.com>2019-01-08 02:31:11 +0800
commita91bc415ed3c9dc94dda2661c0d7ac13bcc58e08 (patch)
tree111d7e51bb2b531a3e1daf3331c06d0a8924c128
parentccdb81ac400308276bd6996c1a6b86baa01b9ee5 (diff)
downloaddexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.gz
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.bz2
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.lz
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.xz
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.tar.zst
dexon-sol-tools-a91bc415ed3c9dc94dda2661c0d7ac13bcc58e08.zip
Fix linting errors
-rw-r--r--packages/order-utils/src/asset_data_utils.ts1
-rw-r--r--packages/order-utils/src/index.ts1
-rw-r--r--packages/order-utils/test/asset_data_utils_test.ts1
-rw-r--r--packages/order-watcher/src/index.ts1
4 files changed, 4 insertions, 0 deletions
diff --git a/packages/order-utils/src/asset_data_utils.ts b/packages/order-utils/src/asset_data_utils.ts
index b5ce87e3e..c2929d426 100644
--- a/packages/order-utils/src/asset_data_utils.ts
+++ b/packages/order-utils/src/asset_data_utils.ts
@@ -154,6 +154,7 @@ export const assetDataUtils = {
return {
assetProxyId: decodedAssetData.assetProxyId,
amounts: flattenedAmounts,
+ // tslint:disable-next-line:no-unnecessary-type-assertion
nestedAssetData: flattenedDecodedNestedAssetData as SingleAssetData[],
};
},
diff --git a/packages/order-utils/src/index.ts b/packages/order-utils/src/index.ts
index 398188433..2150a02e4 100644
--- a/packages/order-utils/src/index.ts
+++ b/packages/order-utils/src/index.ts
@@ -41,6 +41,7 @@ export {
MultiAssetDataWithRecursiveDecoding,
AssetProxyId,
SignatureType,
+ ObjectMap,
OrderStateValid,
OrderStateInvalid,
ExchangeContractErrs,
diff --git a/packages/order-utils/test/asset_data_utils_test.ts b/packages/order-utils/test/asset_data_utils_test.ts
index d3d265b5a..ebc5bdeac 100644
--- a/packages/order-utils/test/asset_data_utils_test.ts
+++ b/packages/order-utils/test/asset_data_utils_test.ts
@@ -27,6 +27,7 @@ const KNOWN_MULTI_ASSET_ENCODING = {
'0x94cfcdd7000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000024f47261b00000000000000000000000001dc4c1cefef38a777b15aa20260a54e584b16c48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044025717920000000000000000000000001dc4c1cefef38a777b15aa20260a54e584b16c48000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000',
};
+// tslint:disable:no-unnecessary-type-assertion
describe('assetDataUtils', () => {
it('should encode ERC20', () => {
const assetData = assetDataUtils.encodeERC20AssetData(KNOWN_ERC20_ENCODING.address);
diff --git a/packages/order-watcher/src/index.ts b/packages/order-watcher/src/index.ts
index e275a0c6a..1f4e5eff1 100644
--- a/packages/order-watcher/src/index.ts
+++ b/packages/order-watcher/src/index.ts
@@ -7,6 +7,7 @@ export {
OrderStateInvalid,
OrderState,
ExchangeContractErrs,
+ ObjectMap,
OrderRelevantState,
Stats,
} from '@0x/types';