tx · HkCL8mHt1CDtPsYzRroxvjCfdQ3reRB89WQJHbvg9cJL

3Mxk4Jmjd8SdE2MojSXsUQ8LVYM8vRzmFSA:  -0.10000000 Waves

2020.12.21 18:55 [1318661] smart account 3Mxk4Jmjd8SdE2MojSXsUQ8LVYM8vRzmFSA > SELF 0.00000000 Waves

{ "type": 13, "id": "HkCL8mHt1CDtPsYzRroxvjCfdQ3reRB89WQJHbvg9cJL", "fee": 10000000, "feeAssetId": null, "timestamp": 1608566216770, "version": 2, "chainId": 84, "sender": "3Mxk4Jmjd8SdE2MojSXsUQ8LVYM8vRzmFSA", "senderPublicKey": "4xMxUnfdbHYsent96ThiYC63gXHiahi6bh3urdHHntHi", "proofs": [ "4CeX7TodVgGi75qKH5Cu1rVJjLeuruxMscMJTRxPGQrUvq2Mv68boVjUnxJmmtgkbaBNBxQmHg4YqPD4awp2d5z3" ], "script": "base64:AAIDAAAAAAAAADUIARIECgIICBIDCgEIEgQKAggBEgMKAQgSBQoDCAgIEgUKAwgIARIDCgEIEgMKAQgSAwoBCAAAAAoAAAAADG1haW5Db250cmFjdAkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTXdSemkyQm1xWlpYV3JDR0N3Y1JRTHNuaWMyQW9kNnpoUwAAAAAGUVVPUlVNAAAAAAAAAAABAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAUAAAADdmFsAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0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AAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGdGFza3NfBQAAAAZ0YXNrSWQCAAAABV9hcHBfBQAAAA50ZWFtSWRlbnRpZmllcgIAAAAHX2xlYWRlcgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAANd29ya19maW5pc2hlZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAFX2FwcF8FAAAADnRlYW1JZGVudGlmaWVyAgAAAAhfcHJvY2VzcwIAAAANd29ya19maW5pc2hlZAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAALdGVhbUFkZHJlc3MFAAAADHJld2FyZEFtb3VudAUAAAAEdW5pdAUAAAADbmlsAAAAAOyboqE=", "height": 1318661, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6JS4FoujrrwzN2ajHzTFBb23TLugrwkEsZYNwrDTUaVL Next: 4vuJfi2arwN8NUw4DPiy5Mty5dsL8C8SmqbbBGHfAsAg Diff:
OldNewDifferences
9393
9494
9595 @Callable(i)
96-func addTaskDetails (taskId) = if (!(isGroupMember(i.caller)))
96+func addReward (taskId) = if (!(isGroupMember(i.caller)))
9797 then throw("grants working group access only")
9898 else {
9999 let reward = extract(i.payment).amount
221221 then throw("No one has yet responded to the grant")
222222 else {
223223 let chosenTeamId = {
224- let $list95009531 = [0, 1]
225- let $size95009531 = size($list95009531)
226- let $acc095009531 = 0
227- if (($size95009531 == 0))
228- then $acc095009531
224+ let $list94959526 = [0, 1]
225+ let $size94959526 = size($list94959526)
226+ let $acc094959526 = 0
227+ if (($size94959526 == 0))
228+ then $acc094959526
229229 else {
230- let $acc195009531 = hasMoreVotes($acc095009531, $list95009531[0])
231- if (($size95009531 == 1))
232- then $acc195009531
230+ let $acc194959526 = hasMoreVotes($acc094959526, $list94959526[0])
231+ if (($size94959526 == 1))
232+ then $acc194959526
233233 else {
234- let $acc295009531 = hasMoreVotes($acc195009531, $list95009531[1])
235- if (($size95009531 == 2))
236- then $acc295009531
234+ let $acc294959526 = hasMoreVotes($acc194959526, $list94959526[1])
235+ if (($size94959526 == 2))
236+ then $acc294959526
237237 else {
238- let $acc395009531 = hasMoreVotes($acc295009531, $list95009531[2])
238+ let $acc394959526 = hasMoreVotes($acc294959526, $list94959526[2])
239239 throw("List size exceed 2")
240240 }
241241 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let mainContract = addressFromStringValue("3MwRzi2BmqZZXWrCGCwcRQLsnic2Aod6zhS")
55
66 let QUORUM = 1
77
88 func tryGetInteger (key) = {
99 let val = match getInteger(this, key) {
1010 case b: Int =>
1111 b
1212 case _ =>
1313 0
1414 }
1515 val
1616 }
1717
1818
1919 func tryGetString (key) = {
2020 let val = match getString(this, key) {
2121 case b: String =>
2222 b
2323 case _ =>
2424 ""
2525 }
2626 val
2727 }
2828
2929
3030 func isOwner (address) = (address == this)
3131
3232
3333 func getGroup () = {
3434 let val = match getString(mainContract, "working_group_members") {
3535 case b: String =>
3636 b
3737 case _ =>
3838 ""
3939 }
4040 val
4141 }
4242
4343
4444 func getMembers () = {
4545 let val = match getString(mainContract, "dao_members") {
4646 case b: String =>
4747 b
4848 case _ =>
4949 ""
5050 }
5151 val
5252 }
5353
5454
5555 func getDAOSize () = {
5656 let val = match getInteger(mainContract, "dao_size") {
5757 case b: Int =>
5858 b
5959 case _ =>
6060 0
6161 }
6262 val
6363 }
6464
6565
6666 func isGroupMember (a) = {
6767 let val = match getInteger(mainContract, (("working_group_member_" + toString(a)) + "_weight")) {
6868 case b: Int =>
6969 b
7070 case _ =>
7171 0
7272 }
7373 (val > 0)
7474 }
7575
7676
7777 func canMemberVote (i) = {
7878 let val = match getInteger(mainContract, (("dao_member_" + toString(i.caller)) + "_weight")) {
7979 case b: Int =>
8080 b
8181 case _ =>
8282 0
8383 }
8484 (val > 0)
8585 }
8686
8787
8888 @Callable(i)
8989 func addTask (title,link) = if (!(isGroupMember(i.caller)))
9090 then throw("grants working group access only")
9191 else WriteSet([DataEntry((("tasks_" + toBase58String(i.transactionId)) + "_title"), title), DataEntry((("tasks_" + toBase58String(i.transactionId)) + "_link"), link)])
9292
9393
9494
9595 @Callable(i)
96-func addTaskDetails (taskId) = if (!(isGroupMember(i.caller)))
96+func addReward (taskId) = if (!(isGroupMember(i.caller)))
9797 then throw("grants working group access only")
9898 else {
9999 let reward = extract(i.payment).amount
100100 WriteSet([DataEntry((("tasks_" + taskId) + "_reward"), reward), DataEntry((("tasks_" + taskId) + "_status"), "proposed")])
101101 }
102102
103103
104104
105105 @Callable(i)
106106 func voteForTaskProposal (taskId,voteValue) = if (!(canMemberVote(i)))
107107 then throw("you can't vote")
108108 else if ((getStringValue(this, (("tasks_" + taskId) + "_status")) != "proposed"))
109109 then throw("voting is closed or not started")
110110 else if (if ((voteValue != -1))
111111 then (voteValue != 1)
112112 else false)
113113 then throw("you need to vote 1 or -1")
114114 else {
115115 let voteKey = ((("tasks_" + taskId) + "_voted_") + toString(i.caller))
116116 let previousVote = tryGetInteger(voteKey)
117117 if (!((previousVote == 0)))
118118 then throw("you have already voted")
119119 else {
120120 let votingKey = (("tasks_" + taskId) + "_voting_state")
121121 let votingState = tryGetInteger(votingKey)
122122 let votesAmountKey = (("tasks_" + taskId) + "_voting_amount")
123123 let votesAmountState = (tryGetInteger(votingKey) + 1)
124124 let newVotingState = (votingState + voteValue)
125125 ScriptResult(WriteSet([DataEntry(votingKey, newVotingState), DataEntry(voteKey, voteValue), DataEntry(votesAmountKey, votesAmountState)]), TransferSet([ScriptTransfer(i.caller, 500000, unit)]))
126126 }
127127 }
128128
129129
130130
131131 @Callable(i)
132132 func finishTaskProposalVoting (taskId) = if ((QUORUM > ((tryGetInteger((("tasks_" + taskId) + "_voting_amount")) * 100) / getDAOSize())))
133133 then throw((("more than " + toString(QUORUM)) + "% members have to vote before finishing the voting"))
134134 else if (!(isGroupMember(i.caller)))
135135 then throw("grants working group access only")
136136 else {
137137 let votingKey = (("tasks_" + taskId) + "_voting_state")
138138 let votingState = tryGetInteger(votingKey)
139139 if ((votingState > 0))
140140 then {
141141 let votingResult = "ready_to_apply"
142142 WriteSet([DataEntry((("tasks_" + taskId) + "_status"), votingResult)])
143143 }
144144 else {
145145 let votingResult = "rejected"
146146 WriteSet([DataEntry((("tasks_" + taskId) + "_status"), votingResult)])
147147 }
148148 }
149149
150150
151151
152152 @Callable(i)
153153 func applyForTask (taskId,teamName,link) = {
154154 let status = tryGetString((("tasks_" + taskId) + "_status"))
155155 if ((status != "ready_to_apply"))
156156 then throw("This grant has not yet been approved")
157157 else {
158158 let listKey = (("tasks_" + taskId) + "_applicants")
159159 let currentApplicantsList = tryGetString(listKey)
160160 let applicantKey = drop(toString(i.caller), 10)
161161 let newApplicantsList = ((currentApplicantsList + ";") + toString(i.caller))
162162 WriteSet([DataEntry((((("tasks_" + taskId) + "_app_") + applicantKey) + "_name"), teamName), DataEntry((((("tasks_" + taskId) + "_app_") + applicantKey) + "_link"), link), DataEntry((((("tasks_" + taskId) + "_app_") + applicantKey) + "_leader"), toString(i.caller)), DataEntry((((("tasks_" + taskId) + "_app_") + applicantKey) + "_id"), applicantKey), DataEntry(listKey, newApplicantsList)])
163163 }
164164 }
165165
166166
167167
168168 @Callable(i)
169169 func voteForApplicant (taskId,teamIdentifier,voteValue) = if (!(canMemberVote(i)))
170170 then throw("you can't vote")
171171 else {
172172 let voteHash = (drop(toString(i.caller), 10) + drop(teamIdentifier, 10))
173173 let voteKey = ((("tasks_" + taskId) + "_vote_") + voteHash)
174174 let vote = tryGetInteger(voteKey)
175175 if ((vote != 0))
176176 then throw("you have already voted on this team")
177177 else {
178178 let teamVotesAmountKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_votes")
179179 let teamScoreKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_score")
180180 let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey))
181181 let newTeamScore = (voteValue + tryGetInteger(teamScoreKey))
182182 WriteSet([DataEntry(voteKey, voteValue), DataEntry(teamScoreKey, newTeamScore)])
183183 }
184184 }
185185
186186
187187
188188 @Callable(i)
189189 func finishApplicantsVoting (taskId) = {
190190 func isApplicantVotedEnough (aid,aid2) = {
191191 let listKey = (("tasks_" + taskId) + "_applicants")
192192 let applicantsList = split(getStringValue(this, listKey), ";")
193193 let teamIdentifier = applicantsList[aid]
194194 let teamVotesAmountKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_votes")
195195 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
196196 if ((teamVotesAmount > 0))
197197 then 1
198198 else throw(("not enough votes to make decision on " + teamIdentifier))
199199 }
200200
201201 func hasMoreVotes (aid,aid2) = {
202202 let listKey = (("tasks_" + taskId) + "_applicants")
203203 let applicantsList = split(getStringValue(this, listKey), ";")
204204 let teamIdentifier = applicantsList[aid]
205205 let teamVotesAmountKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_votes")
206206 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
207207 let team2Identifier = applicantsList[aid2]
208208 let team2VotesAmountKey = (((("tasks_" + taskId) + "_app_") + team2Identifier) + "_votes")
209209 let team2VotesAmount = tryGetInteger(team2VotesAmountKey)
210210 if ((teamVotesAmount > team2VotesAmount))
211211 then aid
212212 else aid2
213213 }
214214
215215 if (!(isGroupMember(i.caller)))
216216 then throw("grants working group access only")
217217 else {
218218 let listKeys = tryGetString((("tasks_" + taskId) + "_applicants"))
219219 let applicantsList = split(listKeys, ";")
220220 if ((size(applicantsList) == 0))
221221 then throw("No one has yet responded to the grant")
222222 else {
223223 let chosenTeamId = {
224- let $list95009531 = [0, 1]
225- let $size95009531 = size($list95009531)
226- let $acc095009531 = 0
227- if (($size95009531 == 0))
228- then $acc095009531
224+ let $list94959526 = [0, 1]
225+ let $size94959526 = size($list94959526)
226+ let $acc094959526 = 0
227+ if (($size94959526 == 0))
228+ then $acc094959526
229229 else {
230- let $acc195009531 = hasMoreVotes($acc095009531, $list95009531[0])
231- if (($size95009531 == 1))
232- then $acc195009531
230+ let $acc194959526 = hasMoreVotes($acc094959526, $list94959526[0])
231+ if (($size94959526 == 1))
232+ then $acc194959526
233233 else {
234- let $acc295009531 = hasMoreVotes($acc195009531, $list95009531[1])
235- if (($size95009531 == 2))
236- then $acc295009531
234+ let $acc294959526 = hasMoreVotes($acc194959526, $list94959526[1])
235+ if (($size94959526 == 2))
236+ then $acc294959526
237237 else {
238- let $acc395009531 = hasMoreVotes($acc295009531, $list95009531[2])
238+ let $acc394959526 = hasMoreVotes($acc294959526, $list94959526[2])
239239 throw("List size exceed 2")
240240 }
241241 }
242242 }
243243 }
244244 let teamIdentifier = applicantsList[chosenTeamId]
245245 WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "team_chosen"), DataEntry((("tasks_" + taskId) + "_performer"), teamIdentifier), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_process"), "can_begin")])
246246 }
247247 }
248248 }
249249
250250
251251
252252 @Callable(i)
253253 func startWork (taskId) = {
254254 let teamIdentifier = getStringValue(this, (("tasks_" + taskId) + "_performer"))
255255 if ((toString(i.caller) != getStringValue(this, (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader"))))
256256 then throw("team leader only")
257257 else WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "work_started"), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_process"), "work_started")])
258258 }
259259
260260
261261
262262 @Callable(i)
263263 func acceptWorkResult (taskId) = if (!(isGroupMember(i.caller)))
264264 then throw("grants working group access only")
265265 else {
266266 let rewardAmount = tryGetInteger((("tasks_" + taskId) + "_reward"))
267267 let teamIdentifier = getStringValue(this, (("tasks_" + taskId) + "_performer"))
268268 let teamAddress = getStringValue(this, (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader"))
269269 ScriptResult(WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "work_finished"), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_process"), "work_finished")]), TransferSet([ScriptTransfer(addressFromStringValue(teamAddress), rewardAmount, unit)]))
270270 }
271271
272272

github/deemru/w8io/026f985 
46.67 ms