Skip to content

ZURI as an organisation needs to setup an election for leadership position in its school. The major stakeholders here are the school board of directors, the teachers and the students.

Notifications You must be signed in to change notification settings

kingzamzon/Election-Challange

 
 

Repository files navigation

ELECTION-CHALLENGE

Problem

ZURI as an organisation needs to setup an election for leadership position in its school. The major stakeholders here are the school board of directors, the teachers and the students. Create a smart contract that enables the following:

  • Each stakeholders should be able to vote.
  • Setup Access control for all stakeholders
  • Only the chairman and teachers can setup and compile the result of the votes
  • Only the chairman can grant access for the vote to happen.(There should be enable and disable vote.). If vote is disabled, no voting should take place.
  • students should not see result of votes until made public by the other stakeholders

Testing

Coverage npx hardhat coverage --network localhost

Gas report using test

yarn test

Deploy for localhost keep the same for rinkeby change in hardhat.config.js

yarn deploy

About

ZURI as an organisation needs to setup an election for leadership position in its school. The major stakeholders here are the school board of directors, the teachers and the students.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 91.9%
  • JavaScript 7.6%
  • Other 0.5%