LawVoting

TOOLSUTILITYDOCUMENTS

Exposed methods

authoriseVoter owner of the contract gives allows an address to vote

parameter nametypedetails
_voteraddressethereum address of the voter

proposeLaw authorised voter can propose a law to be voted

parameter nametypedetails
_lawnnamestringname of the law

setTimer owner sets the voting time

parameter nametypedetails
_timeruinttime allocated for the vote

voteFor votes for the passing of a law

parameter nametypedetails
_lawnnamestringname of the law

voteAgainst votes against the proposed law

parameter nametypedetails
_lawnnamestringname of the law

results owner reveals the results

parameter nametypedetails
_lawnnamestringname of the law

showLaw shows if a law was voted, passed or denied

parameter nametypedetails
_indexuintposition of the law in the array

getLawsCount returns the number of laws proposed

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract