diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-30 21:19:04 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-10-31 00:49:16 +0800 |
commit | 456f7e73048bd9176b2126f856fb9b5415c4089b (patch) | |
tree | 5a9199033c60ba25d4db07579ac29ca369595929 /src | |
parent | ed7917f9dfc83ea4dc150fbfc14145f038c9642d (diff) | |
download | dexon-sol-tools-456f7e73048bd9176b2126f856fb9b5415c4089b.tar.gz dexon-sol-tools-456f7e73048bd9176b2126f856fb9b5415c4089b.tar.zst dexon-sol-tools-456f7e73048bd9176b2126f856fb9b5415c4089b.zip |
Introduce OrderState interface
Diffstat (limited to 'src')
-rw-r--r-- | src/types.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/types.ts b/src/types.ts index 52b22516b..89ee4141f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -480,17 +480,21 @@ export enum TransferType { Fee = 'fee', } -export interface OrderStateValid { - isValid: true; - orderHash: string; +export interface OrderState { makerBalance: BigNumber; - makerAllowance: BigNumber; + makerProxyAllowance: BigNumber; makerFeeBalance: BigNumber; - makerFeeAllowance: BigNumber; + makerFeeProxyAllowance: BigNumber; filledMakerTokenAmount: BigNumber; cancelledMakerTokenAmount: BigNumber; } +export interface OrderStateValid { + isValid: true; + orderHash: string; + orderState: OrderState; +} + export interface OrderStateInvalid { isValid: false; orderHash: string; |