From 062187f28d76bf420c235bc83a56926e35bd8db0 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Thu, 25 Oct 2018 13:58:32 -0700 Subject: better type names --- packages/instant/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/instant') 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, -- cgit