mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
088d4c34f1
* Remove network config store * Remove inline networks variable in network controller * Re-key network controller 'rpcTarget' to 'rpcUrl' * Require chainId in lookupNetwork, implement eth_chainId * Require chain ID in network form * Add alert, migrations, and tests * Add chainId validation to addToFrequentRpcList * Update public config state selector to match new network controller state * Use network enums in networks-tab.constants * Ensure chainId in provider config is current * Update tests
24 lines
954 B
JavaScript
24 lines
954 B
JavaScript
import { combineReducers } from 'redux'
|
|
import { ALERT_TYPES } from '../../../app/scripts/controllers/alert'
|
|
import metamaskReducer from './metamask/metamask'
|
|
import localeMessagesReducer from './locale/locale'
|
|
import sendReducer from './send/send.duck'
|
|
import appStateReducer from './app/app'
|
|
import confirmTransactionReducer from './confirm-transaction/confirm-transaction.duck'
|
|
import gasReducer from './gas/gas.duck'
|
|
import { invalidCustomNetwork, unconnectedAccount } from './alerts'
|
|
import historyReducer from './history/history'
|
|
|
|
export default combineReducers({
|
|
[ALERT_TYPES.invalidCustomNetwork]: invalidCustomNetwork,
|
|
[ALERT_TYPES.unconnectedAccount]: unconnectedAccount,
|
|
activeTab: (s) => (s === undefined ? null : s),
|
|
metamask: metamaskReducer,
|
|
appState: appStateReducer,
|
|
history: historyReducer,
|
|
send: sendReducer,
|
|
confirmTransaction: confirmTransactionReducer,
|
|
gas: gasReducer,
|
|
localeMessages: localeMessagesReducer,
|
|
})
|