diff --git a/Hodlbag-smart-contract.txt b/Hodlbag-smart-contract.txt new file mode 100644 index 0000000..9f9220b --- /dev/null +++ b/Hodlbag-smart-contract.txt @@ -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 \ No newline at end of file