15 lines
523 B
JavaScript
Raw Normal View History

2018-06-01 12:45:11 -04:00
import web3 from "Embark/web3"
import EmbarkJS from 'Embark/EmbarkJS'
import store from './configureStore'
2018-08-14 10:10:31 -04:00
import { fetchAndDispatchSNTAllowance, fetchAndDispatchAccountsWithBalances, checkAndDispatchStatusContactCode } from '../actions/accounts'
2018-06-01 12:45:11 -04:00
const dispatch = action => store.dispatch(action)
export default () => {
__embarkContext.execWhenReady(async () => {
fetchAndDispatchAccountsWithBalances(web3, dispatch)
2018-07-18 14:16:20 -04:00
checkAndDispatchStatusContactCode(dispatch)
2018-08-14 10:10:31 -04:00
fetchAndDispatchSNTAllowance(dispatch)
2018-06-01 12:45:11 -04:00
})
}