Skip to content

temarusanov/subgraph-boilerplate

Repository files navigation

TheGraph subgraph boilerplate

Subgraph boilerplate mostly inspired by Perpetual Protocol subgraphs.

Features

  • 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

Deployment

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

License

MIT

About

TheGraph subgraph boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published