Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 789 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 789 Bytes

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