tx · 25pk9sPbXUGhnRhfTSbeWTuypf9KAQnPKdMi6HGtk2we

3MvqnYLwBErxGtKzeEjgWgr2RXgniokicR2:  -0.01400000 Waves

2020.09.30 15:44 [1200060] smart account 3MvqnYLwBErxGtKzeEjgWgr2RXgniokicR2 > SELF 0.00000000 Waves

{ "type": 13, "id": "25pk9sPbXUGhnRhfTSbeWTuypf9KAQnPKdMi6HGtk2we", "fee": 1400000, "feeAssetId": null, "timestamp": 1601469895547, "version": 2, "chainId": 84, "sender": "3MvqnYLwBErxGtKzeEjgWgr2RXgniokicR2", "senderPublicKey": "3dxKqzB5AWentnFkyzLnbnRfN2iRWgE7Q4paMwfi9MoT", "proofs": [ "5wVLenmgxA8H5YmLyqcXRa1EyXooMJyme3UCYU18ZmqxxyjDgPG3JSxv3ejn8hTfS4SYnghfLf2DS7fpWHmBYkqc" ], "script": "base64:AAIDAAAAAAAAAEMIARIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIEgQKAggBEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIDCgEIAAAACAAAAAAGUVVPUlVNAAAAAAAAAAAyAAAAAAVXQ1RpZAEAAAAgO1kbDPy5xEIOvJ4v22ekSZz5VGdcetD16T0T8sRYgmMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAB2lzT3duZXIAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwEAAAAIZ2V0R3JvdXAAAAAABAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAANd29ya2luZ19ncm91cAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW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QAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZ0YXNrSWQCAAAAC19hcHBsaWNhbnRfBQAAAAh0ZWFtTmFtZQIAAAANX3dvcmtfcHJvY2VzcwIAAAANd29ya19maW5pc2hlZAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAALdGVhbUFkZHJlc3MFAAAADHJld2FyZEFtb3VudAUAAAAEdW5pdAUAAAADbmlsAAAAANu+qco=", "height": 1200060, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9eiYxMChRd2ijzayz4mSkRx4LzYLU3S46na2R2M1BUMQ Next: 5TpwqYSbWw3yrqV8taWPud8oKtC3j97perB4hoVJHTCt Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let QUORUM = 50
5+
6+let WCTid = base58'4zfrrwDVjbGFM8wxbZGriVLY4XJsVD4oNMp21FnDnMAa'
57
68 func tryGetInteger (key) = {
79 let val = match getInteger(this, key) {
7577 func addTask (title) = if (!(isGroupMember(i.caller)))
7678 then throw("grants working group access only")
7779 else WriteSet([DataEntry((toBase58String(i.transactionId) + "_task"), title)])
80+
81+
82+
83+@Callable(i)
84+func rateTask (taskId,rate) = if (!(if ((rate == 1))
85+ then true
86+ else (rate == -1)))
87+ then throw("your rate needs to be +1 or -1")
88+ else {
89+ let pmt = extract(i.payment)
90+ if ((pmt.assetId != WCTid))
91+ then throw("you need to vote using WCT")
92+ else {
93+ let weight = pmt.amount
94+ let vote = (rate * weight)
95+ let previousRate = tryGetInteger((taskId + "_community_rate"))
96+ ScriptResult(WriteSet([DataEntry((taskId + "_community_rate"), (previousRate + vote))]), TransferSet([ScriptTransfer(i.caller, pmt.amount, pmt.assetId)]))
97+ }
98+ }
7899
79100
80101
200221 then throw("grants working group access only")
201222 else {
202223 let chosenTeamId = {
203- let $list77857816 = [0, 1]
204- let $size77857816 = size($list77857816)
205- let $acc077857816 = 0
206- if (($size77857816 == 0))
207- then $acc077857816
224+ let $list85228553 = [0, 1]
225+ let $size85228553 = size($list85228553)
226+ let $acc085228553 = 0
227+ if (($size85228553 == 0))
228+ then $acc085228553
208229 else {
209- let $acc177857816 = hasMoreVotes($acc077857816, $list77857816[0])
210- if (($size77857816 == 1))
211- then $acc177857816
230+ let $acc185228553 = hasMoreVotes($acc085228553, $list85228553[0])
231+ if (($size85228553 == 1))
232+ then $acc185228553
212233 else {
213- let $acc277857816 = hasMoreVotes($acc177857816, $list77857816[1])
214- if (($size77857816 == 2))
215- then $acc277857816
234+ let $acc285228553 = hasMoreVotes($acc185228553, $list85228553[1])
235+ if (($size85228553 == 2))
236+ then $acc285228553
216237 else {
217- let $acc377857816 = hasMoreVotes($acc277857816, $list77857816[2])
238+ let $acc385228553 = hasMoreVotes($acc285228553, $list85228553[2])
218239 throw("List size exceed 2")
219240 }
220241 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let QUORUM = 50
5+
6+let WCTid = base58'4zfrrwDVjbGFM8wxbZGriVLY4XJsVD4oNMp21FnDnMAa'
57
68 func tryGetInteger (key) = {
79 let val = match getInteger(this, key) {
810 case b: Int =>
911 b
1012 case _ =>
1113 0
1214 }
1315 val
1416 }
1517
1618
1719 func isOwner (address) = (address == this)
1820
1921
2022 func getGroup () = {
2123 let val = match getString(this, "working_group") {
2224 case b: String =>
2325 b
2426 case _ =>
2527 ""
2628 }
2729 val
2830 }
2931
3032
3133 func getMembers () = {
3234 let val = match getString(this, "dao_members") {
3335 case b: String =>
3436 b
3537 case _ =>
3638 ""
3739 }
3840 val
3941 }
4042
4143
4244 func isGroupMember (a) = (tryGetInteger(("group_member_weight_" + toString(a))) > 0)
4345
4446
4547 func canMemberVote (i) = (tryGetInteger(("dao_member_weight_" + toString(i.caller))) > 0)
4648
4749
4850 @Callable(i)
4951 func addDAOMember (memberAddress) = if (!(isOwner(i.caller)))
5052 then throw("access only to the DAO owner")
5153 else {
5254 let group = getMembers()
5355 let newGroup = ((group + ";") + memberAddress)
5456 let groupSize = tryGetInteger("dao_size")
5557 let newGroupSize = (groupSize + 1)
5658 WriteSet([DataEntry("dao_members", newGroup), DataEntry("dao_size", newGroupSize), DataEntry(("dao_member_weight_" + memberAddress), 1)])
5759 }
5860
5961
6062
6163 @Callable(i)
6264 func addGroupMember (memberAddress) = if (!(isOwner(i.caller)))
6365 then throw("access only to the DAO owner")
6466 else {
6567 let group = getGroup()
6668 let newGroup = ((group + ";") + memberAddress)
6769 let groupSize = tryGetInteger("working_group_size")
6870 let newGroupSize = (groupSize + 1)
6971 WriteSet([DataEntry("working_group", newGroup), DataEntry("working_group_size", newGroupSize), DataEntry(("group_member_weight_" + memberAddress), 1)])
7072 }
7173
7274
7375
7476 @Callable(i)
7577 func addTask (title) = if (!(isGroupMember(i.caller)))
7678 then throw("grants working group access only")
7779 else WriteSet([DataEntry((toBase58String(i.transactionId) + "_task"), title)])
80+
81+
82+
83+@Callable(i)
84+func rateTask (taskId,rate) = if (!(if ((rate == 1))
85+ then true
86+ else (rate == -1)))
87+ then throw("your rate needs to be +1 or -1")
88+ else {
89+ let pmt = extract(i.payment)
90+ if ((pmt.assetId != WCTid))
91+ then throw("you need to vote using WCT")
92+ else {
93+ let weight = pmt.amount
94+ let vote = (rate * weight)
95+ let previousRate = tryGetInteger((taskId + "_community_rate"))
96+ ScriptResult(WriteSet([DataEntry((taskId + "_community_rate"), (previousRate + vote))]), TransferSet([ScriptTransfer(i.caller, pmt.amount, pmt.assetId)]))
97+ }
98+ }
7899
79100
80101
81102 @Callable(i)
82103 func addTaskDetails (taskId) = if (!(isGroupMember(i.caller)))
83104 then throw("grants working group access only")
84105 else {
85106 let reward = extract(i.payment).amount
86107 WriteSet([DataEntry((taskId + "_reward"), reward), DataEntry((taskId + "_status"), "proposed")])
87108 }
88109
89110
90111
91112 @Callable(i)
92113 func voteForTaskProposal (taskId,voteValue) = if (!(canMemberVote(i)))
93114 then throw("you can't vote")
94115 else if ((getStringValue(this, (taskId + "_status")) != "proposed"))
95116 then throw("voting is closed or not started")
96117 else if (if ((voteValue != -1))
97118 then (voteValue != 1)
98119 else false)
99120 then throw("you need to vote 1 or -1")
100121 else {
101122 let voteKey = (((taskId + "_") + toString(i.caller)) + "_vote1")
102123 let previousVote = tryGetInteger(voteKey)
103124 if (!((previousVote == 0)))
104125 then throw("you have already voted")
105126 else {
106127 let votingKey = (taskId + "_voting1")
107128 let votingState = tryGetInteger(votingKey)
108129 let votesAmountKey = (taskId + "_voting1_amount")
109130 let votesAmountState = (tryGetInteger(votingKey) + 1)
110131 let newVotingState = (votingState + voteValue)
111132 ScriptResult(WriteSet([DataEntry(votingKey, newVotingState), DataEntry(voteKey, voteValue), DataEntry(votesAmountKey, votesAmountState)]), TransferSet([ScriptTransfer(i.caller, 500000, unit)]))
112133 }
113134 }
114135
115136
116137
117138 @Callable(i)
118139 func finishTaskProposalVoting (taskId) = if ((QUORUM > ((tryGetInteger((taskId + "_voting1_amount")) * 100) / tryGetInteger("dao_size"))))
119140 then throw((("more than " + toString(QUORUM)) + "% members have to vote before finishing the voting"))
120141 else if (!(isGroupMember(i.caller)))
121142 then throw("grants working group access only")
122143 else {
123144 let votingKey = (taskId + "_voting1")
124145 let votingState = tryGetInteger(votingKey)
125146 if ((votingState > 0))
126147 then {
127148 let votingResult = "ready_to_apply"
128149 WriteSet([DataEntry((taskId + "_status"), votingResult)])
129150 }
130151 else {
131152 let votingResult = "rejected"
132153 WriteSet([DataEntry((taskId + "_status"), votingResult)])
133154 }
134155 }
135156
136157
137158
138159 @Callable(i)
139160 func applyForTask (taskId,teamName) = {
140161 let listKey = (taskId + "_applicants")
141162 let currentApplicantsList = match getString(this, listKey) {
142163 case b: String =>
143164 b
144165 case _ =>
145166 ""
146167 }
147168 let newApplicantsList = ((currentApplicantsList + ";") + teamName)
148169 WriteSet([DataEntry((((taskId + "_applicant_") + teamName) + "_leader"), toString(i.caller)), DataEntry(listKey, newApplicantsList)])
149170 }
150171
151172
152173
153174 @Callable(i)
154175 func voteForApplicant (taskId,teamName,voteValue) = if (!(canMemberVote(i)))
155176 then throw("you can't vote")
156177 else {
157178 let voteKey = ((((taskId + "_") + toString(i.caller)) + "_vote_") + teamName)
158179 let vote = tryGetInteger(voteKey)
159180 if ((vote != 0))
160181 then throw("you have already voted on this team")
161182 else {
162183 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
163184 let teamScoreKey = (((taskId + "_applicant_") + teamName) + "_score")
164185 let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey))
165186 let newTeamScore = (voteValue + tryGetInteger(teamScoreKey))
166187 WriteSet([DataEntry(voteKey, voteValue), DataEntry(teamScoreKey, newTeamScore)])
167188 }
168189 }
169190
170191
171192
172193 @Callable(i)
173194 func finishApplicantsVoting (taskId) = {
174195 func isApplicantVotedEnough (aid,aid2) = {
175196 let listKey = (taskId + "_applicants")
176197 let applicantsList = split(getStringValue(this, listKey), ";")
177198 let teamName = applicantsList[aid]
178199 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
179200 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
180201 if ((teamVotesAmount > 0))
181202 then 1
182203 else throw(("not enough votes to make decision on " + teamName))
183204 }
184205
185206 func hasMoreVotes (aid,aid2) = {
186207 let listKey = (taskId + "_applicants")
187208 let applicantsList = split(getStringValue(this, listKey), ";")
188209 let teamName = applicantsList[aid]
189210 let teamVotesAmountKey = (((taskId + "_applicant_") + teamName) + "_votes")
190211 let teamVotesAmount = tryGetInteger(teamVotesAmountKey)
191212 let team2Name = applicantsList[aid2]
192213 let team2VotesAmountKey = (((taskId + "_applicant_") + team2Name) + "_votes")
193214 let team2VotesAmount = tryGetInteger(team2VotesAmountKey)
194215 if ((teamVotesAmount > team2VotesAmount))
195216 then aid
196217 else aid2
197218 }
198219
199220 if (!(isGroupMember(i.caller)))
200221 then throw("grants working group access only")
201222 else {
202223 let chosenTeamId = {
203- let $list77857816 = [0, 1]
204- let $size77857816 = size($list77857816)
205- let $acc077857816 = 0
206- if (($size77857816 == 0))
207- then $acc077857816
224+ let $list85228553 = [0, 1]
225+ let $size85228553 = size($list85228553)
226+ let $acc085228553 = 0
227+ if (($size85228553 == 0))
228+ then $acc085228553
208229 else {
209- let $acc177857816 = hasMoreVotes($acc077857816, $list77857816[0])
210- if (($size77857816 == 1))
211- then $acc177857816
230+ let $acc185228553 = hasMoreVotes($acc085228553, $list85228553[0])
231+ if (($size85228553 == 1))
232+ then $acc185228553
212233 else {
213- let $acc277857816 = hasMoreVotes($acc177857816, $list77857816[1])
214- if (($size77857816 == 2))
215- then $acc277857816
234+ let $acc285228553 = hasMoreVotes($acc185228553, $list85228553[1])
235+ if (($size85228553 == 2))
236+ then $acc285228553
216237 else {
217- let $acc377857816 = hasMoreVotes($acc277857816, $list77857816[2])
238+ let $acc385228553 = hasMoreVotes($acc285228553, $list85228553[2])
218239 throw("List size exceed 2")
219240 }
220241 }
221242 }
222243 }
223244 let listKey = (taskId + "_applicants")
224245 let applicantsList = split(getStringValue(this, listKey), ";")
225246 let teamName = applicantsList[chosenTeamId]
226247 WriteSet([DataEntry((taskId + "_status"), "team_chosen"), DataEntry((taskId + "_performer"), teamName), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "can_begin")])
227248 }
228249 }
229250
230251
231252
232253 @Callable(i)
233254 func startWork (taskId) = {
234255 let teamName = getStringValue(this, (taskId + "_performer"))
235256 if ((toString(i.caller) != getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader"))))
236257 then throw("team leader only")
237258 else WriteSet([DataEntry((taskId + "_status"), "work_started"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_started")])
238259 }
239260
240261
241262
242263 @Callable(i)
243264 func acceptWorkResult (taskId) = if (!(isGroupMember(i.caller)))
244265 then throw("grants working group access only")
245266 else {
246267 let rewardAmount = tryGetInteger((taskId + "_reward"))
247268 let teamName = getStringValue(this, (taskId + "_performer"))
248269 let teamAddress = getStringValue(this, (((taskId + "_applicant_") + teamName) + "_leader"))
249270 ScriptResult(WriteSet([DataEntry((taskId + "_status"), "work_finished"), DataEntry((((taskId + "_applicant_") + teamName) + "_work_process"), "work_finished")]), TransferSet([ScriptTransfer(addressFromStringValue(teamAddress), rewardAmount, unit)]))
250271 }
251272
252273

github/deemru/w8io/026f985 
54.80 ms