diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-01 22:03:09 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-01 22:03:09 +0800 |
commit | 88a70afa70f84efc866ff53121d05a6d8d77bff8 (patch) | |
tree | e90dd32241ac0b50556497cf8761ff2fe6c4c37b /src/types.ts | |
parent | a685d7604fcd0854ad49df762c4ed5a51cc86065 (diff) | |
download | dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar.gz dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar.bz2 dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar.lz dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar.xz dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.tar.zst dexon-sol-tools-88a70afa70f84efc866ff53121d05a6d8d77bff8.zip |
Add ExchangeContractErrs string enum
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index c3a19d3b6..7c5e1825d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -77,6 +77,14 @@ export enum ExchangeContractErrCodes { ERROR_CANCEL_NO_VALUE, // Order has already been fully filled or cancelled } +export const ExchangeContractErrs = strEnum([ + 'ORDER_EXPIRED', + 'ORDER_REMAINING_FILL_AMOUNT_ZERO', + 'ORDER_ROUNDING_ERROR', + 'ORDER_BALANCE_ALLOWANCE_ERROR', +]); +export type ExchangeContractErrs = keyof typeof ExchangeContractErrs; + export const FillOrderValidationErrs = strEnum([ 'FILL_AMOUNT_IS_ZERO', 'NOT_A_TAKER', |