Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edakturk14/smart-contract-workshop
Smart Contract Workshop - Voting Smart Contract
https://github.com/edakturk14/smart-contract-workshop
Last synced: about 1 month ago
JSON representation
Smart Contract Workshop - Voting Smart Contract
- Host: GitHub
- URL: https://github.com/edakturk14/smart-contract-workshop
- Owner: edakturk14
- Created: 2023-10-30T10:49:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-30T20:23:33.000Z (about 1 year ago)
- Last Synced: 2024-10-22T20:39:07.993Z (3 months ago)
- Language: Solidity
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Contract Workshop - Voting Smart Contract
Welcome to the Smart Contract Workshop - Voting Smart Contract! In this workshop, you will learn about the basics of a simple voting smart contract.
## What Is This Smart Contract?
This smart contract is designed to facilitate a basic voting system. It allows users to create proposals, each with two predefined options (e.g., Coffee and Tea), and cast their votes for their preferred option. The contract ensures that each user can only vote once and keeps track of the vote counts for each option within each proposal.
## Key Features
- **Proposal Creation**: Users can create proposals by providing a description and specifying two predefined options.
- **Voting**: Registered users can cast their votes for one of the two options within a proposal.
- **Preventing Multiple Votes**: The contract prevents users from voting more than once in the same proposal.
- **Vote Counting**: It tracks and displays the vote count for each option in a proposal.