BinaryVoting

Simple Blockchain voting contract with agree/disagree functionality

ETHGlobal TaipeiShipped April 4, 2025Prize winner#dao#security#celo
Repo
BinaryVoting banner

About

A smart contract for binary voting on the Celo blockchain. This contract allows users to create proposals and vote on them using a simple yes/no (agree/disagree) mechanism.

✨ - Features

📝 - Create new proposals with descriptions ✅ - Vote on existing proposals (Agree/Disagree) 👀 - View proposal details including vote counts 🔒 - Prevent double voting 📢 - Event emission for proposal creation and voting

How it's made

The Binary Voting project was built using several key technologies and follows a robust development process:

Written in Solidity (v0.8.0)

- Uses OpenZeppelin's contracts for security and best practices Key components: - Proposal struct to store proposal data - mapping for efficient proposal storage and lookup - mapping for tracking votes to prevent double-voting - Events for tracking proposal creation and voting

Development Tools:

- Truffle for smart contract development and testing - Ganache for local blockchain testing - Web3.js for contract interaction - Mocha and Chai for testing - Testing Infrastructure: - Comprehensive test suite covering: - Proposal creation - Voting functionality - Double-voting prevention - Event emission - Tests run on both local blockchain and testnet Deployment Process: - Deployed to Celo mainnet using Truffle - Contract verification through Celo Explorer - Scripts for deployment and verification

Prizes

  • Celo · Celo L2 Pool Prize · Celo L2 Pool Prize

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

VRight

A blockchain-based voting system using smart contracts for secure, transparent, and tamper-proof elections. Built on Ethereum, tested in Remix, and designed with Figma, it enables administrators to manage proposals and citizens to vote anonymously in state-specific elections.

ElectoVote

ElectoVote is a decentralized voting platform utilizing Foundry for smart contracts and integrating Morph and Sign Protocol for secure, attestation-based voting, ensuring transparency and a gamified user experience.

OmniVote

OmniVote is a decentralized voting platform that allows users to participate in governance decisions across multiple blockchain networks securely and efficiently.