Simple Windows Batch Script to automate the creation of a subgraph. Useful when deploying to EVM chains without native the Graph support. Returns basic handlers, schema and subgraph as per Graph-CLI behaviour. Does not deploy or codegen.
- Run
yarn global add @graphprotocol/graph-cliornpm install -g @graphprotocol/graph-cli.
- Drag abi .json files to
/abis. - Optionally edit the
generatefile and change the default owner in the subgraph name. - Run
generateon the root directory. - Edit address, startBlock, chain information, etc ...