From 4879c5f7c32988bc5ce140c9ef982e30ccef91c3 Mon Sep 17 00:00:00 2001 From: "mad.nikolett" Date: Wed, 27 Jul 2022 20:05:54 +0200 Subject: [PATCH] =?UTF-8?q?megbesz=C3=A9l=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hodlbag-smart-contract.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Hodlbag-smart-contract.txt 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