William O'Beirne e3505fd958 Contracts Tab Scaffolding (#70)
* Empty component, routes setup.

* Shared components for all Contracts inputs. Dont do anything yet.

* Check in reducer work so far. Still WIP.

* Header styling

* Check in input work so far, splitting to new branch.

* Strip down contracts inputs. Split out into form and explorer

* Contract selector

* Constantized config actions to use in contract saga.

* Interact explorer UI, no functionality

* Convert to constants, hook up errors

* Deploy and style cleanup.

* Remove unnecessary class.

* Fix flow errors with css modules

* Attempt at fixing all newly introduced flow errors in the contracts branch.

* Removed unused validator.

* Remove action constants, fix flow specificity in reducers

* Fix unit tests

* Move network contracts out of redux / sagas, and read directly from state with a selector in mapStateToProps.

* Fix initialState -> INITIAL_STATE rename

* foreach push -> concat
2017-07-27 19:31:59 -05:00

60 lines
1.5 KiB
JavaScript

// @flow
import * as generateWallet from './generateWallet';
import type { State as GenerateWalletState } from './generateWallet';
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';
import * as wallet from './wallet';
import type { State as WalletState } from './wallet';
import * as customTokens from './customTokens';
import type { State as CustomTokensState } from './customTokens';
import * as rates from './rates';
import type { State as RatesState } from './rates';
import * as contracts from './contracts';
import type { State as ContractsState } from './contracts';
import { reducer as formReducer } from 'redux-form';
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
export type State = {
// Custom reducers
generateWallet: GenerateWalletState,
config: ConfigState,
notifications: NotificationsState,
ens: EnsState,
wallet: WalletState,
customTokens: CustomTokensState,
rates: RatesState,
contracts: ContractsState,
// Third party reducers (TODO: Fill these out)
form: Object,
routing: Object
};
export default combineReducers({
...generateWallet,
...config,
...swap,
...notifications,
...ens,
...wallet,
...customTokens,
...rates,
...contracts,
form: formReducer,
routing: routerReducer
});