v0.10.0
Dynamic data sources
Also referred to as dynamic contract subscriptions, as this is currently the main use case.
This feature supports creating new data sources from templates while indexing the subgraph. The motivation behind this is to provide a natural way of indexing registry/factory contracts that reference many other (sub)contracts.
See Define a Subgraph: Dynamic Data Sources in the docs for more details.
On the Graph CLI side of things, validation of data source templates and code generation for data source templates were added.
Anonymous events
Anonymous Solidity events are used by projects like Maker. Supporting them requires filtering events not by their usual signature (e.g. Transfer(address,address)
) but by their topic 0 value.
This version adds support for that by allowing event handlers to specify the topic0
value to filter by. For more information see Define a Subgraph: Anonymous Events in the docs.
Other changes
- Make the
keytar
dependency optional. Thanks to @iameli from Livepeer for the contribution! - Add support for overloaded events and functions by generating code without duplicate types.
- Fix loading subgraphs in
--watch
mode. - Bump AssemblyScript to AssemblyScript/assemblyscript@36040d5b5312f19a025782b5e366.
- Add ESLint configuration.