tx · FDAMNwPMzBuVvi3QhTRwJWztDnCeuhCVPTjNB1zUL31k 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC: -0.01400000 Waves 2021.11.30 19:10 [1813997] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves
{ "type": 13, "id": "FDAMNwPMzBuVvi3QhTRwJWztDnCeuhCVPTjNB1zUL31k", "fee": 1400000, "feeAssetId": null, "timestamp": 1638288605913, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "6Kfcw7n8BPX821acJKXMXAmzxtDqCBkaV85MfCbS1RdEBVxizwcEg5hzPWMZ37D4Sgn4q54Rt7KWVdjxGZvaeCW", "hyBDSbtwGqyEmSsW8JNyZjfTFAFqwmBR44Pu7Rk23QeXR7dcmqUkwmx6DaRnzwFD7CcnY95k5QyrVeqgTPTbvDq" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHQAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAA1rZXlQcml6ZXNBSWRzAgAAABdwcml6ZXNfYWNoaWV2ZW1lbnRzX2lkcwAAAAAQa2V5UHJpemVzQW1vdW50cwIAAAANcHJpemVzX2Ftb3VudAAAAAAOa2V5TGV2ZWxQcmljZXMCAAAADGxldmVsX3ByaWNlcwAAAAAWa2V5TGV2ZWxBY2hpZXZlbW50c0lkcwIAAAAWbGV2ZWxfYWNoaWV2ZW1lbnRzX2lkcwAAAAAJa2V5U1dPUGlkAgAAAAdTV09QX2lkAAAAAA5rZXlUb3RhbEJ1cm5lZAIAAAAMdG90YWx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AAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAgQAAAANc2lnbmVkQnlBZG1pbgMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEmFkbWluUHViS2V5U3Rha2luZwQAAAAHJG1hdGNoMAUAAAACdHgFAAAAE211bHRpU2lnbmVkQnlBZG1pbnOj+bta", "height": 1813997, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FsJSMEA8njEumeQMn9cuRNK7dKX9fBrC8ZHdGH1Scaud Next: 5EPJnNx2cbQgkC2DJrXD9R4HsXZbvJwPoP8MRGKZybmv Diff:
Old | New | Differences | |
---|---|---|---|
94 | 94 | ||
95 | 95 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
96 | 96 | } | |
97 | - | if ((M >= N[3])) | |
97 | + | let V = N[3] | |
98 | + | let W = N[2] | |
99 | + | let X = N[1] | |
100 | + | let Y = N[0] | |
101 | + | if ((M >= V)) | |
98 | 102 | then 4 | |
99 | - | else if ((M >= | |
103 | + | else if ((M >= V)) | |
100 | 104 | then 3 | |
101 | - | else if ((M >= | |
105 | + | else if ((M >= W)) | |
102 | 106 | then 2 | |
103 | - | else if ((M >= | |
107 | + | else if ((M >= X)) | |
104 | 108 | then 1 | |
105 | 109 | else 0 | |
106 | 110 | } | |
107 | 111 | ||
108 | 112 | ||
109 | - | @Callable( | |
110 | - | func init ( | |
113 | + | @Callable(Z) | |
114 | + | func init (aa,ab,ac,N,ad) = if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
111 | 115 | then throw("Only admin can call this function") | |
112 | 116 | else if (isDefined(getInteger(this, b))) | |
113 | 117 | then throw("DApp is already inited") | |
114 | - | else if ((height > | |
118 | + | else if ((height > aa)) | |
115 | 119 | then throw("Burning ending must be greater than current height") | |
116 | - | else if (if ((size( | |
120 | + | else if (if ((size(ab) != 5)) | |
117 | 121 | then true | |
118 | - | else (size( | |
122 | + | else (size(ac) != 5)) | |
119 | 123 | then throw("Amount of prizes achievemts lists must equal to 5") | |
120 | 124 | else if (if ((size(N) != 4)) | |
121 | 125 | then true | |
122 | - | else (size( | |
126 | + | else (size(ad) != 4)) | |
123 | 127 | then throw("Amount of levels lists must equal to 4") | |
124 | 128 | else { | |
125 | - | let | |
126 | - | let O = | |
129 | + | let ae = { | |
130 | + | let O = ab | |
127 | 131 | let P = size(O) | |
128 | 132 | let Q = "" | |
129 | 133 | func R (S,T) = if ((T >= P)) | |
136 | 140 | ||
137 | 141 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
138 | 142 | } | |
139 | - | let | |
140 | - | let | |
143 | + | let af = makeString(ac, ",") | |
144 | + | let ag = { | |
141 | 145 | let O = N | |
142 | 146 | let P = size(O) | |
143 | 147 | let Q = "" | |
151 | 155 | ||
152 | 156 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
153 | 157 | } | |
154 | - | let | |
155 | - | let | |
156 | - | [IntegerEntry(b, | |
158 | + | let ah = makeString(ad, ",") | |
159 | + | let ai = "0,0,0,0,0" | |
160 | + | [IntegerEntry(b, aa), StringEntry(c, ae), StringEntry(d, af), StringEntry(f, ag), StringEntry(g, ah), StringEntry(e, ai)] | |
157 | 161 | } | |
158 | 162 | ||
159 | 163 | ||
160 | 164 | ||
161 | - | @Callable( | |
165 | + | @Callable(Z) | |
162 | 166 | func add () = { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | + | let aj = $Tuple2(Z.payments[0].amount, Z.payments[0].assetId) | |
168 | + | let ak = aj._1 | |
169 | + | let al = aj._2 | |
170 | + | let aa = valueOrElse(getInteger(this, b), 0) | |
167 | 171 | if (!(C)) | |
168 | 172 | then throw("DApp is inactive at this moment") | |
169 | - | else if (if ((height > | |
173 | + | else if (if ((height > aa)) | |
170 | 174 | then true | |
171 | - | else ( | |
175 | + | else (aa == 0)) | |
172 | 176 | then throw("Swop burning are ended or not started yet") | |
173 | - | else if (( | |
177 | + | else if ((al != B)) | |
174 | 178 | then throw("You can add only SWOP token") | |
175 | 179 | else { | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
180 | + | let am = (valueOrElse(getInteger(this, i), 0) + ak) | |
181 | + | let an = valueOrElse(getInteger(this, (toString(Z.caller) + l)), 0) | |
182 | + | let ao = { | |
179 | 183 | let O = split(getStringValue(this, e), ",") | |
180 | 184 | let P = size(O) | |
181 | 185 | let Q = nil | |
189 | 193 | ||
190 | 194 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
191 | 195 | } | |
192 | - | let | |
196 | + | let ap = { | |
193 | 197 | let O = split(getStringValue(this, c), ",") | |
194 | 198 | let P = size(O) | |
195 | 199 | let Q = nil | |
203 | 207 | ||
204 | 208 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
205 | 209 | } | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let O = | |
210 | + | let aq = split(getStringValue(this, d), ",") | |
211 | + | let ar = split(getStringValue(this, g), ",") | |
212 | + | let as = { | |
213 | + | let O = ap | |
210 | 214 | let P = size(O) | |
211 | - | let Q = $Tuple2( | |
215 | + | let Q = $Tuple2(am, nil) | |
212 | 216 | func R (S,T) = if ((T >= P)) | |
213 | 217 | then S | |
214 | 218 | else H(S, O[T]) | |
219 | 223 | ||
220 | 224 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
221 | 225 | } | |
222 | - | let | |
223 | - | let | |
224 | - | let O = | |
226 | + | let at = as._2 | |
227 | + | let au = { | |
228 | + | let O = at | |
225 | 229 | let P = size(O) | |
226 | 230 | let Q = "" | |
227 | 231 | func R (S,T) = if ((T >= P)) | |
234 | 238 | ||
235 | 239 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
236 | 240 | } | |
237 | - | let | |
241 | + | let av = if ((at[0] != ao[0])) | |
238 | 242 | then { | |
239 | - | let | |
240 | - | invoke(o, "add", [ | |
243 | + | let aw = (at[0] - ao[0]) | |
244 | + | invoke(o, "add", [aq[0], aw], nil) | |
241 | 245 | } | |
242 | 246 | else 0 | |
243 | - | if (( | |
247 | + | if ((av == av)) | |
244 | 248 | then { | |
245 | - | let | |
249 | + | let ax = if ((at[1] != ao[1])) | |
246 | 250 | then { | |
247 | - | let | |
248 | - | invoke(o, "add", [ | |
251 | + | let aw = (at[1] - ao[1]) | |
252 | + | invoke(o, "add", [aq[1], aw], nil) | |
249 | 253 | } | |
250 | 254 | else 0 | |
251 | - | if (( | |
255 | + | if ((ax == ax)) | |
252 | 256 | then { | |
253 | - | let | |
257 | + | let ay = if ((at[2] != ao[2])) | |
254 | 258 | then { | |
255 | - | let | |
256 | - | invoke(o, "add", [ | |
259 | + | let aw = (at[2] - ao[2]) | |
260 | + | invoke(o, "add", [aq[2], aw], nil) | |
257 | 261 | } | |
258 | 262 | else 0 | |
259 | - | if (( | |
263 | + | if ((ay == ay)) | |
260 | 264 | then { | |
261 | - | let | |
265 | + | let az = if ((at[3] != ao[3])) | |
262 | 266 | then { | |
263 | - | let | |
264 | - | invoke(o, "add", [ | |
267 | + | let aw = (at[3] - ao[3]) | |
268 | + | invoke(o, "add", [aq[3], aw], nil) | |
265 | 269 | } | |
266 | 270 | else 0 | |
267 | - | if (( | |
271 | + | if ((az == az)) | |
268 | 272 | then { | |
269 | - | let | |
273 | + | let aA = if ((at[4] != ao[4])) | |
270 | 274 | then { | |
271 | - | let | |
272 | - | invoke(o, "add", [ | |
275 | + | let aw = (at[4] - ao[4]) | |
276 | + | invoke(o, "add", [aq[4], aw], nil) | |
273 | 277 | } | |
274 | 278 | else 0 | |
275 | - | if (( | |
279 | + | if ((aA == aA)) | |
276 | 280 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
281 | + | let aB = [IntegerEntry(i, am), IntegerEntry((toString(Z.caller) + l), (an + ak)), StringEntry(e, au)] | |
282 | + | let aC = L(an) | |
283 | + | let aD = L(am) | |
284 | + | let aE = (aD - aC) | |
285 | + | if ((aE > 0)) | |
282 | 286 | then { | |
283 | - | let | |
284 | - | then invoke(o, "add", [ | |
287 | + | let aF = if ((aE == 1)) | |
288 | + | then invoke(o, "add", [ar[(aD - 1)], 1], nil) | |
285 | 289 | else 0 | |
286 | - | if (( | |
290 | + | if ((aF == aF)) | |
287 | 291 | then { | |
288 | - | let | |
289 | - | then invoke(o, "add", [ | |
292 | + | let aG = if ((aE >= 2)) | |
293 | + | then invoke(o, "add", [ar[(aD - 2)], 1], nil) | |
290 | 294 | else 0 | |
291 | - | if (( | |
295 | + | if ((aG == aG)) | |
292 | 296 | then { | |
293 | - | let | |
294 | - | then invoke(o, "add", [ | |
297 | + | let aH = if ((aE >= 3)) | |
298 | + | then invoke(o, "add", [ar[(aD - 3)], 1], nil) | |
295 | 299 | else 0 | |
296 | - | if (( | |
300 | + | if ((aH == aH)) | |
297 | 301 | then { | |
298 | - | let | |
299 | - | then invoke(o, "add", [ | |
302 | + | let aI = if ((aE == 4)) | |
303 | + | then invoke(o, "add", [ar[(aD - 4)], 1], nil) | |
300 | 304 | else 0 | |
301 | - | if (( | |
302 | - | then | |
305 | + | if ((aI == aI)) | |
306 | + | then aB | |
303 | 307 | else throw("Strict value is not equal to itself.") | |
304 | 308 | } | |
305 | 309 | else throw("Strict value is not equal to itself.") | |
308 | 312 | } | |
309 | 313 | else throw("Strict value is not equal to itself.") | |
310 | 314 | } | |
311 | - | else | |
315 | + | else aB | |
312 | 316 | } | |
313 | 317 | else throw("Strict value is not equal to itself.") | |
314 | 318 | } | |
324 | 328 | ||
325 | 329 | ||
326 | 330 | ||
327 | - | @Callable( | |
328 | - | func hashingRandom ( | |
331 | + | @Callable(Z) | |
332 | + | func hashingRandom (aJ) = if (!(C)) | |
329 | 333 | then throw("DApp is inactive at this moment") | |
330 | - | else if (!(containsElement([x, y, z], | |
334 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
331 | 335 | then throw("Only admin can call this function") | |
332 | - | else [StringEntry(j, | |
336 | + | else [StringEntry(j, aJ)] | |
333 | 337 | ||
334 | 338 | ||
335 | 339 | ||
336 | - | @Callable( | |
337 | - | func finalize ( | |
338 | - | let | |
339 | - | let | |
340 | + | @Callable(Z) | |
341 | + | func finalize (aK,aL) = { | |
342 | + | let aM = getStringValue(this, j) | |
343 | + | let aN = toBase58String(sha256((toBytes(aK) + toBytes(aL)))) | |
340 | 344 | if (!(C)) | |
341 | 345 | then throw("DApp is inactive at this moment") | |
342 | - | else if (!(containsElement([x, y, z], | |
346 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
343 | 347 | then throw("Only admin can call this function") | |
344 | - | else if (( | |
348 | + | else if ((aN != aM)) | |
345 | 349 | then throw("vrf Height hash not matching") | |
346 | 350 | else { | |
347 | - | let | |
348 | - | [Burn(B, | |
351 | + | let aO = getIntegerValue(this, i) | |
352 | + | [Burn(B, aO), IntegerEntry(k, height)] | |
349 | 353 | } | |
350 | 354 | } | |
351 | 355 | ||
352 | 356 | ||
353 | 357 | ||
354 | - | @Callable( | |
358 | + | @Callable(Z) | |
355 | 359 | func shutdown () = if (!(C)) | |
356 | 360 | then throw("DApp already inactive") | |
357 | - | else if (!(containsElement([x, y, z], | |
361 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
358 | 362 | then throw("Only admin can call this function") | |
359 | 363 | else [BooleanEntry(a, false)] | |
360 | 364 | ||
361 | 365 | ||
362 | 366 | ||
363 | - | @Callable( | |
367 | + | @Callable(Z) | |
364 | 368 | func activate () = if (C) | |
365 | 369 | then throw("DApp already active") | |
366 | - | else if (!(containsElement([x, y, z], | |
370 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
367 | 371 | then throw("Only admin can call this function") | |
368 | 372 | else [BooleanEntry(a, true)] | |
369 | 373 | ||
370 | 374 | ||
371 | - | @Verifier( | |
372 | - | func | |
373 | - | let | |
374 | - | let | |
375 | + | @Verifier(aP) | |
376 | + | func aQ () = { | |
377 | + | let aR = { | |
378 | + | let aS = if (sigVerify(aP.bodyBytes, aP.proofs[0], x)) | |
375 | 379 | then 1 | |
376 | 380 | else 0 | |
377 | - | let | |
381 | + | let aT = if (sigVerify(aP.bodyBytes, aP.proofs[1], y)) | |
378 | 382 | then 1 | |
379 | 383 | else 0 | |
380 | - | let | |
384 | + | let aU = if (sigVerify(aP.bodyBytes, aP.proofs[2], z)) | |
381 | 385 | then 1 | |
382 | 386 | else 0 | |
383 | - | ((( | |
387 | + | (((aS + aT) + aU) >= 2) | |
384 | 388 | } | |
385 | - | let | |
389 | + | let aV = if (if (if (sigVerify(aP.bodyBytes, aP.proofs[0], x)) | |
386 | 390 | then true | |
387 | - | else sigVerify( | |
391 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], y)) | |
388 | 392 | then true | |
389 | - | else sigVerify( | |
393 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], z)) | |
390 | 394 | then true | |
391 | - | else sigVerify( | |
392 | - | let u = | |
393 | - | | |
395 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], A) | |
396 | + | let u = aP | |
397 | + | aR | |
394 | 398 | } | |
395 | 399 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "end_height" | |
7 | 7 | ||
8 | 8 | let c = "prizes_prices" | |
9 | 9 | ||
10 | 10 | let d = "prizes_achievements_ids" | |
11 | 11 | ||
12 | 12 | let e = "prizes_amount" | |
13 | 13 | ||
14 | 14 | let f = "level_prices" | |
15 | 15 | ||
16 | 16 | let g = "level_achievements_ids" | |
17 | 17 | ||
18 | 18 | let h = "SWOP_id" | |
19 | 19 | ||
20 | 20 | let i = "total_burned" | |
21 | 21 | ||
22 | 22 | let j = "verify_hash" | |
23 | 23 | ||
24 | 24 | let k = "finalize_height" | |
25 | 25 | ||
26 | 26 | let l = "_total_burned" | |
27 | 27 | ||
28 | 28 | let m = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
29 | 29 | ||
30 | 30 | let n = Address(base58'3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT') | |
31 | 31 | ||
32 | 32 | let o = Address(base58'3N3HtdnBkqSSc16DaydiwtrMBUv3DfqKjSW') | |
33 | 33 | ||
34 | 34 | let p = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let q = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let r = "admin_pub_3" | |
39 | 39 | ||
40 | 40 | func s (t) = { | |
41 | 41 | let u = getString(m, t) | |
42 | 42 | if ($isInstanceOf(u, "String")) | |
43 | 43 | then { | |
44 | 44 | let v = u | |
45 | 45 | fromBase58String(v) | |
46 | 46 | } | |
47 | 47 | else { | |
48 | 48 | let w = u | |
49 | 49 | throw("Admin public key is empty") | |
50 | 50 | } | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let x = s(p) | |
55 | 55 | ||
56 | 56 | let y = s(q) | |
57 | 57 | ||
58 | 58 | let z = s(r) | |
59 | 59 | ||
60 | 60 | let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
61 | 61 | ||
62 | 62 | let B = fromBase58String(getStringValue(n, h)) | |
63 | 63 | ||
64 | 64 | let C = valueOrElse(getBoolean(this, a), true) | |
65 | 65 | ||
66 | 66 | func D (E,F) = if ((E == "")) | |
67 | 67 | then (E + toString(F)) | |
68 | 68 | else ((E + ",") + toString(F)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func G (E,F) = (E :+ parseIntValue(F)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (E,F) = { | |
75 | 75 | let I = E | |
76 | 76 | let J = I._1 | |
77 | 77 | let K = I._2 | |
78 | 78 | $Tuple2(J, (K :+ (J / F))) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L (M) = { | |
83 | 83 | let N = { | |
84 | 84 | let O = split(getStringValue(this, f), ",") | |
85 | 85 | let P = size(O) | |
86 | 86 | let Q = nil | |
87 | 87 | func R (S,T) = if ((T >= P)) | |
88 | 88 | then S | |
89 | 89 | else G(S, O[T]) | |
90 | 90 | ||
91 | 91 | func U (S,T) = if ((T >= P)) | |
92 | 92 | then S | |
93 | 93 | else throw("List size exceeds 5") | |
94 | 94 | ||
95 | 95 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
96 | 96 | } | |
97 | - | if ((M >= N[3])) | |
97 | + | let V = N[3] | |
98 | + | let W = N[2] | |
99 | + | let X = N[1] | |
100 | + | let Y = N[0] | |
101 | + | if ((M >= V)) | |
98 | 102 | then 4 | |
99 | - | else if ((M >= | |
103 | + | else if ((M >= V)) | |
100 | 104 | then 3 | |
101 | - | else if ((M >= | |
105 | + | else if ((M >= W)) | |
102 | 106 | then 2 | |
103 | - | else if ((M >= | |
107 | + | else if ((M >= X)) | |
104 | 108 | then 1 | |
105 | 109 | else 0 | |
106 | 110 | } | |
107 | 111 | ||
108 | 112 | ||
109 | - | @Callable( | |
110 | - | func init ( | |
113 | + | @Callable(Z) | |
114 | + | func init (aa,ab,ac,N,ad) = if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
111 | 115 | then throw("Only admin can call this function") | |
112 | 116 | else if (isDefined(getInteger(this, b))) | |
113 | 117 | then throw("DApp is already inited") | |
114 | - | else if ((height > | |
118 | + | else if ((height > aa)) | |
115 | 119 | then throw("Burning ending must be greater than current height") | |
116 | - | else if (if ((size( | |
120 | + | else if (if ((size(ab) != 5)) | |
117 | 121 | then true | |
118 | - | else (size( | |
122 | + | else (size(ac) != 5)) | |
119 | 123 | then throw("Amount of prizes achievemts lists must equal to 5") | |
120 | 124 | else if (if ((size(N) != 4)) | |
121 | 125 | then true | |
122 | - | else (size( | |
126 | + | else (size(ad) != 4)) | |
123 | 127 | then throw("Amount of levels lists must equal to 4") | |
124 | 128 | else { | |
125 | - | let | |
126 | - | let O = | |
129 | + | let ae = { | |
130 | + | let O = ab | |
127 | 131 | let P = size(O) | |
128 | 132 | let Q = "" | |
129 | 133 | func R (S,T) = if ((T >= P)) | |
130 | 134 | then S | |
131 | 135 | else D(S, O[T]) | |
132 | 136 | ||
133 | 137 | func U (S,T) = if ((T >= P)) | |
134 | 138 | then S | |
135 | 139 | else throw("List size exceeds 5") | |
136 | 140 | ||
137 | 141 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
138 | 142 | } | |
139 | - | let | |
140 | - | let | |
143 | + | let af = makeString(ac, ",") | |
144 | + | let ag = { | |
141 | 145 | let O = N | |
142 | 146 | let P = size(O) | |
143 | 147 | let Q = "" | |
144 | 148 | func R (S,T) = if ((T >= P)) | |
145 | 149 | then S | |
146 | 150 | else D(S, O[T]) | |
147 | 151 | ||
148 | 152 | func U (S,T) = if ((T >= P)) | |
149 | 153 | then S | |
150 | 154 | else throw("List size exceeds 5") | |
151 | 155 | ||
152 | 156 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
153 | 157 | } | |
154 | - | let | |
155 | - | let | |
156 | - | [IntegerEntry(b, | |
158 | + | let ah = makeString(ad, ",") | |
159 | + | let ai = "0,0,0,0,0" | |
160 | + | [IntegerEntry(b, aa), StringEntry(c, ae), StringEntry(d, af), StringEntry(f, ag), StringEntry(g, ah), StringEntry(e, ai)] | |
157 | 161 | } | |
158 | 162 | ||
159 | 163 | ||
160 | 164 | ||
161 | - | @Callable( | |
165 | + | @Callable(Z) | |
162 | 166 | func add () = { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | + | let aj = $Tuple2(Z.payments[0].amount, Z.payments[0].assetId) | |
168 | + | let ak = aj._1 | |
169 | + | let al = aj._2 | |
170 | + | let aa = valueOrElse(getInteger(this, b), 0) | |
167 | 171 | if (!(C)) | |
168 | 172 | then throw("DApp is inactive at this moment") | |
169 | - | else if (if ((height > | |
173 | + | else if (if ((height > aa)) | |
170 | 174 | then true | |
171 | - | else ( | |
175 | + | else (aa == 0)) | |
172 | 176 | then throw("Swop burning are ended or not started yet") | |
173 | - | else if (( | |
177 | + | else if ((al != B)) | |
174 | 178 | then throw("You can add only SWOP token") | |
175 | 179 | else { | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
180 | + | let am = (valueOrElse(getInteger(this, i), 0) + ak) | |
181 | + | let an = valueOrElse(getInteger(this, (toString(Z.caller) + l)), 0) | |
182 | + | let ao = { | |
179 | 183 | let O = split(getStringValue(this, e), ",") | |
180 | 184 | let P = size(O) | |
181 | 185 | let Q = nil | |
182 | 186 | func R (S,T) = if ((T >= P)) | |
183 | 187 | then S | |
184 | 188 | else G(S, O[T]) | |
185 | 189 | ||
186 | 190 | func U (S,T) = if ((T >= P)) | |
187 | 191 | then S | |
188 | 192 | else throw("List size exceeds 5") | |
189 | 193 | ||
190 | 194 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
191 | 195 | } | |
192 | - | let | |
196 | + | let ap = { | |
193 | 197 | let O = split(getStringValue(this, c), ",") | |
194 | 198 | let P = size(O) | |
195 | 199 | let Q = nil | |
196 | 200 | func R (S,T) = if ((T >= P)) | |
197 | 201 | then S | |
198 | 202 | else G(S, O[T]) | |
199 | 203 | ||
200 | 204 | func U (S,T) = if ((T >= P)) | |
201 | 205 | then S | |
202 | 206 | else throw("List size exceeds 5") | |
203 | 207 | ||
204 | 208 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
205 | 209 | } | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let O = | |
210 | + | let aq = split(getStringValue(this, d), ",") | |
211 | + | let ar = split(getStringValue(this, g), ",") | |
212 | + | let as = { | |
213 | + | let O = ap | |
210 | 214 | let P = size(O) | |
211 | - | let Q = $Tuple2( | |
215 | + | let Q = $Tuple2(am, nil) | |
212 | 216 | func R (S,T) = if ((T >= P)) | |
213 | 217 | then S | |
214 | 218 | else H(S, O[T]) | |
215 | 219 | ||
216 | 220 | func U (S,T) = if ((T >= P)) | |
217 | 221 | then S | |
218 | 222 | else throw("List size exceeds 5") | |
219 | 223 | ||
220 | 224 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
221 | 225 | } | |
222 | - | let | |
223 | - | let | |
224 | - | let O = | |
226 | + | let at = as._2 | |
227 | + | let au = { | |
228 | + | let O = at | |
225 | 229 | let P = size(O) | |
226 | 230 | let Q = "" | |
227 | 231 | func R (S,T) = if ((T >= P)) | |
228 | 232 | then S | |
229 | 233 | else D(S, O[T]) | |
230 | 234 | ||
231 | 235 | func U (S,T) = if ((T >= P)) | |
232 | 236 | then S | |
233 | 237 | else throw("List size exceeds 5") | |
234 | 238 | ||
235 | 239 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
236 | 240 | } | |
237 | - | let | |
241 | + | let av = if ((at[0] != ao[0])) | |
238 | 242 | then { | |
239 | - | let | |
240 | - | invoke(o, "add", [ | |
243 | + | let aw = (at[0] - ao[0]) | |
244 | + | invoke(o, "add", [aq[0], aw], nil) | |
241 | 245 | } | |
242 | 246 | else 0 | |
243 | - | if (( | |
247 | + | if ((av == av)) | |
244 | 248 | then { | |
245 | - | let | |
249 | + | let ax = if ((at[1] != ao[1])) | |
246 | 250 | then { | |
247 | - | let | |
248 | - | invoke(o, "add", [ | |
251 | + | let aw = (at[1] - ao[1]) | |
252 | + | invoke(o, "add", [aq[1], aw], nil) | |
249 | 253 | } | |
250 | 254 | else 0 | |
251 | - | if (( | |
255 | + | if ((ax == ax)) | |
252 | 256 | then { | |
253 | - | let | |
257 | + | let ay = if ((at[2] != ao[2])) | |
254 | 258 | then { | |
255 | - | let | |
256 | - | invoke(o, "add", [ | |
259 | + | let aw = (at[2] - ao[2]) | |
260 | + | invoke(o, "add", [aq[2], aw], nil) | |
257 | 261 | } | |
258 | 262 | else 0 | |
259 | - | if (( | |
263 | + | if ((ay == ay)) | |
260 | 264 | then { | |
261 | - | let | |
265 | + | let az = if ((at[3] != ao[3])) | |
262 | 266 | then { | |
263 | - | let | |
264 | - | invoke(o, "add", [ | |
267 | + | let aw = (at[3] - ao[3]) | |
268 | + | invoke(o, "add", [aq[3], aw], nil) | |
265 | 269 | } | |
266 | 270 | else 0 | |
267 | - | if (( | |
271 | + | if ((az == az)) | |
268 | 272 | then { | |
269 | - | let | |
273 | + | let aA = if ((at[4] != ao[4])) | |
270 | 274 | then { | |
271 | - | let | |
272 | - | invoke(o, "add", [ | |
275 | + | let aw = (at[4] - ao[4]) | |
276 | + | invoke(o, "add", [aq[4], aw], nil) | |
273 | 277 | } | |
274 | 278 | else 0 | |
275 | - | if (( | |
279 | + | if ((aA == aA)) | |
276 | 280 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
281 | + | let aB = [IntegerEntry(i, am), IntegerEntry((toString(Z.caller) + l), (an + ak)), StringEntry(e, au)] | |
282 | + | let aC = L(an) | |
283 | + | let aD = L(am) | |
284 | + | let aE = (aD - aC) | |
285 | + | if ((aE > 0)) | |
282 | 286 | then { | |
283 | - | let | |
284 | - | then invoke(o, "add", [ | |
287 | + | let aF = if ((aE == 1)) | |
288 | + | then invoke(o, "add", [ar[(aD - 1)], 1], nil) | |
285 | 289 | else 0 | |
286 | - | if (( | |
290 | + | if ((aF == aF)) | |
287 | 291 | then { | |
288 | - | let | |
289 | - | then invoke(o, "add", [ | |
292 | + | let aG = if ((aE >= 2)) | |
293 | + | then invoke(o, "add", [ar[(aD - 2)], 1], nil) | |
290 | 294 | else 0 | |
291 | - | if (( | |
295 | + | if ((aG == aG)) | |
292 | 296 | then { | |
293 | - | let | |
294 | - | then invoke(o, "add", [ | |
297 | + | let aH = if ((aE >= 3)) | |
298 | + | then invoke(o, "add", [ar[(aD - 3)], 1], nil) | |
295 | 299 | else 0 | |
296 | - | if (( | |
300 | + | if ((aH == aH)) | |
297 | 301 | then { | |
298 | - | let | |
299 | - | then invoke(o, "add", [ | |
302 | + | let aI = if ((aE == 4)) | |
303 | + | then invoke(o, "add", [ar[(aD - 4)], 1], nil) | |
300 | 304 | else 0 | |
301 | - | if (( | |
302 | - | then | |
305 | + | if ((aI == aI)) | |
306 | + | then aB | |
303 | 307 | else throw("Strict value is not equal to itself.") | |
304 | 308 | } | |
305 | 309 | else throw("Strict value is not equal to itself.") | |
306 | 310 | } | |
307 | 311 | else throw("Strict value is not equal to itself.") | |
308 | 312 | } | |
309 | 313 | else throw("Strict value is not equal to itself.") | |
310 | 314 | } | |
311 | - | else | |
315 | + | else aB | |
312 | 316 | } | |
313 | 317 | else throw("Strict value is not equal to itself.") | |
314 | 318 | } | |
315 | 319 | else throw("Strict value is not equal to itself.") | |
316 | 320 | } | |
317 | 321 | else throw("Strict value is not equal to itself.") | |
318 | 322 | } | |
319 | 323 | else throw("Strict value is not equal to itself.") | |
320 | 324 | } | |
321 | 325 | else throw("Strict value is not equal to itself.") | |
322 | 326 | } | |
323 | 327 | } | |
324 | 328 | ||
325 | 329 | ||
326 | 330 | ||
327 | - | @Callable( | |
328 | - | func hashingRandom ( | |
331 | + | @Callable(Z) | |
332 | + | func hashingRandom (aJ) = if (!(C)) | |
329 | 333 | then throw("DApp is inactive at this moment") | |
330 | - | else if (!(containsElement([x, y, z], | |
334 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
331 | 335 | then throw("Only admin can call this function") | |
332 | - | else [StringEntry(j, | |
336 | + | else [StringEntry(j, aJ)] | |
333 | 337 | ||
334 | 338 | ||
335 | 339 | ||
336 | - | @Callable( | |
337 | - | func finalize ( | |
338 | - | let | |
339 | - | let | |
340 | + | @Callable(Z) | |
341 | + | func finalize (aK,aL) = { | |
342 | + | let aM = getStringValue(this, j) | |
343 | + | let aN = toBase58String(sha256((toBytes(aK) + toBytes(aL)))) | |
340 | 344 | if (!(C)) | |
341 | 345 | then throw("DApp is inactive at this moment") | |
342 | - | else if (!(containsElement([x, y, z], | |
346 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
343 | 347 | then throw("Only admin can call this function") | |
344 | - | else if (( | |
348 | + | else if ((aN != aM)) | |
345 | 349 | then throw("vrf Height hash not matching") | |
346 | 350 | else { | |
347 | - | let | |
348 | - | [Burn(B, | |
351 | + | let aO = getIntegerValue(this, i) | |
352 | + | [Burn(B, aO), IntegerEntry(k, height)] | |
349 | 353 | } | |
350 | 354 | } | |
351 | 355 | ||
352 | 356 | ||
353 | 357 | ||
354 | - | @Callable( | |
358 | + | @Callable(Z) | |
355 | 359 | func shutdown () = if (!(C)) | |
356 | 360 | then throw("DApp already inactive") | |
357 | - | else if (!(containsElement([x, y, z], | |
361 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
358 | 362 | then throw("Only admin can call this function") | |
359 | 363 | else [BooleanEntry(a, false)] | |
360 | 364 | ||
361 | 365 | ||
362 | 366 | ||
363 | - | @Callable( | |
367 | + | @Callable(Z) | |
364 | 368 | func activate () = if (C) | |
365 | 369 | then throw("DApp already active") | |
366 | - | else if (!(containsElement([x, y, z], | |
370 | + | else if (!(containsElement([x, y, z], Z.callerPublicKey))) | |
367 | 371 | then throw("Only admin can call this function") | |
368 | 372 | else [BooleanEntry(a, true)] | |
369 | 373 | ||
370 | 374 | ||
371 | - | @Verifier( | |
372 | - | func | |
373 | - | let | |
374 | - | let | |
375 | + | @Verifier(aP) | |
376 | + | func aQ () = { | |
377 | + | let aR = { | |
378 | + | let aS = if (sigVerify(aP.bodyBytes, aP.proofs[0], x)) | |
375 | 379 | then 1 | |
376 | 380 | else 0 | |
377 | - | let | |
381 | + | let aT = if (sigVerify(aP.bodyBytes, aP.proofs[1], y)) | |
378 | 382 | then 1 | |
379 | 383 | else 0 | |
380 | - | let | |
384 | + | let aU = if (sigVerify(aP.bodyBytes, aP.proofs[2], z)) | |
381 | 385 | then 1 | |
382 | 386 | else 0 | |
383 | - | ((( | |
387 | + | (((aS + aT) + aU) >= 2) | |
384 | 388 | } | |
385 | - | let | |
389 | + | let aV = if (if (if (sigVerify(aP.bodyBytes, aP.proofs[0], x)) | |
386 | 390 | then true | |
387 | - | else sigVerify( | |
391 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], y)) | |
388 | 392 | then true | |
389 | - | else sigVerify( | |
393 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], z)) | |
390 | 394 | then true | |
391 | - | else sigVerify( | |
392 | - | let u = | |
393 | - | | |
395 | + | else sigVerify(aP.bodyBytes, aP.proofs[0], A) | |
396 | + | let u = aP | |
397 | + | aR | |
394 | 398 | } | |
395 | 399 |
github/deemru/w8io/169f3d6 185.74 ms ◑