Closed asgeir-s closed 1 year ago
Process:
ProposalQuestionCreated
event, must trigger an Autotask.ProposalQuestionCreated
event that triggers the Sentinel that triggers the Autotask.LogNewAnswer
event from the Oracle, and filters based on the question ID.Cleanup:
The current implementation only adds monitoring for the
ProposalQuestionCreated
event.We should probably add monitoring for other events, like:
~This requires us to get a callback when new questions are created for a Reality Module so that we can get the question ID to set up a new sentinel (new monitoring). If we are going to do this, we also have to save the user's API key and the secret for use later when setting up monitoring for specific questions.~
It looks like we can use Defender Autotasks for this: https://docs.openzeppelin.com/defender/autotasks