Skip to content

v0.9.0

Compare
Choose a tag to compare
@Jannis Jannis released this 11 Apr 23:29

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.