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:AAIDAAAAAAAAAD0IARIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIDCgEIAAAACQAAAAAEd2dmZwEAAAAaAVRbeoehs52P1eKbuJlwg5Ny9LYwuVjtsCAAAAAACkJPQVJEdG9rZW4FAAAABHVuaXQAAAAABlFVT1JVTQAAAAAAAAAAMgEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwkAAAAAAAACBQAAAAdhZGRyZXNzBQAAAAR0aGlzAQAAAAhnZXRHcm91cAAAAAAEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzAgAAAA13b3JraW5nX2dyb3VwAwkAAAEAAAACBQAAAAckbWF0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AAAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAAB19sZWFkZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAANd29ya19maW5pc2hlZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAADV93b3JrX3Byb2Nlc3MCAAAADXdvcmtfZmluaXNoZWQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAC3RlYW1BZGRyZXNzBQAAAAxyZXdhcmRBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAABNHNqK", "chainId": 84, "height": 1129133, "spentComplexity": 0 } View: original | compacted Prev: 7tJWL8JwyXhBxLHhrwAppFUtie1hNYusAdhp8iodk6Ag Next: none Diff:
OldNewDifferences
129129 if ((votingState > 0))
130130 then {
131131 let votingResult = "ready_to_apply"
132- WriteSet([DataEntry((toBase58String(i.transactionId) + "_status"), votingResult)])
132+ WriteSet([DataEntry((taskId + "_status"), votingResult)])
133133 }
134134 else {
135135 let votingResult = "rejected"
136- WriteSet([DataEntry((toBase58String(i.transactionId) + "_status"), votingResult)])
136+ WriteSet([DataEntry((taskId + "_status"), votingResult)])
137137 }
138138 }
139139
204204 then throw("grants working group access only")
205205 else {
206206 let chosenTeamId = {
207- let $list79157946 = [0, 1]
208- let $size79157946 = size($list79157946)
209- let $acc079157946 = 0
210- if (($size79157946 == 0))
211- then $acc079157946
207+ let $list78637894 = [0, 1]
208+ let $size78637894 = size($list78637894)
209+ let $acc078637894 = 0
210+ if (($size78637894 == 0))
211+ then $acc078637894
212212 else {
213- let $acc179157946 = hasMoreVotes($acc079157946, $list79157946[0])
214- if (($size79157946 == 1))
215- then $acc179157946
213+ let $acc178637894 = hasMoreVotes($acc078637894, $list78637894[0])
214+ if (($size78637894 == 1))
215+ then $acc178637894
216216 else {
217- let $acc279157946 = hasMoreVotes($acc179157946, $list79157946[1])
218- if (($size79157946 == 2))
219- then $acc279157946
217+ let $acc278637894 = hasMoreVotes($acc178637894, $list78637894[1])
218+ if (($size78637894 == 2))
219+ then $acc278637894
220220 else {
221- let $acc379157946 = hasMoreVotes($acc279157946, $list79157946[2])
221+ let $acc378637894 = hasMoreVotes($acc278637894, $list78637894[2])
222222 throw("List size exceed 2")
223223 }
224224 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let wgfg = base58'3MxFn3u1ujdSadCaCPSzpDKLqXxzZMCdtoy'
55
66 let BOARDtoken = unit
77
88 let QUORUM = 50
99
1010 func tryGetInteger (key) = {
1111 let val = match getInteger(this, key) {
1212 case b: Int =>
1313 b
1414 case _ =>
1515 0
1616 }
1717 val
1818 }
1919
2020
2121 func isOwner (address) = (address == this)
2222
2323
2424 func getGroup () = {
2525 let val = match getString(this, "working_group") {
2626 case b: String =>
2727 b
2828 case _ =>
2929 ""
3030 }
3131 val
3232 }
3333
3434
3535 func getMembers () = {
3636 let val = match getString(this, "dao_members") {
3737 case b: String =>
3838 b
3939 case _ =>
4040 ""
4141 }
4242 val
4343 }
4444
4545
4646 func isGroupMember (a) = (tryGetInteger(("group_member_weight_" + toString(a))) > 0)
4747
4848
4949 func canMemberVote (i) = (tryGetInteger(("dao_member_weight_" + toString(i.caller))) > 0)
5050
5151
5252 @Callable(i)
5353 func addDAOMember (memberAddress) = if (!(isOwner(i.caller)))
5454 then throw("access only to the DAO owner")
5555 else {
5656 let group = getMembers()
5757 let newGroup = ((group + ";") + memberAddress)
5858 let groupSize = tryGetInteger("dao_size")
5959 let newGroupSize = (groupSize + 1)
6060 WriteSet([DataEntry("dao_members", newGroup), DataEntry("dao_size", newGroupSize), DataEntry(("dao_member_weight_" + memberAddress), 1)])
6161 }
6262
6363
6464
6565 @Callable(i)
6666 func addGroupMember (memberAddress) = if (!(isOwner(i.caller)))
6767 then throw("access only to the DAO owner")
6868 else {
6969 let group = getGroup()
7070 let newGroup = ((group + ";") + memberAddress)
7171 let groupSize = tryGetInteger("working_group_size")
7272 let newGroupSize = (groupSize + 1)
7373 WriteSet([DataEntry("working_group", newGroup), DataEntry("working_group_size", newGroupSize), DataEntry(("group_member_weight_" + memberAddress), 1)])
7474 }
7575
7676
7777
7878 @Callable(i)
7979 func addTask (title) = if (!(isGroupMember(i.caller)))
8080 then throw("grants working group access only")
8181 else WriteSet([DataEntry((toBase58String(i.transactionId) + "_task"), title)])
8282
8383
8484
8585 @Callable(i)
8686 func addTaskDetails (taskId) = if (!(isGroupMember(i.caller)))
8787 then throw("grants working group access only")
8888 else {
8989 let reward = extract(i.payment).amount
9090 WriteSet([DataEntry((taskId + "_reward"), reward), DataEntry((taskId + "_status"), "proposed")])
9191 }
9292
9393
9494
9595 @Callable(i)
9696 func voteForTaskProposal (taskId,voteValue) = if (!(canMemberVote(i)))
9797 then throw("you can't vote")
9898 else if ((getStringValue(this, (taskId + "_status")) != "proposed"))
9999 then throw("voting is closed or not started")
100100 else if (if ((voteValue != -1))
101101 then (voteValue != 1)
102102 else false)
103103 then throw("you need to vote 1 or -1")
104104 else {
105105 let voteKey = (((taskId + "_") + toString(i.caller)) + "_vote1")
106106 let previousVote = tryGetInteger(voteKey)
107107 if (!((previousVote == 0)))
108108 then throw("you have already voted")
109109 else {
110110 let votingKey = (taskId + "_voting1")
111111 let votingState = tryGetInteger(votingKey)
112112 let votesAmountKey = (taskId + "_voting1_amount")
113113 let votesAmountState = (tryGetInteger(votingKey) + 1)
114114 let newVotingState = (votingState + voteValue)
115115 ScriptResult(WriteSet([DataEntry(votingKey, newVotingState), DataEntry(voteKey, voteValue), DataEntry(votesAmountKey, votesAmountState)]), TransferSet([ScriptTransfer(i.caller, 500000, unit)]))
116116 }
117117 }
118118
119119
120120
121121 @Callable(i)
122122 func finishTaskProposalVoting (taskId) = if ((QUORUM > ((tryGetInteger((taskId + "_voting1_amount")) * 100) / tryGetInteger("dao_size"))))
123123 then throw((("more than " + toString(QUORUM)) + "% members have to vote before finishing the voting"))
124124 else if (!(isGroupMember(i.caller)))
125125 then throw("grants working group access only")
126126 else {
127127 let votingKey = (taskId + "_voting1")
128128 let votingState = tryGetInteger(votingKey)
129129 if ((votingState > 0))
130130 then {
131131 let votingResult = "ready_to_apply"
132- WriteSet([DataEntry((toBase58String(i.transactionId) + "_status"), votingResult)])
132+ WriteSet([DataEntry((taskId + "_status"), votingResult)])
133133 }
134134 else {
135135 let votingResult = "rejected"
136- WriteSet([DataEntry((toBase58String(i.transactionId) + "_status"), votingResult)])
136+ WriteSet([DataEntry((taskId + "_status"), votingResult)])
137137 }
138138 }
139139
140140
141141
142142 @Callable(i)
143143 func applyForTask (taskId,teamName) = {
144144 let listKey = (taskId + "_applicants")
145145 let currentApplicantsList = match getString(this, listKey) {
146146 case b: String =>
147147 b
148148 case _ =>
149149 ""
150150 }
151151 let newApplicantsList = ((currentApplicantsList + ";") + teamName)
152152 WriteSet([DataEntry((((taskId + "_applicant_") + teamName) + "_leader"), toString(i.caller)), DataEntry(listKey, newApplicantsList)])
153153 }
154154
155155
156156
157157 @Callable(i)
158158 func voteForApplicant (taskId,teamName,voteValue) = if (!(canMemberVote(i)))
159159 then throw("you can't vote")
160160 else {
161161 let voteKey = ((((taskId + "_") + toString(i.caller)) + "_vote_") + teamName)
162162 let vote = tryGetInteger(voteKey)
163163 if ((vote != 0))
164164 then throw("you have already voted on this team")
165165 else {
166166 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
167167 let teamScoreKey = (((taskId + "_applicant_") + teamName) + "_score")
168168 let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey))
169169 let newTeamScore = (voteValue + tryGetInteger(teamScoreKey))
170170 WriteSet([DataEntry(voteKey, voteValue), DataEntry(teamScoreKey, newTeamScore)])
171171 }
172172 }
173173
174174
175175
176176 @Callable(i)
177177 func finishApplicantsVoting (taskId) = {
178178 func isApplicantVotedEnough (aid,aid2) = {
179179 let listKey = (taskId + "_applicants")
180180 let applicantsList = split(getStringValue(this, listKey), ";")
181181 let teamName = applicantsList[aid]
182182 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
183183 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
184184 if ((teamVotesAmount > 0))
185185 then 1
186186 else throw(("not enough votes to make decision on " + teamName))
187187 }
188188
189189 func hasMoreVotes (aid,aid2) = {
190190 let listKey = (taskId + "_applicants")
191191 let applicantsList = split(getStringValue(this, listKey), ";")
192192 let teamName = applicantsList[aid]
193193 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
194194 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
195195 let team2Name = applicantsList[aid2]
196196 let team2VotesAmountKey = (((taskId + "_applicant_") + team2Name) + "_votes")
197197 let team2VotesAmount = tryGetInteger(team2VotesAmountKey)
198198 if ((teamVotesAmount > team2VotesAmount))
199199 then aid
200200 else aid2
201201 }
202202
203203 if (!(isGroupMember(i.caller)))
204204 then throw("grants working group access only")
205205 else {
206206 let chosenTeamId = {
207- let $list79157946 = [0, 1]
208- let $size79157946 = size($list79157946)
209- let $acc079157946 = 0
210- if (($size79157946 == 0))
211- then $acc079157946
207+ let $list78637894 = [0, 1]
208+ let $size78637894 = size($list78637894)
209+ let $acc078637894 = 0
210+ if (($size78637894 == 0))
211+ then $acc078637894
212212 else {
213- let $acc179157946 = hasMoreVotes($acc079157946, $list79157946[0])
214- if (($size79157946 == 1))
215- then $acc179157946
213+ let $acc178637894 = hasMoreVotes($acc078637894, $list78637894[0])
214+ if (($size78637894 == 1))
215+ then $acc178637894
216216 else {
217- let $acc279157946 = hasMoreVotes($acc179157946, $list79157946[1])
218- if (($size79157946 == 2))
219- then $acc279157946
217+ let $acc278637894 = hasMoreVotes($acc178637894, $list78637894[1])
218+ if (($size78637894 == 2))
219+ then $acc278637894
220220 else {
221- let $acc379157946 = hasMoreVotes($acc279157946, $list79157946[2])
221+ let $acc378637894 = hasMoreVotes($acc278637894, $list78637894[2])
222222 throw("List size exceed 2")
223223 }
224224 }
225225 }
226226 }
227227 let listKey = (taskId + "_applicants")
228228 let applicantsList = split(getStringValue(this, listKey), ";")
229229 let teamName = applicantsList[chosenTeamId]
230230 WriteSet([DataEntry((taskId + "_status"), "team_chosen"), DataEntry((taskId + "_performer"), teamName), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "can_begin")])
231231 }
232232 }
233233
234234
235235
236236 @Callable(i)
237237 func startWork (taskId) = {
238238 let teamName = getStringValue(this, (taskId + "_performer"))
239239 if ((toString(i.caller) != getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader"))))
240240 then throw("team leader only")
241241 else WriteSet([DataEntry((taskId + "_status"), "work_started"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_started")])
242242 }
243243
244244
245245
246246 @Callable(i)
247247 func acceptWorkResult (taskId) = if (!(isGroupMember(i.caller)))
248248 then throw("grants working group access only")
249249 else {
250250 let rewardAmount = tryGetInteger((taskId + "_reward"))
251251 let teamName = getStringValue(this, (taskId + "_performer"))
252252 let teamAddress = getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader"))
253253 ScriptResult(WriteSet([DataEntry((taskId + "_status"), "work_finished"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_finished")]), TransferSet([ScriptTransfer(addressFromStringValue(teamAddress), rewardAmount, unit)]))
254254 }
255255
256256

github/deemru/w8io/169f3d6 
50.31 ms