diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-10-03 06:52:27 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-10-03 06:52:27 +0800 |
commit | 75679835a72f4a011943ea5f4d1bada9a298e653 (patch) | |
tree | 537be600012d44041dfca873199f276b1b2eb8d5 /packages/asset-buyer/src | |
parent | 75d6970e6c9bdeb6004228084bb541994b18e8c3 (diff) | |
download | dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar.gz dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar.bz2 dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar.lz dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar.xz dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.tar.zst dexon-sol-tools-75679835a72f4a011943ea5f4d1bada9a298e653.zip |
Remove static methods to retrieve assetDatas from SRA
Diffstat (limited to 'packages/asset-buyer/src')
-rw-r--r-- | packages/asset-buyer/src/asset_buyer.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 587e4e941..0fe765325 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -42,25 +42,6 @@ export class AssetBuyer { // cache of orders along with the time last updated keyed by assetData private readonly _ordersEntryMap: ObjectMap<OrdersEntry> = {}; /** - * Returns an array of all assetDatas available at the provided sraApiUrl - * @param sraApiUrl The standard relayer API base HTTP url you would like to source orders from. - * @param pairedWithAssetData Optional filter argument to return assetDatas that only pair with this assetData value. - * - * @return An array of all assetDatas available at the provider sraApiUrl - */ - public static async getAllAvailableAssetDatasAsync( - sraApiUrl: string, - pairedWithAssetData?: string, - ): Promise<string[]> { - const client = new HttpClient(sraApiUrl); - const params = { - assetDataA: pairedWithAssetData, - perPage: constants.MAX_PER_PAGE, - }; - const assetPairsResponse = await client.getAssetPairsAsync(params); - return _.uniq(_.map(assetPairsResponse.records, pairsItem => pairsItem.assetDataB.assetData)); - } - /** * Instantiates a new AssetBuyer instance given existing liquidity in the form of orders and feeOrders. * @param provider The Provider instance you would like to use for interacting with the Ethereum network. * @param orders A non-empty array of objects that conform to SignedOrder. All orders must have the same makerAssetData and takerAssetData (WETH). |