2018-06-01 12:45:11 -04:00
|
|
|
import web3 from "Embark/web3"
|
|
|
|
import EmbarkJS from 'Embark/EmbarkJS'
|
|
|
|
import store from './configureStore'
|
2018-10-01 16:41:02 -04:00
|
|
|
import { fetchAndDispatchSNTAllowance, fetchAndDispatchAccountsWithBalances } from '../actions/accounts'
|
2018-06-01 12:45:11 -04:00
|
|
|
|
|
|
|
const dispatch = action => store.dispatch(action)
|
|
|
|
|
|
|
|
export default () => {
|
2018-09-28 15:12:52 -04:00
|
|
|
EmbarkJS.onReady(async (err) => {
|
2018-06-01 12:45:11 -04:00
|
|
|
fetchAndDispatchAccountsWithBalances(web3, dispatch)
|
2018-08-14 10:10:31 -04:00
|
|
|
fetchAndDispatchSNTAllowance(dispatch)
|
2018-06-01 12:45:11 -04:00
|
|
|
})
|
|
|
|
}
|