diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-03 00:00:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-03 00:00:37 +0800 |
commit | abf2cf4c5e2ea6d09d862871adfa16ca108907e2 (patch) | |
tree | 576899e4e72b89e62300443e613735f3f5e70ba7 /src/types.ts | |
parent | 54e8bf773091eb2c8587c72e50892afec42abb9d (diff) | |
download | dexon-0x-contracts-abf2cf4c5e2ea6d09d862871adfa16ca108907e2.tar.gz dexon-0x-contracts-abf2cf4c5e2ea6d09d862871adfa16ca108907e2.tar.zst dexon-0x-contracts-abf2cf4c5e2ea6d09d862871adfa16ca108907e2.zip |
Move FillOrderValidatinErrs to ExchangeContractErrs
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/types.ts b/src/types.ts index e4a7da5d7..6cd5a93fe 100644 --- a/src/types.ts +++ b/src/types.ts @@ -89,13 +89,6 @@ export const ExchangeContractErrs = strEnum([ 'ORDER_REMAINING_FILL_AMOUNT_ZERO', 'ORDER_FILL_ROUNDING_ERROR', 'FILL_BALANCE_ALLOWANCE_ERROR', -]); -export type ExchangeContractErrs = keyof typeof ExchangeContractErrs; - -export const FillOrderValidationErrs = strEnum([ - 'FILL_AMOUNT_IS_ZERO', - 'TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER', - 'FILL_ORDER_EXPIRED', 'NOT_ENOUGH_TAKER_BALANCE', 'NOT_ENOUGH_TAKER_ALLOWANCE', 'NOT_ENOUGH_MAKER_BALANCE', @@ -104,9 +97,10 @@ export const FillOrderValidationErrs = strEnum([ 'NOT_ENOUGH_TAKER_FEE_ALLOWANCE', 'NOT_ENOUGH_MAKER_FEE_BALANCE', 'NOT_ENOUGH_MAKER_FEE_ALLOWANCE', - 'ROUNDING_ERROR', + 'TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER', + ]); -export type FillOrderValidationErrs = keyof typeof FillOrderValidationErrs; +export type ExchangeContractErrs = keyof typeof ExchangeContractErrs; export interface ContractResponse { logs: ContractEvent[]; |