aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 23:26:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 23:26:16 +0800
commit42b4952693b66d722fa541af4a2ae9034c1cd3e7 (patch)
tree7e77075ecf8272ec61d1a650746a5442318a2c2c /src/types.ts
parentfa910bca0ebcc71e5fd7aa656972d77bec08c9e5 (diff)
downloaddexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar.gz
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar.bz2
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar.lz
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar.xz
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.tar.zst
dexon-0x-contracts-42b4952693b66d722fa541af4a2ae9034c1cd3e7.zip
Add test when the order was already cancelled or filled
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 32148df7e..a89c27576 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -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',