aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2017-11-30 03:48:28 +0800
committerGitHub <noreply@github.com>2017-11-30 03:48:28 +0800
commitf1d5a7d31f96636e4a3508f6f385ba7eaf49f28d (patch)
tree49b6f14354082afc7b28d64c3e4bdf15ffafa876 /packages/connect/src
parenta75d547af6438292e832907f98227f10cff7e41c (diff)
parent71973569284fea9d2dee2850c960fda65f97fc44 (diff)
downloaddexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar.gz
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar.bz2
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar.lz
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar.xz
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.tar.zst
dexon-sol-tools-f1d5a7d31f96636e4a3508f6f385ba7eaf49f28d.zip
Merge pull request #245 from 0xProject/fix/exportedTypes
Add SignedOrder and TokenTradeInfo to public interface and fix a Http…
Diffstat (limited to 'packages/connect/src')
-rw-r--r--packages/connect/src/http_client.ts2
-rw-r--r--packages/connect/src/index.ts2
-rw-r--r--packages/connect/src/types.ts2
3 files changed, 5 insertions, 1 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts
index 3a9e11a7d..e30e03815 100644
--- a/packages/connect/src/http_client.ts
+++ b/packages/connect/src/http_client.ts
@@ -34,7 +34,7 @@ export class HttpClient implements Client {
private apiEndpointUrl: string;
/**
* Instantiates a new HttpClient instance
- * @param url The base url for making API calls
+ * @param url The relayer API base HTTP url you would like to interact with
* @return An instance of HttpClient
*/
constructor(url: string) {
diff --git a/packages/connect/src/index.ts b/packages/connect/src/index.ts
index c9ebde510..8a63c41a5 100644
--- a/packages/connect/src/index.ts
+++ b/packages/connect/src/index.ts
@@ -6,6 +6,8 @@ export {
OrderbookRequest,
OrderbookResponse,
OrdersRequest,
+ SignedOrder,
TokenPairsItem,
TokenPairsRequest,
+ TokenTradeInfo,
} from './types';
diff --git a/packages/connect/src/types.ts b/packages/connect/src/types.ts
index eb6df3ba9..bdbbab7c0 100644
--- a/packages/connect/src/types.ts
+++ b/packages/connect/src/types.ts
@@ -1,6 +1,8 @@
import {SignedOrder} from '0x.js';
import {BigNumber} from 'bignumber.js';
+export type SignedOrder = SignedOrder;
+
export interface Client {
getTokenPairsAsync: (request?: TokenPairsRequest) => Promise<TokenPairsItem[]>;
getOrdersAsync: (request?: OrdersRequest) => Promise<SignedOrder[]>;