This repository contains the code for the Audius Network Subgraph using The Graph.
The staging playground and mainnet playground of the subgraph can be explored through the graph's explorer tool.
- Set up a subgraph repo
- Figure out local dev
- Take a stab at writing the initial Data Models (Check out schema.graphql, except gov)
- Get the team from the graph to review data models
- Finish writing all the mapping from events (excluding gov.)
- Write docs for the team on how to dev locally
- Write docs for the team on how The Graph works
- Add way more comments to the code
- Demo The Graph to the team - ideally on staging or could use the local setup and screenshare
- Automate the tooling to generate the config (json file w/ addresses)
- Move the ABIs to be imported from the @audius/libs npm package (instead of manually moving to the abis folder)
- Figure out the deploy process for staging
- Figure out the deploy process for prod
- Write a test suite
- Automate tests w/ CI
- Add CD
- Figure out data models for Governance
- Write mappings for Governance
There are two locations to deploy the subgraph:
- The graph team's hosted solution
- The graph main-net
npm run prepare:prod
npm run deploy:prod
You can then view the subgraph and watch it sync: https://thegraph.com/explorer/subgraph/audius-infra/audius-network-mainnet
TODO
Check out the docs from The Graph for more information