Add test when the order was already cancelled or filled

This commit is contained in:
Leonid Logvinov
2017-06-06 17:26:16 +02:00
parent fa910bca0e
commit 42b4952693
3 changed files with 44 additions and 31 deletions

View File

@@ -80,6 +80,9 @@ export interface ExchangeContract {
cancelled: {
call: (orderHash: string) => BigNumber.BigNumber;
};
getOrderHash: {
call: (orderAddresses: OrderAddresses, orderValues: OrderValues) => string;
}
}
export interface TokenContract {
@@ -123,6 +126,7 @@ export const ExchangeContractErrs = strEnum([
'ORDER_FILL_EXPIRED',
'ORDER_CANCEL_EXPIRED',
'ORDER_CANCEL_AMOUNT_ZERO',
'ORDER_ALREADY_CANCELLED_OR_FILLED',
'ORDER_REMAINING_FILL_AMOUNT_ZERO',
'ORDER_FILL_ROUNDING_ERROR',
'FILL_BALANCE_ALLOWANCE_ERROR',