diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-18 05:13:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 05:13:33 +0800 |
commit | 56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9 (patch) | |
tree | 6633295409deb809833a2291860871344d301d07 /packages/contracts/test/utils | |
parent | 502287868073eecdea08b3160bd41ef78f5d8583 (diff) | |
parent | caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259 (diff) | |
download | dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar.gz dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar.bz2 dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar.lz dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar.xz dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.tar.zst dexon-sol-tools-56a4a374cde67e0e5c0c748ed6bee9bb2a084bd9.zip |
Merge pull request #857 from 0xProject/feature/contracts/batchGetOrderInfo
Add getOrdersInfo function
Diffstat (limited to 'packages/contracts/test/utils')
-rw-r--r-- | packages/contracts/test/utils/exchange_wrapper.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/contracts/test/utils/exchange_wrapper.ts b/packages/contracts/test/utils/exchange_wrapper.ts index 155d0eeb0..a71a0d495 100644 --- a/packages/contracts/test/utils/exchange_wrapper.ts +++ b/packages/contracts/test/utils/exchange_wrapper.ts @@ -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, |