diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 04:27:28 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 04:27:28 +0800 |
commit | 05b74ba1c8b10c356d396ce9a4834d053cd791b1 (patch) | |
tree | 5cb88a3fb9eddb5783fd22501b14bae5b7d6ea6d /packages/instant/src/types.ts | |
parent | 12dad41143c50d858edbb665d4795142a6339dd7 (diff) | |
download | dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar.gz dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar.bz2 dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar.lz dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar.xz dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.tar.zst dexon-0x-contracts-05b74ba1c8b10c356d396ce9a4834d053cd791b1.zip |
Dispatching progress
Diffstat (limited to 'packages/instant/src/types.ts')
-rw-r--r-- | packages/instant/src/types.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/instant/src/types.ts b/packages/instant/src/types.ts index 4631c9cae..722590165 100644 --- a/packages/instant/src/types.ts +++ b/packages/instant/src/types.ts @@ -16,12 +16,17 @@ export enum OrderProcessState { FAILURE = 'Failure', } +export interface OrderProgress { + percentageDone: number; +} + interface OrderStatePreTx { processState: OrderProcessState.NONE | OrderProcessState.VALIDATING; } interface OrderStatePostTx { processState: OrderProcessState.PROCESSING | OrderProcessState.SUCCESS | OrderProcessState.FAILURE; txHash: string; + // TODO: move/rename? estimatedTimeMs?: number; } export type OrderState = OrderStatePreTx | OrderStatePostTx; |