Update assessments by listening to events
Feature Description
Stage-changes in assessments trigger updates in the dashboard.
Motivation and Context
so that users know when they need to act
Possible Implementation
each assessment that is current or potential installs a watcher (or maybe just one watcher whose filter is being updated)
whenever an event comes in it dispatches an update-assessment-action, which changes the state accordingly.
Potential trouble:
I think metamask does not yet support subscriptions as done in web3-1.x. So either we switch back to pre1.0 OR (my favorized option) we use a websocket to fetch the events via our own infura-node.
@jaredpereira , can you provide more detail on how this latter option would be implemented.
Edited by Antoine Estienne