tx · J9TzkRRhjipQgGjUWshTHt8qKLziDyaEG5BXKdAWNN2V 3MsJ87eiwhT5eUMCmwjVm7VqP74qs48RheF: -0.01500000 Waves 2020.08.12 12:21 [1129133] smart account 3MsJ87eiwhT5eUMCmwjVm7VqP74qs48RheF > SELF 0.00000000 Waves
{ "type": 13, "id": "J9TzkRRhjipQgGjUWshTHt8qKLziDyaEG5BXKdAWNN2V", "fee": 1500000, "feeAssetId": null, "timestamp": 1597224123454, "version": 1, "sender": "3MsJ87eiwhT5eUMCmwjVm7VqP74qs48RheF", "senderPublicKey": "8bNXgp7E74huqK2oLq3MHmLRzM4CAGT6stdzgwdKDGih", "proofs": [ "2s8MGvicvkZpWWteBQ3GqQdsU4KiqPCkFBQ4wx8ALSStxYXuVwtXvd5KbS7Pq46Adc9hjq4qsDjtUNbZ7XvvGopY" ], "script": "base64:AAIDAAAAAAAAAD0IARIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIDCgEIAAAACQAAAAAEd2dmZwEAAAAaAVRbeoehs52P1eKbuJlwg5Ny9LYwuVjtsCAAAAAACkJPQVJEdG9rZW4FAAAABHVuaXQAAAAABlFVT1JVTQAAAAAAAAAAMgEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwkAAAAAAAACBQAAAAdhZGRyZXNzBQAAAAR0aGlzAQAAAAhnZXRHcm91cAAAAAAEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzAgAAAA13b3JraW5nX2dyb3VwAwkAAAEAAAACBQAAAAckbWF0Y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AAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAAB19sZWFkZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAANd29ya19maW5pc2hlZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAADV93b3JrX3Byb2Nlc3MCAAAADXdvcmtfZmluaXNoZWQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAC3RlYW1BZGRyZXNzBQAAAAxyZXdhcmRBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAABNHNqK", "chainId": 84, "height": 1129133, "spentComplexity": 0 } View: original | compacted Prev: 7tJWL8JwyXhBxLHhrwAppFUtie1hNYusAdhp8iodk6Ag Next: none Diff:
Old | New | Differences | |
---|---|---|---|
129 | 129 | if ((votingState > 0)) | |
130 | 130 | then { | |
131 | 131 | let votingResult = "ready_to_apply" | |
132 | - | WriteSet([DataEntry(( | |
132 | + | WriteSet([DataEntry((taskId + "_status"), votingResult)]) | |
133 | 133 | } | |
134 | 134 | else { | |
135 | 135 | let votingResult = "rejected" | |
136 | - | WriteSet([DataEntry(( | |
136 | + | WriteSet([DataEntry((taskId + "_status"), votingResult)]) | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | ||
204 | 204 | then throw("grants working group access only") | |
205 | 205 | else { | |
206 | 206 | let chosenTeamId = { | |
207 | - | let $ | |
208 | - | let $ | |
209 | - | let $ | |
210 | - | if (($ | |
211 | - | then $ | |
207 | + | let $list78637894 = [0, 1] | |
208 | + | let $size78637894 = size($list78637894) | |
209 | + | let $acc078637894 = 0 | |
210 | + | if (($size78637894 == 0)) | |
211 | + | then $acc078637894 | |
212 | 212 | else { | |
213 | - | let $ | |
214 | - | if (($ | |
215 | - | then $ | |
213 | + | let $acc178637894 = hasMoreVotes($acc078637894, $list78637894[0]) | |
214 | + | if (($size78637894 == 1)) | |
215 | + | then $acc178637894 | |
216 | 216 | else { | |
217 | - | let $ | |
218 | - | if (($ | |
219 | - | then $ | |
217 | + | let $acc278637894 = hasMoreVotes($acc178637894, $list78637894[1]) | |
218 | + | if (($size78637894 == 2)) | |
219 | + | then $acc278637894 | |
220 | 220 | else { | |
221 | - | let $ | |
221 | + | let $acc378637894 = hasMoreVotes($acc278637894, $list78637894[2]) | |
222 | 222 | throw("List size exceed 2") | |
223 | 223 | } | |
224 | 224 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let wgfg = base58'3MxFn3u1ujdSadCaCPSzpDKLqXxzZMCdtoy' | |
5 | 5 | ||
6 | 6 | let BOARDtoken = unit | |
7 | 7 | ||
8 | 8 | let QUORUM = 50 | |
9 | 9 | ||
10 | 10 | func tryGetInteger (key) = { | |
11 | 11 | let val = match getInteger(this, key) { | |
12 | 12 | case b: Int => | |
13 | 13 | b | |
14 | 14 | case _ => | |
15 | 15 | 0 | |
16 | 16 | } | |
17 | 17 | val | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func isOwner (address) = (address == this) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func getGroup () = { | |
25 | 25 | let val = match getString(this, "working_group") { | |
26 | 26 | case b: String => | |
27 | 27 | b | |
28 | 28 | case _ => | |
29 | 29 | "" | |
30 | 30 | } | |
31 | 31 | val | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func getMembers () = { | |
36 | 36 | let val = match getString(this, "dao_members") { | |
37 | 37 | case b: String => | |
38 | 38 | b | |
39 | 39 | case _ => | |
40 | 40 | "" | |
41 | 41 | } | |
42 | 42 | val | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func isGroupMember (a) = (tryGetInteger(("group_member_weight_" + toString(a))) > 0) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func canMemberVote (i) = (tryGetInteger(("dao_member_weight_" + toString(i.caller))) > 0) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(i) | |
53 | 53 | func addDAOMember (memberAddress) = if (!(isOwner(i.caller))) | |
54 | 54 | then throw("access only to the DAO owner") | |
55 | 55 | else { | |
56 | 56 | let group = getMembers() | |
57 | 57 | let newGroup = ((group + ";") + memberAddress) | |
58 | 58 | let groupSize = tryGetInteger("dao_size") | |
59 | 59 | let newGroupSize = (groupSize + 1) | |
60 | 60 | WriteSet([DataEntry("dao_members", newGroup), DataEntry("dao_size", newGroupSize), DataEntry(("dao_member_weight_" + memberAddress), 1)]) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | ||
65 | 65 | @Callable(i) | |
66 | 66 | func addGroupMember (memberAddress) = if (!(isOwner(i.caller))) | |
67 | 67 | then throw("access only to the DAO owner") | |
68 | 68 | else { | |
69 | 69 | let group = getGroup() | |
70 | 70 | let newGroup = ((group + ";") + memberAddress) | |
71 | 71 | let groupSize = tryGetInteger("working_group_size") | |
72 | 72 | let newGroupSize = (groupSize + 1) | |
73 | 73 | WriteSet([DataEntry("working_group", newGroup), DataEntry("working_group_size", newGroupSize), DataEntry(("group_member_weight_" + memberAddress), 1)]) | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(i) | |
79 | 79 | func addTask (title) = if (!(isGroupMember(i.caller))) | |
80 | 80 | then throw("grants working group access only") | |
81 | 81 | else WriteSet([DataEntry((toBase58String(i.transactionId) + "_task"), title)]) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(i) | |
86 | 86 | func addTaskDetails (taskId) = if (!(isGroupMember(i.caller))) | |
87 | 87 | then throw("grants working group access only") | |
88 | 88 | else { | |
89 | 89 | let reward = extract(i.payment).amount | |
90 | 90 | WriteSet([DataEntry((taskId + "_reward"), reward), DataEntry((taskId + "_status"), "proposed")]) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | ||
95 | 95 | @Callable(i) | |
96 | 96 | func voteForTaskProposal (taskId,voteValue) = if (!(canMemberVote(i))) | |
97 | 97 | then throw("you can't vote") | |
98 | 98 | else if ((getStringValue(this, (taskId + "_status")) != "proposed")) | |
99 | 99 | then throw("voting is closed or not started") | |
100 | 100 | else if (if ((voteValue != -1)) | |
101 | 101 | then (voteValue != 1) | |
102 | 102 | else false) | |
103 | 103 | then throw("you need to vote 1 or -1") | |
104 | 104 | else { | |
105 | 105 | let voteKey = (((taskId + "_") + toString(i.caller)) + "_vote1") | |
106 | 106 | let previousVote = tryGetInteger(voteKey) | |
107 | 107 | if (!((previousVote == 0))) | |
108 | 108 | then throw("you have already voted") | |
109 | 109 | else { | |
110 | 110 | let votingKey = (taskId + "_voting1") | |
111 | 111 | let votingState = tryGetInteger(votingKey) | |
112 | 112 | let votesAmountKey = (taskId + "_voting1_amount") | |
113 | 113 | let votesAmountState = (tryGetInteger(votingKey) + 1) | |
114 | 114 | let newVotingState = (votingState + voteValue) | |
115 | 115 | ScriptResult(WriteSet([DataEntry(votingKey, newVotingState), DataEntry(voteKey, voteValue), DataEntry(votesAmountKey, votesAmountState)]), TransferSet([ScriptTransfer(i.caller, 500000, unit)])) | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(i) | |
122 | 122 | func finishTaskProposalVoting (taskId) = if ((QUORUM > ((tryGetInteger((taskId + "_voting1_amount")) * 100) / tryGetInteger("dao_size")))) | |
123 | 123 | then throw((("more than " + toString(QUORUM)) + "% members have to vote before finishing the voting")) | |
124 | 124 | else if (!(isGroupMember(i.caller))) | |
125 | 125 | then throw("grants working group access only") | |
126 | 126 | else { | |
127 | 127 | let votingKey = (taskId + "_voting1") | |
128 | 128 | let votingState = tryGetInteger(votingKey) | |
129 | 129 | if ((votingState > 0)) | |
130 | 130 | then { | |
131 | 131 | let votingResult = "ready_to_apply" | |
132 | - | WriteSet([DataEntry(( | |
132 | + | WriteSet([DataEntry((taskId + "_status"), votingResult)]) | |
133 | 133 | } | |
134 | 134 | else { | |
135 | 135 | let votingResult = "rejected" | |
136 | - | WriteSet([DataEntry(( | |
136 | + | WriteSet([DataEntry((taskId + "_status"), votingResult)]) | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func applyForTask (taskId,teamName) = { | |
144 | 144 | let listKey = (taskId + "_applicants") | |
145 | 145 | let currentApplicantsList = match getString(this, listKey) { | |
146 | 146 | case b: String => | |
147 | 147 | b | |
148 | 148 | case _ => | |
149 | 149 | "" | |
150 | 150 | } | |
151 | 151 | let newApplicantsList = ((currentApplicantsList + ";") + teamName) | |
152 | 152 | WriteSet([DataEntry((((taskId + "_applicant_") + teamName) + "_leader"), toString(i.caller)), DataEntry(listKey, newApplicantsList)]) | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(i) | |
158 | 158 | func voteForApplicant (taskId,teamName,voteValue) = if (!(canMemberVote(i))) | |
159 | 159 | then throw("you can't vote") | |
160 | 160 | else { | |
161 | 161 | let voteKey = ((((taskId + "_") + toString(i.caller)) + "_vote_") + teamName) | |
162 | 162 | let vote = tryGetInteger(voteKey) | |
163 | 163 | if ((vote != 0)) | |
164 | 164 | then throw("you have already voted on this team") | |
165 | 165 | else { | |
166 | 166 | let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes") | |
167 | 167 | let teamScoreKey = (((taskId + "_applicant_") + teamName) + "_score") | |
168 | 168 | let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey)) | |
169 | 169 | let newTeamScore = (voteValue + tryGetInteger(teamScoreKey)) | |
170 | 170 | WriteSet([DataEntry(voteKey, voteValue), DataEntry(teamScoreKey, newTeamScore)]) | |
171 | 171 | } | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | ||
176 | 176 | @Callable(i) | |
177 | 177 | func finishApplicantsVoting (taskId) = { | |
178 | 178 | func isApplicantVotedEnough (aid,aid2) = { | |
179 | 179 | let listKey = (taskId + "_applicants") | |
180 | 180 | let applicantsList = split(getStringValue(this, listKey), ";") | |
181 | 181 | let teamName = applicantsList[aid] | |
182 | 182 | let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes") | |
183 | 183 | let teamVotesAmount = tryGetInteger(teamVotesAmountKey) | |
184 | 184 | if ((teamVotesAmount > 0)) | |
185 | 185 | then 1 | |
186 | 186 | else throw(("not enough votes to make decision on " + teamName)) | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | func hasMoreVotes (aid,aid2) = { | |
190 | 190 | let listKey = (taskId + "_applicants") | |
191 | 191 | let applicantsList = split(getStringValue(this, listKey), ";") | |
192 | 192 | let teamName = applicantsList[aid] | |
193 | 193 | let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes") | |
194 | 194 | let teamVotesAmount = tryGetInteger(teamVotesAmountKey) | |
195 | 195 | let team2Name = applicantsList[aid2] | |
196 | 196 | let team2VotesAmountKey = (((taskId + "_applicant_") + team2Name) + "_votes") | |
197 | 197 | let team2VotesAmount = tryGetInteger(team2VotesAmountKey) | |
198 | 198 | if ((teamVotesAmount > team2VotesAmount)) | |
199 | 199 | then aid | |
200 | 200 | else aid2 | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | if (!(isGroupMember(i.caller))) | |
204 | 204 | then throw("grants working group access only") | |
205 | 205 | else { | |
206 | 206 | let chosenTeamId = { | |
207 | - | let $ | |
208 | - | let $ | |
209 | - | let $ | |
210 | - | if (($ | |
211 | - | then $ | |
207 | + | let $list78637894 = [0, 1] | |
208 | + | let $size78637894 = size($list78637894) | |
209 | + | let $acc078637894 = 0 | |
210 | + | if (($size78637894 == 0)) | |
211 | + | then $acc078637894 | |
212 | 212 | else { | |
213 | - | let $ | |
214 | - | if (($ | |
215 | - | then $ | |
213 | + | let $acc178637894 = hasMoreVotes($acc078637894, $list78637894[0]) | |
214 | + | if (($size78637894 == 1)) | |
215 | + | then $acc178637894 | |
216 | 216 | else { | |
217 | - | let $ | |
218 | - | if (($ | |
219 | - | then $ | |
217 | + | let $acc278637894 = hasMoreVotes($acc178637894, $list78637894[1]) | |
218 | + | if (($size78637894 == 2)) | |
219 | + | then $acc278637894 | |
220 | 220 | else { | |
221 | - | let $ | |
221 | + | let $acc378637894 = hasMoreVotes($acc278637894, $list78637894[2]) | |
222 | 222 | throw("List size exceed 2") | |
223 | 223 | } | |
224 | 224 | } | |
225 | 225 | } | |
226 | 226 | } | |
227 | 227 | let listKey = (taskId + "_applicants") | |
228 | 228 | let applicantsList = split(getStringValue(this, listKey), ";") | |
229 | 229 | let teamName = applicantsList[chosenTeamId] | |
230 | 230 | WriteSet([DataEntry((taskId + "_status"), "team_chosen"), DataEntry((taskId + "_performer"), teamName), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "can_begin")]) | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(i) | |
237 | 237 | func startWork (taskId) = { | |
238 | 238 | let teamName = getStringValue(this, (taskId + "_performer")) | |
239 | 239 | if ((toString(i.caller) != getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader")))) | |
240 | 240 | then throw("team leader only") | |
241 | 241 | else WriteSet([DataEntry((taskId + "_status"), "work_started"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_started")]) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(i) | |
247 | 247 | func acceptWorkResult (taskId) = if (!(isGroupMember(i.caller))) | |
248 | 248 | then throw("grants working group access only") | |
249 | 249 | else { | |
250 | 250 | let rewardAmount = tryGetInteger((taskId + "_reward")) | |
251 | 251 | let teamName = getStringValue(this, (taskId + "_performer")) | |
252 | 252 | let teamAddress = getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader")) | |
253 | 253 | ScriptResult(WriteSet([DataEntry((taskId + "_status"), "work_finished"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_finished")]), TransferSet([ScriptTransfer(addressFromStringValue(teamAddress), rewardAmount, unit)])) | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 |
github/deemru/w8io/169f3d6 50.31 ms ◑