diff options
author | Kadinsky <kandinsky454@protonmail.ch> | 2018-10-18 18:12:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 18:12:24 +0800 |
commit | d0df0747217dca230aadbee72337d7111a1383e7 (patch) | |
tree | 4df7d1a0fd40f7e953af595ddac9f9b7c4aec0d3 /packages/instant/src/redux/actions.ts | |
parent | 376034ac7e2053ea81aa637983d1f6a7e61588d9 (diff) | |
parent | 6ea386a7af89c1b8a4df94b656ae1772c29c1401 (diff) | |
download | dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar.gz dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar.bz2 dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar.lz dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar.xz dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.tar.zst dexon-sol-tools-d0df0747217dca230aadbee72337d7111a1383e7.zip |
Merge pull request #1142 from 0xProject/feature/instant/asset-buyer-errors
[instant] Asset buyer errors
Diffstat (limited to 'packages/instant/src/redux/actions.ts')
-rw-r--r-- | packages/instant/src/redux/actions.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts index 7d07b4950..bec847742 100644 --- a/packages/instant/src/redux/actions.ts +++ b/packages/instant/src/redux/actions.ts @@ -25,12 +25,22 @@ 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', } export const actions = { updateEthUsdPrice: (price?: BigNumber) => createAction(ActionTypes.UPDATE_ETH_USD_PRICE, price), updateSelectedAssetAmount: (amount?: BigNumber) => createAction(ActionTypes.UPDATE_SELECTED_ASSET_AMOUNT, amount), - updateSelectedAssetBuyState: (buyState: AsyncProcessState) => + updatebuyOrderState: (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), }; |