Templates
In many cases there are contracts that should be tracked but their addresses are not known right away so they can't be configured in static config. Templates make it possible to define templates for such contracts that can be dynamically turned into sources whenever writer becomes aware of new contract's existence - for example when new contract has been deployed through factory.
Defining templates
Templates are defined in config and each template has a name that is later used when executing it.
Sample config might look like this:
Executing templates
After template is defined it can be executed in any writer to start tracking specific contract address for events defined in that template:
Once template has been executed all events defined in that template will be tracked for given contract address.
Last updated