aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/types.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 1b32ccdf9..ea83c6885 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -474,3 +474,24 @@ export enum TransferType {
Trade = 'trade',
Fee = 'fee',
}
+
+export interface OrderStateValid {
+ isValid: true;
+ orderHash: string;
+ makerBalance: BigNumber;
+ makerAllowance: BigNumber;
+ makerFeeBalance: BigNumber;
+ makerFeeAllowance: BigNumber;
+ filledMakerTokenAmount: BigNumber;
+ cancelledMakerTokenAmount: BigNumber;
+}
+
+export interface OrderStateInvalid {
+ isValid: false;
+ orderHash: string;
+ error: ExchangeContractErrs;
+}
+
+export type OnOrderFillabilityStateChangeCallback = (
+ orderState: OrderStateValid|OrderStateInvalid,
+) => void;