2017-06-21 23:31:59 +00:00
|
|
|
// @flow
|
2017-06-26 22:27:55 +00:00
|
|
|
import * as generateWallet from './generateWallet';
|
|
|
|
import type { State as GenerateWalletState } from './generateWallet';
|
2017-06-12 01:00:28 +00:00
|
|
|
|
2017-06-26 22:27:55 +00:00
|
|
|
import * as config from './config';
|
|
|
|
import type { State as ConfigState } from './config';
|
|
|
|
|
|
|
|
import * as swap from './swap';
|
|
|
|
|
|
|
|
import * as notifications from './notifications';
|
|
|
|
import type { State as NotificationsState } from './notifications';
|
|
|
|
|
|
|
|
import * as ens from './ens';
|
|
|
|
import type { State as EnsState } from './ens';
|
|
|
|
|
2017-06-29 23:03:11 +00:00
|
|
|
import * as wallet from './wallet';
|
|
|
|
import type { State as WalletState } from './wallet';
|
|
|
|
|
2017-07-13 21:02:39 +00:00
|
|
|
import * as customTokens from './customTokens';
|
|
|
|
import type { State as CustomTokensState } from './customTokens';
|
|
|
|
|
|
|
|
import * as rates from './rates';
|
|
|
|
import type { State as RatesState } from './rates';
|
|
|
|
|
2017-07-28 00:31:59 +00:00
|
|
|
import * as contracts from './contracts';
|
|
|
|
import type { State as ContractsState } from './contracts';
|
|
|
|
|
2017-08-28 17:43:57 +00:00
|
|
|
import * as deterministicWallets from './deterministicWallets';
|
|
|
|
import type { State as DeterministicWalletsState } from './deterministicWallets';
|
|
|
|
|
2017-09-04 16:30:31 +00:00
|
|
|
import type { State as SwapState } from './swap';
|
|
|
|
|
2017-06-26 22:27:55 +00:00
|
|
|
import { reducer as formReducer } from 'redux-form';
|
|
|
|
import { combineReducers } from 'redux';
|
|
|
|
import { routerReducer } from 'react-router-redux';
|
|
|
|
|
|
|
|
export type State = {
|
2017-07-27 17:05:09 +00:00
|
|
|
// Custom reducers
|
2017-07-02 05:49:06 +00:00
|
|
|
generateWallet: GenerateWalletState,
|
2017-07-04 03:21:19 +00:00
|
|
|
config: ConfigState,
|
2017-07-02 05:49:06 +00:00
|
|
|
notifications: NotificationsState,
|
2017-07-04 03:21:19 +00:00
|
|
|
ens: EnsState,
|
2017-07-13 21:02:39 +00:00
|
|
|
wallet: WalletState,
|
|
|
|
customTokens: CustomTokensState,
|
2017-07-27 17:05:09 +00:00
|
|
|
rates: RatesState,
|
2017-07-28 00:31:59 +00:00
|
|
|
contracts: ContractsState,
|
2017-08-28 17:43:57 +00:00
|
|
|
deterministicWallets: DeterministicWalletsState,
|
2017-07-27 17:05:09 +00:00
|
|
|
// Third party reducers (TODO: Fill these out)
|
|
|
|
form: Object,
|
2017-09-04 16:30:31 +00:00
|
|
|
routing: Object,
|
|
|
|
swap: SwapState
|
2017-06-26 22:27:55 +00:00
|
|
|
};
|
2017-04-14 06:24:16 +00:00
|
|
|
|
2017-04-12 05:04:27 +00:00
|
|
|
export default combineReducers({
|
2017-07-02 05:49:06 +00:00
|
|
|
...generateWallet,
|
|
|
|
...config,
|
|
|
|
...swap,
|
|
|
|
...notifications,
|
|
|
|
...ens,
|
2017-07-04 03:21:19 +00:00
|
|
|
...wallet,
|
2017-07-13 21:02:39 +00:00
|
|
|
...customTokens,
|
|
|
|
...rates,
|
2017-07-28 00:31:59 +00:00
|
|
|
...contracts,
|
2017-08-28 17:43:57 +00:00
|
|
|
...deterministicWallets,
|
2017-07-02 05:49:06 +00:00
|
|
|
form: formReducer,
|
|
|
|
routing: routerReducer
|
2017-06-26 22:27:55 +00:00
|
|
|
});
|