This is the template subgraph for developing your own subgraphs.
You may need to clean up the repo first. Check out the entities
directory together with the schema.graphql
file and delete the unnecessary files.
To generate the entities from schema, run
npm run codegen
To build the mappings and compiled entities, execute
npm run build
Or you may do everything at once via
npm run compile
To run the tests use
npm run test
The deployment scripts and corresponding endpoints are specified in the package.json
file.
In order to deploy the subgraph you will need:
- Either The Graph node deployment endpoint + IPFS endpoint
- Or hosted service product name
- Or studio product name
Don't forget to update the .env.example
.