diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-09-20 21:10:15 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-09-20 21:10:15 +0800 |
commit | 03e18ff7c60749fd33228b25077891da26e81d41 (patch) | |
tree | 4f070ec21f55816490dc9dd6a9341b8190d1063b /packages/asset-buyer/src/types.ts | |
parent | d23487bda9fa918d31bb940fffb74f8be0859be5 (diff) | |
download | dexon-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/types.ts')
-rw-r--r-- | packages/asset-buyer/src/types.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/asset-buyer/src/types.ts b/packages/asset-buyer/src/types.ts index c30bdf4bb..09319fca4 100644 --- a/packages/asset-buyer/src/types.ts +++ b/packages/asset-buyer/src/types.ts @@ -6,7 +6,7 @@ import { BigNumber } from '@0xproject/utils'; * takerAssetData: The assetData representing the desired takerAsset. * networkId: The networkId that the desired orders should be for. */ -export interface OrderFetcherRequest { +export interface OrderProviderRequest { makerAssetData: string; takerAssetData: string; networkId: number; @@ -15,7 +15,7 @@ export interface OrderFetcherRequest { /** * orders: An array of orders with optional remaining fillable makerAsset amounts. See type for more info. */ -export interface OrderFetcherResponse { +export interface OrderProviderResponse { orders: SignedOrderWithRemainingFillableMakerAssetAmount[]; } @@ -29,8 +29,8 @@ export interface SignedOrderWithRemainingFillableMakerAssetAmount extends Signed /** * Given an OrderFetchRequest, get an OrderFetchResponse. */ -export interface OrderFetcher { - fetchOrdersAsync: (orderFetchRequest: OrderFetcherRequest) => Promise<OrderFetcherResponse>; +export interface OrderProvider { + getOrdersAsync: (orderProviderRequest: OrderProviderRequest) => Promise<OrderProviderResponse>; } /** |