diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 05:00:16 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 05:00:16 +0800 |
commit | c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054 (patch) | |
tree | 816b1412ee9deada82c487033b67052b58c9d1d7 /packages/connect/src/http_client.ts | |
parent | 7eff195d61072007e64ef934e1411f8100656be8 (diff) | |
download | dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar.gz dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar.bz2 dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar.lz dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar.xz dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.tar.zst dexon-sol-tools-c1cc92a46f9ebfa4408a5dc515f1e100fe3a7054.zip |
Change names of basic types in Client interface
Diffstat (limited to 'packages/connect/src/http_client.ts')
-rw-r--r-- | packages/connect/src/http_client.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts index 03cc590e4..1b51ee429 100644 --- a/packages/connect/src/http_client.ts +++ b/packages/connect/src/http_client.ts @@ -7,6 +7,7 @@ import * as queryString from 'query-string'; import { schemas as clientSchemas } from './schemas/schemas'; import { + AssetPairsRequestOpts, Client, FeesRequest, FeesResponse, @@ -17,7 +18,6 @@ import { OrdersRequestOpts, PagedRequestOpts, TokenPairsItem, - TokenPairsRequestOpts, } from './types'; import { relayerResponseJsonParsers } from './utils/relayer_response_json_parsers'; @@ -69,9 +69,9 @@ export class HttpClient implements Client { * @param requestOpts Options specifying token information to retrieve and page information, defaults to { page: 1, perPage: 100 } * @return The resulting TokenPairsItems that match the request */ - public async getTokenPairsAsync(requestOpts?: TokenPairsRequestOpts & PagedRequestOpts): Promise<TokenPairsItem[]> { + public async getAssetPairsAsync(requestOpts?: AssetPairsRequestOpts & PagedRequestOpts): Promise<TokenPairsItem[]> { if (!_.isUndefined(requestOpts)) { - assert.doesConformToSchema('requestOpts', requestOpts, clientSchemas.tokenPairsRequestOptsSchema); + assert.doesConformToSchema('requestOpts', requestOpts, clientSchemas.AssetPairsRequestOptsSchema); assert.doesConformToSchema('requestOpts', requestOpts, clientSchemas.pagedRequestOptsSchema); } const httpRequestOpts = { @@ -135,7 +135,7 @@ export class HttpClient implements Client { * @param request A FeesRequest instance describing the specific fees to retrieve * @return The resulting FeesResponse that matches the request */ - public async getFeesAsync(request: FeesRequest): Promise<FeesResponse> { + public async getOrderConfigAsync(request: FeesRequest): Promise<FeesResponse> { assert.doesConformToSchema('request', request, clientSchemas.feesRequestSchema); const httpRequestOpts = { payload: request, |