tx · F842c7KVBcC5ZbSDz6Ko4yzAk9JTKtZQHDXokCMw6qgG

3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB:  -1.03420100 Waves

2021.05.20 11:17 [1533744] smart account 3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB > SELF 0.00000000 Waves

{ "type": 13, "id": "F842c7KVBcC5ZbSDz6Ko4yzAk9JTKtZQHDXokCMw6qgG", "fee": 103420100, "feeAssetId": null, "timestamp": 1621498639569, "version": 2, "chainId": 84, "sender": "3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB", "senderPublicKey": "AJhgEzWrvQYvLJdZ4bDYWy3W5H1h7UqSPwUyzSKsTYuh", "proofs": [ "4izK7aicxb89epvQAoTyBR3L5Gk7jyUErgC7rUifLBrUdApcWmc87g6bUZBderBWhmyEVpp3twRimGjFpUmx6YKb" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgAAAAKAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAFAAAAA3ZhbAEAAAAJaXNNYW5hZ2VyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAAAAAAACCQEAAAAMdHJ5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original | compacted Prev: EDbQzqyGHXKBgtmbPkaRDZu5VkHpjRoDC8MDEgbR7gf1 Next: 4y8mgbkhuMgVNkCJ8VnMzgoNS4Zw4x3LgwVHzPsR8XzM Diff:
OldNewDifferences
3636
3737
3838 func isMembershipVotedForCandidate (membershipAddress,candidateAddress) = (tryGetInteger(((membershipAddress + "_voted_") + candidateAddress)) > 0)
39-
40-
41-func getWorkingGroup () = {
42- let val = match getString(this, "working_group_members") {
43- case b: String =>
44- b
45- case _ =>
46- ""
47- }
48- val
49- }
5039
5140
5241 func getDAOMember () = {
115104 func mAddWorkingGroup (address) = if (!(isManager(i.caller)))
116105 then throw("access only to the DAO Manager")
117106 else {
118- let group = getWorkingGroup()
107+ let group = match getString(this, "dao_wg_members") {
108+ case b: String =>
109+ b
110+ case _ =>
111+ ""
112+ }
119113 let newGroup = ((group + ";") + address)
120- let groupSize = tryGetInteger("working_group_size")
114+ let groupSize = tryGetInteger("dao_wg_size")
121115 let newGroupSize = (groupSize + 1)
122- WriteSet([DataEntry((("working_group_member_" + address) + "_status"), "approved"), DataEntry("working_group_members", newGroup), DataEntry("working_group_size", newGroupSize)])
116+ WriteSet([DataEntry((("dao_wg_" + address) + "_status"), "approved"), DataEntry("dao_wg_members", newGroup), DataEntry("dao_wg_size", newGroupSize)])
123117 }
124118
125119
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func tryGetString (key) = {
55 let val = match getString(this, key) {
66 case b: String =>
77 b
88 case _ =>
99 ""
1010 }
1111 val
1212 }
1313
1414
1515 func isManager (address) = (address == this)
1616
1717
1818 func tryGetInteger (key) = {
1919 let val = match getInteger(this, key) {
2020 case b: Int =>
2121 b
2222 case _ =>
2323 0
2424 }
2525 val
2626 }
2727
2828
2929 func isMembershipWorkingGroup (a) = (tryGetString((("membership_" + toString(a)) + "_status")) == "approved")
3030
3131
3232 func isWorkingGroup (a) = (tryGetString((("working_group_" + toString(a)) + "_status")) == "approved")
3333
3434
3535 func isDAOMember (a) = (tryGetString((("dao_member_" + toString(a)) + "_status")) == "approved")
3636
3737
3838 func isMembershipVotedForCandidate (membershipAddress,candidateAddress) = (tryGetInteger(((membershipAddress + "_voted_") + candidateAddress)) > 0)
39-
40-
41-func getWorkingGroup () = {
42- let val = match getString(this, "working_group_members") {
43- case b: String =>
44- b
45- case _ =>
46- ""
47- }
48- val
49- }
5039
5140
5241 func getDAOMember () = {
5342 let val = match getString(this, "dao_members") {
5443 case b: String =>
5544 b
5645 case _ =>
5746 ""
5847 }
5948 val
6049 }
6150
6251
6352 func getMembershipWorkingGroup () = {
6453 let val = match getString(this, "membership_working_group_members") {
6554 case b: String =>
6655 b
6756 case _ =>
6857 ""
6958 }
7059 val
7160 }
7261
7362
7463 func getVoteValue (s) = if ((s == "like"))
7564 then 1
7665 else if ((s == "dislike"))
7766 then -1
7867 else throw(("You need to vote with 'like' or 'dislike' value. You specified:" + s))
7968
8069
8170 @Callable(i)
8271 func aProposeCandidateForDAOMember (address) = if ((tryGetInteger((("member_" + address) + "_voting_state")) != 0))
8372 then throw("This user already exists")
8473 else {
8574 let group = getDAOMember()
8675 let newGroup = ((group + ";") + address)
8776 let groupSize = tryGetInteger("dao_members_size")
8877 let newGroupSize = (groupSize + 1)
8978 WriteSet([DataEntry((("dao_member_" + address) + "_status"), "propose"), DataEntry("dao_members", newGroup), DataEntry("dao_members_size", newGroupSize)])
9079 }
9180
9281
9382
9483 @Callable(i)
9584 func mRejectDAOMember (address) = if (!(isManager(i.caller)))
9685 then throw("access only to the DAO Manager")
9786 else WriteSet([DataEntry((("dao_member_" + address) + "_status"), "rejected")])
9887
9988
10089
10190 @Callable(i)
10291 func mAddDAOMember (address) = if (!(isManager(i.caller)))
10392 then throw("access only to the DAO Manager")
10493 else {
10594 let group = getDAOMember()
10695 let newGroup = ((group + ";") + address)
10796 let groupSize = tryGetInteger("dao_members_size")
10897 let newGroupSize = (groupSize + 1)
10998 WriteSet([DataEntry((("dao_member_" + address) + "_status"), "approved"), DataEntry("dao_members", newGroup), DataEntry("dao_members_size", newGroupSize)])
11099 }
111100
112101
113102
114103 @Callable(i)
115104 func mAddWorkingGroup (address) = if (!(isManager(i.caller)))
116105 then throw("access only to the DAO Manager")
117106 else {
118- let group = getWorkingGroup()
107+ let group = match getString(this, "dao_wg_members") {
108+ case b: String =>
109+ b
110+ case _ =>
111+ ""
112+ }
119113 let newGroup = ((group + ";") + address)
120- let groupSize = tryGetInteger("working_group_size")
114+ let groupSize = tryGetInteger("dao_wg_size")
121115 let newGroupSize = (groupSize + 1)
122- WriteSet([DataEntry((("working_group_member_" + address) + "_status"), "approved"), DataEntry("working_group_members", newGroup), DataEntry("working_group_size", newGroupSize)])
116+ WriteSet([DataEntry((("dao_wg_" + address) + "_status"), "approved"), DataEntry("dao_wg_members", newGroup), DataEntry("dao_wg_size", newGroupSize)])
123117 }
124118
125119
126120
127121 @Callable(i)
128122 func mAddMembershipWorkingGroup (address) = if (!(isManager(i.caller)))
129123 then throw("access only to the DAO Manager")
130124 else {
131125 let group = getMembershipWorkingGroup()
132126 let newGroup = ((group + ";") + address)
133127 let groupSize = tryGetInteger("membership_working_group_members_size")
134128 let newGroupSize = (groupSize + 1)
135129 WriteSet([DataEntry((("membership_" + address) + "_status"), "approved"), DataEntry("membership_working_group_members", newGroup), DataEntry("membership_working_group_members_size", newGroupSize)])
136130 }
137131
138132
139133
140134 @Callable(i)
141135 func wmgMembershipVoteForDAOMember (candidateAddress,voteValue) = {
142136 let membershipAddress = toString(i.caller)
143137 let voteValueInt = getVoteValue(voteValue)
144138 let votingKey = (("dao_member_" + candidateAddress) + "_vote")
145139 let votedKey = (("dao_member_" + candidateAddress) + "_voted")
146140 let votedVal = match getString(this, votedKey) {
147141 case b: String =>
148142 b
149143 case _ =>
150144 ""
151145 }
152146 let votingState = tryGetInteger(votingKey)
153147 let newVotingState = (votingState + voteValueInt)
154148 if (isMembershipWorkingGroup(i.caller))
155149 then if (isMembershipVotedForCandidate(membershipAddress, candidateAddress))
156150 then throw("You have already voted")
157151 else WriteSet([DataEntry(((membershipAddress + "_voted_") + candidateAddress), 1), DataEntry(votingKey, newVotingState), DataEntry(votedKey, votedVal)])
158152 else throw("You have no rights")
159153 }
160154
161155

github/deemru/w8io/026f985 
34.06 ms