Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What does this basic project do

This contract is a simple voting system for proposals created by the owner.

In proposals, we have a description for the explanation of the proposal. We also have variables for holding numbers of approve, reject and pass votes.

We also have couple of additional fields that helps us to track more information about our proposals.

The owner can create a new proposal with a description and a vote limit, and other users can vote to approve, reject or pass the proposal.

The contract calculates the current state of the proposal based on the number of votes, and ends the proposal when the vote limit is reached.

The contract also keeps a history of all the proposals and their outcomes, and prevents users from voting more than once.

The contract uses some modifiers to restrict access and check conditions, and some helper functions to implement the logic.

About

A basic voting tutorial to learn about solidity

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages