Hi I'm trying to handle this simple use case through Relay, Sentinel and Autotask
- Listen for events from a certain contract
- If this event parameters are matching filter conditions, execute a contract txn from Relayer using the event info
In Sentinel, I can define Custom Conditions through Autotask, however it says "Note: This Autotask should only be used for filtering transactions." and expects a filtered array as a result instead.
Is there a way to trigger Autotask when a matching event happens, and execute the txn instead through Relay?
One way is to create an event listener on another service and call the Autotask through webhook, but it feels like there has to be a way to do this within the Defender environment only.
Environment
Details
Code to reproduce