diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-01 21:52:11 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-01 21:52:11 +0800 |
commit | 73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92 (patch) | |
tree | be077e8e1869bdc070401654133c1ac6762bdc98 /src/types.ts | |
parent | 6a57c42e253a52a449cae8a5c6565276cb01a86c (diff) | |
parent | d8e35c364ea94b606810b340fb02d8706e257c3c (diff) | |
download | dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar.gz dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar.bz2 dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar.lz dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar.xz dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.tar.zst dexon-0x-contracts-73ad8378b0b4c2a87fd81cfc7a0193dbf940ff92.zip |
Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsync
# Conflicts:
# src/contract_wrappers/exchange_wrapper.ts
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index 18de4d27e..992bb4b00 100644 --- a/src/types.ts +++ b/src/types.ts @@ -31,7 +31,7 @@ export type OrderAddresses = [string, string, string, string, string]; export type OrderValues = [ BigNumber.BigNumber, BigNumber.BigNumber, BigNumber.BigNumber, - BigNumber.BigNumber, BigNumber.BigNumber, BigNumber.BigNumber, + BigNumber.BigNumber, BigNumber.BigNumber, BigNumber.BigNumber ]; export interface ExchangeContract { @@ -79,6 +79,13 @@ export enum ExchangeContractErrCodes { ERROR_CANCEL_NO_VALUE, // Order has already been fully filled or cancelled } +export const FillOrderValidationErrs = strEnum([ + 'FILL_AMOUNT_IS_ZERO', + 'NOT_A_TAKER', + 'EXPIRED', +]); +export type FillOrderValidationErrs = keyof typeof FillOrderValidationErrs; + export interface ContractResponse { logs: ContractEvent[]; } |