aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-03 20:55:44 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-05 21:05:57 +0800
commit029d91bd7a42691446adbe0e1c9192f8484b0af9 (patch)
treef6990a9c2c9a3fb2825471b0c55bf2fab0a41d14
parent03dbad6813fe0186e90ed1a45696c7c710096ac8 (diff)
downloaddexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.gz
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.bz2
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.lz
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.xz
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.tar.zst
dexon-sol-tools-029d91bd7a42691446adbe0e1c9192f8484b0af9.zip
Add OrderInfo and OrderStatus to types
-rw-r--r--packages/contract-wrappers/src/types.ts16
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,
+}