{"id":30111237,"url":"https://github.com/carlbarrdahl/conviction-voting","last_synced_at":"2026-03-06T18:03:17.436Z","repository":{"id":69723725,"uuid":"352552304","full_name":"carlbarrdahl/conviction-voting","owner":"carlbarrdahl","description":"Off-chaing Conviction Voting using Ceramic, IDX and TheGraph","archived":false,"fork":false,"pushed_at":"2021-03-30T18:24:43.000Z","size":744,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T12:15:06.875Z","etag":null,"topics":["ceramic","dapp","idx","thegraphprotocol"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carlbarrdahl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-29T07:23:18.000Z","updated_at":"2022-01-20T11:49:45.000Z","dependencies_parsed_at":"2023-03-10T07:15:54.952Z","dependency_job_id":null,"html_url":"https://github.com/carlbarrdahl/conviction-voting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlbarrdahl/conviction-voting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Fconviction-voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Fconviction-voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Fconviction-voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Fconviction-voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlbarrdahl","download_url":"https://codeload.github.com/carlbarrdahl/conviction-voting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Fconviction-voting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30189483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T17:33:53.563Z","status":"ssl_error","status_checked_at":"2026-03-06T17:33:51.678Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ceramic","dapp","idx","thegraphprotocol"],"created_at":"2025-08-10T05:31:15.696Z","updated_at":"2026-03-06T18:03:17.399Z","avatar_url":"https://github.com/carlbarrdahl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decentralized Conviction Voting using Ceramic\n\n![](ceramic_voting.png)\n\nInspired by:\nhttps://blog.ceramic.network/trust-minimized-off-chain-conviction-voting\n\n### Snapshot service\n\nNode.js app deployed to Vercel with Github Actions to trigger function with cron job every x hours.\n\n- Fetch all token holders using TheGraph\n- Convert each holder address to DID\n- Get convictions for DID with IDX\n- Get proposals from convictions\n- Calculate total conviction per proposal\n- Calculate required convition per proposal\n- Update state doc\n\n* `npm run bootstrap` generates schemas and definitions used\n* `npm run schema:ts` converts json-schema to Typescript types\n* Server route `GET /config` returns snapshot did, definitions and schemas\n* Server route `POST /snapshot` triggers an update for the ConvictionState (triggered from Github Actions cron job)\n* Server route `POST /proposal` add a user-created proposal to the convcition state (so we don't have to wait for update trigger)\n\n### Voting app\n\nReact app UI to create, list and vote for proposals.\n\n- Call snapshot service for config (service did, definitions and schemas)\n- Get conviction state for did and list proposals\n- Sign in with Ethereum wallet (account address is used to map token balances)\n- Create proposal\n- Vote for proposals by allocation a fraction of tokens\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlbarrdahl%2Fconviction-voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlbarrdahl%2Fconviction-voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlbarrdahl%2Fconviction-voting/lists"}