maci icon indicating copy to clipboard operation
maci copied to clipboard

feat(subgraph): add subgraph module for indexing data

Open hangleang opened this issue 1 year ago • 4 comments

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 generating subgraph.yaml
  • index all Poll related events, which has been deployed from the MACI 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

hangleang avatar Feb 18 '24 11:02 hangleang

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Feb 18 '24 11:02 netlify[bot]

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

hangleang avatar Feb 21 '24 03:02 hangleang

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

vercel[bot] avatar Mar 20 '24 14:03 vercel[bot]

sorry, click on the wrong button, please help remove the review request

hangleang avatar Mar 22 '24 05:03 hangleang

@hangleang could you rebase and fix the pnpm-lock conflict please?

ctrlc03 avatar Jun 04 '24 10:06 ctrlc03

please check the latest commit, update recording to the contract changes

hangleang avatar Jun 04 '24 12:06 hangleang

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 MACI Contributor:

GitPOAP: 2024 MACI Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

gitpoap-bot[bot] avatar Jun 07 '24 07:06 gitpoap-bot[bot]