{"id":20011225,"url":"https://github.com/mgnfy-view/caster","last_synced_at":"2025-08-02T01:36:52.922Z","repository":{"id":250195563,"uuid":"833612868","full_name":"mgnfy-view/caster","owner":"mgnfy-view","description":"Caster is a merkle tree based efficient, general purpose voting protocol which also supports fractional vote delegation","archived":false,"fork":false,"pushed_at":"2024-10-04T04:49:49.000Z","size":55,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T11:51:39.361Z","etag":null,"topics":["delegation","ethereum","general-purpose","layer2","smart-contracts","solidity","voting-system"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgnfy-view.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-07-25T11:58:03.000Z","updated_at":"2025-02-21T03:09:43.000Z","dependencies_parsed_at":"2024-11-13T07:28:59.527Z","dependency_job_id":"b3efed51-fd48-47c9-80d8-31cd95d6d99c","html_url":"https://github.com/mgnfy-view/caster","commit_stats":null,"previous_names":["mgnfy-view/caster"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgnfy-view%2Fcaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgnfy-view%2Fcaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgnfy-view%2Fcaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgnfy-view%2Fcaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgnfy-view","download_url":"https://codeload.github.com/mgnfy-view/caster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252395205,"owners_count":21740986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["delegation","ethereum","general-purpose","layer2","smart-contracts","solidity","voting-system"],"created_at":"2024-11-13T07:24:50.882Z","updated_at":"2025-05-04T20:30:56.539Z","avatar_url":"https://github.com/mgnfy-view.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT SHIELDS --\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mgnfy-view/caster\"\u003e\n    \u003cimg src=\"images/icon.svg\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eCaster\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Caster is a merkle tree based efficient, general purpose voting protocol which also supports fractional vote delegation\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/mgnfy-view/caster/tree/main/docs\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/mgnfy-view/caster/issues/new?labels=bug\u0026template=bug-report---.md\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/mgnfy-view/caster/issues/new?labels=enhancement\u0026template=feature-request---.md\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nCaster is a general purpose, on-chain, merkle tree based voting protocol which also supports fractional vote delegation. Users can create voting campaigns in a permissionless manner by supplying a merkle root and the campaign params, and paying a fee of `0.001 ether`. Voting campaigns can be single option (rhetorical questions), or multiple option voting campaigns (select from an array of options). Whitelisted users eligible to vote in a campaign can mint themselves a unique voting id (Caster Nft) by verifying themselves as a part of the merkle tree. This Nft provides the voters with the voting power assigned by the campaign creator.\n\nVoters can delegate their votes to a single user or multiple users (fractional vote delegation). By default, votes are delegated to the voter itself and once the voter delegates to another user, they cannot be recovered.\n\nCampaigns run for a finite duration (less than 365 days, which is the max duration). At the end of each campaign, the result can be obtained using `CasterCampaign::getResultSingleOption()` or `CasterCampaign::getResultMultipleOption()` depending on the campaign type.\n\n### Built With\n\n- ![Foundry](https://img.shields.io/badge/-FOUNDRY-%23323330.svg?style=for-the-badge)\n- ![Solidity](https://img.shields.io/badge/Solidity-%23363636.svg?style=for-the-badge\u0026logo=solidity\u0026logoColor=white)\n- ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)\n- ![PNPM](https://img.shields.io/badge/pnpm-%234a4a4a.svg?style=for-the-badge\u0026logo=pnpm\u0026logoColor=f69220)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\n### Prerequisites\n\nMake sure you have git, node.js, and pnpm installed and configured on your system.\n\n### Installation\n\nClone the repo,\n\n```shell\ngit clone https://github.com/mgnfy-view/caster.git\n```\n\ncd into the repo, and install the necessary dependencies\n\n```shell\ncd caster\nforge test\npnpm intall\n```\n\nThat's it, you are good to go now!\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\n- [x] Smart contract development\n- [x] Unit tests\n- [x] Write Docs\n- [x] Write a good README.md\n\nSee the [open issues](https://github.com/mgnfy-view/caster/issues) for a full list of proposed features (and known issues).\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n\n\u003c!-- CONTACT --\u003e\n## Reach Out\n\nHere's a gateway to all my socials, don't forget to hit me up!\n\n[![Linktree](https://img.shields.io/badge/linktree-1de9b6?style=for-the-badge\u0026logo=linktree\u0026logoColor=white)][linktree-url]\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/mgnfy-view/caster.svg?style=for-the-badge\n[contributors-url]: https://github.com/mgnfy-view/caster/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/mgnfy-view/caster.svg?style=for-the-badge\n[forks-url]: https://github.com/mgnfy-view/caster/network/members\n[stars-shield]: https://img.shields.io/github/stars/mgnfy-view/caster.svg?style=for-the-badge\n[stars-url]: https://github.com/mgnfy-view/caster/stargazers\n[issues-shield]: https://img.shields.io/github/issues/mgnfy-view/caster.svg?style=for-the-badge\n[issues-url]: https://github.com/mgnfy-view/caster/issues\n[license-shield]: https://img.shields.io/github/license/mgnfy-view/caster.svg?style=for-the-badge\n[license-url]: https://github.com/mgnfy-view/caster/blob/master/LICENSE.txt\n[linktree-url]: https://linktr.ee/mgnfy.view","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgnfy-view%2Fcaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgnfy-view%2Fcaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgnfy-view%2Fcaster/lists"}