aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/first-time-state.js
blob: 0c8f35303561e487ac5b9506cfecce6a232220fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// test and development environment variables
const env = process.env.METAMASK_ENV
const METAMASK_DEBUG = process.env.METAMASK_DEBUG

/**
 * @typedef {Object} FirstTimeState
 * @property {Object} config Initial configuration parameters
 * @property {Object} NetworkController Network controller state
 */

/**
 * @type {FirstTimeState} The default state of MetaMask
 */
const initialState = {
  config: {},
  NetworkController: {
    provider: {
      type: (METAMASK_DEBUG || env === 'test') ? 'rinkeby' : 'mainnet',
    },
  },
}

module.exports = initialState