tx · BYsmCg8T4tZSR3zp2433bUFxWUdCUva5CeBRe2Q9yoky

3MutoJzdTrUrDBhCu1qU6FRgAADLadZEL9D:  -0.10000000 Waves

2020.12.21 18:53 [1318658] smart account 3MutoJzdTrUrDBhCu1qU6FRgAADLadZEL9D > SELF 0.00000000 Waves

{ "type": 13, "id": "BYsmCg8T4tZSR3zp2433bUFxWUdCUva5CeBRe2Q9yoky", "fee": 10000000, "feeAssetId": null, "timestamp": 1608566012558, "version": 2, "chainId": 84, "sender": "3MutoJzdTrUrDBhCu1qU6FRgAADLadZEL9D", "senderPublicKey": "AwtL5awdRAD38g4rSetUxgc11P6TfxbJg11rKmX4hXSo", "proofs": [ "orA6vNymETETiV2GeGGDdkMQVydECoDtzXbEu1FNNo8Z985G56JQCpJyBCtUZ3LA1uoaBLrMd5Q5x8i7VrfQTw9" ], "script": "base64:AAIDAAAAAAAAAE8IARIECgIICBIDCgEIEgQKAggBEgMKAQgSBQoDCAgIEgUKAwgIARIDCgEIEgQKAggIEgQKAggIEgMKAQgSBQoDCAgBEgUKAwgICBIDCgEIAAAACQAAAAAGUVVPUlVNAAAAAAAAAAABAAAAAAxtYWluQ29udHJhY3QJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM013UnppMkJtcVpaWFdyQ0dDd2NSUUxzbmljMkFvZDZ6aFMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAA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AAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAFX2FwcF8FAAAAEHdpbm5lcklkZW50aWZpZXICAAAACF9wcm9jZXNzAgAAAAZ3aW5uZXIJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAHX3JlcG9ydAUAAAAKcmVwb3J0TGluawUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAALdGVhbUFkZHJlc3MFAAAADHJld2FyZEFtb3VudAUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAACnJlamVjdFRhc2sAAAABAAAABnRhc2tJZAMJAQAAAAEhAAAAAQkBAAAADWlzR3JvdXBNZW1iZXIAAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAAgZ3JhbnRzIHdvcmtpbmcgZ3JvdXAgYWNjZXNzIG9ubHkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAAIcmVqZWN0ZWQFAAAAA25pbAAAAAC44eTp", "height": 1318658, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BBtMhjpePdyyrfCNYYkUuFe5AKifYq7vaeMdJqfQhQNU Next: B3it3JNP6p6nrt9qJgAek1mE6iXA28uPFNu9CpRBp7Ds Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1
55
6-func b (c) = {
7- let d = {
8- let e = getInteger(this, c)
9- if ($isInstanceOf(e, "Int"))
6+let b = addressFromStringValue("3MwRzi2BmqZZXWrCGCwcRQLsnic2Aod6zhS")
7+
8+func c (d) = {
9+ let e = {
10+ let f = getInteger(this, d)
11+ if ($isInstanceOf(f, "Int"))
1012 then {
11- let f = e
12- f
13+ let g = f
14+ g
1315 }
1416 else 0
1517 }
16- d
18+ e
1719 }
1820
1921
20-func g (c) = {
21- let d = {
22- let e = getString(this, c)
23- if ($isInstanceOf(e, "String"))
22+func h (d) = {
23+ let e = {
24+ let f = getString(this, d)
25+ if ($isInstanceOf(f, "String"))
2426 then {
25- let f = e
26- f
27+ let g = f
28+ g
2729 }
2830 else ""
2931 }
30- d
32+ e
3133 }
3234
3335
34-let h = addressFromStringValue("3NCsqf4pFGtECs3vM4j1nKqL6VA3HdiNGeZ")
35-
3636 func i () = {
37- let d = {
38- let e = getString(h, "working_group_members")
39- if ($isInstanceOf(e, "String"))
37+ let e = {
38+ let f = getString(b, "working_group_members")
39+ if ($isInstanceOf(f, "String"))
4040 then {
41- let f = e
42- f
41+ let g = f
42+ g
4343 }
4444 else ""
4545 }
46- d
46+ e
4747 }
4848
4949
5050 func j () = {
51- let d = {
52- let e = getString(h, "dao_members")
53- if ($isInstanceOf(e, "String"))
51+ let e = {
52+ let f = getString(b, "dao_members")
53+ if ($isInstanceOf(f, "String"))
5454 then {
55- let f = e
56- f
55+ let g = f
56+ g
5757 }
5858 else ""
5959 }
60- d
60+ e
6161 }
6262
6363
6464 func k () = {
65- let d = {
66- let e = getInteger(h, "dao_size")
67- if ($isInstanceOf(e, "Int"))
65+ let e = {
66+ let f = getInteger(b, "dao_size")
67+ if ($isInstanceOf(f, "Int"))
6868 then {
69- let f = e
70- f
69+ let g = f
70+ g
7171 }
7272 else 0
7373 }
74- d
74+ e
7575 }
7676
7777
7878 func l (m) = {
79- let d = {
80- let e = getInteger(h, (("working_group_member_" + toString(m)) + "_weight"))
81- if ($isInstanceOf(e, "Int"))
79+ let e = {
80+ let f = getInteger(b, (("working_group_member_" + toString(m)) + "_weight"))
81+ if ($isInstanceOf(f, "Int"))
8282 then {
83- let f = e
84- f
83+ let g = f
84+ g
8585 }
8686 else 0
8787 }
88- (d > 0)
88+ (e > 0)
8989 }
9090
9191
9292 func n (o) = {
93- let d = {
94- let e = getInteger(h, (("dao_member_" + toString(o.caller)) + "_weight"))
95- if ($isInstanceOf(e, "Int"))
93+ let e = {
94+ let f = getInteger(b, (("dao_member_" + toString(o.caller)) + "_weight"))
95+ if ($isInstanceOf(f, "Int"))
9696 then {
97- let f = e
98- f
97+ let g = f
98+ g
9999 }
100100 else 0
101101 }
102- (d > 0)
102+ (e > 0)
103103 }
104104
105105
131131 then throw("you need to vote 1 or -1")
132132 else {
133133 let u = ((("tasks_" + r) + "_voted_") + toString(o.caller))
134- let v = b(u)
134+ let v = c(u)
135135 if (!((v == 0)))
136136 then throw("you have already voted")
137137 else {
138138 let w = (("tasks_" + r) + "_voting_state")
139- let x = b(w)
139+ let x = c(w)
140140 let y = (("tasks_" + r) + "_voting_amount")
141- let z = (b(w) + 1)
141+ let z = (c(w) + 1)
142142 let A = (x + t)
143143 ScriptResult(WriteSet([DataEntry(w, A), DataEntry(u, t), DataEntry(y, z)]), TransferSet([ScriptTransfer(o.caller, 500000, unit)]))
144144 }
147147
148148
149149 @Callable(o)
150-func finishTaskProposalVoting (r) = if ((a > ((b((("tasks_" + r) + "_voting_amount")) * 100) / k())))
150+func finishTaskProposalVoting (r) = if ((a > ((c((("tasks_" + r) + "_voting_amount")) * 100) / k())))
151151 then throw((("more than " + toString(a)) + "% members have to vote before finishing the voting"))
152152 else if (!(l(o.caller)))
153153 then throw("grants working group access only")
154154 else {
155155 let w = (("tasks_" + r) + "_voting_state")
156- let x = b(w)
156+ let x = c(w)
157157 if ((x > 0))
158158 then {
159159 let B = "ready_to_apply"
169169
170170 @Callable(o)
171171 func applyForTask (r,C,q) = {
172- let D = g((("tasks_" + r) + "_status"))
172+ let D = h((("tasks_" + r) + "_status"))
173173 if ((D != "ready_to_apply"))
174174 then throw("This grant has not yet been approved")
175175 else {
176176 let E = (("tasks_" + r) + "_applicants")
177- let F = g(E)
177+ let F = h(E)
178178 let G = drop(toString(o.caller), 10)
179179 let H = toString(o.caller)
180180 let I = ((F + ";") + H)
190190 else {
191191 let K = (drop(toString(o.caller), 10) + drop(J, 10))
192192 let u = ((("tasks_" + r) + "_vote_") + K)
193- let L = b(u)
193+ let L = c(u)
194194 if ((L != 0))
195195 then throw("you have already voted on this team")
196196 else {
197197 let M = (((("tasks_" + r) + "_app_") + J) + "_votes")
198198 let N = (((("tasks_" + r) + "_app_") + J) + "_score")
199- let O = (1 + b(M))
200- let P = (t + b(N))
199+ let O = (1 + c(M))
200+ let P = (t + c(N))
201201 WriteSet([DataEntry(u, t), DataEntry(N, P)])
202202 }
203203 }
210210 if (!(l(o.caller)))
211211 then throw("grants working group access only")
212212 else {
213- let R = g((("tasks_" + r) + "_applicants"))
213+ let R = h((("tasks_" + r) + "_applicants"))
214214 let S = split(R, ";")
215215 if ((size(S) == 0))
216216 then throw("No one has applied to the hackathon, yet")
229229
230230 @Callable(o)
231231 func submitSolution (r,U) = {
232- func V (r) = (g((("tasks_" + r) + "_status")) == "work_started")
232+ func V (r) = (h((("tasks_" + r) + "_status")) == "work_started")
233233
234234 let J = getStringValue(this, (("tasks_" + r) + "_performer"))
235235 if (!(V(r)))
257257 else {
258258 let K = (drop(toString(o.caller), 10) + drop(J, 10))
259259 let u = ((("tasks_" + r) + "_solutionvote_") + K)
260- let L = b(u)
260+ let L = c(u)
261261 if ((L != 0))
262262 then throw("you have already voted on this solution")
263263 else {
264264 let M = (((("tasks_" + r) + "_app_") + J) + "_solutionvotes")
265265 let N = (((("tasks_" + r) + "_app_") + J) + "_solutionscore")
266- let O = (1 + b(M))
267- let P = (t + b(N))
266+ let O = (1 + c(M))
267+ let P = (t + c(N))
268268 WriteSet([DataEntry(u, t), DataEntry(N, P)])
269269 }
270270 }
276276 func acceptWorkResult (r,X,Y) = if (!(l(o.caller)))
277277 then throw("grants working group access only")
278278 else {
279- let Z = b((("tasks_" + r) + "_reward"))
279+ let Z = c((("tasks_" + r) + "_reward"))
280280 let aa = getStringValue(this, (((("tasks_" + r) + "_app_") + X) + "_leader"))
281281 ScriptResult(WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_finished"), DataEntry((((("tasks_" + r) + "_app_") + X) + "_process"), "winner"), DataEntry((("tasks_" + r) + "_report"), Y)]), TransferSet([ScriptTransfer(addressFromStringValue(aa), Z, unit)]))
282282 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1
55
6-func b (c) = {
7- let d = {
8- let e = getInteger(this, c)
9- if ($isInstanceOf(e, "Int"))
6+let b = addressFromStringValue("3MwRzi2BmqZZXWrCGCwcRQLsnic2Aod6zhS")
7+
8+func c (d) = {
9+ let e = {
10+ let f = getInteger(this, d)
11+ if ($isInstanceOf(f, "Int"))
1012 then {
11- let f = e
12- f
13+ let g = f
14+ g
1315 }
1416 else 0
1517 }
16- d
18+ e
1719 }
1820
1921
20-func g (c) = {
21- let d = {
22- let e = getString(this, c)
23- if ($isInstanceOf(e, "String"))
22+func h (d) = {
23+ let e = {
24+ let f = getString(this, d)
25+ if ($isInstanceOf(f, "String"))
2426 then {
25- let f = e
26- f
27+ let g = f
28+ g
2729 }
2830 else ""
2931 }
30- d
32+ e
3133 }
3234
3335
34-let h = addressFromStringValue("3NCsqf4pFGtECs3vM4j1nKqL6VA3HdiNGeZ")
35-
3636 func i () = {
37- let d = {
38- let e = getString(h, "working_group_members")
39- if ($isInstanceOf(e, "String"))
37+ let e = {
38+ let f = getString(b, "working_group_members")
39+ if ($isInstanceOf(f, "String"))
4040 then {
41- let f = e
42- f
41+ let g = f
42+ g
4343 }
4444 else ""
4545 }
46- d
46+ e
4747 }
4848
4949
5050 func j () = {
51- let d = {
52- let e = getString(h, "dao_members")
53- if ($isInstanceOf(e, "String"))
51+ let e = {
52+ let f = getString(b, "dao_members")
53+ if ($isInstanceOf(f, "String"))
5454 then {
55- let f = e
56- f
55+ let g = f
56+ g
5757 }
5858 else ""
5959 }
60- d
60+ e
6161 }
6262
6363
6464 func k () = {
65- let d = {
66- let e = getInteger(h, "dao_size")
67- if ($isInstanceOf(e, "Int"))
65+ let e = {
66+ let f = getInteger(b, "dao_size")
67+ if ($isInstanceOf(f, "Int"))
6868 then {
69- let f = e
70- f
69+ let g = f
70+ g
7171 }
7272 else 0
7373 }
74- d
74+ e
7575 }
7676
7777
7878 func l (m) = {
79- let d = {
80- let e = getInteger(h, (("working_group_member_" + toString(m)) + "_weight"))
81- if ($isInstanceOf(e, "Int"))
79+ let e = {
80+ let f = getInteger(b, (("working_group_member_" + toString(m)) + "_weight"))
81+ if ($isInstanceOf(f, "Int"))
8282 then {
83- let f = e
84- f
83+ let g = f
84+ g
8585 }
8686 else 0
8787 }
88- (d > 0)
88+ (e > 0)
8989 }
9090
9191
9292 func n (o) = {
93- let d = {
94- let e = getInteger(h, (("dao_member_" + toString(o.caller)) + "_weight"))
95- if ($isInstanceOf(e, "Int"))
93+ let e = {
94+ let f = getInteger(b, (("dao_member_" + toString(o.caller)) + "_weight"))
95+ if ($isInstanceOf(f, "Int"))
9696 then {
97- let f = e
98- f
97+ let g = f
98+ g
9999 }
100100 else 0
101101 }
102- (d > 0)
102+ (e > 0)
103103 }
104104
105105
106106 @Callable(o)
107107 func addTask (p,q) = if (!(l(o.caller)))
108108 then throw("grants working group access only")
109109 else WriteSet([DataEntry((("tasks_" + toBase58String(o.transactionId)) + "_title"), p), DataEntry((("tasks_" + toBase58String(o.transactionId)) + "_link"), q)])
110110
111111
112112
113113 @Callable(o)
114114 func addReward (r) = if (!(l(o.caller)))
115115 then throw("grants working group access only")
116116 else {
117117 let s = extract(o.payment).amount
118118 WriteSet([DataEntry((("tasks_" + r) + "_reward"), s), DataEntry((("tasks_" + r) + "_status"), "proposed")])
119119 }
120120
121121
122122
123123 @Callable(o)
124124 func voteForTaskProposal (r,t) = if (!(n(o)))
125125 then throw("you can't vote")
126126 else if ((getStringValue(this, (("tasks_" + r) + "_status")) != "proposed"))
127127 then throw("voting is closed or not started")
128128 else if (if ((t != -1))
129129 then (t != 1)
130130 else false)
131131 then throw("you need to vote 1 or -1")
132132 else {
133133 let u = ((("tasks_" + r) + "_voted_") + toString(o.caller))
134- let v = b(u)
134+ let v = c(u)
135135 if (!((v == 0)))
136136 then throw("you have already voted")
137137 else {
138138 let w = (("tasks_" + r) + "_voting_state")
139- let x = b(w)
139+ let x = c(w)
140140 let y = (("tasks_" + r) + "_voting_amount")
141- let z = (b(w) + 1)
141+ let z = (c(w) + 1)
142142 let A = (x + t)
143143 ScriptResult(WriteSet([DataEntry(w, A), DataEntry(u, t), DataEntry(y, z)]), TransferSet([ScriptTransfer(o.caller, 500000, unit)]))
144144 }
145145 }
146146
147147
148148
149149 @Callable(o)
150-func finishTaskProposalVoting (r) = if ((a > ((b((("tasks_" + r) + "_voting_amount")) * 100) / k())))
150+func finishTaskProposalVoting (r) = if ((a > ((c((("tasks_" + r) + "_voting_amount")) * 100) / k())))
151151 then throw((("more than " + toString(a)) + "% members have to vote before finishing the voting"))
152152 else if (!(l(o.caller)))
153153 then throw("grants working group access only")
154154 else {
155155 let w = (("tasks_" + r) + "_voting_state")
156- let x = b(w)
156+ let x = c(w)
157157 if ((x > 0))
158158 then {
159159 let B = "ready_to_apply"
160160 WriteSet([DataEntry((("tasks_" + r) + "_status"), B)])
161161 }
162162 else {
163163 let B = "rejected"
164164 WriteSet([DataEntry((("tasks_" + r) + "_status"), B)])
165165 }
166166 }
167167
168168
169169
170170 @Callable(o)
171171 func applyForTask (r,C,q) = {
172- let D = g((("tasks_" + r) + "_status"))
172+ let D = h((("tasks_" + r) + "_status"))
173173 if ((D != "ready_to_apply"))
174174 then throw("This grant has not yet been approved")
175175 else {
176176 let E = (("tasks_" + r) + "_applicants")
177- let F = g(E)
177+ let F = h(E)
178178 let G = drop(toString(o.caller), 10)
179179 let H = toString(o.caller)
180180 let I = ((F + ";") + H)
181181 WriteSet([DataEntry((((("tasks_" + r) + "_app_") + G) + "_name"), C), DataEntry((((("tasks_" + r) + "_app_") + G) + "_link"), q), DataEntry((((("tasks_" + r) + "_app_") + G) + "_leader"), H), DataEntry((((("tasks_" + r) + "_app_") + G) + "_id"), G), DataEntry(E, I)])
182182 }
183183 }
184184
185185
186186
187187 @Callable(o)
188188 func voteForApplicant (r,J,t) = if (!(n(o)))
189189 then throw("you can't vote")
190190 else {
191191 let K = (drop(toString(o.caller), 10) + drop(J, 10))
192192 let u = ((("tasks_" + r) + "_vote_") + K)
193- let L = b(u)
193+ let L = c(u)
194194 if ((L != 0))
195195 then throw("you have already voted on this team")
196196 else {
197197 let M = (((("tasks_" + r) + "_app_") + J) + "_votes")
198198 let N = (((("tasks_" + r) + "_app_") + J) + "_score")
199- let O = (1 + b(M))
200- let P = (t + b(N))
199+ let O = (1 + c(M))
200+ let P = (t + c(N))
201201 WriteSet([DataEntry(u, t), DataEntry(N, P)])
202202 }
203203 }
204204
205205
206206
207207 @Callable(o)
208208 func finishApplicantsVoting (r) = {
209209 let Q = 1
210210 if (!(l(o.caller)))
211211 then throw("grants working group access only")
212212 else {
213- let R = g((("tasks_" + r) + "_applicants"))
213+ let R = h((("tasks_" + r) + "_applicants"))
214214 let S = split(R, ";")
215215 if ((size(S) == 0))
216216 then throw("No one has applied to the hackathon, yet")
217217 else WriteSet([DataEntry((("tasks_" + r) + "_performer"), R), DataEntry((("tasks_" + r) + "_status"), "ready_to_submit")])
218218 }
219219 }
220220
221221
222222
223223 @Callable(o)
224224 func enableSubmissions (r,T) = if (!(l(o.caller)))
225225 then throw("grants working group access only")
226226 else WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_started"), DataEntry((("tasks_" + r) + "_jury"), T)])
227227
228228
229229
230230 @Callable(o)
231231 func submitSolution (r,U) = {
232- func V (r) = (g((("tasks_" + r) + "_status")) == "work_started")
232+ func V (r) = (h((("tasks_" + r) + "_status")) == "work_started")
233233
234234 let J = getStringValue(this, (("tasks_" + r) + "_performer"))
235235 if (!(V(r)))
236236 then throw("not possible to upload solution now")
237237 else if ((toString(o.caller) != getStringValue(this, (((("tasks_" + r) + "_app_") + J) + "_leader"))))
238238 then throw("team leader only")
239239 else WriteSet([DataEntry((((("tasks_" + r) + "_app_") + J) + "_process"), "work_submitted"), DataEntry((((("tasks_" + r) + "_app_") + J) + "_solution"), U)])
240240 }
241241
242242
243243
244244 @Callable(o)
245245 func stopSubmissions (r) = if (!(l(o.caller)))
246246 then throw("grants working group access only")
247247 else WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_finished")])
248248
249249
250250
251251 @Callable(o)
252252 func voteForSolution (r,J,t) = {
253253 func W (o,r) = true
254254
255255 if (!(W(o, r)))
256256 then throw("you can't vote")
257257 else {
258258 let K = (drop(toString(o.caller), 10) + drop(J, 10))
259259 let u = ((("tasks_" + r) + "_solutionvote_") + K)
260- let L = b(u)
260+ let L = c(u)
261261 if ((L != 0))
262262 then throw("you have already voted on this solution")
263263 else {
264264 let M = (((("tasks_" + r) + "_app_") + J) + "_solutionvotes")
265265 let N = (((("tasks_" + r) + "_app_") + J) + "_solutionscore")
266- let O = (1 + b(M))
267- let P = (t + b(N))
266+ let O = (1 + c(M))
267+ let P = (t + c(N))
268268 WriteSet([DataEntry(u, t), DataEntry(N, P)])
269269 }
270270 }
271271 }
272272
273273
274274
275275 @Callable(o)
276276 func acceptWorkResult (r,X,Y) = if (!(l(o.caller)))
277277 then throw("grants working group access only")
278278 else {
279- let Z = b((("tasks_" + r) + "_reward"))
279+ let Z = c((("tasks_" + r) + "_reward"))
280280 let aa = getStringValue(this, (((("tasks_" + r) + "_app_") + X) + "_leader"))
281281 ScriptResult(WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_finished"), DataEntry((((("tasks_" + r) + "_app_") + X) + "_process"), "winner"), DataEntry((("tasks_" + r) + "_report"), Y)]), TransferSet([ScriptTransfer(addressFromStringValue(aa), Z, unit)]))
282282 }
283283
284284
285285
286286 @Callable(o)
287287 func rejectTask (r) = if (!(l(o.caller)))
288288 then throw("grants working group access only")
289289 else WriteSet([DataEntry((("tasks_" + r) + "_status"), "rejected")])
290290
291291

github/deemru/w8io/169f3d6 
123.94 ms