diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 04:58:32 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 04:58:32 +0800 |
commit | 062187f28d76bf420c235bc83a56926e35bd8db0 (patch) | |
tree | 16e42954a342d7e209d4d8d59b6b0a24cf8808fa /packages | |
parent | e55d8802e10afd20791aafd2b0958b674f9c0408 (diff) | |
download | dexon-0x-contracts-062187f28d76bf420c235bc83a56926e35bd8db0.tar.gz dexon-0x-contracts-062187f28d76bf420c235bc83a56926e35bd8db0.tar.zst dexon-0x-contracts-062187f28d76bf420c235bc83a56926e35bd8db0.zip |
better type names
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/types.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/types.ts b/packages/instant/src/types.ts index 63b49cb26..c63371fb4 100644 --- a/packages/instant/src/types.ts +++ b/packages/instant/src/types.ts @@ -16,14 +16,14 @@ export enum OrderProcessState { FAILURE = 'Failure', } -interface OrderStateWithoutTx { +interface OrderStatePreTx { processState: OrderProcessState.NONE | OrderProcessState.AWAITING_SIGNATURE; } -interface OrderStateWithTx { +interface OrderStatePostTx { processState: OrderProcessState.PROCESSING | OrderProcessState.SUCCESS | OrderProcessState.FAILURE; txHash: string; } -export type OrderState = OrderStateWithoutTx | OrderStateWithTx; +export type OrderState = OrderStatePreTx | OrderStatePostTx; export enum DisplayStatus { Present, |