aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-21 08:18:08 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-21 08:18:08 +0800
commit83a36bc4b60726bd95736e62281540ccc22b1766 (patch)
treed9303c36e2afc5e7c690e3529cbd1154882a494e /packages/connect/src
parent1c95f685bbe501ae2f569fe75934caa8f063afc4 (diff)
downloaddexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar.gz
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar.bz2
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar.lz
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar.xz
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.tar.zst
dexon-sol-tools-83a36bc4b60726bd95736e62281540ccc22b1766.zip
Improve documentation
Diffstat (limited to 'packages/connect/src')
-rw-r--r--packages/connect/src/http_client.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts
index 93f4eeb05..1b30bebf3 100644
--- a/packages/connect/src/http_client.ts
+++ b/packages/connect/src/http_client.ts
@@ -56,7 +56,7 @@ export class HttpClient implements Client {
}
/**
* Retrieve assetData pair info from the API
- * @param requestOpts Options specifying assetData information to retrieve and page information, defaults to { page: 1, perPage: 100 }
+ * @param requestOpts Options specifying assetData information to retrieve, page information, and network id.
* @return The resulting AssetPairsItems that match the request
*/
public async getAssetPairsAsync(
@@ -76,7 +76,7 @@ export class HttpClient implements Client {
}
/**
* Retrieve orders from the API
- * @param requestOpts Options specifying orders to retrieve and page information, defaults to { page: 1, perPage: 100 }
+ * @param requestOpts Options specifying orders to retrieve and page information, page information, and network id.
* @return The resulting SignedOrders that match the request
*/
public async getOrdersAsync(
@@ -114,7 +114,7 @@ export class HttpClient implements Client {
/**
* Retrieve an orderbook from the API
* @param request An OrderbookRequest instance describing the specific orderbook to retrieve
- * @param requestOpts Options specifying page information, defaults to { page: 1, perPage: 100 }
+ * @param requestOpts Options specifying page information, and network id.
* @return The resulting OrderbookResponse that matches the request
*/
public async getOrderbookAsync(
@@ -135,7 +135,8 @@ export class HttpClient implements Client {
}
/**
* Retrieve fee information from the API
- * @param request A OrderConfigRequest instance describing the specific fees to retrieve
+ * @param request A OrderConfigRequest instance describing the specific fees to retrieve
+ * @param requestOpts Options specifying network id.
* @return The resulting OrderConfigResponse that matches the request
*/
public async getOrderConfigAsync(
@@ -155,7 +156,8 @@ export class HttpClient implements Client {
return fees;
}
/**
- * Retrieve the list of fee recipient addresses used by
+ * Retrieve the list of fee recipient addresses used by the relayer.
+ * @param requestOpts Options specifying page information, and network id.
*/
public async getFeeRecipientsAsync(requestOpts?: RequestOpts & PagedRequestOpts): Promise<FeeRecipientsResponse> {
if (!_.isUndefined(requestOpts)) {
@@ -172,6 +174,7 @@ export class HttpClient implements Client {
/**
* Submit a signed order to the API
* @param signedOrder A SignedOrder instance to submit
+ * @param requestOpts Options specifying network id.
*/
public async submitOrderAsync(signedOrder: SignedOrder, requestOpts?: RequestOpts): Promise<void> {
assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema);