diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-18 03:15:14 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-18 04:59:14 +0800 |
commit | caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259 (patch) | |
tree | 6633295409deb809833a2291860871344d301d07 /packages/contracts/test/utils/exchange_wrapper.ts | |
parent | b6172c396563af179b7d89c8eab2982601d042cf (diff) | |
download | dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar.gz dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar.bz2 dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar.lz dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar.xz dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.tar.zst dexon-0x-contracts-caa5b4e3426bc8f54aa3fb84f6f3fea6fecd9259.zip |
Add tests for getOrderInfo and getOrdersInfo
Diffstat (limited to 'packages/contracts/test/utils/exchange_wrapper.ts')
-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, |