aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/utils/assert.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-20 21:10:15 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-20 21:10:15 +0800
commit03e18ff7c60749fd33228b25077891da26e81d41 (patch)
tree4f070ec21f55816490dc9dd6a9341b8190d1063b /packages/asset-buyer/src/utils/assert.ts
parentd23487bda9fa918d31bb940fffb74f8be0859be5 (diff)
downloaddexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar.gz
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar.bz2
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar.lz
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar.xz
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.tar.zst
dexon-sol-tools-03e18ff7c60749fd33228b25077891da26e81d41.zip
Rename OrderFetcher to OrderProvider and other small improvements
Diffstat (limited to 'packages/asset-buyer/src/utils/assert.ts')
-rw-r--r--packages/asset-buyer/src/utils/assert.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/asset-buyer/src/utils/assert.ts b/packages/asset-buyer/src/utils/assert.ts
index 745ba726f..1d57ae9b8 100644
--- a/packages/asset-buyer/src/utils/assert.ts
+++ b/packages/asset-buyer/src/utils/assert.ts
@@ -3,7 +3,7 @@ import { schemas } from '@0xproject/json-schemas';
import { SignedOrder } from '@0xproject/types';
import * as _ from 'lodash';
-import { BuyQuote, OrderFetcher, OrderFetcherRequest } from '../types';
+import { BuyQuote, OrderProvider, OrderProviderRequest } from '../types';
export const assert = {
...sharedAssert,
@@ -18,10 +18,10 @@ export const assert = {
sharedAssert.isNumber(`${variableName}.feePercentage`, buyQuote.feePercentage);
}
},
- isValidOrderFetcher(variableName: string, orderFetcher: OrderFetcher): void {
- sharedAssert.isFunction(`${variableName}.fetchOrdersAsync`, orderFetcher.fetchOrdersAsync);
+ isValidOrderFetcher(variableName: string, orderFetcher: OrderProvider): void {
+ sharedAssert.isFunction(`${variableName}.fetchOrdersAsync`, orderFetcher.getOrdersAsync);
},
- isValidOrderFetcherRequest(variableName: string, orderFetcherRequest: OrderFetcherRequest): void {
+ isValidOrderFetcherRequest(variableName: string, orderFetcherRequest: OrderProviderRequest): void {
sharedAssert.isHexString(`${variableName}.makerAssetData`, orderFetcherRequest.makerAssetData);
sharedAssert.isHexString(`${variableName}.takerAssetData`, orderFetcherRequest.takerAssetData);
sharedAssert.isNumber(`${variableName}.networkId`, orderFetcherRequest.networkId);