diff options
author | Jacob Evans <dekz@dekz.net> | 2018-06-05 08:25:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 08:25:45 +0800 |
commit | 70858603ed37de24ae47978a191b3f188f450182 (patch) | |
tree | 22cb18debbcc5aa16eccc23c04bfd86f8d1439eb /packages/contracts/src/utils | |
parent | 79472552aae4ef60ae20e26571c750cbeb02c552 (diff) | |
parent | 5c44db341fca8926fcf2329f96f0f7f7a5ce16f7 (diff) | |
download | dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.gz dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.bz2 dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.lz dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.xz dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.zst dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.zip |
Merge pull request #633 from 0xProject/feature/contracts/errors
Update error handling
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r-- | packages/contracts/src/utils/match_order_tester.ts | 1 | ||||
-rw-r--r-- | packages/contracts/src/utils/types.ts | 22 |
2 files changed, 7 insertions, 16 deletions
diff --git a/packages/contracts/src/utils/match_order_tester.ts b/packages/contracts/src/utils/match_order_tester.ts index 09c0d8083..6170188bc 100644 --- a/packages/contracts/src/utils/match_order_tester.ts +++ b/packages/contracts/src/utils/match_order_tester.ts @@ -26,7 +26,6 @@ import { ContractName, ERC20BalancesByOwner, ERC721TokenIdsByOwner, - ExchangeStatus, TransferAmountsByMatchOrders as TransferAmounts, } from '../utils/types'; import { provider, web3Wrapper } from '../utils/web3_wrapper'; diff --git a/packages/contracts/src/utils/types.ts b/packages/contracts/src/utils/types.ts index 6340c4a51..360e1fdbc 100644 --- a/packages/contracts/src/utils/types.ts +++ b/packages/contracts/src/utils/types.ts @@ -69,22 +69,14 @@ export interface Token { swarmHash: string; } -export enum ExchangeStatus { +export enum OrderStatus { INVALID, - SUCCESS, - ROUNDING_ERROR_TOO_LARGE, - INSUFFICIENT_BALANCE_OR_ALLOWANCE, - TAKER_ASSET_FILL_AMOUNT_TOO_LOW, - INVALID_SIGNATURE, - INVALID_SENDER, - INVALID_TAKER, - INVALID_MAKER, - ORDER_INVALID_MAKER_ASSET_AMOUNT, - ORDER_INVALID_TAKER_ASSET_AMOUNT, - ORDER_FILLABLE, - ORDER_EXPIRED, - ORDER_FULLY_FILLED, - ORDER_CANCELLED, + INVALID_MAKER_ASSET_AMOUNT, + INVALID_TAKER_ASSET_AMOUNT, + FILLABLE, + EXPIRED, + FULLY_FILLED, + CANCELLED, } export enum ContractName { |