graph init
now has two modes:--from-example
creates a subgraph from the example subgraph.--from-contract
creates a subgraph from an existing contract, fetching the contract ABI from Etherscan if possible, and creating entities for all events emitted by the contract.- If not all arguments for one of these modes are provided,
graph init
will guide the user through an interactive form.
graph codegen
now handles indexed event parameters correctly.- There is a subgraph migration framework in place now to automatically update subgraphs to the latest APIs if possible. This can be skipped with
--skip-migrations
. graph codegen
now supportsBigDecimal
for large decimal numbers.- Other changes:
- Rewrite CLI commands using Gluegun.
- Add progress indicators.
- Make output formatting more consistent.
- Add tests for the new
graph init
. - Warn if manifests contain the example subgraph repository and description.
- Add Prettier.