Subgraph boilerplate mostly inspired by Perpetual Protocol subgraphs.
- Auto complete configs and constants with mustache
- Clean deploy and codegen
- Example on ERC20 Transfer event
- Release it with semantic-release
- Format code with prettier
Move to LTS nodejs version
nvm use
Install dependencies
npm i
Set authorization token
npx graph auth --product hosted-service <YOUR_THE_GRAPH_ACCESS_TOKEN>
Deploy your subgraph
npm run deploy:mainnet