diff options
author | Steve Klebanoff <steve.klebnaoff@gmail.com> | 2018-10-30 11:08:46 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebnaoff@gmail.com> | 2018-10-30 11:08:46 +0800 |
commit | 728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9 (patch) | |
tree | 81d69e5b69da6f7a6bd82e0599ca84e023b2cac3 /packages/instant/src/containers | |
parent | f9eba65aee8e71de609801e640de4101af9645e6 (diff) | |
download | dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.gz dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.bz2 dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.lz dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.xz dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.zst dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.zip |
store estimated time in Ms on state
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts index 500d6b88a..3750e5219 100644 --- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts +++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts @@ -21,7 +21,7 @@ interface ConnectedState { interface ConnectedDispatch { onValidationPending: (buyQuote: BuyQuote) => void; onSignatureDenied: (buyQuote: BuyQuote) => void; - onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void; + onBuyProcessing: (buyQuote: BuyQuote, txHash: string, estimatedTimeMs?: number) => void; onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void; onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void; onRetry: () => void; @@ -59,8 +59,8 @@ const mapDispatchToProps = ( const newOrderState: OrderState = { processState: OrderProcessState.VALIDATING }; dispatch(actions.updateBuyOrderState(newOrderState)); }, - onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => { - const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txHash }; + onBuyProcessing: (buyQuote: BuyQuote, txHash: string, estimatedTimeMs?: number) => { + const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txHash, estimatedTimeMs }; dispatch(actions.updateBuyOrderState(newOrderState)); }, onBuySuccess: (buyQuote: BuyQuote, txHash: string) => |