aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-13 07:11:30 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-13 07:11:30 +0800
commitf39541436a5088e928660b61bde7cef5153bc7a1 (patch)
tree5c6fe7ff4b9621a5cc59fe795b6feb1ad346b479 /packages/instant/src/redux
parentccf021b8bf34aa7c0714f29f9153a5a11ce682a2 (diff)
downloaddexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar.gz
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar.bz2
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar.lz
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar.xz
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.tar.zst
dexon-sol-tools-f39541436a5088e928660b61bde7cef5153bc7a1.zip
feat: model asset meta data and add dynamic assetData state
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/reducer.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index 56a4ee236..adecf2ab7 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -2,11 +2,13 @@ import { BuyQuote } from '@0xproject/asset-buyer';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
+import { zrxAssetData } from '../constants';
import { AsyncProcessState } from '../types';
import { Action, ActionTypes } from './actions';
export interface State {
+ selectedAssetData?: string;
selectedAssetAmount?: BigNumber;
selectedAssetBuyState: AsyncProcessState;
ethUsdPrice?: BigNumber;
@@ -14,9 +16,11 @@ export interface State {
}
export const INITIAL_STATE: State = {
- ethUsdPrice: undefined,
- selectedAssetBuyState: AsyncProcessState.NONE,
+ // TODO: Remove hardcoded zrxAssetData
+ selectedAssetData: zrxAssetData,
selectedAssetAmount: undefined,
+ selectedAssetBuyState: AsyncProcessState.NONE,
+ ethUsdPrice: undefined,
latestBuyQuote: undefined,
};