megbeszélés
parent
4b0288e4d9
commit
4879c5f7c3
|
@ -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
|
Loading…
Reference in New Issue