Step 1.
git clone https://github.com/adityabhattad2021/Decentralized-Voting.git
cd Decentralized-Voting
yarnStep 2.
Create a .env folder and configure the required keys
Step 3.
- To run tests:
hh test- To check coverage
hh coverage- Mock entire voting process (single round)
hh node
hh run scripts/mockVoting.js --network localhostStep 1.
hh node
hh run scripts/mockVoting.js --network localhostStep 2.
- Start new round
hh node
hh run scripts/StartNewRound.js --network localhost- Add Candidates
hh node
hh run scripts/addCandidates.js --network localhost- Add Voters
hh node
hh run scripts/addVoters.js --network localhost- Cast vote
hh node
hh run scripts/castVote.js --network localhost- Mock chainlink keepers
hh node
hh run scripts/mockOffChain.js --network localhostgoerli testnet address: 0x1E24dFa8956A4deb6CbABDe49cf7f1F4822b3902
Frontend