tangle-network / gadget

A framework for building modular AVS and Tangle Blueprints: https://docs.tangle.tools/developers/blueprints.
https://tangle.tools
Apache License 2.0
12 stars 3 forks source link

Event Listener Upgrade + Wrapper Types + sdk::main macro #333

Closed tbraun96 closed 5 days ago

drewstone commented 1 week ago

Points of feedback from meeting:

  1. Event listener is required, move existing defaults out and into the SDK as options to choose from out of the box.
  2. Aim for as little extra code as needed on Blueprint developer for specifying their event listeners. Less is more.
  3. Docs for each section of event listeners: EVM Contract listeners, Tangle listener, Periodic Listeners, and ways to extend and build Custom Listeners on top of this.
  4. Docs inside tangle-docs.
tbraun96 commented 1 week ago

There is still more work to be done here for sure, but I believe we are deviating from the original goal of this PR which is to support other even watchers other than the default ones (Substrate, EVM), and other types of Event Handlers, so why not adopting what we currently have and add more events watcher, like the common ones we see would be good for other blueprints?

My latest commit after your comment addresses this concern.