Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audiusproject/audius-subgraph
The subgraph, the smart contracts, the tests, and documents for the Audius Explorer Decentralized Application
https://github.com/audiusproject/audius-subgraph
Last synced: about 1 month ago
JSON representation
The subgraph, the smart contracts, the tests, and documents for the Audius Explorer Decentralized Application
- Host: GitHub
- URL: https://github.com/audiusproject/audius-subgraph
- Owner: AudiusProject
- License: other
- Created: 2021-01-21T20:50:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T19:19:54.000Z (10 months ago)
- Last Synced: 2024-02-12T20:34:22.920Z (10 months ago)
- Language: TypeScript
- Size: 1020 KB
- Stars: 4
- Watchers: 6
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: changelog/1.json
- License: LICENSE
Awesome Lists containing this project
README
# Audius Subgraph
This repository contains the code for the Audius Network Subgraph using [The Graph](https://thegraph.com/).The [staging playground](https://thegraph.com/explorer/subgraph/audius-infra/audius-network-ropsten) and [mainnet playground](https://thegraph.com/explorer/subgraph/audius-infra/audius-network-mainnet) of the subgraph can be explored through the graph's explorer tool.
## TODO
- [x] Set up a subgraph repo
- [x] Figure out local dev
- [x] Take a stab at writing the initial Data Models (Check out schema.graphql, except gov)
- [x] Get the team from the graph to review data models
- [x] Finish writing all the mapping from events (excluding gov.)
- [x] 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
- [x] 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)
- [x] 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## Deploying the subgraph
There are two locations to deploy the subgraph:
- The graph team's hosted solution
- The graph main-net### Hosted
```
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### Main-net
TODO## Reference
Check out the docs from [The Graph](https://thegraph.com/docs/) for more information