{"id":19510517,"url":"https://github.com/felixkamau/voting-system-smart-contract","last_synced_at":"2025-07-07T01:35:29.721Z","repository":{"id":253841033,"uuid":"844616056","full_name":"felixkamau/voting-system-smart-contract","owner":"felixkamau","description":"A Hardhat project for a decentralized voting system smart contract, allowing for candidate registration, voting, and determining the winner. Includes deployment  using Hardhat Ignition.","archived":false,"fork":false,"pushed_at":"2024-08-19T19:42:11.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T11:47:27.058Z","etag":null,"topics":["hardhat","hardhat-deployment","smart-contracts","solidity-contracts"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/felixkamau.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}},"created_at":"2024-08-19T16:11:49.000Z","updated_at":"2024-08-19T19:43:13.000Z","dependencies_parsed_at":"2024-08-19T23:23:51.442Z","dependency_job_id":null,"html_url":"https://github.com/felixkamau/voting-system-smart-contract","commit_stats":null,"previous_names":["felixkamau/voting-system-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixkamau%2Fvoting-system-smart-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixkamau%2Fvoting-system-smart-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixkamau%2Fvoting-system-smart-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixkamau%2Fvoting-system-smart-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixkamau","download_url":"https://codeload.github.com/felixkamau/voting-system-smart-contract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761142,"owners_count":19853256,"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":["hardhat","hardhat-deployment","smart-contracts","solidity-contracts"],"created_at":"2024-11-10T23:16:09.083Z","updated_at":"2025-02-25T23:12:49.998Z","avatar_url":"https://github.com/felixkamau.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voting Smart Contract Solidity\n\n## Description\n\nThis repository contains a Hardhat project for a decentralized voting system smart contract. The `Voting` contract uses OpenZeppelin's `Ownable` for ownership management and supports candidate registration, voting, and winner determination. The project includes deployment scripts using Hardhat Ignition and testing.\n\n## Features\n\n- **Candidate Registration**: Add and manage candidates.\n- **Voting**: Users can vote for candidates.\n- **Winner Determination**: Determine the candidate with the most votes.\n- **Deployment**: Uses Hardhat Ignition for deployment.\n- **Testing**: Includes tests to verify contract functionality.\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v18 or later recommended)\n- [Hardhat](https://hardhat.org/)\n- [OpenZeppelin Contracts](https://docs.openzeppelin.com/contracts/4.x/)\n\n### Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/yourusername/hardhat-voting-system.git\n    cd hardhat-voting-system\n    ```\n\n2. Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n### Running Tests\n\nRun the following command to execute tests:\n\n```bash\nnpx hardhat test\n```\n\n### Deployment\n\nDeploy the contract to a local Hardhat network:\n\n1. Start Hardhat Network:\n\n    ```bash\n    npx hardhat node\n    ```\n\n2. Deploy Contract:\n\n    In a new terminal, run:\n\n    ```bash\n    npx hardhat ignition deploy ./ignition/modules/VotingSystem.js --network localhost\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixkamau%2Fvoting-system-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixkamau%2Fvoting-system-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixkamau%2Fvoting-system-smart-contract/lists"}