megbeszélés

master
mad.nikolett 2022-07-27 20:05:54 +02:00
parent 4b0288e4d9
commit 4879c5f7c3
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
constructor
first admin
Variables
private mapping Options
private mapping Admins
public minVotingBalance
public maxVotes
public Proposal
public RecordDate
public State
Functions
- addAdmin (require msg.sender = admin)
- removeAdmin (require msg.sender = admin)
States
- configuration (require msg.sender = admin)
- defineMinVotingBalance
- addOption
- defineMaxVotes*
- defineProposal (szavazas neve)
- defineRecordDate (egyenleg check)
- startVoting
- voting
- returnOptions (frontendhez az opciok megmutatasa)
- voteOption
require msg.sender.balance > minVotingBalance
- checkVotingStatus
require msg.sender = admin
- startEvaluation
require msg.sender = admin
- evaluation (require msg.sender = admin)
- returnResults
- startConfiguration