aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/types.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-07 07:42:54 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-07 07:42:54 +0800
commitc30dca69619bf87ed198cf375d21593213798113 (patch)
tree0ef499d1c7c58a0f414ecf4398a2725a851e4439 /packages/instant/src/types.ts
parentce4081bb18bffb364050f04796f3174b87b7303e (diff)
downloaddexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar.gz
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar.bz2
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar.lz
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar.xz
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.tar.zst
dexon-sol-tools-c30dca69619bf87ed198cf375d21593213798113.zip
chore(instant): update OrderState enum to follow capitalization conventions
Diffstat (limited to 'packages/instant/src/types.ts')
-rw-r--r--packages/instant/src/types.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/instant/src/types.ts b/packages/instant/src/types.ts
index 449bc0f31..04469f8b9 100644
--- a/packages/instant/src/types.ts
+++ b/packages/instant/src/types.ts
@@ -3,18 +3,18 @@ import { AssetProxyId, ObjectMap } from '@0x/types';
// Reusable
export type Maybe<T> = T | undefined;
export enum AsyncProcessState {
- NONE = 'None',
- PENDING = 'Pending',
- SUCCESS = 'Success',
- FAILURE = 'Failure',
+ None = 'NONE',
+ Pending = 'PENDING',
+ Success = 'SUCCESS',
+ Failure = 'FAILURE',
}
export enum OrderProcessState {
- NONE = 'None',
- VALIDATING = 'Validating',
- PROCESSING = 'Processing',
- SUCCESS = 'Success',
- FAILURE = 'Failure',
+ None = 'NONE',
+ Validating = 'VALIDATING',
+ Processing = 'PROCESSING',
+ Success = 'SUCCESS',
+ Failure = 'FAILURE',
}
export interface SimulatedProgress {
@@ -23,10 +23,10 @@ export interface SimulatedProgress {
}
interface OrderStatePreTx {
- processState: OrderProcessState.NONE | OrderProcessState.VALIDATING;
+ processState: OrderProcessState.None | OrderProcessState.Validating;
}
interface OrderStatePostTx {
- processState: OrderProcessState.PROCESSING | OrderProcessState.SUCCESS | OrderProcessState.FAILURE;
+ processState: OrderProcessState.Processing | OrderProcessState.Success | OrderProcessState.Failure;
txHash: string;
progress: SimulatedProgress;
}