diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-03 20:55:44 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-05 21:05:57 +0800 |
commit | 029d91bd7a42691446adbe0e1c9192f8484b0af9 (patch) | |
tree | f6990a9c2c9a3fb2825471b0c55bf2fab0a41d14 /packages/contract-wrappers | |
parent | 03dbad6813fe0186e90ed1a45696c7c710096ac8 (diff) | |
download | dexon-0x-contracts-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.gz dexon-0x-contracts-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.zst dexon-0x-contracts-029d91bd7a42691446adbe0e1c9192f8484b0af9.zip |
Add OrderInfo and OrderStatus to types
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/src/types.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/types.ts b/packages/contract-wrappers/src/types.ts index eb0b5abfe..a0bae6625 100644 --- a/packages/contract-wrappers/src/types.ts +++ b/packages/contract-wrappers/src/types.ts @@ -166,3 +166,19 @@ export enum TransferType { } export type OnOrderStateChangeCallback = (err: Error | null, orderState?: OrderState) => void; + +export interface OrderInfo { + orderStatus: number; + orderHash: string; + orderTakerAssetFilledAmount: BigNumber; +} + +export enum OrderStatus { + INVALID, + INVALID_MAKER_ASSET_AMOUNT, + INVALID_TAKER_ASSET_AMOUNT, + FILLABLE, + EXPIRED, + FULLY_FILLED, + CANCELLED, +} |