You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
613 B
24 lines
613 B
// test and development environment variables
|
|
const env = process.env.METAMASK_ENV
|
|
const METAMASK_DEBUG = process.env.METAMASK_DEBUG
|
|
const { DEFAULT_NETWORK, MAINNET } = require('./controllers/network/enums')
|
|
|
|
/**
|
|
* @typedef {Object} FirstTimeState
|
|
* @property {Object} config Initial configuration parameters
|
|
* @property {Object} NetworkController Network controller state
|
|
*/
|
|
|
|
/**
|
|
* @type {FirstTimeState}
|
|
*/
|
|
const initialState = {
|
|
config: {},
|
|
NetworkController: {
|
|
provider: {
|
|
type: (METAMASK_DEBUG || env === 'test') ? DEFAULT_NETWORK : MAINNET,
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = initialState
|
|
|