tx · A8pXcJgG5212Df5qvZ5m1761iViMMrtjVnuQ12cxateE

3ND3M3hv2yGxYivxbWti5My7mitzkhnpBh6:  -0.01000000 Waves

2021.02.11 19:07 [1393730] smart account 3ND3M3hv2yGxYivxbWti5My7mitzkhnpBh6 > SELF 0.00000000 Waves

{ "type": 13, "id": "A8pXcJgG5212Df5qvZ5m1761iViMMrtjVnuQ12cxateE", "fee": 1000000, "feeAssetId": null, "timestamp": 1613059641438, "version": 1, "sender": "3ND3M3hv2yGxYivxbWti5My7mitzkhnpBh6", "senderPublicKey": "BCiMtgvm2ej8dq4LpdzgYy89V2REP7tQU7Zr7FVHuo4o", "proofs": [ "3hQyzi1mbK3fCJYgD5x6giTHtn9j3tGxszt3Ui4XnEMJiYZ8tmGgbUAVSehMRN1FQkkFg9WMwaHX8SKSVjBLRiaZ" ], "script": "base64:AAIDAAAAAAAAAE8IARIECgIICBIDCgEIEgQKAggIEgMKAQgSBQoDCAgIEgUKAwgICBIDCgEIEgQKAggIEgQKAggIEgMKAQgSBQoDCAgIEgUKAwgICBIDCgEIAAAAGAAAAAAGUVVPUlVNAAAAAAAAAAABAAAAAAxtYWluQ29udHJhY3QJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05Dc3FmNHBGR3RFQ3Mzdk00ajFuS3FMNlZBM0hkaU5HZVoBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA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0cmluZykAAAABBQAAAAt0ZWFtQWRkcmVzcwUAAAAMcmV3YXJkQW1vdW50BQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAAVY2hlY2tzIGFyZSBub3QgcGFzc2VkAAAAAWkBAAAACnJlamVjdFRhc2sAAAABAAAABnRhc2tJZAMJAQAAAAEhAAAAAQkBAAAADWlzR3JvdXBNZW1iZXIAAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAAgZ3JhbnRzIHdvcmtpbmcgZ3JvdXAgYWNjZXNzIG9ubHkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAAIcmVqZWN0ZWQFAAAAA25pbAAAAAAP+quo", "chainId": 84, "height": 1393730, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let QUORUM = 1
5+
6+let mainContract = addressFromStringValue("3NCsqf4pFGtECs3vM4j1nKqL6VA3HdiNGeZ")
7+
8+func tryGetInteger (key) = {
9+ let val = match getInteger(this, key) {
10+ case b: Int =>
11+ b
12+ case _ =>
13+ 0
14+ }
15+ val
16+ }
17+
18+
19+func tryGetString (key) = {
20+ let val = match getString(this, key) {
21+ case b: String =>
22+ b
23+ case _ =>
24+ ""
25+ }
26+ val
27+ }
28+
29+
30+func getGroup () = {
31+ let val = match getString(mainContract, "working_group_members") {
32+ case b: String =>
33+ b
34+ case _ =>
35+ ""
36+ }
37+ val
38+ }
39+
40+
41+func getMembers () = {
42+ let val = match getString(mainContract, "dao_members") {
43+ case b: String =>
44+ b
45+ case _ =>
46+ ""
47+ }
48+ val
49+ }
50+
51+
52+func getDAOSize () = {
53+ let val = match getInteger(mainContract, "dao_size") {
54+ case b: Int =>
55+ b
56+ case _ =>
57+ 0
58+ }
59+ val
60+ }
61+
62+
63+func isGroupMember (a) = {
64+ let val = match getInteger(mainContract, (("working_group_member_" + toString(a)) + "_weight")) {
65+ case b: Int =>
66+ b
67+ case _ =>
68+ 0
69+ }
70+ (val > 0)
71+ }
72+
73+
74+func canMemberVote (address) = {
75+ let val = match getInteger(mainContract, (("dao_member_" + toString(address)) + "_weight")) {
76+ case b: Int =>
77+ b
78+ case _ =>
79+ 0
80+ }
81+ (val > 0)
82+ }
83+
84+
85+func isJuryMember (address,taskId) = canMemberVote(address)
86+
87+
88+func getVoteValue (s) = if ((s == "like"))
89+ then 1
90+ else if ((s == "dislike"))
91+ then -1
92+ else throw("you need to vote with 'like' or 'dislike' value")
93+
94+
95+func addTaskConditions (address) = if (!(isGroupMember(address)))
96+ then throw("grants working group access only")
97+ else true
98+
99+
100+func addRewardConditions (address,taskId) = if (!(isGroupMember(address)))
101+ then throw("grants working group access only")
102+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != ""))
103+ then throw("grant isn`t new")
104+ else true
105+
106+
107+func voteForTaskProposalConditions (address,taskId) = if (!(canMemberVote(address)))
108+ then throw("you can't vote")
109+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "proposed"))
110+ then throw("voting is closed or not started")
111+ else if ((tryGetInteger(((("tasks_" + taskId) + "_voted_") + toString(address))) != 0))
112+ then throw("you have already voted")
113+ else true
114+
115+
116+func finishTaskProposalVotingConditions (address,taskId) = if (!(isGroupMember(address)))
117+ then throw("grants working group access only")
118+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "proposed"))
119+ then throw("voting is not active")
120+ else if ((QUORUM > ((tryGetInteger((("tasks_" + taskId) + "_voting_amount")) * 100) / getDAOSize())))
121+ then throw((("more than " + toString(QUORUM)) + "% members have to vote before finishing the voting"))
122+ else true
123+
124+
125+func applyForTaskConditions (address,taskId,teamIdentifier) = if ((tryGetString((("tasks_" + taskId) + "_status")) != "ready_to_apply"))
126+ then throw("this grant has not yet been approved")
127+ else if ((tryGetString((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader")) == toString(address)))
128+ then throw("you are applied")
129+ else true
130+
131+
132+func voteForApplicantConditions (address,taskId,teamIdentifier) = {
133+ let voteHash = (drop(toString(address), 10) + drop(teamIdentifier, 10))
134+ if (!(canMemberVote(address)))
135+ then throw("you can't vote")
136+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "ready_to_apply"))
137+ then throw("voting is not active")
138+ else if ((tryGetInteger(((("tasks_" + taskId) + "_vote_") + voteHash)) != 0))
139+ then throw("you have already voted on this team")
140+ else true
141+ }
142+
143+
144+func finishApplicantsVotingConditions (address,taskId,applicantsList) = if (!(isGroupMember(address)))
145+ then throw("grants working group access only")
146+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "ready_to_apply"))
147+ then throw("voting is not active")
148+ else if ((size(applicantsList) == 0))
149+ then throw("no one has yet responded to the grant")
150+ else true
151+
152+
153+func startWorkConditions (address,taskId,teamIdentifier) = if ((tryGetString((("tasks_" + taskId) + "_status")) != "team_chosen"))
154+ then throw("winner is not define")
155+ else if ((toString(address) != tryGetString((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader"))))
156+ then throw("team leader only")
157+ else true
158+
159+
160+func acceptWorkResultConditions (address,taskId,winnerIdentifier) = if (!(isGroupMember(address)))
161+ then throw("grants working group access only")
162+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "work_finished"))
163+ then throw("work is not finished")
164+ else if ((1 > tryGetInteger((((("tasks_" + taskId) + "_app_") + winnerIdentifier) + "_score_solution"))))
165+ then throw("negative assessment")
166+ else true
167+
168+
169+func enableSubmissionsConditions (address,taskId) = if (!(isGroupMember(address)))
170+ then throw("grants working group access only")
171+ else true
172+
173+
174+func submitSolutionConditions (address,taskId,teamIdentifier) = if ((tryGetString((("tasks_" + taskId) + "_status")) != "work_started"))
175+ then throw("work is not started")
176+ else if ((toString(address) != tryGetString((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader"))))
177+ then throw("team leader only")
178+ else if ((1 > tryGetInteger((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_score_applicant"))))
179+ then throw("your team is not approved")
180+ else if ((tryGetString((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_process")) == "work_submitted"))
181+ then throw("you have already presented the solution")
182+ else true
183+
184+
185+func stopSubmissionsConditions (address,taskId) = if (!(isGroupMember(address)))
186+ then throw("grants working group access only")
187+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "work_started"))
188+ then throw("work is not started")
189+ else true
190+
191+
192+func voteForSolutionConditions (address,taskId) = if (!(isJuryMember(address, taskId)))
193+ then throw("you can't vote")
194+ else if ((tryGetString((("tasks_" + taskId) + "_status")) != "work_finished"))
195+ then throw("work is not started")
196+ else true
197+
198+
199+@Callable(i)
200+func addTask (title,link) = if (addTaskConditions(i.caller))
201+ then WriteSet([DataEntry((("tasks_" + toBase58String(i.transactionId)) + "_title"), title), DataEntry((("tasks_" + toBase58String(i.transactionId)) + "_link"), link)])
202+ else throw("checks are not passed")
203+
204+
205+
206+@Callable(i)
207+func addReward (taskId) = if (addRewardConditions(i.caller, taskId))
208+ then {
209+ let reward = extract(i.payment).amount
210+ WriteSet([DataEntry((("tasks_" + taskId) + "_reward"), reward), DataEntry((("tasks_" + taskId) + "_status"), "proposed")])
211+ }
212+ else throw("checks are not passed")
213+
214+
215+
216+@Callable(i)
217+func voteForTaskProposal (taskId,voteValue) = if (voteForTaskProposalConditions(i.caller, taskId))
218+ then {
219+ let voteKey = ((("tasks_" + taskId) + "_voted_") + toString(i.caller))
220+ let votingKey = (("tasks_" + taskId) + "_voting_state")
221+ let votingState = tryGetInteger(votingKey)
222+ let votesAmountKey = (("tasks_" + taskId) + "_voting_amount")
223+ let votesAmountState = (tryGetInteger(votingKey) + 1)
224+ let voteValueInt = getVoteValue(voteValue)
225+ let newVotingState = (votingState + voteValueInt)
226+ WriteSet([DataEntry(votingKey, newVotingState), DataEntry(voteKey, voteValueInt), DataEntry(votesAmountKey, votesAmountState)])
227+ }
228+ else throw("checks are not passed")
229+
230+
231+
232+@Callable(i)
233+func finishTaskProposalVoting (taskId) = if (finishTaskProposalVotingConditions(i.caller, taskId))
234+ then {
235+ let votingKey = (("tasks_" + taskId) + "_voting_state")
236+ WriteSet([DataEntry((("tasks_" + taskId) + "_status"), if ((tryGetInteger(votingKey) > 0))
237+ then "ready_to_apply"
238+ else "rejected")])
239+ }
240+ else throw("checks are not passed")
241+
242+
243+
244+@Callable(i)
245+func applyForTask (taskId,teamName,link) = {
246+ let teamIdentifier = drop(toString(i.caller), 10)
247+ if (applyForTaskConditions(i.caller, taskId, teamIdentifier))
248+ then {
249+ let listKey = (("tasks_" + taskId) + "_applicants")
250+ let currentApplicantsList = tryGetString(listKey)
251+ let newApplicantsList = ((currentApplicantsList + ";") + toString(i.caller))
252+ WriteSet([DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_name"), teamName), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_link"), link), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_leader"), toString(i.caller)), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_id"), teamIdentifier), DataEntry(listKey, newApplicantsList)])
253+ }
254+ else throw("checks are not passed")
255+ }
256+
257+
258+
259+@Callable(i)
260+func voteForApplicant (taskId,teamIdentifier,voteValue) = if (voteForApplicantConditions(i.caller, taskId, teamIdentifier))
261+ then {
262+ let listKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_voted_applicant")
263+ let newApplicantsList = ((tryGetString(listKey) + ";") + toString(i.caller))
264+ let voteHash = (drop(toString(i.caller), 20) + teamIdentifier)
265+ let voteKey = ((("tasks_" + taskId) + "_vh_") + voteHash)
266+ if ((tryGetString(voteKey) == toString(i.caller)))
267+ then throw("you have already voted on this team")
268+ else {
269+ let teamVotesAmountKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_votes_applicant")
270+ let teamScoreKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_score_applicant")
271+ let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey))
272+ let newTeamScore = (getVoteValue(voteValue) + tryGetInteger(teamScoreKey))
273+ WriteSet([DataEntry(listKey, newApplicantsList), DataEntry(voteKey, toString(i.caller)), DataEntry(teamVotesAmountKey, teamVotesAmount), DataEntry(teamScoreKey, newTeamScore)])
274+ }
275+ }
276+ else throw("checks are not passed")
277+
278+
279+
280+@Callable(i)
281+func finishApplicantsVoting (taskId) = {
282+ let listKeys = tryGetString((("tasks_" + taskId) + "_applicants"))
283+ let applicantsList = split(listKeys, ";")
284+ if (finishApplicantsVotingConditions(i.caller, taskId, applicantsList))
285+ then WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "ready_to_submit")])
286+ else throw("checks are not passed")
287+ }
288+
289+
290+
291+@Callable(i)
292+func enableSubmissions (taskId,juryList) = if (enableSubmissionsConditions(i.caller, taskId))
293+ then WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "work_started"), DataEntry((("tasks_" + taskId) + "_jury"), juryList)])
294+ else throw("checks are not passed")
295+
296+
297+
298+@Callable(i)
299+func submitSolution (taskId,solutionLink) = {
300+ let teamIdentifier = drop(toString(i.caller), 10)
301+ if (submitSolutionConditions(i.caller, taskId, teamIdentifier))
302+ then WriteSet([DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_process"), "work_submitted"), DataEntry((((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_solution"), solutionLink)])
303+ else throw("checks are not passed")
304+ }
305+
306+
307+
308+@Callable(i)
309+func stopSubmissions (taskId) = if (stopSubmissionsConditions(i.caller, taskId))
310+ then WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "work_finished")])
311+ else throw("checks are not passed")
312+
313+
314+
315+@Callable(i)
316+func voteForSolution (taskId,teamIdentifier,voteValue) = if (voteForSolutionConditions(i.caller, taskId))
317+ then {
318+ let listKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_voted_solution")
319+ let newVotedList = ((tryGetString(listKey) + ";") + toString(i.caller))
320+ let voteHash = (drop(toString(i.caller), 20) + teamIdentifier)
321+ let voteKey = ((("tasks_" + taskId) + "_vs_") + voteHash)
322+ if ((tryGetString(voteKey) == toString(i.caller)))
323+ then throw("you have already voted on this team")
324+ else {
325+ let teamVotesAmountKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_votes_solution")
326+ let teamScoreKey = (((("tasks_" + taskId) + "_app_") + teamIdentifier) + "_score_solution")
327+ let teamVotesAmount = (1 + tryGetInteger(teamVotesAmountKey))
328+ let newTeamScore = (getVoteValue(voteValue) + tryGetInteger(teamScoreKey))
329+ WriteSet([DataEntry(listKey, newVotedList), DataEntry(voteKey, toString(i.caller)), DataEntry(teamVotesAmountKey, teamVotesAmount), DataEntry(teamScoreKey, newTeamScore)])
330+ }
331+ }
332+ else throw("checks are not passed")
333+
334+
335+
336+@Callable(i)
337+func acceptWorkResult (taskId,winnerIdentifier,reportLink) = if (acceptWorkResultConditions(i.caller, taskId, winnerIdentifier))
338+ then {
339+ let rewardAmount = tryGetInteger((("tasks_" + taskId) + "_reward"))
340+ let teamAddress = getStringValue(this, (((("tasks_" + taskId) + "_app_") + winnerIdentifier) + "_leader"))
341+ ScriptResult(WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "solution_chosen"), DataEntry((((("tasks_" + taskId) + "_app_") + winnerIdentifier) + "_process"), "winner"), DataEntry((("tasks_" + taskId) + "_report"), reportLink)]), TransferSet([ScriptTransfer(addressFromStringValue(teamAddress), rewardAmount, unit)]))
342+ }
343+ else throw("checks are not passed")
344+
345+
346+
347+@Callable(i)
348+func rejectTask (taskId) = if (!(isGroupMember(i.caller)))
349+ then throw("grants working group access only")
350+ else WriteSet([DataEntry((("tasks_" + taskId) + "_status"), "rejected")])
351+
352+

github/deemru/w8io/169f3d6 
44.28 ms