tx · 5EPJnNx2cbQgkC2DJrXD9R4HsXZbvJwPoP8MRGKZybmv 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC: -0.01400000 Waves 2021.11.30 19:28 [1814015] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves
{ "type": 13, "id": "5EPJnNx2cbQgkC2DJrXD9R4HsXZbvJwPoP8MRGKZybmv", "fee": 1400000, "feeAssetId": null, "timestamp": 1638289766037, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "66JMjGagwjQD8Z2fD6ZSexv6sGFbcbaFXQNQcR61h351uv6S2c4o1ARK5qrkZg5qeZk4rbEN224fPDeJ1wCcfASa", "CHRpUC8sUKUGE5BFUvYukFLLQ5HxRTYHgZvLAnWXQEkjzN6oqD2Ua7Yj86zKe2ogm5A9REUT7c82nZWpmLHntLY" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHQAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAA1rZXlQcml6ZXNBSWRzAgAAABdwcml6ZXNfYWNoaWV2ZW1lbnRzX2lkcwAAAAAQa2V5UHJpemVzQW1vdW50cwIAAAANcHJpemVzX2Ftb3VudAAAAAAOa2V5TGV2ZWxQcmljZXMCAAAADGxldmVsX3ByaWNlcwAAAAAWa2V5TGV2ZWxBY2hpZXZlbW50c0lkcwIAAAAWbGV2ZWxfYWNoaWV2ZW1lbnRzX2lkcwAAAAAJa2V5U1dPUGlkAgAAAAdTV09QX2lkAAAAAA5rZXlUb3RhbEJ1cm5lZAIAAAAMdG90YWx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lZEJ5QWRtaW4DAwMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABJhZG1pblB1YktleVN0YWtpbmcEAAAAByRtYXRjaDAFAAAAAnR4BQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5z5F+qGA==", "height": 1814015, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FDAMNwPMzBuVvi3QhTRwJWztDnCeuhCVPTjNB1zUL31k Next: DyfVjne47oHXsdn2Dw7xEYVD7ZGDUmFVx62haxzJSMcc Diff:
Old | New | Differences | |
---|---|---|---|
94 | 94 | ||
95 | 95 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
96 | 96 | } | |
97 | - | let V = N[3] | |
98 | - | let W = N[2] | |
99 | - | let X = N[1] | |
100 | - | let Y = N[0] | |
101 | - | if ((M >= V)) | |
97 | + | if ((M >= N[3])) | |
102 | 98 | then 4 | |
103 | - | else if ((M >= | |
99 | + | else if ((M >= N[2])) | |
104 | 100 | then 3 | |
105 | - | else if ((M >= | |
101 | + | else if ((M >= N[1])) | |
106 | 102 | then 2 | |
107 | - | else if ((M >= | |
103 | + | else if ((M >= N[0])) | |
108 | 104 | then 1 | |
109 | 105 | else 0 | |
110 | 106 | } | |
111 | 107 | ||
112 | 108 | ||
113 | - | @Callable( | |
114 | - | func init ( | |
109 | + | @Callable(V) | |
110 | + | func init (W,X,Y,N,Z) = if (!(containsElement([x, y, z], V.callerPublicKey))) | |
115 | 111 | then throw("Only admin can call this function") | |
116 | 112 | else if (isDefined(getInteger(this, b))) | |
117 | 113 | then throw("DApp is already inited") | |
118 | - | else if ((height > | |
114 | + | else if ((height > W)) | |
119 | 115 | then throw("Burning ending must be greater than current height") | |
120 | - | else if (if ((size( | |
116 | + | else if (if ((size(X) != 5)) | |
121 | 117 | then true | |
122 | - | else (size( | |
118 | + | else (size(Y) != 5)) | |
123 | 119 | then throw("Amount of prizes achievemts lists must equal to 5") | |
124 | 120 | else if (if ((size(N) != 4)) | |
125 | 121 | then true | |
126 | - | else (size( | |
122 | + | else (size(Z) != 4)) | |
127 | 123 | then throw("Amount of levels lists must equal to 4") | |
128 | 124 | else { | |
129 | - | let | |
130 | - | let O = | |
125 | + | let aa = { | |
126 | + | let O = X | |
131 | 127 | let P = size(O) | |
132 | 128 | let Q = "" | |
133 | 129 | func R (S,T) = if ((T >= P)) | |
140 | 136 | ||
141 | 137 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
142 | 138 | } | |
143 | - | let | |
144 | - | let | |
139 | + | let ab = makeString(Y, ",") | |
140 | + | let ac = { | |
145 | 141 | let O = N | |
146 | 142 | let P = size(O) | |
147 | 143 | let Q = "" | |
155 | 151 | ||
156 | 152 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
157 | 153 | } | |
158 | - | let | |
159 | - | let | |
160 | - | [IntegerEntry(b, aa), StringEntry( | |
154 | + | let ad = makeString(Z, ",") | |
155 | + | let ae = "0,0,0,0,0" | |
156 | + | [IntegerEntry(b, W), StringEntry(c, aa), StringEntry(d, ab), StringEntry(f, ac), StringEntry(g, ad), StringEntry(e, ae)] | |
161 | 157 | } | |
162 | 158 | ||
163 | 159 | ||
164 | 160 | ||
165 | - | @Callable( | |
161 | + | @Callable(V) | |
166 | 162 | func add () = { | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
163 | + | let af = $Tuple2(V.payments[0].amount, V.payments[0].assetId) | |
164 | + | let ag = af._1 | |
165 | + | let ah = af._2 | |
166 | + | let W = valueOrElse(getInteger(this, b), 0) | |
171 | 167 | if (!(C)) | |
172 | 168 | then throw("DApp is inactive at this moment") | |
173 | - | else if (if ((height > | |
169 | + | else if (if ((height > W)) | |
174 | 170 | then true | |
175 | - | else ( | |
171 | + | else (W == 0)) | |
176 | 172 | then throw("Swop burning are ended or not started yet") | |
177 | - | else if (( | |
173 | + | else if ((ah != B)) | |
178 | 174 | then throw("You can add only SWOP token") | |
179 | 175 | else { | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
176 | + | let ai = (valueOrElse(getInteger(this, i), 0) + ag) | |
177 | + | let aj = valueOrElse(getInteger(this, (toString(V.caller) + l)), 0) | |
178 | + | let ak = { | |
183 | 179 | let O = split(getStringValue(this, e), ",") | |
184 | 180 | let P = size(O) | |
185 | 181 | let Q = nil | |
193 | 189 | ||
194 | 190 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
195 | 191 | } | |
196 | - | let | |
192 | + | let al = { | |
197 | 193 | let O = split(getStringValue(this, c), ",") | |
198 | 194 | let P = size(O) | |
199 | 195 | let Q = nil | |
207 | 203 | ||
208 | 204 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
209 | 205 | } | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let O = | |
206 | + | let am = split(getStringValue(this, d), ",") | |
207 | + | let an = split(getStringValue(this, g), ",") | |
208 | + | let ao = { | |
209 | + | let O = al | |
214 | 210 | let P = size(O) | |
215 | - | let Q = $Tuple2( | |
211 | + | let Q = $Tuple2(ai, nil) | |
216 | 212 | func R (S,T) = if ((T >= P)) | |
217 | 213 | then S | |
218 | 214 | else H(S, O[T]) | |
223 | 219 | ||
224 | 220 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
225 | 221 | } | |
226 | - | let | |
227 | - | let | |
228 | - | let O = | |
222 | + | let ap = ao._2 | |
223 | + | let aq = { | |
224 | + | let O = ap | |
229 | 225 | let P = size(O) | |
230 | 226 | let Q = "" | |
231 | 227 | func R (S,T) = if ((T >= P)) | |
238 | 234 | ||
239 | 235 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
240 | 236 | } | |
241 | - | let | |
237 | + | let ar = if ((ap[0] != ak[0])) | |
242 | 238 | then { | |
243 | - | let | |
244 | - | invoke(o, "add", [ | |
239 | + | let as = (ap[0] - ak[0]) | |
240 | + | invoke(o, "add", [am[0], as], nil) | |
245 | 241 | } | |
246 | 242 | else 0 | |
247 | - | if (( | |
243 | + | if ((ar == ar)) | |
248 | 244 | then { | |
249 | - | let | |
245 | + | let at = if ((ap[1] != ak[1])) | |
250 | 246 | then { | |
251 | - | let | |
252 | - | invoke(o, "add", [ | |
247 | + | let as = (ap[1] - ak[1]) | |
248 | + | invoke(o, "add", [am[1], as], nil) | |
253 | 249 | } | |
254 | 250 | else 0 | |
255 | - | if (( | |
251 | + | if ((at == at)) | |
256 | 252 | then { | |
257 | - | let | |
253 | + | let au = if ((ap[2] != ak[2])) | |
258 | 254 | then { | |
259 | - | let | |
260 | - | invoke(o, "add", [ | |
255 | + | let as = (ap[2] - ak[2]) | |
256 | + | invoke(o, "add", [am[2], as], nil) | |
261 | 257 | } | |
262 | 258 | else 0 | |
263 | - | if (( | |
259 | + | if ((au == au)) | |
264 | 260 | then { | |
265 | - | let | |
261 | + | let av = if ((ap[3] != ak[3])) | |
266 | 262 | then { | |
267 | - | let | |
268 | - | invoke(o, "add", [ | |
263 | + | let as = (ap[3] - ak[3]) | |
264 | + | invoke(o, "add", [am[3], as], nil) | |
269 | 265 | } | |
270 | 266 | else 0 | |
271 | - | if (( | |
267 | + | if ((av == av)) | |
272 | 268 | then { | |
273 | - | let | |
269 | + | let aw = if ((ap[4] != ak[4])) | |
274 | 270 | then { | |
275 | - | let | |
276 | - | invoke(o, "add", [ | |
271 | + | let as = (ap[4] - ak[4]) | |
272 | + | invoke(o, "add", [am[4], as], nil) | |
277 | 273 | } | |
278 | 274 | else 0 | |
279 | - | if (( | |
275 | + | if ((aw == aw)) | |
280 | 276 | then { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if (( | |
277 | + | let ax = [IntegerEntry(i, ai), IntegerEntry((toString(V.caller) + l), (aj + ag)), StringEntry(e, aq)] | |
278 | + | let ay = L(aj) | |
279 | + | let az = L(ai) | |
280 | + | let aA = (az - ay) | |
281 | + | if ((aA > 0)) | |
286 | 282 | then { | |
287 | - | let | |
288 | - | then invoke(o, "add", [ | |
283 | + | let aB = if ((aA == 1)) | |
284 | + | then invoke(o, "add", [an[(az - 1)], 1], nil) | |
289 | 285 | else 0 | |
290 | - | if (( | |
286 | + | if ((aB == aB)) | |
291 | 287 | then { | |
292 | - | let | |
293 | - | then invoke(o, "add", [ | |
288 | + | let aC = if ((aA >= 2)) | |
289 | + | then invoke(o, "add", [an[(az - 2)], 1], nil) | |
294 | 290 | else 0 | |
295 | - | if (( | |
291 | + | if ((aC == aC)) | |
296 | 292 | then { | |
297 | - | let | |
298 | - | then invoke(o, "add", [ | |
293 | + | let aD = if ((aA >= 3)) | |
294 | + | then invoke(o, "add", [an[(az - 3)], 1], nil) | |
299 | 295 | else 0 | |
300 | - | if (( | |
296 | + | if ((aD == aD)) | |
301 | 297 | then { | |
302 | - | let | |
303 | - | then invoke(o, "add", [ | |
298 | + | let aE = if ((aA == 4)) | |
299 | + | then invoke(o, "add", [an[(az - 4)], 1], nil) | |
304 | 300 | else 0 | |
305 | - | if (( | |
306 | - | then | |
301 | + | if ((aE == aE)) | |
302 | + | then ax | |
307 | 303 | else throw("Strict value is not equal to itself.") | |
308 | 304 | } | |
309 | 305 | else throw("Strict value is not equal to itself.") | |
312 | 308 | } | |
313 | 309 | else throw("Strict value is not equal to itself.") | |
314 | 310 | } | |
315 | - | else | |
311 | + | else ax | |
316 | 312 | } | |
317 | 313 | else throw("Strict value is not equal to itself.") | |
318 | 314 | } | |
328 | 324 | ||
329 | 325 | ||
330 | 326 | ||
331 | - | @Callable( | |
332 | - | func hashingRandom ( | |
327 | + | @Callable(V) | |
328 | + | func hashingRandom (aF) = if (!(C)) | |
333 | 329 | then throw("DApp is inactive at this moment") | |
334 | - | else if (!(containsElement([x, y, z], | |
330 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
335 | 331 | then throw("Only admin can call this function") | |
336 | - | else [StringEntry(j, | |
332 | + | else [StringEntry(j, aF)] | |
337 | 333 | ||
338 | 334 | ||
339 | 335 | ||
340 | - | @Callable( | |
341 | - | func finalize ( | |
342 | - | let | |
343 | - | let | |
336 | + | @Callable(V) | |
337 | + | func finalize (aG,aH) = { | |
338 | + | let aI = getStringValue(this, j) | |
339 | + | let aJ = toBase58String(sha256((toBytes(aG) + toBytes(aH)))) | |
344 | 340 | if (!(C)) | |
345 | 341 | then throw("DApp is inactive at this moment") | |
346 | - | else if (!(containsElement([x, y, z], | |
342 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
347 | 343 | then throw("Only admin can call this function") | |
348 | - | else if (( | |
344 | + | else if ((aJ != aI)) | |
349 | 345 | then throw("vrf Height hash not matching") | |
350 | 346 | else { | |
351 | - | let | |
352 | - | [Burn(B, | |
347 | + | let aK = getIntegerValue(this, i) | |
348 | + | [Burn(B, aK), IntegerEntry(k, height)] | |
353 | 349 | } | |
354 | 350 | } | |
355 | 351 | ||
356 | 352 | ||
357 | 353 | ||
358 | - | @Callable( | |
354 | + | @Callable(V) | |
359 | 355 | func shutdown () = if (!(C)) | |
360 | 356 | then throw("DApp already inactive") | |
361 | - | else if (!(containsElement([x, y, z], | |
357 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
362 | 358 | then throw("Only admin can call this function") | |
363 | 359 | else [BooleanEntry(a, false)] | |
364 | 360 | ||
365 | 361 | ||
366 | 362 | ||
367 | - | @Callable( | |
363 | + | @Callable(V) | |
368 | 364 | func activate () = if (C) | |
369 | 365 | then throw("DApp already active") | |
370 | - | else if (!(containsElement([x, y, z], | |
366 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
371 | 367 | then throw("Only admin can call this function") | |
372 | 368 | else [BooleanEntry(a, true)] | |
373 | 369 | ||
374 | 370 | ||
375 | - | @Verifier( | |
376 | - | func | |
377 | - | let | |
378 | - | let | |
371 | + | @Verifier(aL) | |
372 | + | func aM () = { | |
373 | + | let aN = { | |
374 | + | let aO = if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
379 | 375 | then 1 | |
380 | 376 | else 0 | |
381 | - | let | |
377 | + | let aP = if (sigVerify(aL.bodyBytes, aL.proofs[1], y)) | |
382 | 378 | then 1 | |
383 | 379 | else 0 | |
384 | - | let | |
380 | + | let aQ = if (sigVerify(aL.bodyBytes, aL.proofs[2], z)) | |
385 | 381 | then 1 | |
386 | 382 | else 0 | |
387 | - | ((( | |
383 | + | (((aO + aP) + aQ) >= 2) | |
388 | 384 | } | |
389 | - | let | |
385 | + | let aR = if (if (if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
390 | 386 | then true | |
391 | - | else sigVerify( | |
387 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], y)) | |
392 | 388 | then true | |
393 | - | else sigVerify( | |
389 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], z)) | |
394 | 390 | then true | |
395 | - | else sigVerify( | |
396 | - | let u = | |
397 | - | | |
391 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], A) | |
392 | + | let u = aL | |
393 | + | aN | |
398 | 394 | } | |
399 | 395 |
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 | - | let V = N[3] | |
98 | - | let W = N[2] | |
99 | - | let X = N[1] | |
100 | - | let Y = N[0] | |
101 | - | if ((M >= V)) | |
97 | + | if ((M >= N[3])) | |
102 | 98 | then 4 | |
103 | - | else if ((M >= | |
99 | + | else if ((M >= N[2])) | |
104 | 100 | then 3 | |
105 | - | else if ((M >= | |
101 | + | else if ((M >= N[1])) | |
106 | 102 | then 2 | |
107 | - | else if ((M >= | |
103 | + | else if ((M >= N[0])) | |
108 | 104 | then 1 | |
109 | 105 | else 0 | |
110 | 106 | } | |
111 | 107 | ||
112 | 108 | ||
113 | - | @Callable( | |
114 | - | func init ( | |
109 | + | @Callable(V) | |
110 | + | func init (W,X,Y,N,Z) = if (!(containsElement([x, y, z], V.callerPublicKey))) | |
115 | 111 | then throw("Only admin can call this function") | |
116 | 112 | else if (isDefined(getInteger(this, b))) | |
117 | 113 | then throw("DApp is already inited") | |
118 | - | else if ((height > | |
114 | + | else if ((height > W)) | |
119 | 115 | then throw("Burning ending must be greater than current height") | |
120 | - | else if (if ((size( | |
116 | + | else if (if ((size(X) != 5)) | |
121 | 117 | then true | |
122 | - | else (size( | |
118 | + | else (size(Y) != 5)) | |
123 | 119 | then throw("Amount of prizes achievemts lists must equal to 5") | |
124 | 120 | else if (if ((size(N) != 4)) | |
125 | 121 | then true | |
126 | - | else (size( | |
122 | + | else (size(Z) != 4)) | |
127 | 123 | then throw("Amount of levels lists must equal to 4") | |
128 | 124 | else { | |
129 | - | let | |
130 | - | let O = | |
125 | + | let aa = { | |
126 | + | let O = X | |
131 | 127 | let P = size(O) | |
132 | 128 | let Q = "" | |
133 | 129 | func R (S,T) = if ((T >= P)) | |
134 | 130 | then S | |
135 | 131 | else D(S, O[T]) | |
136 | 132 | ||
137 | 133 | func U (S,T) = if ((T >= P)) | |
138 | 134 | then S | |
139 | 135 | else throw("List size exceeds 5") | |
140 | 136 | ||
141 | 137 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
142 | 138 | } | |
143 | - | let | |
144 | - | let | |
139 | + | let ab = makeString(Y, ",") | |
140 | + | let ac = { | |
145 | 141 | let O = N | |
146 | 142 | let P = size(O) | |
147 | 143 | let Q = "" | |
148 | 144 | func R (S,T) = if ((T >= P)) | |
149 | 145 | then S | |
150 | 146 | else D(S, O[T]) | |
151 | 147 | ||
152 | 148 | func U (S,T) = if ((T >= P)) | |
153 | 149 | then S | |
154 | 150 | else throw("List size exceeds 5") | |
155 | 151 | ||
156 | 152 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
157 | 153 | } | |
158 | - | let | |
159 | - | let | |
160 | - | [IntegerEntry(b, aa), StringEntry( | |
154 | + | let ad = makeString(Z, ",") | |
155 | + | let ae = "0,0,0,0,0" | |
156 | + | [IntegerEntry(b, W), StringEntry(c, aa), StringEntry(d, ab), StringEntry(f, ac), StringEntry(g, ad), StringEntry(e, ae)] | |
161 | 157 | } | |
162 | 158 | ||
163 | 159 | ||
164 | 160 | ||
165 | - | @Callable( | |
161 | + | @Callable(V) | |
166 | 162 | func add () = { | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
163 | + | let af = $Tuple2(V.payments[0].amount, V.payments[0].assetId) | |
164 | + | let ag = af._1 | |
165 | + | let ah = af._2 | |
166 | + | let W = valueOrElse(getInteger(this, b), 0) | |
171 | 167 | if (!(C)) | |
172 | 168 | then throw("DApp is inactive at this moment") | |
173 | - | else if (if ((height > | |
169 | + | else if (if ((height > W)) | |
174 | 170 | then true | |
175 | - | else ( | |
171 | + | else (W == 0)) | |
176 | 172 | then throw("Swop burning are ended or not started yet") | |
177 | - | else if (( | |
173 | + | else if ((ah != B)) | |
178 | 174 | then throw("You can add only SWOP token") | |
179 | 175 | else { | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
176 | + | let ai = (valueOrElse(getInteger(this, i), 0) + ag) | |
177 | + | let aj = valueOrElse(getInteger(this, (toString(V.caller) + l)), 0) | |
178 | + | let ak = { | |
183 | 179 | let O = split(getStringValue(this, e), ",") | |
184 | 180 | let P = size(O) | |
185 | 181 | let Q = nil | |
186 | 182 | func R (S,T) = if ((T >= P)) | |
187 | 183 | then S | |
188 | 184 | else G(S, O[T]) | |
189 | 185 | ||
190 | 186 | func U (S,T) = if ((T >= P)) | |
191 | 187 | then S | |
192 | 188 | else throw("List size exceeds 5") | |
193 | 189 | ||
194 | 190 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
195 | 191 | } | |
196 | - | let | |
192 | + | let al = { | |
197 | 193 | let O = split(getStringValue(this, c), ",") | |
198 | 194 | let P = size(O) | |
199 | 195 | let Q = nil | |
200 | 196 | func R (S,T) = if ((T >= P)) | |
201 | 197 | then S | |
202 | 198 | else G(S, O[T]) | |
203 | 199 | ||
204 | 200 | func U (S,T) = if ((T >= P)) | |
205 | 201 | then S | |
206 | 202 | else throw("List size exceeds 5") | |
207 | 203 | ||
208 | 204 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
209 | 205 | } | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let O = | |
206 | + | let am = split(getStringValue(this, d), ",") | |
207 | + | let an = split(getStringValue(this, g), ",") | |
208 | + | let ao = { | |
209 | + | let O = al | |
214 | 210 | let P = size(O) | |
215 | - | let Q = $Tuple2( | |
211 | + | let Q = $Tuple2(ai, nil) | |
216 | 212 | func R (S,T) = if ((T >= P)) | |
217 | 213 | then S | |
218 | 214 | else H(S, O[T]) | |
219 | 215 | ||
220 | 216 | func U (S,T) = if ((T >= P)) | |
221 | 217 | then S | |
222 | 218 | else throw("List size exceeds 5") | |
223 | 219 | ||
224 | 220 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
225 | 221 | } | |
226 | - | let | |
227 | - | let | |
228 | - | let O = | |
222 | + | let ap = ao._2 | |
223 | + | let aq = { | |
224 | + | let O = ap | |
229 | 225 | let P = size(O) | |
230 | 226 | let Q = "" | |
231 | 227 | func R (S,T) = if ((T >= P)) | |
232 | 228 | then S | |
233 | 229 | else D(S, O[T]) | |
234 | 230 | ||
235 | 231 | func U (S,T) = if ((T >= P)) | |
236 | 232 | then S | |
237 | 233 | else throw("List size exceeds 5") | |
238 | 234 | ||
239 | 235 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
240 | 236 | } | |
241 | - | let | |
237 | + | let ar = if ((ap[0] != ak[0])) | |
242 | 238 | then { | |
243 | - | let | |
244 | - | invoke(o, "add", [ | |
239 | + | let as = (ap[0] - ak[0]) | |
240 | + | invoke(o, "add", [am[0], as], nil) | |
245 | 241 | } | |
246 | 242 | else 0 | |
247 | - | if (( | |
243 | + | if ((ar == ar)) | |
248 | 244 | then { | |
249 | - | let | |
245 | + | let at = if ((ap[1] != ak[1])) | |
250 | 246 | then { | |
251 | - | let | |
252 | - | invoke(o, "add", [ | |
247 | + | let as = (ap[1] - ak[1]) | |
248 | + | invoke(o, "add", [am[1], as], nil) | |
253 | 249 | } | |
254 | 250 | else 0 | |
255 | - | if (( | |
251 | + | if ((at == at)) | |
256 | 252 | then { | |
257 | - | let | |
253 | + | let au = if ((ap[2] != ak[2])) | |
258 | 254 | then { | |
259 | - | let | |
260 | - | invoke(o, "add", [ | |
255 | + | let as = (ap[2] - ak[2]) | |
256 | + | invoke(o, "add", [am[2], as], nil) | |
261 | 257 | } | |
262 | 258 | else 0 | |
263 | - | if (( | |
259 | + | if ((au == au)) | |
264 | 260 | then { | |
265 | - | let | |
261 | + | let av = if ((ap[3] != ak[3])) | |
266 | 262 | then { | |
267 | - | let | |
268 | - | invoke(o, "add", [ | |
263 | + | let as = (ap[3] - ak[3]) | |
264 | + | invoke(o, "add", [am[3], as], nil) | |
269 | 265 | } | |
270 | 266 | else 0 | |
271 | - | if (( | |
267 | + | if ((av == av)) | |
272 | 268 | then { | |
273 | - | let | |
269 | + | let aw = if ((ap[4] != ak[4])) | |
274 | 270 | then { | |
275 | - | let | |
276 | - | invoke(o, "add", [ | |
271 | + | let as = (ap[4] - ak[4]) | |
272 | + | invoke(o, "add", [am[4], as], nil) | |
277 | 273 | } | |
278 | 274 | else 0 | |
279 | - | if (( | |
275 | + | if ((aw == aw)) | |
280 | 276 | then { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if (( | |
277 | + | let ax = [IntegerEntry(i, ai), IntegerEntry((toString(V.caller) + l), (aj + ag)), StringEntry(e, aq)] | |
278 | + | let ay = L(aj) | |
279 | + | let az = L(ai) | |
280 | + | let aA = (az - ay) | |
281 | + | if ((aA > 0)) | |
286 | 282 | then { | |
287 | - | let | |
288 | - | then invoke(o, "add", [ | |
283 | + | let aB = if ((aA == 1)) | |
284 | + | then invoke(o, "add", [an[(az - 1)], 1], nil) | |
289 | 285 | else 0 | |
290 | - | if (( | |
286 | + | if ((aB == aB)) | |
291 | 287 | then { | |
292 | - | let | |
293 | - | then invoke(o, "add", [ | |
288 | + | let aC = if ((aA >= 2)) | |
289 | + | then invoke(o, "add", [an[(az - 2)], 1], nil) | |
294 | 290 | else 0 | |
295 | - | if (( | |
291 | + | if ((aC == aC)) | |
296 | 292 | then { | |
297 | - | let | |
298 | - | then invoke(o, "add", [ | |
293 | + | let aD = if ((aA >= 3)) | |
294 | + | then invoke(o, "add", [an[(az - 3)], 1], nil) | |
299 | 295 | else 0 | |
300 | - | if (( | |
296 | + | if ((aD == aD)) | |
301 | 297 | then { | |
302 | - | let | |
303 | - | then invoke(o, "add", [ | |
298 | + | let aE = if ((aA == 4)) | |
299 | + | then invoke(o, "add", [an[(az - 4)], 1], nil) | |
304 | 300 | else 0 | |
305 | - | if (( | |
306 | - | then | |
301 | + | if ((aE == aE)) | |
302 | + | then ax | |
307 | 303 | else throw("Strict value is not equal to itself.") | |
308 | 304 | } | |
309 | 305 | else throw("Strict value is not equal to itself.") | |
310 | 306 | } | |
311 | 307 | else throw("Strict value is not equal to itself.") | |
312 | 308 | } | |
313 | 309 | else throw("Strict value is not equal to itself.") | |
314 | 310 | } | |
315 | - | else | |
311 | + | else ax | |
316 | 312 | } | |
317 | 313 | else throw("Strict value is not equal to itself.") | |
318 | 314 | } | |
319 | 315 | else throw("Strict value is not equal to itself.") | |
320 | 316 | } | |
321 | 317 | else throw("Strict value is not equal to itself.") | |
322 | 318 | } | |
323 | 319 | else throw("Strict value is not equal to itself.") | |
324 | 320 | } | |
325 | 321 | else throw("Strict value is not equal to itself.") | |
326 | 322 | } | |
327 | 323 | } | |
328 | 324 | ||
329 | 325 | ||
330 | 326 | ||
331 | - | @Callable( | |
332 | - | func hashingRandom ( | |
327 | + | @Callable(V) | |
328 | + | func hashingRandom (aF) = if (!(C)) | |
333 | 329 | then throw("DApp is inactive at this moment") | |
334 | - | else if (!(containsElement([x, y, z], | |
330 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
335 | 331 | then throw("Only admin can call this function") | |
336 | - | else [StringEntry(j, | |
332 | + | else [StringEntry(j, aF)] | |
337 | 333 | ||
338 | 334 | ||
339 | 335 | ||
340 | - | @Callable( | |
341 | - | func finalize ( | |
342 | - | let | |
343 | - | let | |
336 | + | @Callable(V) | |
337 | + | func finalize (aG,aH) = { | |
338 | + | let aI = getStringValue(this, j) | |
339 | + | let aJ = toBase58String(sha256((toBytes(aG) + toBytes(aH)))) | |
344 | 340 | if (!(C)) | |
345 | 341 | then throw("DApp is inactive at this moment") | |
346 | - | else if (!(containsElement([x, y, z], | |
342 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
347 | 343 | then throw("Only admin can call this function") | |
348 | - | else if (( | |
344 | + | else if ((aJ != aI)) | |
349 | 345 | then throw("vrf Height hash not matching") | |
350 | 346 | else { | |
351 | - | let | |
352 | - | [Burn(B, | |
347 | + | let aK = getIntegerValue(this, i) | |
348 | + | [Burn(B, aK), IntegerEntry(k, height)] | |
353 | 349 | } | |
354 | 350 | } | |
355 | 351 | ||
356 | 352 | ||
357 | 353 | ||
358 | - | @Callable( | |
354 | + | @Callable(V) | |
359 | 355 | func shutdown () = if (!(C)) | |
360 | 356 | then throw("DApp already inactive") | |
361 | - | else if (!(containsElement([x, y, z], | |
357 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
362 | 358 | then throw("Only admin can call this function") | |
363 | 359 | else [BooleanEntry(a, false)] | |
364 | 360 | ||
365 | 361 | ||
366 | 362 | ||
367 | - | @Callable( | |
363 | + | @Callable(V) | |
368 | 364 | func activate () = if (C) | |
369 | 365 | then throw("DApp already active") | |
370 | - | else if (!(containsElement([x, y, z], | |
366 | + | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
371 | 367 | then throw("Only admin can call this function") | |
372 | 368 | else [BooleanEntry(a, true)] | |
373 | 369 | ||
374 | 370 | ||
375 | - | @Verifier( | |
376 | - | func | |
377 | - | let | |
378 | - | let | |
371 | + | @Verifier(aL) | |
372 | + | func aM () = { | |
373 | + | let aN = { | |
374 | + | let aO = if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
379 | 375 | then 1 | |
380 | 376 | else 0 | |
381 | - | let | |
377 | + | let aP = if (sigVerify(aL.bodyBytes, aL.proofs[1], y)) | |
382 | 378 | then 1 | |
383 | 379 | else 0 | |
384 | - | let | |
380 | + | let aQ = if (sigVerify(aL.bodyBytes, aL.proofs[2], z)) | |
385 | 381 | then 1 | |
386 | 382 | else 0 | |
387 | - | ((( | |
383 | + | (((aO + aP) + aQ) >= 2) | |
388 | 384 | } | |
389 | - | let | |
385 | + | let aR = if (if (if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
390 | 386 | then true | |
391 | - | else sigVerify( | |
387 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], y)) | |
392 | 388 | then true | |
393 | - | else sigVerify( | |
389 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], z)) | |
394 | 390 | then true | |
395 | - | else sigVerify( | |
396 | - | let u = | |
397 | - | | |
391 | + | else sigVerify(aL.bodyBytes, aL.proofs[0], A) | |
392 | + | let u = aL | |
393 | + | aN | |
398 | 394 | } | |
399 | 395 |
github/deemru/w8io/026f985 120.78 ms ◑