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