Description

As an avid user of Gitcoin, I'm excited to see how their DAO works out. I follow their hackathons, bounties, and activities quite closely. This project uses The Graph to try map out the delegates/delegatee relationship as I saw that other DAOs use the graph as some sort of database backend to monitor the health of the DAO. So as Gitcoin just started releasing their governance tokens, this can serve as the starting point for a data monitoring service for a very popular piece of Ethereum's ecosystem.

Gitcoin Delegation Graph showcase

How it's made

This project uses The Graph's tools. Mainly graph-cli. However for this project to come together, we need etherscan for the contract ABIs and checking that the graph is correct, typescript for the mappings, and typical ethereum devtools like ganache and truffle. The steps were. 1. Find the right smart contract 2. Use graph-cli to generate the initial documents 3. Define a schema 4. Look at the generated schemas that you can check for entities/ events 5. Set up the right mapping. (but first STUDY THE SMART CONTRACT CLOSELY) I wasted quite a lot of time looking at the wrong event. 6. Set up an account on The Graph 7. Set up your github repo 8. Use graph-cli to deploy it! The subgraph goes up onto ipfs and shows up on The Graph's explorer. It then syncs with the blockchain 9. voila! disclaimer: this is my first time using The Graph so I am still trying my best to see what I can do!

Technologies used

EthereumphotoshopRemix