tx · 5PCnFypGYzFyQDDeSAKVcua3qAfnjdXBkx2BVVymKftH

3MtV1AQ8fEPk76tjKgvrufuMe5aA3q4TviQ:  -0.10000000 Waves

2020.11.30 20:18 [1288446] smart account 3MtV1AQ8fEPk76tjKgvrufuMe5aA3q4TviQ > SELF 0.00000000 Waves

{ "type": 13, "id": "5PCnFypGYzFyQDDeSAKVcua3qAfnjdXBkx2BVVymKftH", "fee": 10000000, "feeAssetId": null, "timestamp": 1606756689125, "version": 2, "chainId": 84, "sender": "3MtV1AQ8fEPk76tjKgvrufuMe5aA3q4TviQ", "senderPublicKey": "3Fjao2FW1JXSPd5EkP7C3uerW18HYacYsaMYALFMGA6N", "proofs": [ "En8qHsWU7reaVnDJD1Uq2F51bnHDWsn7gn82puUhcdSKeU2sTErGrLkA7GUZnnzV7HcjTmmyiQyw9x7MEe9sogB" ], "script": "base64:AAIDAAAAAAAAAFAIARIECgIICBIECgIICBIECgIIARIDCgEIEgUKAwgICBIFCgMICAESAwoBCBIECgIICBIECgIICBIDCgEIEgUKAwgIARIFCgMICAgSAwoBCAAAAAkAAAAABlFVT1JVTQAAAAAAAAAAAQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAABQAAAAN2YWwAAAAADG1haW5Db250cmFjdAUAAAAEdGhpcwEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwMJAA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B19zdGF0dXMCAAAADXdvcmtfZmluaXNoZWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGdGFza3NfBQAAAAZ0YXNrSWQCAAAABV9hcHBfBQAAABB3aW5uZXJJZGVudGlmaWVyAgAAAAhfcHJvY2VzcwIAAAAGd2lubmVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGdGFza3NfBQAAAAZ0YXNrSWQCAAAAB19yZXBvcnQFAAAACnJlcG9ydExpbmsFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAC3RlYW1BZGRyZXNzBQAAAAxyZXdhcmRBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAFpAQAAAApyZWplY3RUYXNrAAAAAQAAAAZ0YXNrSWQDCQEAAAABIQAAAAEJAQAAAA1pc0dyb3VwTWVtYmVyAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAIGdyYW50cyB3b3JraW5nIGdyb3VwIGFjY2VzcyBvbmx5BAAAAA50ZWFtSWRlbnRpZmllcgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACCQABLAAAAAICAAAABnRhc2tzXwUAAAAGdGFza0lkAgAAAApfcGVyZm9ybWVyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGdGFza3NfBQAAAAZ0YXNrSWQCAAAAB19zdGF0dXMCAAAACHJlamVjdGVkBQAAAANuaWwAAAAA1JKFoA==", "height": 1288446, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AUewYi5WsC1EFqBAb4ywzF3ndZQGZgUfue828f85qKjQ Next: HR7iWwCxPc8HbX878WDmwLj9JY3RCAkJZTrcLwokNHFm Diff:
OldNewDifferences
3333
3434 let h = this
3535
36-func i (j) = (j == this)
36+func i (j) = if ((j == this))
37+ then true
38+ else (j == h)
3739
3840
3941 func k () = {
9395
9496
9597 @Callable(p)
96-func addTask (q,r) = WriteSet([DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_title"), q), DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_link"), r)])
98+func addTask (q,r) = if (!(m(p.caller)))
99+ then throw("grants working group access only")
100+ else WriteSet([DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_title"), q), DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_link"), r)])
97101
98102
99103
100104 @Callable(p)
101-func addTaskDetails (s,t) = {
102- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
103- if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))))
104- then throw("team leader only")
105- else WriteSet([DataEntry((("tasks_" + s) + "_requestedreward"), t)])
106- }
107-
108-
109-
110-@Callable(p)
111-func initTaskVoting (s) = if (!(m(p.caller)))
105+func addTaskDetails (s,t) = if (!(m(p.caller)))
112106 then throw("grants working group access only")
113- else WriteSet([DataEntry((("tasks_" + s) + "_status"), "voting_started")])
107+ else {
108+ let u = extract(p.payment).amount
109+ WriteSet([DataEntry((("tasks_" + s) + "_reward"), u), DataEntry((("tasks_" + s) + "_details"), t), DataEntry((("tasks_" + s) + "_status"), "proposed")])
110+ }
114111
115112
116113
150147 let z = b(y)
151148 if ((z > 0))
152149 then {
153- let D = "approved"
150+ let D = "ready_to_apply"
154151 WriteSet([DataEntry((("tasks_" + s) + "_status"), D)])
155152 }
156153 else {
162159
163160
164161 @Callable(p)
165-func startWork (s) = {
166- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
167- if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))))
168- then throw("team leader only")
169- else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_started")])
162+func applyForTask (s,E,r) = {
163+ let F = g((("tasks_" + s) + "_status"))
164+ if ((F != "ready_to_apply"))
165+ then throw("This grant has not yet been approved")
166+ else {
167+ let G = (("tasks_" + s) + "_applicants")
168+ let H = g(G)
169+ let I = drop(toString(p.caller), 10)
170+ let J = toString(p.caller)
171+ let K = ((H + ";") + J)
172+ WriteSet([DataEntry((((("tasks_" + s) + "_app_") + I) + "_name"), E), DataEntry((((("tasks_" + s) + "_app_") + I) + "_link"), r), DataEntry((((("tasks_" + s) + "_app_") + I) + "_leader"), J), DataEntry((((("tasks_" + s) + "_app_") + I) + "_id"), I), DataEntry(G, K)])
173+ }
170174 }
175+
176+
177+
178+@Callable(p)
179+func voteForApplicant (s,L,v) = if (!(o(p)))
180+ then throw("you can't vote")
181+ else {
182+ let M = (drop(toString(p.caller), 10) + drop(L, 10))
183+ let w = ((("tasks_" + s) + "_vote_") + M)
184+ let N = b(w)
185+ if ((N != 0))
186+ then throw("you have already voted on this team")
187+ else {
188+ let O = (((("tasks_" + s) + "_app_") + L) + "_votes")
189+ let P = (((("tasks_" + s) + "_app_") + L) + "_score")
190+ let Q = (1 + b(O))
191+ let R = (v + b(P))
192+ WriteSet([DataEntry(w, v), DataEntry(P, R)])
193+ }
194+ }
195+
196+
197+
198+@Callable(p)
199+func finishApplicantsVoting (s) = {
200+ let S = 1
201+ if (!(m(p.caller)))
202+ then throw("grants working group access only")
203+ else {
204+ let T = g((("tasks_" + s) + "_applicants"))
205+ let U = split(T, ";")
206+ if ((size(U) == 0))
207+ then throw("No one has applied to the hackathon, yet")
208+ else WriteSet([DataEntry((("tasks_" + s) + "_performer"), T), DataEntry((("tasks_" + s) + "_status"), "ready_to_submit")])
209+ }
210+ }
211+
212+
213+
214+@Callable(p)
215+func enableSubmissions (s,V) = if (!(m(p.caller)))
216+ then throw("grants working group access only")
217+ else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_started"), DataEntry((("tasks_" + s) + "_jury"), V)])
218+
219+
220+
221+@Callable(p)
222+func submitSolution (s,W) = {
223+ func X (s) = (g((("tasks_" + s) + "_status")) == "work_started")
224+
225+ let L = getStringValue(this, (("tasks_" + s) + "_performer"))
226+ if (!(X(s)))
227+ then throw("not possible to upload solution now")
228+ else if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + L) + "_leader"))))
229+ then throw("team leader only")
230+ else WriteSet([DataEntry((((("tasks_" + s) + "_app_") + L) + "_process"), "work_submitted"), DataEntry((((("tasks_" + s) + "_app_") + L) + "_solution"), W)])
231+ }
232+
233+
234+
235+@Callable(p)
236+func stopSubmissions (s) = if (!(m(p.caller)))
237+ then throw("grants working group access only")
238+ else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished")])
239+
240+
241+
242+@Callable(p)
243+func voteForSolution (s,L,v) = {
244+ func Y (p,s) = true
245+
246+ if (!(Y(p, s)))
247+ then throw("you can't vote")
248+ else {
249+ let M = (drop(toString(p.caller), 10) + drop(L, 10))
250+ let w = ((("tasks_" + s) + "_solutionvote_") + M)
251+ let N = b(w)
252+ if ((N != 0))
253+ then throw("you have already voted on this solution")
254+ else {
255+ let O = (((("tasks_" + s) + "_app_") + L) + "_solutionvotes")
256+ let P = (((("tasks_" + s) + "_app_") + L) + "_solutionscore")
257+ let Q = (1 + b(O))
258+ let R = (v + b(P))
259+ WriteSet([DataEntry(w, v), DataEntry(P, R)])
260+ }
261+ }
262+ }
263+
264+
265+
266+@Callable(p)
267+func acceptWorkResult (s,Z,aa) = if (!(m(p.caller)))
268+ then throw("grants working group access only")
269+ else {
270+ let ab = b((("tasks_" + s) + "_reward"))
271+ let ac = getStringValue(this, (((("tasks_" + s) + "_app_") + Z) + "_leader"))
272+ ScriptResult(WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished"), DataEntry((((("tasks_" + s) + "_app_") + Z) + "_process"), "winner"), DataEntry((("tasks_" + s) + "_report"), aa)]), TransferSet([ScriptTransfer(addressFromStringValue(ac), ab, unit)]))
273+ }
171274
172275
173276
175278 func rejectTask (s) = if (!(m(p.caller)))
176279 then throw("grants working group access only")
177280 else {
178- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
179- WriteSet([DataEntry((("tasks_" + s) + "_status"), "rejected"), DataEntry((((("tasks_" + s) + "_app_") + u) + "_process"), "rejected")])
180- }
181-
182-
183-
184-@Callable(p)
185-func acceptWorkResult (s,E) = if (!(m(p.caller)))
186- then throw("grants working group access only")
187- else {
188- let F = b((("tasks_" + s) + "_reward"))
189- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
190- let G = getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))
191- ScriptResult(WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished"), DataEntry((((("tasks_" + s) + "_app_") + u) + "_report"), E)]), TransferSet([ScriptTransfer(addressFromStringValue(G), F, unit)]))
281+ let L = getStringValue(this, (("tasks_" + s) + "_performer"))
282+ WriteSet([DataEntry((("tasks_" + s) + "_status"), "rejected")])
192283 }
193284
194285
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1
55
66 func b (c) = {
77 let d = {
88 let e = getInteger(this, c)
99 if ($isInstanceOf(e, "Int"))
1010 then {
1111 let f = e
1212 f
1313 }
1414 else 0
1515 }
1616 d
1717 }
1818
1919
2020 func g (c) = {
2121 let d = {
2222 let e = getString(this, c)
2323 if ($isInstanceOf(e, "String"))
2424 then {
2525 let f = e
2626 f
2727 }
2828 else ""
2929 }
3030 d
3131 }
3232
3333
3434 let h = this
3535
36-func i (j) = (j == this)
36+func i (j) = if ((j == this))
37+ then true
38+ else (j == h)
3739
3840
3941 func k () = {
4042 let d = {
4143 let e = getString(h, "working_group_members")
4244 if ($isInstanceOf(e, "String"))
4345 then {
4446 let f = e
4547 f
4648 }
4749 else ""
4850 }
4951 d
5052 }
5153
5254
5355 func l () = {
5456 let d = {
5557 let e = getString(h, "dao_members")
5658 if ($isInstanceOf(e, "String"))
5759 then {
5860 let f = e
5961 f
6062 }
6163 else ""
6264 }
6365 d
6466 }
6567
6668
6769 func m (n) = {
6870 let d = {
6971 let e = getInteger(h, (("working_group_member_" + toString(n)) + "_weight"))
7072 if ($isInstanceOf(e, "Int"))
7173 then {
7274 let f = e
7375 f
7476 }
7577 else 0
7678 }
7779 (d > 0)
7880 }
7981
8082
8183 func o (p) = {
8284 let d = {
8385 let e = getInteger(h, (("dao_member_" + toString(p.caller)) + "_weight"))
8486 if ($isInstanceOf(e, "Int"))
8587 then {
8688 let f = e
8789 f
8890 }
8991 else 0
9092 }
9193 (d > 0)
9294 }
9395
9496
9597 @Callable(p)
96-func addTask (q,r) = WriteSet([DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_title"), q), DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_link"), r)])
98+func addTask (q,r) = if (!(m(p.caller)))
99+ then throw("grants working group access only")
100+ else WriteSet([DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_title"), q), DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_link"), r)])
97101
98102
99103
100104 @Callable(p)
101-func addTaskDetails (s,t) = {
102- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
103- if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))))
104- then throw("team leader only")
105- else WriteSet([DataEntry((("tasks_" + s) + "_requestedreward"), t)])
106- }
107-
108-
109-
110-@Callable(p)
111-func initTaskVoting (s) = if (!(m(p.caller)))
105+func addTaskDetails (s,t) = if (!(m(p.caller)))
112106 then throw("grants working group access only")
113- else WriteSet([DataEntry((("tasks_" + s) + "_status"), "voting_started")])
107+ else {
108+ let u = extract(p.payment).amount
109+ WriteSet([DataEntry((("tasks_" + s) + "_reward"), u), DataEntry((("tasks_" + s) + "_details"), t), DataEntry((("tasks_" + s) + "_status"), "proposed")])
110+ }
114111
115112
116113
117114 @Callable(p)
118115 func voteForTaskProposal (s,v) = if (!(o(p)))
119116 then throw("you can't vote")
120117 else if ((getStringValue(this, (("tasks_" + s) + "_status")) != "proposed"))
121118 then throw("voting is closed or not started")
122119 else if (if ((v != -1))
123120 then (v != 1)
124121 else false)
125122 then throw("you need to vote 1 or -1")
126123 else {
127124 let w = ((("tasks_" + s) + "_voted_") + toString(p.caller))
128125 let x = b(w)
129126 if (!((x == 0)))
130127 then throw("you have already voted")
131128 else {
132129 let y = (("tasks_" + s) + "_voting_state")
133130 let z = b(y)
134131 let A = (("tasks_" + s) + "_voting_amount")
135132 let B = (b(y) + 1)
136133 let C = (z + v)
137134 ScriptResult(WriteSet([DataEntry(y, C), DataEntry(w, v), DataEntry(A, B)]), TransferSet([ScriptTransfer(p.caller, 500000, unit)]))
138135 }
139136 }
140137
141138
142139
143140 @Callable(p)
144141 func finishTaskProposalVoting (s) = if ((a > ((b((("tasks_" + s) + "_voting_amount")) * 100) / b("dao_size"))))
145142 then throw((("more than " + toString(a)) + "% members have to vote before finishing the voting"))
146143 else if (!(m(p.caller)))
147144 then throw("grants working group access only")
148145 else {
149146 let y = (("tasks_" + s) + "_voting_state")
150147 let z = b(y)
151148 if ((z > 0))
152149 then {
153- let D = "approved"
150+ let D = "ready_to_apply"
154151 WriteSet([DataEntry((("tasks_" + s) + "_status"), D)])
155152 }
156153 else {
157154 let D = "rejected"
158155 WriteSet([DataEntry((("tasks_" + s) + "_status"), D)])
159156 }
160157 }
161158
162159
163160
164161 @Callable(p)
165-func startWork (s) = {
166- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
167- if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))))
168- then throw("team leader only")
169- else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_started")])
162+func applyForTask (s,E,r) = {
163+ let F = g((("tasks_" + s) + "_status"))
164+ if ((F != "ready_to_apply"))
165+ then throw("This grant has not yet been approved")
166+ else {
167+ let G = (("tasks_" + s) + "_applicants")
168+ let H = g(G)
169+ let I = drop(toString(p.caller), 10)
170+ let J = toString(p.caller)
171+ let K = ((H + ";") + J)
172+ WriteSet([DataEntry((((("tasks_" + s) + "_app_") + I) + "_name"), E), DataEntry((((("tasks_" + s) + "_app_") + I) + "_link"), r), DataEntry((((("tasks_" + s) + "_app_") + I) + "_leader"), J), DataEntry((((("tasks_" + s) + "_app_") + I) + "_id"), I), DataEntry(G, K)])
173+ }
170174 }
175+
176+
177+
178+@Callable(p)
179+func voteForApplicant (s,L,v) = if (!(o(p)))
180+ then throw("you can't vote")
181+ else {
182+ let M = (drop(toString(p.caller), 10) + drop(L, 10))
183+ let w = ((("tasks_" + s) + "_vote_") + M)
184+ let N = b(w)
185+ if ((N != 0))
186+ then throw("you have already voted on this team")
187+ else {
188+ let O = (((("tasks_" + s) + "_app_") + L) + "_votes")
189+ let P = (((("tasks_" + s) + "_app_") + L) + "_score")
190+ let Q = (1 + b(O))
191+ let R = (v + b(P))
192+ WriteSet([DataEntry(w, v), DataEntry(P, R)])
193+ }
194+ }
195+
196+
197+
198+@Callable(p)
199+func finishApplicantsVoting (s) = {
200+ let S = 1
201+ if (!(m(p.caller)))
202+ then throw("grants working group access only")
203+ else {
204+ let T = g((("tasks_" + s) + "_applicants"))
205+ let U = split(T, ";")
206+ if ((size(U) == 0))
207+ then throw("No one has applied to the hackathon, yet")
208+ else WriteSet([DataEntry((("tasks_" + s) + "_performer"), T), DataEntry((("tasks_" + s) + "_status"), "ready_to_submit")])
209+ }
210+ }
211+
212+
213+
214+@Callable(p)
215+func enableSubmissions (s,V) = if (!(m(p.caller)))
216+ then throw("grants working group access only")
217+ else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_started"), DataEntry((("tasks_" + s) + "_jury"), V)])
218+
219+
220+
221+@Callable(p)
222+func submitSolution (s,W) = {
223+ func X (s) = (g((("tasks_" + s) + "_status")) == "work_started")
224+
225+ let L = getStringValue(this, (("tasks_" + s) + "_performer"))
226+ if (!(X(s)))
227+ then throw("not possible to upload solution now")
228+ else if ((toString(p.caller) != getStringValue(this, (((("tasks_" + s) + "_app_") + L) + "_leader"))))
229+ then throw("team leader only")
230+ else WriteSet([DataEntry((((("tasks_" + s) + "_app_") + L) + "_process"), "work_submitted"), DataEntry((((("tasks_" + s) + "_app_") + L) + "_solution"), W)])
231+ }
232+
233+
234+
235+@Callable(p)
236+func stopSubmissions (s) = if (!(m(p.caller)))
237+ then throw("grants working group access only")
238+ else WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished")])
239+
240+
241+
242+@Callable(p)
243+func voteForSolution (s,L,v) = {
244+ func Y (p,s) = true
245+
246+ if (!(Y(p, s)))
247+ then throw("you can't vote")
248+ else {
249+ let M = (drop(toString(p.caller), 10) + drop(L, 10))
250+ let w = ((("tasks_" + s) + "_solutionvote_") + M)
251+ let N = b(w)
252+ if ((N != 0))
253+ then throw("you have already voted on this solution")
254+ else {
255+ let O = (((("tasks_" + s) + "_app_") + L) + "_solutionvotes")
256+ let P = (((("tasks_" + s) + "_app_") + L) + "_solutionscore")
257+ let Q = (1 + b(O))
258+ let R = (v + b(P))
259+ WriteSet([DataEntry(w, v), DataEntry(P, R)])
260+ }
261+ }
262+ }
263+
264+
265+
266+@Callable(p)
267+func acceptWorkResult (s,Z,aa) = if (!(m(p.caller)))
268+ then throw("grants working group access only")
269+ else {
270+ let ab = b((("tasks_" + s) + "_reward"))
271+ let ac = getStringValue(this, (((("tasks_" + s) + "_app_") + Z) + "_leader"))
272+ ScriptResult(WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished"), DataEntry((((("tasks_" + s) + "_app_") + Z) + "_process"), "winner"), DataEntry((("tasks_" + s) + "_report"), aa)]), TransferSet([ScriptTransfer(addressFromStringValue(ac), ab, unit)]))
273+ }
171274
172275
173276
174277 @Callable(p)
175278 func rejectTask (s) = if (!(m(p.caller)))
176279 then throw("grants working group access only")
177280 else {
178- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
179- WriteSet([DataEntry((("tasks_" + s) + "_status"), "rejected"), DataEntry((((("tasks_" + s) + "_app_") + u) + "_process"), "rejected")])
180- }
181-
182-
183-
184-@Callable(p)
185-func acceptWorkResult (s,E) = if (!(m(p.caller)))
186- then throw("grants working group access only")
187- else {
188- let F = b((("tasks_" + s) + "_reward"))
189- let u = getStringValue(this, (("tasks_" + s) + "_performer"))
190- let G = getStringValue(this, (((("tasks_" + s) + "_app_") + u) + "_leader"))
191- ScriptResult(WriteSet([DataEntry((("tasks_" + s) + "_status"), "work_finished"), DataEntry((((("tasks_" + s) + "_app_") + u) + "_report"), E)]), TransferSet([ScriptTransfer(addressFromStringValue(G), F, unit)]))
281+ let L = getStringValue(this, (("tasks_" + s) + "_performer"))
282+ WriteSet([DataEntry((("tasks_" + s) + "_status"), "rejected")])
192283 }
193284
194285

github/deemru/w8io/169f3d6 
52.87 ms