37 lines
777 B
Plaintext
37 lines
777 B
Plaintext
|
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
|