Collection of Subgraphs to support the usage of the BarnBridge type of DAOs like the LeagueDAO one
Open the docker-compose.yml file and edit the ethereum node url you want to use.
There are npm scripts for all the stages of subgraph development.
- Building the subgraph (code generation + creating the subgraph):
npm build - Deploying to the Local Graph Node:
npm run deploy:local --config={config.json} - Deploying to the Rinkeby Graph Node:
npm run deploy:rinkeby --config={config.json} --ipfs_node_ip={ip} --graph_node_ip={ip} - Deploying to the Mainnet Graph Node:
npm run deploy:mainnet --config={config.json} --ipfs_node_ip={ip} --graph_node_ip={ip}Where{config.json}is the file name of the config you want to deploy. F.e if you want to deploy locally the mainnet config execute:npm run deploy:local --config=mainnet.json&&ipfs_node_ipandgraph_node_ipare the ips where your nodes are deployed on
- Overview Info
- Get All Proposals
- Get Proposal by ID
- Get all Votes for a given Proposal ID
- Get all Events for a given Proposal ID
- Get all Voters
- Get all Abrogation Proposals
- Get Abrogation Proposal by ID
- Get Abrogation Proposal Votes by ID