aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/actions.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:41:35 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:41:35 +0800
commit6cf8d57aee3ed332bd1109f8f39792894147d2dd (patch)
tree2a12a521fa6bba01f64799ad40acbb3b074f9cff /packages/instant/src/redux/actions.ts
parent7b43cd14b305e3f01081e7ea7d0385966e4529be (diff)
downloaddexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.gz
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.bz2
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.lz
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.xz
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.tar.zst
dexon-0x-contracts-6cf8d57aee3ed332bd1109f8f39792894147d2dd.zip
add concept of quoteState
Diffstat (limited to 'packages/instant/src/redux/actions.ts')
-rw-r--r--packages/instant/src/redux/actions.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts
index cf5b39790..e12c728bb 100644
--- a/packages/instant/src/redux/actions.ts
+++ b/packages/instant/src/redux/actions.ts
@@ -25,6 +25,8 @@ export enum ActionTypes {
UPDATE_SELECTED_ASSET_AMOUNT = 'UPDATE_SELECTED_ASSET_AMOUNT',
UPDATE_SELECTED_ASSET_BUY_STATE = 'UPDATE_SELECTED_ASSET_BUY_STATE',
UPDATE_LATEST_BUY_QUOTE = 'UPDATE_LATEST_BUY_QUOTE',
+ UPDATE_BUY_QUOTE_STATE_PENDING = 'UPDATE_BUY_QUOTE_STATE_PENDING',
+ UPDATE_BUY_QUOTE_STATE_FAILURE = 'UPDATE_BUY_QUOTE_STATE_FAILURE',
SET_ERROR = 'SET_ERROR',
HIDE_ERROR = 'HIDE_ERROR',
CLEAR_ERROR = 'CLEAR_ERROR',
@@ -36,6 +38,8 @@ export const actions = {
updateSelectedAssetBuyState: (buyState: AsyncProcessState) =>
createAction(ActionTypes.UPDATE_SELECTED_ASSET_BUY_STATE, buyState),
updateLatestBuyQuote: (buyQuote?: BuyQuote) => createAction(ActionTypes.UPDATE_LATEST_BUY_QUOTE, buyQuote),
+ updateBuyQuoteStatePending: () => createAction(ActionTypes.UPDATE_BUY_QUOTE_STATE_PENDING),
+ updateBuyQuoteStateFailure: () => createAction(ActionTypes.UPDATE_BUY_QUOTE_STATE_FAILURE),
setError: (error?: any) => createAction(ActionTypes.SET_ERROR, error),
hideError: () => createAction(ActionTypes.HIDE_ERROR),
clearError: () => createAction(ActionTypes.CLEAR_ERROR),