github graphprotocol/graph-tooling v0.9.0

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

Ethereum tuples / Solidity structs

This release adds support for Ethereum tuples (or structs in Solidity). graph codegen now generates classes with getter properties for the members of a struct/tuple.

E.g. for a Solidity struct like

struct ValuableItem {
  address owner;
  uint256 price;
}

it generates a class where owner and price can be accessed with

let owner = item.owner
let price = item.price

This also works if structs are used as event parameters. Nested structs are also supported.

Don't miss a new graph-tooling release

NewReleases is sending notifications on new releases.