maci
maci copied to clipboard
feat(subgraph): add subgraph module for indexing data
Description
Add subgraph module and integrate into the workspace with the following functionality:
- support multiple network's deployment
- automate saved deployment into
networks.json
file for generatingsubgraph.yaml
- index all
Poll
related events, which has been deployed from theMACI
contract instance
Additional Notes
every deployment of MACI contracts will be automatically updated the networks.json
file, but you need to manually generate the subgraph.yaml
by running pnpm run codegen:local
in the subgraph directory
There is also some limitation of current implementation including:
- missing some properties to serve as complete data layer for MACI due to only indexing the events, not yet include the call function's handler
- missing test scripts
All of those will be improved later on while review the PR
Related issue(s)
Not related to any issue
Confirmation
- [x] I have read and understand MACI's contributor guidelines and code of conduct.
- [x] I have read and understand MACI's GitHub processes.
- [x] I have read and understand MACI's testing guide.
Deploy Preview for maci-typedoc ready!
Name | Link |
---|---|
Latest commit | ed12ff8f8d4d3aa6e81db779b63a4bbc72ec6e14 |
Latest deploy log | https://app.netlify.com/sites/maci-typedoc/deploys/65f973be6e8c3e000868b737 |
Deploy Preview | https://deploy-preview-1203--maci-typedoc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
UPDATED
We no longer need to manually generate the subgraph.yaml
file with pnpm run codegen:local
command, which is also be removed from the script. it will automatically generate the file before deploying to the graph with specificed --network
flag
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
maci-website | ✅ Ready (Inspect) | Visit Preview | Jun 6, 2024 10:33pm |
sorry, click on the wrong button, please help remove the review request
@hangleang could you rebase and fix the pnpm-lock conflict please?
please check the latest commit, update recording to the contract changes
Congrats, your important contribution to this open-source project has earned you a GitPOAP!
GitPOAP: 2024 MACI Contributor:

Head to gitpoap.io & connect your GitHub account to mint!
Learn more about GitPOAPs here.