Environment

Redux devtool injection

also remove UPDATE_METAMASK_STATE in case of frequent various updates. In ui/app/store.js:

import { composeWithDevTools } from 'remote-redux-devtools'

const composeEnhancers = composeWithDevTools({
  realtime: true,
  port: 55555,
  host: 'localhost',
  actionsBlacklist: [
    'UPDATE_METAMASK_STATE',
  ]
})

const middlewares = [thunkMiddleware, loggerMiddleware]

// const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore)
const createStoreWithMiddleware = composeEnhancers(applyMiddleware(...middlewares))(createStore)

Here, a local RemoteDev server is used instead of the default server (on Heroku, btw), which tends to be slow. It is launched by remotedev --hostname=localhost --port=55555.

PoC

Here are some early results of tweaking the code.

app/scripts/

Quick example: auto enter password

ui/app/components/pages/unlock-page/unlock-page-component.js

  constructor (props) {
    super(props)

    this.state = {
-     password: '',
+     password: '12345678',
      error: null,
    }

    this.submitting = false
    this.animationEventEmitter = new EventEmitter()
  }

Ref. Redux, immutable