Subgraph implementation for DXdao contracts.
For more information see the docs on https://thegraph.com/docs/.
You need to have docker
and docker-compose
installed
After cloning the repo:
yarn install
yarn codegen # Should run automatically on yarn install as well
yarn build
sudo ./setup-linux.sh
-
Follow the build steps above.
-
Set up the front-end repo and run it in the background
-
Run docker
sudo docker compose up
# For local deployments
yarn create-local
yarn deploy-local
# For graph Hosted Service
# 1. Create the subgraph on the Graph Dashboard: https://thegraph.com/hosted-service/dashboard
# 2. Authenticate with the hosted service API.
graph auth --product hosted-service <api-key>
# 3. Deploy the subgraph
yarn deploy