diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-03 04:28:52 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-03 04:28:52 +0800 |
commit | d160792923c76c5bd0f61e7af2580c158dddc3d4 (patch) | |
tree | 422a523890fd1243795890d51d6b2917ec6fdc69 /packages/instant/src/types.ts | |
parent | b0f2ab45e9761cc760b94d8567df8ba66956388c (diff) | |
parent | 6a57a7b5be151114bb06c171560976b09a8c4aa1 (diff) | |
download | dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar.gz dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar.bz2 dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar.lz dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar.xz dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.tar.zst dexon-0x-contracts-d160792923c76c5bd0f61e7af2580c158dddc3d4.zip |
Merge branch 'development' into fix/instant/decimal-fields-scaling-amount-input-bn
Diffstat (limited to 'packages/instant/src/types.ts')
-rw-r--r-- | packages/instant/src/types.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/instant/src/types.ts b/packages/instant/src/types.ts index e92e96e9a..739556801 100644 --- a/packages/instant/src/types.ts +++ b/packages/instant/src/types.ts @@ -18,12 +18,18 @@ export enum OrderProcessState { FAILURE = 'Failure', } +export interface SimulatedProgress { + startTimeUnix: number; + expectedEndTimeUnix: number; +} + interface OrderStatePreTx { processState: OrderProcessState.NONE | OrderProcessState.VALIDATING; } interface OrderStatePostTx { processState: OrderProcessState.PROCESSING | OrderProcessState.SUCCESS | OrderProcessState.FAILURE; txHash: string; + progress: SimulatedProgress; } export type OrderState = OrderStatePreTx | OrderStatePostTx; @@ -76,3 +82,8 @@ export enum ZeroExInstantError { AssetMetaDataNotAvailable = 'ASSET_META_DATA_NOT_AVAILABLE', InsufficientETH = 'INSUFFICIENT_ETH', } + +export interface AffiliateInfo { + feeRecipient: string; + feePercentage: number; +} |