github graphprotocol/graph-tooling v0.10.0

latest releases: @graphprotocol/graph-cli@0.71.2, @graphprotocol/graph-cli@0.71.1, @graphprotocol/graph-ts@0.35.1...
5 years ago

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.

Don't miss a new graph-tooling release

NewReleases is sending notifications on new releases.