https://github.com/aave/governance-v2-subgraph
https://github.com/aave/governance-v2-subgraph
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/aave/governance-v2-subgraph
- Owner: aave
- Created: 2020-12-18T14:50:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-30T20:27:18.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T10:04:15.923Z (about 1 year ago)
- Language: TypeScript
- Size: 318 KB
- Stars: 14
- Watchers: 5
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subgraph for Aave Protocol V2
https://thegraph.com/hosted-service/subgraph/aave/governance-delegation
## Development
```bash
# copy env and adjust its content
cp .env.test .env
# fetch current contracts as submodule
npm run prepare:all
# run codegen
npm run subgraph:codegen
# now you're able to deploy to thegraph via
npm run deploy:hosted:mainnet
```
## Deployment
To be able to deploy the subgraph in any environment for any network first we will need to prepare the local env:
- get the governance v2 contracts and compile them
```
npm run prepare:contracts
```
### Hosted
To be able to deploy to the hosted solution you will need to create a .env file and add `ACCESS_TOKEN` environment variable. You can find this in the dashboard of the TheGraph
```
// For Kovan:
npm run deploy:hosted:kovan
// For Mainnet:
npm run deploy:hosted:mainnet
```