aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:58:32 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:58:32 +0800
commit062187f28d76bf420c235bc83a56926e35bd8db0 (patch)
tree16e42954a342d7e209d4d8d59b6b0a24cf8808fa /packages/instant/src
parente55d8802e10afd20791aafd2b0958b674f9c0408 (diff)
downloaddexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar.gz
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar.bz2
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar.lz
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar.xz
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.tar.zst
dexon-sol-tools-062187f28d76bf420c235bc83a56926e35bd8db0.zip
better type names
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/types.ts6
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,