Add tests for getOrderInfo and getOrdersInfo

This commit is contained in:
Amir Bandeali
2018-07-17 12:15:14 -07:00
parent b6172c3965
commit caa5b4e342
3 changed files with 311 additions and 5 deletions

View File

@@ -223,6 +223,10 @@ export class ExchangeWrapper {
const orderInfo = (await this._exchange.getOrderInfo.callAsync(signedOrder)) as OrderInfo;
return orderInfo;
}
public async getOrdersInfoAsync(signedOrders: SignedOrder[]): Promise<OrderInfo[]> {
const ordersInfo = (await this._exchange.getOrdersInfo.callAsync(signedOrders)) as OrderInfo[];
return ordersInfo;
}
public async matchOrdersAsync(
signedOrderLeft: SignedOrder,
signedOrderRight: SignedOrder,