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