maci-subgraph
A subgraph to index data from MACI protocol to serve as data layer for frontend integration
Screenshots




Problem Statement
When I first joined the hackathon, I would like to build a frontend to integrate with MACI contract to manage voting rounds and all the functionality of the MACI protocol, but It's quite hard to retrieve the data directly in the contracts, manage the state transition from any events emitted from the contracts, and doing so is also not efficient in term of performance in the frontend.Then, I decided to build a data layer for every frontend developers can be build on top of the subgraph, so they can focus mainly on the integration with the protocol and fetch all of required data from a single Graphql endpoint. It's nothing quite innovative or fancy solution, but it helps developers a lot to quickly bootstrap their project, and not overwhelming on handling different sources of data.
Solution
This project made purely from the graph protocol - the main ingredient, and a few toppings - some configurations, scripts from "semaphore subgraph", custom events and calls handler, and docker compose file for easy bootstrap the graph node in the local machine, and of course some love and contribution to the protocol, which I created PR at https://github.com/privacy-scaling-explorations/maci/pull/1203
Hackathon
Circuit Breaker
2024
Prizes
- 🏆
MACI
Privacy + Scaling Explorations
Contributors
- weijiekoh
957 contributions
- ctrlc03
596 contributions
- 0xmad
340 contributions
- dependabot[bot]
194 contributions
- kendricktan
170 contributions
- corydickson
163 contributions
- samajammin
137 contributions
- baumstern
109 contributions
- chaosma
98 contributions
- ChihChengLiang
40 contributions
- xuhcc
36 contributions
- kittybest
34 contributions
- daodesigner
12 contributions
- yuetloo
12 contributions
- spengrah
8 contributions
- kobigurk
5 contributions
- barryWhiteHat
5 contributions
- brendanww
4 contributions
- omahs
4 contributions
- GalRogozinski
3 contributions
- johnson86tw
3 contributions
- hmrtn
2 contributions
- ksaitor
2 contributions
- momodaka
2 contributions
- maxgrok
2 contributions
- Luker501
2 contributions
- Amit0617
2 contributions
- aspiers
2 contributions
- wiasliaw
1 contributions
- tgolang
1 contributions