{"id":30094530,"url":"https://github.com/xriot45/devote-smartcontracts","last_synced_at":"2026-05-09T05:31:36.193Z","repository":{"id":303760749,"uuid":"1016199706","full_name":"xRiot45/devote-smartcontracts","owner":"xRiot45","description":"The Devote Smartcontracts contains Solidity-based smart contracts developed with Hardhat, handling all on-chain voting logic and immutable vote recording.","archived":false,"fork":false,"pushed_at":"2025-07-20T16:04:03.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T10:03:49.498Z","etag":null,"topics":["dapps","ethereum","hardhat","smart-contracts","solidity","typescript","voting-application","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/xRiot45.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":"2025-07-08T16:29:30.000Z","updated_at":"2025-07-20T16:04:06.000Z","dependencies_parsed_at":"2025-07-09T09:46:51.337Z","dependency_job_id":"4fa52d87-7a35-453c-911b-89bb5b447e41","html_url":"https://github.com/xRiot45/devote-smartcontracts","commit_stats":null,"previous_names":["xriot45/devote-smartcontracts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xRiot45/devote-smartcontracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xRiot45%2Fdevote-smartcontracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xRiot45%2Fdevote-smartcontracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xRiot45%2Fdevote-smartcontracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xRiot45%2Fdevote-smartcontracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xRiot45","download_url":"https://codeload.github.com/xRiot45/devote-smartcontracts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xRiot45%2Fdevote-smartcontracts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dapps","ethereum","hardhat","smart-contracts","solidity","typescript","voting-application","web3"],"created_at":"2025-08-09T10:56:24.192Z","updated_at":"2026-05-09T05:31:36.138Z","avatar_url":"https://github.com/xRiot45.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗳️ Devote Smartcontracts\n\nDevote Smartcontracts is a Solidity-based smart contract developed using the Hardhat framework. It powers the on-chain voting logic for the Devote platform and records each vote immutably on the blockchain while syncing voting activity with a backend off-chain API.\n\n## 🚀 Overview\n\nThis project contains a single contract `Voting.sol` that allows Ethereum wallet users to cast votes on pre-defined proposals. Voting is directly tied to wallet addresses, making every vote traceable on-chain and synced with backend services for additional data processing.\n\n## ⚙️ Features\n\n- On-chain vote recording\n- Each vote is tied to a wallet address\n- Off-chain syncing via backend API\n- Frontend integration using wagmi, ethers.js, and RainbowKit\n\n## 📁 Project Structure\n\n```\ncontracts/\n  └── Voting.sol         # Main smart contract\nscripts/\n  └── deploy.ts          # Deployment script\nhardhat.config.ts        # Hardhat configuration file\n```\n\n## 📦 Getting Started\n\n### 1. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 2. Compile Contracts\n\n```bash\nnpx hardhat compile\n```\n\n### 3. Deploy Contract (Local Network Example)\n\n```bash\nnpx hardhat run scripts/deploy.ts --network localhost\n```\n\n## 🧪 Testing\n\nThere are no unit tests included at this stage.\n\n## 💻 Frontend Integration\n\nThe smart contract is integrated into a frontend built with Next.js using the following libraries:\n\n- wagmi\n- ethers.js\n- RainbowKit\n\n## 🔐 Voting Details\n\n- Votes are publicly linked to the sender's Ethereum address\n- Each vote is written on-chain and synced off-chain for advanced backend handling\n- No role-based access control (everyone can vote, but cannot create or manage proposals via the contract)\n\n## 📡 Deployment\n\n\u003e Note: The smart contract has not been deployed to any testnet or mainnet yet. To deploy, update `hardhat.config.ts` with your preferred network (e.g., Goerli, Sepolia, Polygon).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxriot45%2Fdevote-smartcontracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxriot45%2Fdevote-smartcontracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxriot45%2Fdevote-smartcontracts/lists"}