aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-05-12 02:32:12 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-05-19 08:01:06 +0800
commitfa7570352ce65dc58df6969c5a24cf3f487e738f (patch)
tree0e4816c7711b9625cc5c9965f9cfecf08d45f2bf /packages/contracts/src/utils
parentf378406d155bbb7c4679904756c897ed2f4388c1 (diff)
downloaddexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar.gz
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar.bz2
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar.lz
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar.xz
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.tar.zst
dexon-sol-tools-fa7570352ce65dc58df6969c5a24cf3f487e738f.zip
Added require reasons to MixinMatchOrders and cleaned up some comments.
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r--packages/contracts/src/utils/types.ts35
1 files changed, 15 insertions, 20 deletions
diff --git a/packages/contracts/src/utils/types.ts b/packages/contracts/src/utils/types.ts
index ce7fbcbe1..0e3b2c9a8 100644
--- a/packages/contracts/src/utils/types.ts
+++ b/packages/contracts/src/utils/types.ts
@@ -75,26 +75,21 @@ export interface Token {
}
export enum ExchangeStatus {
- /// Default Status ///
- INVALID, // General invalid status
-
- /// General Exchange Statuses ///
- SUCCESS, // Indicates a successful operation
- ROUNDING_ERROR_TOO_LARGE, // Rounding error too large
- INSUFFICIENT_BALANCE_OR_ALLOWANCE, // Insufficient balance or allowance for token transfer
- TAKER_ASSET_FILL_AMOUNT_TOO_LOW, // takerAssetFillAmount is <= 0
- INVALID_SIGNATURE, // Invalid signature
- INVALID_SENDER, // Invalid sender
- INVALID_TAKER, // Invalid taker
- INVALID_MAKER, // Invalid maker
-
- /// Order State Statuses ///
- ORDER_INVALID_MAKER_ASSET_AMOUNT, // Order does not have a valid maker asset amount
- ORDER_INVALID_TAKER_ASSET_AMOUNT, // Order does not have a valid taker asset amount
- ORDER_FILLABLE, // Order is fillable
- ORDER_EXPIRED, // Order has already expired
- ORDER_FULLY_FILLED, // Order is fully filled
- ORDER_CANCELLED, // Order has been cancelled
+ 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,
}
export enum ContractName {