Skip to content

Latest commit

 

History

History

v3-subgraph

DAOhaus v3 Subgraph

The v3 subgraph currently supports goerli. It's deployed here: https://api.thegraph.com/subgraphs/name/hausdao/daohaus-v3-goerli/graphql

Local Development

TBD

Subgraph yaml Generation

nx run v3-subgraph:generate-config --network=goerli nx run v3-subgraph:generate-config --network=xdai nx run v3-subgraph:generate-config --network=mainnet

Supported Networks:

  • goerli
  • gnosis
  • mainnet

Generate Subgraph Code

To generate subgraph code, run the following command:

nx run v3-subgraph:generate-code

Deployment

nx run v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-goerli --network=goerli nx run v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-gnosis --network=xdai

mainnet deployment to studio

cd apps/v3-subgraph graph deploy --studio daohaus-v3

todo: get this nx command running: nx run v3-subgraph:graph-deploy-studio --name=daohaus-v3 --network=mainnet

These require installing the graph cli locally and auth tokens for deployment to the hosted service or studio subgraphs npm install -g @graphprotocol/graph-cli

Supported names:

  • hausdao/daohaus-v3-goerli
  • hausdao/daohaus-v3-gnosis
  • daohaus-v3