aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-21 21:21:44 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-21 21:21:44 +0800
commit8dea48ebeff775f7437c45f5a6d39dfc7dbf704e (patch)
treeb80c32461a3639cbd3cb467384c07ba57b80a2e4 /packages
parent97150cf55f472ca5c77b28d064976d84df9f2436 (diff)
downloaddexon-0x-contracts-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.gz
dexon-0x-contracts-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.zst
dexon-0x-contracts-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.zip
Renamed orderFetcherResponseProcessor to orderProviderResponseProcessoer
Diffstat (limited to 'packages')
-rw-r--r--packages/asset-buyer/src/asset_buyer.ts4
-rw-r--r--packages/asset-buyer/src/utils/order_provider_response_processor.ts (renamed from packages/asset-buyer/src/utils/order_fetcher_response_processor.ts)10
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts
index e74b8eac1..74ced0e51 100644
--- a/packages/asset-buyer/src/asset_buyer.ts
+++ b/packages/asset-buyer/src/asset_buyer.ts
@@ -21,7 +21,7 @@ import {
import { assert } from './utils/assert';
import { assetDataUtils } from './utils/asset_data_utils';
import { buyQuoteCalculator } from './utils/buy_quote_calculator';
-import { orderFetcherResponseProcessor } from './utils/order_fetcher_response_processor';
+import { orderProviderResponseProcessor } from './utils/order_provider_response_processor';
export class AssetBuyer {
public readonly provider: Provider;
@@ -270,7 +270,7 @@ export class AssetBuyer {
_.map(requests, async request => this.orderFetcher.getOrdersAsync(request)),
);
// process the responses into one object
- const ordersAndFillableAmounts = await orderFetcherResponseProcessor.processAsync(
+ const ordersAndFillableAmounts = await orderProviderResponseProcessor.processAsync(
targetOrderFetcherResponse,
feeOrderFetcherResponse,
zrxTokenAssetData,
diff --git a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
index ec4a6ce7e..79e15c3d8 100644
--- a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts
+++ b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
@@ -19,7 +19,7 @@ interface OrdersAndRemainingFillableMakerAssetAmounts {
remainingFillableMakerAssetAmounts: BigNumber[];
}
-export const orderFetcherResponseProcessor = {
+export const orderProviderResponseProcessor = {
/**
* Take the responses for the target orders to buy and fee orders and process them.
* Processing includes:
@@ -28,14 +28,14 @@ export const orderFetcherResponseProcessor = {
* - Sort by rate
*/
async processAsync(
- targetOrderFetcherResponse: OrderProviderResponse,
- feeOrderFetcherResponse: OrderProviderResponse,
+ targetOrderProviderResponse: OrderProviderResponse,
+ feeOrderProviderResponse: OrderProviderResponse,
zrxTokenAssetData: string,
orderValidator?: OrderValidatorWrapper,
): Promise<AssetBuyerOrdersAndFillableAmounts> {
// drop orders that are expired or not open
- const filteredTargetOrders = filterOutExpiredAndNonOpenOrders(targetOrderFetcherResponse.orders);
- const filteredFeeOrders = filterOutExpiredAndNonOpenOrders(feeOrderFetcherResponse.orders);
+ const filteredTargetOrders = filterOutExpiredAndNonOpenOrders(targetOrderProviderResponse.orders);
+ const filteredFeeOrders = filterOutExpiredAndNonOpenOrders(feeOrderProviderResponse.orders);
// set the orders to be sorted equal to the filtered orders
let unsortedTargetOrders = filteredTargetOrders;
let unsortedFeeOrders = filteredFeeOrders;