Skip to content
/ votr Public

My first smart contract with Hardhat + Chai + Waffle

Notifications You must be signed in to change notification settings

ZaneH/votr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Votr

My first smart contract using Hardhat + Chai + Waffle.

Functions

  • transferOwnership(address newOwner)
  • addPoll(string title)
  • addCandidate(uint256 pollId, address person, string name)
  • castVote(uint256 candidateId)

Events

  • TransferredOwnership(...)
  • PollAdded(...)
  • CandidateAdded(...)
  • VoteCasted(...)

Todo

  • Utilize TypeScript (for tests)
  • Add React interface
  • Add events and write tests for them
  • Review Solidity attack vectors and make appropriate changes

About

My first smart contract with Hardhat + Chai + Waffle

Topics

Resources

Stars

Watchers

Forks