Subscribing To Triggers
In order to subscribe to one or more of these triggers, one must implement and export a "register" function.
In the above example, after implementing myEthTask
and myPolygonTask
functions, we bind them to trigger handlers.
Don't worry about the
engine
object. You can assume it is provided by the backend process at run-time.You may bind each of your task functions to one or more triggers. This gives you the flexibility, for example, to run the same task on different networks with different configurations.
Last updated