tx · 8CYRe3V9sk6njbAtMctcLomn6BiYAERWTVdAtgLJzE4M

3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8:  -0.01400000 Waves

2020.01.31 20:32 [878864] smart account 3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8 > SELF 0.00000000 Waves

{ "type": 13, "id": "8CYRe3V9sk6njbAtMctcLomn6BiYAERWTVdAtgLJzE4M", "fee": 1400000, "feeAssetId": null, "timestamp": 1580491949200, "version": 1, "sender": "3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8", "senderPublicKey": "6uncmj7GmSzxFAGGX8NcToqPxTxWUHW7Aj1WSbMH2qXw", "proofs": [ "5HWxT2XmPt7g2EHQG3ZpF15N6YM6iho3naukVGmudaSN6nDFEnKxiYpwnHRbyCnB5wv9TynG8DAvPZypwQHrwHP5" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIBCBIECgIIAgAAACAAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAY9iYXNlNjQ6TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFnNGRBUjZYYkJEQVM5aHIvRWozZEp2NkZmYzQ2NngvbU9HTVdVM2xyQUJzM3FhOEJIbXVKR25rZmJwRWYydkF3WVRPV1B2dnpmTTEwT0JiZmxvU3lxM2M5TUt2eVRlMWx1QkxHcVc0dlpVWEl5dlNnejFsaXlVVmVmSVF5M2R5RjlqYmVUWmJDMGJiY1QvN08zREVMKzAxejZBK3JEQ2FjU1owbEdvbFNRNkFuaEx4eklrVnBPUUpickJtQyt4K1p1WlBDTVd6SnluZDVhZU9uN2phai9ta1JWeXhlNmcvME9oV3o0TmlpWlhldU1SQis4bUt5MGZXRC9VbElsWldIc0FTMlptcmtYS3FqTHEwLzB3cjhJTEprem5qU3Fkbkk1SWJqZzN1UXJqLzRBTitpOXIyOGFRNzMvWmtQdFk1U2J3MEFPaUFCQnU3Z0htcTlheVZ4WlFJREFRQUI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AZnYW1lSWQFAAAADm5ld0dhbWVEYXRhU3RyCQAETAAAAAIFAAAAEWRlY3JlYXNlZFJlc2VydmVzBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAANcGxheWVyQWRkcmVzcwUAAAAGd2luQW10BQAAAARXQkVUBQAAAANuaWwEAAAADm5ld0dhbWVEYXRhU3RyCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAETE9TVAIAAAABXwkAAZEAAAACBQAAAAxnYW1lRGF0YUxpc3QAAAAAAAAAAAECAAAAAV8FAAAADnBsYXllclB1YktleTU4AgAAAAFfCQABkQAAAAIFAAAADGdhbWVEYXRhTGlzdAAAAAAAAAAAAwIAAAABXwUAAAAHcmFuZFN0cgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgkABEwAAAACBQAAABFkZWNyZWFzZWRSZXNlcnZlcwUAAAADbmlsAAAAANRN7Qo=", "chainId": 84, "height": 878864, "spentComplexity": 0 } View: original | compacted Prev: 5c8KKJ1NGFFYJ9f6TT6JM3KKSKybeWz8gcqEfQMhHaH9 Next: FyqmXTYep8QS7DHLQE9UHsAyT5hePrRmUiQD7y1h1BM7 Diff:
OldNewDifferences
11441144
11451145
11461146 func GetWriteSet (gameIdO,betId,gameId,winAmt,gameDataStr) = if ((gameIdO == "new"))
1147- then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(betId, 1), DataEntry(gameId, gameDataStr)])
1148- else WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(gameIdO, IncrementValue(gameIdO)), DataEntry(gameId, gameDataStr)])
1147+ then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, 100000000000000000), DataEntry(betId, 1), DataEntry(gameId, gameDataStr)])
1148+ else WriteSet([DataEntry(RESERVATIONKEY, 100000000000000000), DataEntry(gameIdO, IncrementValue(gameIdO)), DataEntry(gameId, gameDataStr)])
11491149
11501150
11511151 @Callable(i)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
55
66 let GAMESCOUNTERKEY = "$GAME_NUM"
77
88 let RESERVATIONKEY = "$RESERVED_AMOUNT"
99
1010 let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1111
1212 let WALLETWAVESBET = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1313
1414 let WALLETMCAFEE = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1515
1616 let WAVELET = 100000000
1717
1818 let FEEWAVESBET = 4
1919
2020 let FEEMCAFEE = 2
2121
2222 let BETMIN = (1 * WAVELET)
2323
2424 let BETMAX = (20000000 * WAVELET)
2525
2626 func straightUpBet (rand,bet) = if ((rand == bet))
2727 then true
2828 else false
2929
3030
3131 func splitBet (rand,bet) = if (if ((rand == 0))
3232 then if (if ((bet == 37))
3333 then true
3434 else (bet == 38))
3535 then true
3636 else (bet == 39)
3737 else false)
3838 then true
3939 else if (if ((rand == 1))
4040 then if (if ((bet == 37))
4141 then true
4242 else (bet == 40))
4343 then true
4444 else (bet == 85)
4545 else false)
4646 then true
4747 else if (if ((rand == 2))
4848 then if (if (if ((bet == 38))
4949 then true
5050 else (bet == 41))
5151 then true
5252 else (bet == 73))
5353 then true
5454 else (bet == 85)
5555 else false)
5656 then true
5757 else if (if ((rand == 3))
5858 then if (if ((bet == 39))
5959 then true
6060 else (bet == 42))
6161 then true
6262 else (bet == 73)
6363 else false)
6464 then true
6565 else if (if ((rand == 4))
6666 then if (if ((bet == 40))
6767 then true
6868 else (bet == 43))
6969 then true
7070 else (bet == 86)
7171 else false)
7272 then true
7373 else if (if ((rand == 5))
7474 then if (if (if ((bet == 41))
7575 then true
7676 else (bet == 44))
7777 then true
7878 else (bet == 74))
7979 then true
8080 else (bet == 86)
8181 else false)
8282 then true
8383 else if (if ((rand == 6))
8484 then if (if ((bet == 42))
8585 then true
8686 else (bet == 45))
8787 then true
8888 else (bet == 74)
8989 else false)
9090 then true
9191 else if (if ((rand == 7))
9292 then if (if ((bet == 43))
9393 then true
9494 else (bet == 46))
9595 then true
9696 else (bet == 87)
9797 else false)
9898 then true
9999 else if (if ((rand == 8))
100100 then if (if (if ((bet == 44))
101101 then true
102102 else (bet == 47))
103103 then true
104104 else (bet == 75))
105105 then true
106106 else (bet == 87)
107107 else false)
108108 then true
109109 else if (if ((rand == 9))
110110 then if (if ((bet == 45))
111111 then true
112112 else (bet == 48))
113113 then true
114114 else (bet == 75)
115115 else false)
116116 then true
117117 else if (if ((rand == 10))
118118 then if (if ((bet == 46))
119119 then true
120120 else (bet == 49))
121121 then true
122122 else (bet == 88)
123123 else false)
124124 then true
125125 else if (if ((rand == 11))
126126 then if (if (if ((bet == 47))
127127 then true
128128 else (bet == 50))
129129 then true
130130 else (bet == 76))
131131 then true
132132 else (bet == 88)
133133 else false)
134134 then true
135135 else if (if ((rand == 12))
136136 then if (if ((bet == 48))
137137 then true
138138 else (bet == 51))
139139 then true
140140 else (bet == 76)
141141 else false)
142142 then true
143143 else if (if ((rand == 13))
144144 then if (if ((bet == 49))
145145 then true
146146 else (bet == 52))
147147 then true
148148 else (bet == 89)
149149 else false)
150150 then true
151151 else if (if ((rand == 14))
152152 then if (if (if ((bet == 50))
153153 then true
154154 else (bet == 53))
155155 then true
156156 else (bet == 77))
157157 then true
158158 else (bet == 89)
159159 else false)
160160 then true
161161 else if (if ((rand == 15))
162162 then if (if ((bet == 51))
163163 then true
164164 else (bet == 54))
165165 then true
166166 else (bet == 77)
167167 else false)
168168 then true
169169 else if (if ((rand == 16))
170170 then if (if ((bet == 52))
171171 then true
172172 else (bet == 55))
173173 then true
174174 else (bet == 90)
175175 else false)
176176 then true
177177 else if (if ((rand == 17))
178178 then if (if (if ((bet == 53))
179179 then true
180180 else (bet == 56))
181181 then true
182182 else (bet == 78))
183183 then true
184184 else (bet == 90)
185185 else false)
186186 then true
187187 else if (if ((rand == 18))
188188 then if (if ((bet == 54))
189189 then true
190190 else (bet == 57))
191191 then true
192192 else (bet == 78)
193193 else false)
194194 then true
195195 else if (if ((rand == 19))
196196 then if (if ((bet == 55))
197197 then true
198198 else (bet == 58))
199199 then true
200200 else (bet == 91)
201201 else false)
202202 then true
203203 else if (if ((rand == 20))
204204 then if (if (if ((bet == 56))
205205 then true
206206 else (bet == 59))
207207 then true
208208 else (bet == 79))
209209 then true
210210 else (bet == 91)
211211 else false)
212212 then true
213213 else if (if ((rand == 21))
214214 then if (if ((bet == 57))
215215 then true
216216 else (bet == 60))
217217 then true
218218 else (bet == 79)
219219 else false)
220220 then true
221221 else if (if ((rand == 22))
222222 then if (if ((bet == 58))
223223 then true
224224 else (bet == 61))
225225 then true
226226 else (bet == 92)
227227 else false)
228228 then true
229229 else if (if ((rand == 23))
230230 then if (if (if ((bet == 59))
231231 then true
232232 else (bet == 62))
233233 then true
234234 else (bet == 80))
235235 then true
236236 else (bet == 92)
237237 else false)
238238 then true
239239 else if (if ((rand == 24))
240240 then if (if ((bet == 60))
241241 then true
242242 else (bet == 63))
243243 then true
244244 else (bet == 80)
245245 else false)
246246 then true
247247 else if (if ((rand == 25))
248248 then if (if ((bet == 61))
249249 then true
250250 else (bet == 64))
251251 then true
252252 else (bet == 93)
253253 else false)
254254 then true
255255 else if (if ((rand == 26))
256256 then if (if (if ((bet == 62))
257257 then true
258258 else (bet == 65))
259259 then true
260260 else (bet == 81))
261261 then true
262262 else (bet == 93)
263263 else false)
264264 then true
265265 else if (if ((rand == 27))
266266 then if (if ((bet == 63))
267267 then true
268268 else (bet == 66))
269269 then true
270270 else (bet == 81)
271271 else false)
272272 then true
273273 else if (if ((rand == 28))
274274 then if (if ((bet == 64))
275275 then true
276276 else (bet == 67))
277277 then true
278278 else (bet == 94)
279279 else false)
280280 then true
281281 else if (if ((rand == 29))
282282 then if (if (if ((bet == 65))
283283 then true
284284 else (bet == 68))
285285 then true
286286 else (bet == 82))
287287 then true
288288 else (bet == 94)
289289 else false)
290290 then true
291291 else if (if ((rand == 30))
292292 then if (if ((bet == 66))
293293 then true
294294 else (bet == 69))
295295 then true
296296 else (bet == 82)
297297 else false)
298298 then true
299299 else if (if ((rand == 31))
300300 then if (if ((bet == 67))
301301 then true
302302 else (bet == 70))
303303 then true
304304 else (bet == 95)
305305 else false)
306306 then true
307307 else if (if ((rand == 32))
308308 then if (if (if ((bet == 68))
309309 then true
310310 else (bet == 71))
311311 then true
312312 else (bet == 83))
313313 then true
314314 else (bet == 95)
315315 else false)
316316 then true
317317 else if (if ((rand == 33))
318318 then if (if ((bet == 69))
319319 then true
320320 else (bet == 72))
321321 then true
322322 else (bet == 83)
323323 else false)
324324 then true
325325 else if (if ((rand == 34))
326326 then if ((bet == 70))
327327 then true
328328 else (bet == 96)
329329 else false)
330330 then true
331331 else if (if ((rand == 35))
332332 then if (if ((bet == 71))
333333 then true
334334 else (bet == 84))
335335 then true
336336 else (bet == 96)
337337 else false)
338338 then true
339339 else if (if ((rand == 36))
340340 then if ((bet == 72))
341341 then true
342342 else (bet == 84)
343343 else false)
344344 then true
345345 else false
346346
347347
348348 func streetBet (rand,bet) = if (if ((bet == 97))
349349 then if (if ((rand == 0))
350350 then true
351351 else (rand == 1))
352352 then true
353353 else (rand == 2)
354354 else false)
355355 then true
356356 else if (if ((bet == 98))
357357 then if (if ((rand == 0))
358358 then true
359359 else (rand == 2))
360360 then true
361361 else (rand == 3)
362362 else false)
363363 then true
364364 else if (if ((bet == 99))
365365 then if (if ((rand == 1))
366366 then true
367367 else (rand == 2))
368368 then true
369369 else (rand == 3)
370370 else false)
371371 then true
372372 else if (if ((bet == 100))
373373 then if (if ((rand == 4))
374374 then true
375375 else (rand == 5))
376376 then true
377377 else (rand == 6)
378378 else false)
379379 then true
380380 else if (if ((bet == 101))
381381 then if (if ((rand == 7))
382382 then true
383383 else (rand == 8))
384384 then true
385385 else (rand == 9)
386386 else false)
387387 then true
388388 else if (if ((bet == 102))
389389 then if (if ((rand == 10))
390390 then true
391391 else (rand == 11))
392392 then true
393393 else (rand == 12)
394394 else false)
395395 then true
396396 else if (if ((bet == 103))
397397 then if (if ((rand == 13))
398398 then true
399399 else (rand == 14))
400400 then true
401401 else (rand == 15)
402402 else false)
403403 then true
404404 else if (if ((bet == 104))
405405 then if (if ((rand == 16))
406406 then true
407407 else (rand == 17))
408408 then true
409409 else (rand == 18)
410410 else false)
411411 then true
412412 else if (if ((bet == 105))
413413 then if (if ((rand == 19))
414414 then true
415415 else (rand == 20))
416416 then true
417417 else (rand == 21)
418418 else false)
419419 then true
420420 else if (if ((bet == 106))
421421 then if (if ((rand == 22))
422422 then true
423423 else (rand == 23))
424424 then true
425425 else (rand == 24)
426426 else false)
427427 then true
428428 else if (if ((bet == 107))
429429 then if (if ((rand == 25))
430430 then true
431431 else (rand == 26))
432432 then true
433433 else (rand == 27)
434434 else false)
435435 then true
436436 else if (if ((bet == 108))
437437 then if (if ((rand == 28))
438438 then true
439439 else (rand == 29))
440440 then true
441441 else (rand == 30)
442442 else false)
443443 then true
444444 else if (if ((bet == 109))
445445 then if (if ((rand == 31))
446446 then true
447447 else (rand == 32))
448448 then true
449449 else (rand == 33)
450450 else false)
451451 then true
452452 else if (if ((bet == 110))
453453 then if (if ((rand == 34))
454454 then true
455455 else (rand == 35))
456456 then true
457457 else (rand == 36)
458458 else false)
459459 then true
460460 else false
461461
462462
463463 func cornerBet (rand,bet) = if (if ((bet == 111))
464464 then if (if (if ((rand == 0))
465465 then true
466466 else (rand == 1))
467467 then true
468468 else (rand == 2))
469469 then true
470470 else (rand == 3)
471471 else false)
472472 then true
473473 else if (if ((bet == 112))
474474 then if (if (if ((rand == 1))
475475 then true
476476 else (rand == 2))
477477 then true
478478 else (rand == 4))
479479 then true
480480 else (rand == 5)
481481 else false)
482482 then true
483483 else if (if ((bet == 113))
484484 then if (if (if ((rand == 2))
485485 then true
486486 else (rand == 3))
487487 then true
488488 else (rand == 5))
489489 then true
490490 else (rand == 6)
491491 else false)
492492 then true
493493 else if (if ((bet == 114))
494494 then if (if (if ((rand == 4))
495495 then true
496496 else (rand == 5))
497497 then true
498498 else (rand == 7))
499499 then true
500500 else (rand == 8)
501501 else false)
502502 then true
503503 else if (if ((bet == 115))
504504 then if (if (if ((rand == 5))
505505 then true
506506 else (rand == 6))
507507 then true
508508 else (rand == 8))
509509 then true
510510 else (rand == 9)
511511 else false)
512512 then true
513513 else if (if ((bet == 116))
514514 then if (if (if ((rand == 7))
515515 then true
516516 else (rand == 8))
517517 then true
518518 else (rand == 10))
519519 then true
520520 else (rand == 11)
521521 else false)
522522 then true
523523 else if (if ((bet == 117))
524524 then if (if (if ((rand == 8))
525525 then true
526526 else (rand == 9))
527527 then true
528528 else (rand == 11))
529529 then true
530530 else (rand == 12)
531531 else false)
532532 then true
533533 else if (if ((bet == 118))
534534 then if (if (if ((rand == 10))
535535 then true
536536 else (rand == 11))
537537 then true
538538 else (rand == 13))
539539 then true
540540 else (rand == 14)
541541 else false)
542542 then true
543543 else if (if ((bet == 119))
544544 then if (if (if ((rand == 11))
545545 then true
546546 else (rand == 12))
547547 then true
548548 else (rand == 14))
549549 then true
550550 else (rand == 15)
551551 else false)
552552 then true
553553 else if (if ((bet == 120))
554554 then if (if (if ((rand == 13))
555555 then true
556556 else (rand == 14))
557557 then true
558558 else (rand == 16))
559559 then true
560560 else (rand == 17)
561561 else false)
562562 then true
563563 else if (if ((bet == 121))
564564 then if (if (if ((rand == 14))
565565 then true
566566 else (rand == 15))
567567 then true
568568 else (rand == 17))
569569 then true
570570 else (rand == 18)
571571 else false)
572572 then true
573573 else if (if ((bet == 122))
574574 then if (if (if ((rand == 16))
575575 then true
576576 else (rand == 17))
577577 then true
578578 else (rand == 19))
579579 then true
580580 else (rand == 20)
581581 else false)
582582 then true
583583 else if (if ((bet == 123))
584584 then if (if (if ((rand == 17))
585585 then true
586586 else (rand == 18))
587587 then true
588588 else (rand == 20))
589589 then true
590590 else (rand == 21)
591591 else false)
592592 then true
593593 else if (if ((bet == 124))
594594 then if (if (if ((rand == 19))
595595 then true
596596 else (rand == 20))
597597 then true
598598 else (rand == 22))
599599 then true
600600 else (rand == 23)
601601 else false)
602602 then true
603603 else if (if ((bet == 125))
604604 then if (if (if ((rand == 20))
605605 then true
606606 else (rand == 21))
607607 then true
608608 else (rand == 23))
609609 then true
610610 else (rand == 24)
611611 else false)
612612 then true
613613 else if (if ((bet == 126))
614614 then if (if (if ((rand == 22))
615615 then true
616616 else (rand == 23))
617617 then true
618618 else (rand == 25))
619619 then true
620620 else (rand == 26)
621621 else false)
622622 then true
623623 else if (if ((bet == 127))
624624 then if (if (if ((rand == 23))
625625 then true
626626 else (rand == 24))
627627 then true
628628 else (rand == 26))
629629 then true
630630 else (rand == 27)
631631 else false)
632632 then true
633633 else if (if ((bet == 128))
634634 then if (if (if ((rand == 25))
635635 then true
636636 else (rand == 26))
637637 then true
638638 else (rand == 28))
639639 then true
640640 else (rand == 29)
641641 else false)
642642 then true
643643 else if (if ((bet == 129))
644644 then if (if (if ((rand == 26))
645645 then true
646646 else (rand == 27))
647647 then true
648648 else (rand == 29))
649649 then true
650650 else (rand == 30)
651651 else false)
652652 then true
653653 else if (if ((bet == 130))
654654 then if (if (if ((rand == 28))
655655 then true
656656 else (rand == 29))
657657 then true
658658 else (rand == 31))
659659 then true
660660 else (rand == 32)
661661 else false)
662662 then true
663663 else if (if ((bet == 131))
664664 then if (if (if ((rand == 29))
665665 then true
666666 else (rand == 30))
667667 then true
668668 else (rand == 32))
669669 then true
670670 else (rand == 33)
671671 else false)
672672 then true
673673 else if (if ((bet == 132))
674674 then if (if (if ((rand == 31))
675675 then true
676676 else (rand == 32))
677677 then true
678678 else (rand == 34))
679679 then true
680680 else (rand == 35)
681681 else false)
682682 then true
683683 else if (if ((bet == 133))
684684 then if (if (if ((rand == 32))
685685 then true
686686 else (rand == 33))
687687 then true
688688 else (rand == 35))
689689 then true
690690 else (rand == 36)
691691 else false)
692692 then true
693693 else false
694694
695695
696696 func lineBet (rand,bet) = if (if (if ((bet == 134))
697697 then (rand >= 1)
698698 else false)
699699 then (6 >= rand)
700700 else false)
701701 then true
702702 else if (if (if ((bet == 135))
703703 then (rand >= 4)
704704 else false)
705705 then (9 >= rand)
706706 else false)
707707 then true
708708 else if (if (if ((bet == 136))
709709 then (rand >= 7)
710710 else false)
711711 then (12 >= rand)
712712 else false)
713713 then true
714714 else if (if (if ((bet == 137))
715715 then (rand >= 10)
716716 else false)
717717 then (15 >= rand)
718718 else false)
719719 then true
720720 else if (if (if ((bet == 138))
721721 then (rand >= 13)
722722 else false)
723723 then (18 >= rand)
724724 else false)
725725 then true
726726 else if (if (if ((bet == 139))
727727 then (rand >= 16)
728728 else false)
729729 then (21 >= rand)
730730 else false)
731731 then true
732732 else if (if (if ((bet == 140))
733733 then (rand >= 19)
734734 else false)
735735 then (24 >= rand)
736736 else false)
737737 then true
738738 else if (if (if ((bet == 141))
739739 then (rand >= 22)
740740 else false)
741741 then (27 >= rand)
742742 else false)
743743 then true
744744 else if (if (if ((bet == 142))
745745 then (rand >= 25)
746746 else false)
747747 then (30 >= rand)
748748 else false)
749749 then true
750750 else if (if (if ((bet == 143))
751751 then (rand >= 28)
752752 else false)
753753 then (33 >= rand)
754754 else false)
755755 then true
756756 else if (if (if ((bet == 144))
757757 then (rand >= 31)
758758 else false)
759759 then (36 >= rand)
760760 else false)
761761 then true
762762 else false
763763
764764
765765 func columnBet (rand,bet) = if (if ((bet == 145))
766766 then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0))
767767 then true
768768 else (rand == 1))
769769 then true
770770 else (rand == 4))
771771 then true
772772 else (rand == 7))
773773 then true
774774 else (rand == 10))
775775 then true
776776 else (rand == 13))
777777 then true
778778 else (rand == 16))
779779 then true
780780 else (rand == 19))
781781 then true
782782 else (rand == 22))
783783 then true
784784 else (rand == 25))
785785 then true
786786 else (rand == 28))
787787 then true
788788 else (rand == 31))
789789 then true
790790 else (rand == 34)
791791 else false)
792792 then true
793793 else if (if ((bet == 146))
794794 then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0))
795795 then true
796796 else (rand == 2))
797797 then true
798798 else (rand == 5))
799799 then true
800800 else (rand == 8))
801801 then true
802802 else (rand == 11))
803803 then true
804804 else (rand == 14))
805805 then true
806806 else (rand == 17))
807807 then true
808808 else (rand == 20))
809809 then true
810810 else (rand == 23))
811811 then true
812812 else (rand == 26))
813813 then true
814814 else (rand == 29))
815815 then true
816816 else (rand == 32))
817817 then true
818818 else (rand == 35)
819819 else false)
820820 then true
821821 else if (if ((bet == 147))
822822 then if (if (if (if (if (if (if (if (if (if (if (if ((rand == 0))
823823 then true
824824 else (rand == 3))
825825 then true
826826 else (rand == 6))
827827 then true
828828 else (rand == 9))
829829 then true
830830 else (rand == 12))
831831 then true
832832 else (rand == 15))
833833 then true
834834 else (rand == 18))
835835 then true
836836 else (rand == 21))
837837 then true
838838 else (rand == 24))
839839 then true
840840 else (rand == 27))
841841 then true
842842 else (rand == 30))
843843 then true
844844 else (rand == 33))
845845 then true
846846 else (rand == 36)
847847 else false)
848848 then true
849849 else false
850850
851851
852852 func dozenBet (rand,bet) = if (if (if ((bet == 148))
853853 then (rand >= 1)
854854 else false)
855855 then (12 >= rand)
856856 else false)
857857 then true
858858 else if (if (if ((bet == 149))
859859 then (rand >= 13)
860860 else false)
861861 then (24 >= rand)
862862 else false)
863863 then true
864864 else if (if (if ((bet == 150))
865865 then (rand >= 25)
866866 else false)
867867 then (36 >= rand)
868868 else false)
869869 then true
870870 else false
871871
872872
873873 func colorBet (rand,bet) = if (if ((bet == 151))
874874 then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 1))
875875 then true
876876 else (rand == 3))
877877 then true
878878 else (rand == 5))
879879 then true
880880 else (rand == 7))
881881 then true
882882 else (rand == 9))
883883 then true
884884 else (rand == 12))
885885 then true
886886 else (rand == 14))
887887 then true
888888 else (rand == 16))
889889 then true
890890 else (rand == 18))
891891 then true
892892 else (rand == 19))
893893 then true
894894 else (rand == 21))
895895 then true
896896 else (rand == 23))
897897 then true
898898 else (rand == 25))
899899 then true
900900 else (rand == 27))
901901 then true
902902 else (rand == 30))
903903 then true
904904 else (rand == 32))
905905 then true
906906 else (rand == 34))
907907 then true
908908 else (rand == 36)
909909 else false)
910910 then true
911911 else if (if ((bet == 152))
912912 then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rand == 2))
913913 then true
914914 else (rand == 4))
915915 then true
916916 else (rand == 6))
917917 then true
918918 else (rand == 8))
919919 then true
920920 else (rand == 10))
921921 then true
922922 else (rand == 11))
923923 then true
924924 else (rand == 13))
925925 then true
926926 else (rand == 15))
927927 then true
928928 else (rand == 17))
929929 then true
930930 else (rand == 20))
931931 then true
932932 else (rand == 22))
933933 then true
934934 else (rand == 24))
935935 then true
936936 else (rand == 26))
937937 then true
938938 else (rand == 28))
939939 then true
940940 else (rand == 29))
941941 then true
942942 else (rand == 31))
943943 then true
944944 else (rand == 33))
945945 then true
946946 else (rand == 35)
947947 else false)
948948 then true
949949 else false
950950
951951
952952 func evenOddBet (rand,bet) = {
953953 let rem = (rand % 2)
954954 if (if (if ((rand > 0))
955955 then (bet == 153)
956956 else false)
957957 then (rem == 0)
958958 else false)
959959 then true
960960 else if (if (if ((rand > 0))
961961 then (bet == 154)
962962 else false)
963963 then (rem != 0)
964964 else false)
965965 then true
966966 else false
967967 }
968968
969969
970970 func lowHighBet (rand,bet) = if (if (if ((bet == 155))
971971 then (rand >= 1)
972972 else false)
973973 then (18 >= rand)
974974 else false)
975975 then true
976976 else if (if (if ((bet == 156))
977977 then (rand >= 19)
978978 else false)
979979 then (36 >= rand)
980980 else false)
981981 then true
982982 else false
983983
984984
985985 func rouletteWin (rand,bet) = if (if ((bet >= 0))
986986 then (36 >= bet)
987987 else false)
988988 then straightUpBet(rand, bet)
989989 else if (if ((bet >= 37))
990990 then (96 >= bet)
991991 else false)
992992 then splitBet(rand, bet)
993993 else if (if ((bet >= 97))
994994 then (110 >= bet)
995995 else false)
996996 then streetBet(rand, bet)
997997 else if (if ((bet >= 111))
998998 then (133 >= bet)
999999 else false)
10001000 then cornerBet(rand, bet)
10011001 else if (if ((bet >= 134))
10021002 then (144 >= bet)
10031003 else false)
10041004 then lineBet(rand, bet)
10051005 else if (if ((bet >= 145))
10061006 then (147 >= bet)
10071007 else false)
10081008 then columnBet(rand, bet)
10091009 else if (if ((bet >= 148))
10101010 then (150 >= bet)
10111011 else false)
10121012 then dozenBet(rand, bet)
10131013 else if (if ((bet == 151))
10141014 then true
10151015 else (bet == 152))
10161016 then colorBet(rand, bet)
10171017 else if (if ((bet == 153))
10181018 then true
10191019 else (bet == 154))
10201020 then evenOddBet(rand, bet)
10211021 else if (if ((bet == 155))
10221022 then true
10231023 else (bet == 156))
10241024 then lowHighBet(rand, bet)
10251025 else throw("Random randber out of range, 0 <= rand <= 36")
10261026
10271027
10281028 func getWinAmount (bet,amount) = if (if ((bet >= 0))
10291029 then (36 >= bet)
10301030 else false)
10311031 then (amount * 35)
10321032 else if (if ((bet >= 37))
10331033 then (96 >= bet)
10341034 else false)
10351035 then (amount * 17)
10361036 else if (if ((bet >= 97))
10371037 then (110 >= bet)
10381038 else false)
10391039 then (amount * 11)
10401040 else if (if ((bet >= 111))
10411041 then (133 >= bet)
10421042 else false)
10431043 then (amount * 8)
10441044 else if (if ((bet >= 134))
10451045 then (144 >= bet)
10461046 else false)
10471047 then (amount * 5)
10481048 else if (if ((bet >= 145))
10491049 then (147 >= bet)
10501050 else false)
10511051 then (amount * 2)
10521052 else if (if ((bet >= 148))
10531053 then (150 >= bet)
10541054 else false)
10551055 then (amount * 2)
10561056 else if (if ((bet == 151))
10571057 then true
10581058 else (bet == 152))
10591059 then (amount * 2)
10601060 else if (if ((bet == 153))
10611061 then true
10621062 else (bet == 154))
10631063 then amount
10641064 else if (if ((bet == 155))
10651065 then true
10661066 else (bet == 156))
10671067 then amount
10681068 else throw("Bet number out of range, 0 <= rand <= 156")
10691069
10701070
10711071 func IncrementValue (value) = {
10721072 let provNum = match getInteger(this, value) {
10731073 case num: Int =>
10741074 num
10751075 case _ =>
10761076 0
10771077 }
10781078 (provNum + 1)
10791079 }
10801080
10811081
10821082 func ExtractValue (value) = match getInteger(this, value) {
10831083 case a: Int =>
10841084 a
10851085 case _ =>
10861086 0
10871087 }
10881088
10891089
10901090 func ValidateAndIncreaseReservedAmt (winAmt) = {
10911091 let newReservedAmount = (ExtractValue(RESERVATIONKEY) + winAmt)
10921092 let balance = assetBalance(this, WBET)
10931093 if ((newReservedAmount > balance))
10941094 then throw("Insufficient funds on Wavesbet Roulette account. Transaction was rejected for your safety.")
10951095 else newReservedAmount
10961096 }
10971097
10981098
10991099 func DecreaseReservedAmt (winAmt) = {
11001100 let newReservedAmount = (ExtractValue(RESERVATIONKEY) - winAmt)
11011101 if ((0 > newReservedAmount))
11021102 then throw("Invalid roulette account state - reserved amount is less than 0")
11031103 else DataEntry(RESERVATIONKEY, newReservedAmount)
11041104 }
11051105
11061106
11071107 func GenerateRandInt (gameId,rsaSign) = {
11081108 let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC)
11091109 if (rsaSigValid)
11101110 then {
11111111 let rand = (toInt(sha256(rsaSign)) % 36)
11121112 if ((0 > rand))
11131113 then ((-1 * rand) + 1)
11141114 else (rand + 1)
11151115 }
11161116 else throw("Invalid RSA signature")
11171117 }
11181118
11191119
11201120 func RandToStr (r) = if (if ((r >= 1))
11211121 then (36 >= r)
11221122 else false)
11231123 then toString(r)
11241124 else throw(("Unsupported r parameter passed: expected=[0,...,36] actual=" + toString(r)))
11251125
11261126
11271127 func ExtractString (id) = {
11281128 let rawDataStr = match getString(this, id) {
11291129 case str: String =>
11301130 str
11311131 case _ =>
11321132 throw(("Couldn't find string by " + id))
11331133 }
11341134 rawDataStr
11351135 }
11361136
11371137
11381138 func GetGameId (betIdO,betId) = if ((betIdO == "new"))
11391139 then (("game_" + betId) + "_bet_1")
11401140 else {
11411141 let beti = toString(IncrementValue(betIdO))
11421142 ((("game_" + betIdO) + "_bet_") + beti)
11431143 }
11441144
11451145
11461146 func GetWriteSet (gameIdO,betId,gameId,winAmt,gameDataStr) = if ((gameIdO == "new"))
1147- then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(betId, 1), DataEntry(gameId, gameDataStr)])
1148- else WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(gameIdO, IncrementValue(gameIdO)), DataEntry(gameId, gameDataStr)])
1147+ then WriteSet([DataEntry(GAMESCOUNTERKEY, IncrementValue(GAMESCOUNTERKEY)), DataEntry(RESERVATIONKEY, 100000000000000000), DataEntry(betId, 1), DataEntry(gameId, gameDataStr)])
1148+ else WriteSet([DataEntry(RESERVATIONKEY, 100000000000000000), DataEntry(gameIdO, IncrementValue(gameIdO)), DataEntry(gameId, gameDataStr)])
11491149
11501150
11511151 @Callable(i)
11521152 func playRoulette (bet,gameIdO) = {
11531153 let betId = toBase58String(i.transactionId)
11541154 let payment = extract(i.payment)
11551155 let feeAssetId = isDefined(i.feeAssetId)
11561156 let playerBalance = wavesBalance(i.caller)
11571157 let gameId = GetGameId(gameIdO, betId)
11581158 let gameIdUsed = isDefined(getString(this, gameId))
11591159 let winAmt = getWinAmount(bet, payment.amount)
11601160 if ((payment.assetId != WBET))
11611161 then throw("Payment should be in Wavesbet")
11621162 else if ((1000000 > playerBalance))
11631163 then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.")
11641164 else if (feeAssetId)
11651165 then throw("Transaction's fee must be in Waves. Game aborted.")
11661166 else if (gameIdUsed)
11671167 then throw("Passed gameId had been used before. Game aborted.")
11681168 else {
11691169 let playerPubKey58 = toBase58String(i.callerPublicKey)
11701170 let gameDataStr = (((((("SUBMITTED" + "_") + toString(bet)) + "_") + playerPubKey58) + "_") + toString(winAmt))
11711171 ScriptResult(GetWriteSet(gameIdO, betId, gameId, winAmt, gameDataStr), TransferSet(nil))
11721172 }
11731173 }
11741174
11751175
11761176
11771177 @Callable(i)
11781178 func withdraw (gameId,rsaSig) = {
11791179 let gameDataList = split(ExtractString(gameId), "_")
11801180 let gameState = gameDataList[0]
11811181 let bet = parseIntValue(gameDataList[1])
11821182 let playerPubKey58 = gameDataList[2]
11831183 let winAmt = parseIntValue(gameDataList[3])
11841184 let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58))
11851185 let decreasedReserves = DecreaseReservedAmt(winAmt)
11861186 if ((gameState != "SUBMITTED"))
11871187 then throw("Invalid game state for passed gameId. Game aborted. ")
11881188 else {
11891189 let gameDataString = split(gameId, "_")
11901190 let rand = GenerateRandInt(gameDataString[1], rsaSig)
11911191 let randStr = RandToStr(rand)
11921192 if (rouletteWin(rand, bet))
11931193 then {
11941194 let newGameDataStr = (((((((("WON" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr)
11951195 ScriptResult(WriteSet([DataEntry(gameId, newGameDataStr), decreasedReserves]), TransferSet([ScriptTransfer(playerAddress, winAmt, WBET)]))
11961196 }
11971197 else {
11981198 let newGameDataStr = (((((((("LOST" + "_") + gameDataList[1]) + "_") + playerPubKey58) + "_") + gameDataList[3]) + "_") + randStr)
11991199 WriteSet([DataEntry(gameId, newGameDataStr), decreasedReserves])
12001200 }
12011201 }
12021202 }
12031203
12041204

github/deemru/w8io/026f985 
95.80 ms