diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:47:24 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:47:24 +0800 |
commit | 9be4c4749935a765cbd55783735d1d1f719322c0 (patch) | |
tree | 49c3f3f42e58b49547799e6dfadc1b10c82381db /packages/instant/src/redux/actions.ts | |
parent | 9512978de9aee1953930d4f16a105ec5ef7f048e (diff) | |
parent | af91a56a5594d07d7da6caaeff79f5a7fb31ff98 (diff) | |
download | dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar.gz dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar.bz2 dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar.lz dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar.xz dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.tar.zst dexon-sol-tools-9be4c4749935a765cbd55783735d1d1f719322c0.zip |
Merge branch 'development' into feature/not-enough-eth
Diffstat (limited to 'packages/instant/src/redux/actions.ts')
-rw-r--r-- | packages/instant/src/redux/actions.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts index 5a4099f15..46045024b 100644 --- a/packages/instant/src/redux/actions.ts +++ b/packages/instant/src/redux/actions.ts @@ -2,6 +2,8 @@ import { BuyQuote } from '@0x/asset-buyer'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { BigNumberInput } from '../util/big_number_input'; + import { ActionsUnion, OrderState } from '../types'; export interface PlainAction<T extends string> { @@ -36,7 +38,8 @@ export enum ActionTypes { export const actions = { updateEthUsdPrice: (price?: BigNumber) => createAction(ActionTypes.UPDATE_ETH_USD_PRICE, price), - updateSelectedAssetAmount: (amount?: BigNumber) => createAction(ActionTypes.UPDATE_SELECTED_ASSET_AMOUNT, amount), + updateSelectedAssetAmount: (amount?: BigNumberInput) => + createAction(ActionTypes.UPDATE_SELECTED_ASSET_AMOUNT, amount), updateBuyOrderState: (orderState: OrderState) => createAction(ActionTypes.UPDATE_BUY_ORDER_STATE, orderState), updateLatestBuyQuote: (buyQuote?: BuyQuote) => createAction(ActionTypes.UPDATE_LATEST_BUY_QUOTE, buyQuote), updateSelectedAsset: (assetData?: string) => createAction(ActionTypes.UPDATE_SELECTED_ASSET, assetData), |