tx · H8fveYRAvpgVBoWD9KnHuWeMZiDoQfVWno5VgwDQNYsi

3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB:  -0.05000000 Waves

2021.08.19 23:13 [1665698] smart account 3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB > SELF 0.00000000 Waves

{ "type": 13, "id": "H8fveYRAvpgVBoWD9KnHuWeMZiDoQfVWno5VgwDQNYsi", "fee": 5000000, "feeAssetId": null, "timestamp": 1629404005918, "version": 2, "chainId": 84, "sender": "3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB", "senderPublicKey": "9Vbnf3b9hhuCerzPXf38mLo8mUGTPNVW3jtQRbymjaSw", "proofs": [ "39PrX4GXkYYjY5Qzv5H9GAUpy4AVKicJMru51KH7MmY5ahhr1HY2bT59hJJR5a3iZgKbciYbjZ81aCmnywbJQRtu" ], "script": "base64:AAIFAAAAAAAAADoIAhIGCgQBAQEBEgMKAQESAwoBARIDCgEBEgMKAQESAwoBARIECgIBCBIFCgMBCAgSAwoBARIDCgEBAAAALAAAAAAQaW5jdWJhdG9yQWRkcmVzcwEAAAAaAVQu1YzRxAHn1ekAzs1AJJ6xFAc06V7PK6oAAAAADmJyZWVkZXJBZGRyZXNzAQAAABoBVC7VjNHEAefV6QDOzUAknrEUBzTpXs8rqgAAAAAOZmFybWluZ0FkZHJlc3MBAAAAGgFU8jY5wCvKx9IdZ1jq9byeNi+peiAgajPTAAAAAAtlZ2dzQXNzZXRJZAEAAAAgJQJlzPcEaMi+AVmReOVYWjhmFBOtSkxKt/4FF0gXFoMAAAAACG1ha2VyRmVlAAAAAAAAAAABAAAAAAh0YWtlckZlZQAAAAAAAAAAAQAAAAAFU0xPVFMAAAAAAAAAAAoAAAAAB1dBSVRJTkcAAAAAAAAAAAUAAAAADHN0ZXBEdXJhdGlvbgAAAAAAAAAAAwEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHR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HBpcmVkAAAAAQUAAAAIZ2FtZVN0ZXAJAAACAAAAAQIAAAAWSW52YWxpZCBjYWxsZXIgYWRkcmVzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V59c3EZw==", "height": 1665698, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BPGo8qUvMF5T7MunpBFCoRcWvzUhxfCAUPtFu9Et3Pgc Next: DJJFE6k83nSDLzHbsbHfStV2aCsxg92EUc3aAjKENj7u Diff:
OldNewDifferences
290290 then throw("This game is started")
291291 else {
292292 let aD = A(z)
293-[IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(toBytes(aD)), (E(z) + e), d)]
293+[IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(fromBase58String(aD)), (E(z) + e), d)]
294294 }
295295 }
296296
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh'
55
66 let b = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh'
77
88 let c = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC'
99
1010 let d = base58'3VUCuh9dWqe54SdzzNUkXhFXpc8UQynnJVh42B7MjNzN'
1111
1212 let e = 1
1313
1414 let f = 1
1515
1616 let g = 10
1717
1818 let h = 5
1919
2020 let i = 3
2121
2222 func j (k) = {
2323 let l = getInteger(this, k)
2424 if ($isInstanceOf(l, "Int"))
2525 then {
2626 let m = l
2727 m
2828 }
2929 else 0
3030 }
3131
3232
3333 func n (k) = {
3434 let l = getString(this, k)
3535 if ($isInstanceOf(l, "String"))
3636 then {
3737 let o = l
3838 o
3939 }
4040 else ""
4141 }
4242
4343
4444 func p (k) = {
4545 let l = getBoolean(this, k)
4646 if ($isInstanceOf(l, "Boolean"))
4747 then {
4848 let m = l
4949 m
5050 }
5151 else false
5252 }
5353
5454
5555 func q () = {
5656 let r = j("next_game_id")
5757 if ((r == 0))
5858 then 1
5959 else r
6060 }
6161
6262
6363 func s (t) = ("current_game_" + t)
6464
6565
6666 func u (t) = j(s(t))
6767
6868
6969 func v (w) = ("slot_" + toString(w))
7070
7171
7272 func x (w) = j(v(w))
7373
7474
7575 func y (z) = (("game_" + toString(z)) + "_maker")
7676
7777
7878 func A (z) = n(y(z))
7979
8080
8181 func B (z) = (("game_" + toString(z)) + "_taker")
8282
8383
8484 func C (z) = n(B(z))
8585
8686
8787 func D (z) = (("game_" + toString(z)) + "_bet_eggs")
8888
8989
9090 func E (z) = j(D(z))
9191
9292
9393 func F (z) = (("game_" + toString(z)) + "_waiting_end_height")
9494
9595
9696 func G (z) = j(F(z))
9797
9898
9999 func H (z) = (("game_" + toString(z)) + "_over_height")
100100
101101
102102 func I (z) = j(F(z))
103103
104104
105105 func J (z,K) = ((("game_" + toString(z)) + "_rarityRange_") + K)
106106
107107
108108 func L (z,K) = j(J(z, K))
109109
110110
111111 func M (z) = (("game_" + toString(z)) + "_step")
112112
113113
114114 func N (z) = j(M(z))
115115
116116
117117 func O (z,P,K) = (((((("game_" + toString(z)) + "_") + P) + "_") + K) + "Rarity")
118118
119119
120120 func Q (z,P,K) = j(O(z, P, K))
121121
122122
123123 func R (z,P) = (((("game_" + toString(z)) + "_") + P) + "_commit")
124124
125125
126126 func S (z,P) = n(R(z, P))
127127
128128
129129 func T (z,P) = (((("game_" + toString(z)) + "_") + P) + "_duckOrder")
130130
131131
132132 func U (z,P) = n(T(z, P))
133133
134134
135135 func V (z,P) = (((("game_" + toString(z)) + "_") + P) + "_withdrawStatus")
136136
137137
138138 func W (z,P) = p(V(z, P))
139139
140140
141141 func X (z,Y,Z,aa,ab,K,ac) = {
142142 let ad = L(z, K)
143143 if (if (if (if ((ad == 5))
144144 then (40 > ab)
145145 else false)
146146 then true
147147 else (ab >= (ad * 10)))
148148 then true
149149 else (((ad - 1) * 10) > ab))
150150 then throw("This duck doesn't fit the rarity range")
151151 else [IntegerEntry(O(z, Y, K), ab), IntegerEntry(M(z), (ac + 1)), IntegerEntry(H(z), (height + i)), ScriptTransfer(Z, 1, aa)]
152152 }
153153
154154
155155 func ae (o,m) = if ((o > m))
156156 then 1
157157 else if ((m > o))
158158 then -1
159159 else 0
160160
161161
162162 func af (z) = {
163163 let ag = split(U(z, "maker"), ",")
164164 let ah = split(U(z, "taker"), ",")
165165 let ai = Q(z, "maker", ag[0])
166166 let aj = Q(z, "maker", ag[1])
167167 let ak = Q(z, "maker", ag[2])
168168 let al = Q(z, "taker", ag[0])
169169 let am = Q(z, "taker", ag[1])
170170 let an = Q(z, "taker", ag[2])
171171 let ao = ((ae(ai, al) + ae(aj, am)) + ae(ak, an))
172172 if ((ao > 0))
173173 then "maker"
174174 else if ((0 > ao))
175175 then "taker"
176176 else "draw"
177177 }
178178
179179
180180 func ap (aq) = if (if (if (if (if ((aq == 0))
181181 then true
182182 else (aq == 3))
183183 then true
184184 else (aq == 4))
185185 then true
186186 else (aq == 7))
187187 then true
188188 else (aq == 9))
189189 then "maker"
190190 else if (if (if (if (if ((aq == 1))
191191 then true
192192 else (aq == 2))
193193 then true
194194 else (aq == 5))
195195 then true
196196 else (aq == 6))
197197 then true
198198 else (aq == 8))
199199 then "taker"
200200 else "draw"
201201
202202
203203 func ar (z,Z,Y,as) = {
204204 let at = A(z)
205205 let au = C(z)
206206 if (W(z, Y))
207207 then throw("You have already got the prize")
208208 else if ((as == Y))
209209 then [IntegerEntry(s(at), 0), IntegerEntry(s(au), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, (E(z) * 2), d)]
210210 else if ((as == "draw"))
211211 then if ((Y == "maker"))
212212 then [IntegerEntry(s(at), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, E(z), d)]
213213 else [IntegerEntry(s(au), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, E(z), d)]
214214 else throw("You lose and don't have any prize")
215215 }
216216
217217
218218 @Callable(av)
219219 func makeGame (w,aw,ax,ay) = {
220220 let az = toBase58String(av.caller.bytes)
221221 let aA = x(w)
222222 let aB = value(av.payments[0])
223223 let aC = (aB.amount - e)
224224 let z = q()
225225 if ((aB.assetId != d))
226226 then throw(("You can attach only EGGs with the following asset id: " + toBase58String(d)))
227227 else if ((0 >= aC))
228228 then throw("Not enough EGGs")
229229 else if ((u(az) != 0))
230230 then throw("You already have an active game")
231231 else if (if ((0 > w))
232232 then true
233233 else (w >= g))
234234 then throw("Invalid slot")
235235 else if ((aA != 0))
236236 then throw("This slot is busy")
237237 else if (if ((1 > aw))
238238 then true
239239 else (aw > 5))
240240 then throw("Invalid rarity range for the worst duck")
241241 else if (if ((1 > ax))
242242 then true
243243 else (ax > 5))
244244 then throw("Invalid rarity range for the medium duck")
245245 else if (if ((1 > ay))
246246 then true
247247 else (ay > 5))
248248 then throw("Invalid rarity range for the best duck")
249249 else if ((aw >= ax))
250250 then throw("The medium duck must be better than the worst one")
251251 else if ((ax >= ay))
252252 then throw("The best duck must be better than the medium one")
253253 else [IntegerEntry(s(az), z), StringEntry(y(z), az), IntegerEntry(D(z), aC), IntegerEntry(J(z, "worst"), aw), IntegerEntry(J(z, "medium"), ax), IntegerEntry(J(z, "best"), ay), IntegerEntry(F(z), (height + h)), IntegerEntry(v(w), z), IntegerEntry("next_game_id", (z + 1))]
254254 }
255255
256256
257257
258258 @Callable(av)
259259 func takeGame (w) = {
260260 let az = toBase58String(av.caller.bytes)
261261 let z = x(w)
262262 let aB = value(av.payments[0])
263263 if ((x(w) == 0))
264264 then throw("This slot is empty")
265265 else if ((aB.assetId != d))
266266 then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(d)))
267267 else if ((aB.amount != (E(z) + f)))
268268 then throw("Insufficient eggs amount")
269269 else if ((C(z) != ""))
270270 then throw("This game is already taken")
271271 else if ((height >= G(z)))
272272 then throw("This game is expired")
273273 else [IntegerEntry(s(az), z), StringEntry(B(z), az), IntegerEntry(H(z), (height + i)), IntegerEntry(v(w), 0)]
274274 }
275275
276276
277277
278278 @Callable(av)
279279 func kickGame (w) = {
280280 let z = x(w)
281281 if (if ((0 > w))
282282 then true
283283 else (w >= g))
284284 then throw("Invalid slot")
285285 else if ((z == 0))
286286 then throw("Slot is empty")
287287 else if ((G(z) > height))
288288 then throw("Waiting is not finished yet")
289289 else if ((C(z) != ""))
290290 then throw("This game is started")
291291 else {
292292 let aD = A(z)
293-[IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(toBytes(aD)), (E(z) + e), d)]
293+[IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(fromBase58String(aD)), (E(z) + e), d)]
294294 }
295295 }
296296
297297
298298
299299 @Callable(av)
300300 func pickWorstDuck (z) = {
301301 let az = toBase58String(av.caller.bytes)
302302 let aa = value(value(av.payments[0]).assetId)
303303 let aq = N(z)
304304 if (if ((value(assetInfo(aa)).issuer != Address(b)))
305305 then (value(assetInfo(aa)).issuer != Address(a))
306306 else false)
307307 then throw("Invalid NFT")
308308 else if ((aq == 0))
309309 then if ((az != C(z)))
310310 then throw("It is the taker's turn to pick now")
311311 else {
312312 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
313313 if ((aE == aE))
314314 then {
315315 let ab = {
316316 let l = aE
317317 if ($isInstanceOf(l, "Int"))
318318 then {
319319 let aF = l
320320 aF
321321 }
322322 else throw("Incorrect invoke result")
323323 }
324324 X(z, "taker", av.caller, aa, ab, "worst", 0)
325325 }
326326 else throw("Strict value is not equal to itself.")
327327 }
328328 else if ((aq == 1))
329329 then if ((az != A(z)))
330330 then throw("It is the maker's turn to pick now")
331331 else {
332332 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
333333 if ((aE == aE))
334334 then {
335335 let ab = {
336336 let l = aE
337337 if ($isInstanceOf(l, "Int"))
338338 then {
339339 let aF = l
340340 aF
341341 }
342342 else throw("Incorrect invoke result")
343343 }
344344 X(z, "maker", av.caller, aa, ab, "worst", 1)
345345 }
346346 else throw("Strict value is not equal to itself.")
347347 }
348348 else throw("The worst duck has already been picked")
349349 }
350350
351351
352352
353353 @Callable(av)
354354 func pickMediumtDuck (z) = {
355355 let az = toBase58String(av.caller.bytes)
356356 let aa = value(value(av.payments[0]).assetId)
357357 let aq = N(z)
358358 if (if ((value(assetInfo(aa)).issuer != Address(b)))
359359 then (value(assetInfo(aa)).issuer != Address(a))
360360 else false)
361361 then throw("Invalid NFT")
362362 else if ((2 > aq))
363363 then throw("The medium duck must be picked after the worst one")
364364 else if ((aq == 2))
365365 then if ((az != A(z)))
366366 then throw("It is the maker's turn to pick now")
367367 else {
368368 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
369369 if ((aE == aE))
370370 then {
371371 let ab = {
372372 let l = aE
373373 if ($isInstanceOf(l, "Int"))
374374 then {
375375 let aF = l
376376 aF
377377 }
378378 else throw("Incorrect invoke result")
379379 }
380380 X(z, "maker", av.caller, aa, ab, "medium", 2)
381381 }
382382 else throw("Strict value is not equal to itself.")
383383 }
384384 else if ((aq == 3))
385385 then if ((az != C(z)))
386386 then throw("It is the taker's turn to pick now")
387387 else {
388388 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
389389 if ((aE == aE))
390390 then {
391391 let ab = {
392392 let l = aE
393393 if ($isInstanceOf(l, "Int"))
394394 then {
395395 let aF = l
396396 aF
397397 }
398398 else throw("Incorrect invoke result")
399399 }
400400 X(z, "taker", av.caller, aa, ab, "medium", 3)
401401 }
402402 else throw("Strict value is not equal to itself.")
403403 }
404404 else throw("The medium duck has already been picked")
405405 }
406406
407407
408408
409409 @Callable(av)
410410 func pickBestDuck (z) = {
411411 let az = toBase58String(av.caller.bytes)
412412 let aa = value(value(av.payments[0]).assetId)
413413 let aq = N(z)
414414 if (if ((value(assetInfo(aa)).issuer != Address(b)))
415415 then (value(assetInfo(aa)).issuer != Address(a))
416416 else false)
417417 then throw("Invalid NFT")
418418 else if ((4 > aq))
419419 then throw("The best duck must be picked after the worst and the medium ones")
420420 else if ((aq == 4))
421421 then if ((az != C(z)))
422422 then throw("It is the taker's turn to pick now")
423423 else {
424424 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
425425 if ((aE == aE))
426426 then {
427427 let ab = {
428428 let l = aE
429429 if ($isInstanceOf(l, "Int"))
430430 then {
431431 let aF = l
432432 aF
433433 }
434434 else throw("Incorrect invoke result")
435435 }
436436 X(z, "taker", av.caller, aa, ab, "best", 4)
437437 }
438438 else throw("Strict value is not equal to itself.")
439439 }
440440 else if ((aq == 5))
441441 then if ((az != A(z)))
442442 then throw("It is the maker's turn to pick now")
443443 else {
444444 let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil)
445445 if ((aE == aE))
446446 then {
447447 let ab = {
448448 let l = aE
449449 if ($isInstanceOf(l, "Int"))
450450 then {
451451 let aF = l
452452 aF
453453 }
454454 else throw("Incorrect invoke result")
455455 }
456456 X(z, "maker", av.caller, aa, ab, "best", 5)
457457 }
458458 else throw("Strict value is not equal to itself.")
459459 }
460460 else throw("The best duck has already been picked")
461461 }
462462
463463
464464
465465 @Callable(av)
466466 func commit (z,aG) = {
467467 let az = toBase58String(av.caller.bytes)
468468 let aq = N(z)
469469 if ((6 > aq))
470470 then throw("Ducks hasn't been picked yet")
471471 else if ((aq == 6))
472472 then if ((az != A(z)))
473473 then throw("It is the maker's turn to commit now")
474474 else [StringEntry(R(z, "maker"), aG), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))]
475475 else if ((aq == 7))
476476 then if ((az != C(z)))
477477 then throw("It is the taker's turn to commit now")
478478 else [StringEntry(R(z, "taker"), aG), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))]
479479 else throw("Commit is finished")
480480 }
481481
482482
483483
484484 @Callable(av)
485485 func reveal (z,aH,aI) = {
486486 let az = toBase58String(av.caller.bytes)
487487 let aq = N(z)
488488 if ((8 > aq))
489489 then throw("Reveal is not started")
490490 else if (if (if (if (if (if ((aH != "worst,medium,best"))
491491 then true
492492 else (aH != "worst,best,medium"))
493493 then true
494494 else (aH != "medium,worst,best"))
495495 then true
496496 else (aH != "medium,best,worst"))
497497 then true
498498 else (aH != "best,worst,medium"))
499499 then true
500500 else (aH != "best,medium,worst"))
501501 then throw("Invalid duckOrder")
502502 else if ((aq == 8))
503503 then if ((az != A(z)))
504504 then throw("It is the maker's turn to reveal now")
505505 else if ((toBase58String(sha256(toBytes((aH + aI)))) != S(z, "maker")))
506506 then throw("reveal data is not valid")
507507 else [StringEntry(T(z, "maker"), aH), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))]
508508 else if ((aq == 9))
509509 then if ((az != C(z)))
510510 then throw("It is the taker's turn to reveal now")
511511 else if ((toBase58String(sha256(toBytes((aH + aI)))) != S(z, "taker")))
512512 then throw("reveal data is not valid")
513513 else [StringEntry(T(z, "taker"), aH), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))]
514514 else throw("Reveal is finished")
515515 }
516516
517517
518518
519519 @Callable(av)
520520 func getPrize (z) = {
521521 let az = toBase58String(av.caller.bytes)
522522 let aq = N(z)
523523 if ((aq != 10))
524524 then throw("Game is not finished")
525525 else if ((az == A(z)))
526526 then ar(z, av.caller, "maker", af(z))
527527 else if ((az == C(z)))
528528 then ar(z, av.caller, "taker", af(z))
529529 else throw("Invalid caller address")
530530 }
531531
532532
533533
534534 @Callable(av)
535535 func getPrizeExpired (z) = {
536536 let az = toBase58String(av.caller.bytes)
537537 let aq = N(z)
538538 if ((aq == 10))
539539 then throw("Game is finished, call getPrize instead")
540540 else if ((I(z) > height))
541541 then throw("Game is not expired")
542542 else if ((az == A(z)))
543543 then ar(z, av.caller, "maker", ap(aq))
544544 else if ((az == C(z)))
545545 then ar(z, av.caller, "taker", ap(aq))
546546 else throw("Invalid caller address")
547547 }
548548
549549
550550 @Verifier(aJ)
551551 func aK () = sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey)
552552

github/deemru/w8io/026f985 
57.02 ms