|
|
@ -29,6 +29,8 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => { |
|
|
|
dispatch(resetProxyDeployments()) |
|
|
|
dispatch(resetProxyDeployments()) |
|
|
|
if (!context.startsWith('vm')) getNetworkProxyAddresses(plugin, dispatch) |
|
|
|
if (!context.startsWith('vm')) getNetworkProxyAddresses(plugin, dispatch) |
|
|
|
setFinalContext(plugin, dispatch) |
|
|
|
setFinalContext(plugin, dispatch) |
|
|
|
|
|
|
|
fillAccountsList(plugin, dispatch) |
|
|
|
|
|
|
|
updateAccountBalances(plugin, dispatch) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
plugin.blockchain.event.register('networkStatus', ({ error, network }) => { |
|
|
|
plugin.blockchain.event.register('networkStatus', ({ error, network }) => { |
|
|
@ -127,11 +129,6 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => { |
|
|
|
dispatch(fetchAccountsListSuccess(accountsMap)) |
|
|
|
dispatch(fetchAccountsListSuccess(accountsMap)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
plugin.on('blockchain', 'contextChanged', () => { |
|
|
|
|
|
|
|
fillAccountsList(plugin, dispatch) |
|
|
|
|
|
|
|
updateAccountBalances(plugin, dispatch) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
setInterval(() => { |
|
|
|
fillAccountsList(plugin, dispatch) |
|
|
|
fillAccountsList(plugin, dispatch) |
|
|
|
updateInstanceBalance(plugin, dispatch) |
|
|
|
updateInstanceBalance(plugin, dispatch) |
|
|
|