tx · EjWyTuQ1c4zPNjgSUa8dvAkRMQBCGkeUderSJDZQqniP 3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf: -0.01500000 Waves 2021.06.03 16:46 [1554265] smart account 3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf > SELF 0.00000000 Waves
{ "type": 13, "id": "EjWyTuQ1c4zPNjgSUa8dvAkRMQBCGkeUderSJDZQqniP", "fee": 1500000, "feeAssetId": null, "timestamp": 1622728031259, "version": 2, "chainId": 84, "sender": "3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf", "senderPublicKey": "6zkdpCUGZybpbh7mrJvMphWq6fUvbGoyxafdsQjtwsWA", "proofs": [ "4U1BDpk6LNuekvBF51W7jgxBMZ8w4YQynYi8HW18xNWEhg11vrFdmzmDdtq4GVokME8FE3KSwen2pjsmo3SGPWVa" ], "script": "base64:AAIEAAAAAAAAAB4IAhIAEgASABIDCgEIEgMKAQgSBAoCCAESBAoCCAEAAABJAAAAABNnYW1lTWFzdGVyUHVibGljS2V5AQAAACCLHi1hJl8BxDXwXKLtpRVjbFBsmFHgcP8XgvTnW2biYwAAAAAKZGljZU51bWJlcgkABEwAAAACAAAAAAAAAAACCQAETAAAAAIAAAAAAAAAAAMJAARMAAAAAgAAAAAAAAAABAkABEwAAAACAAAAAAAAAAAFCQAETAAAAAIAAAAAAAAAAAYJAARMAAAAAgAAAAAAAAAABwkABEwAAAACAAAAAAAAAAAICQAETAAAAAIAAAAAAAAAAAkJAARMAAAAAgAAAAAAAAAACgkABEwAAAACAAAAAAAAAAALCQAETAAAAAIAAAAAAAAAAAwFAAAAA25pbAAAAAAJZ2FtZVRva2VuAQAAACCvQNOoGbkt3wVk9kpr+yD9dOUY7LBdGNCbLK5MVkSodQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWpudDJQZE4xUGR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0BQAAAApyYW5kb21IYXNoBQAAAAxHQU1FRklOSVNIRUQJAQAAABtzdG9yZUdhbWVQcm9ncmVzc1BvaW50U3RhdGUAAAAHCQEAAAAZZ2FtZUN1cnJlbnRQb2ludERpY2VMYWJlbAAAAAEFAAAACmdhbWVOdW1iZXIFAAAACmdhbWVOdW1iZXIFAAAABm51bWJlcgUAAAASbmV3Um9sbENvdW50TnVtYmVyBQAAAA1jdXJyZW50SGVpZ2h0BQAAAApyYW5kb21IYXNoBQAAAA5HQU1FSU5QUk9HUkVTUwkAAAIAAAABAgAAABlObyBkaWNlcyBoYXZlIGJlZW4gdGhyb3duCQAAAgAAAAECAAAAGUxhc3QgYmxvY2sgZG9lc24ndCBleGlzdC4JAAACAAAAAQIAAAARU0hBIGRvZXNuJ3QgZXhpc3QJAAACAAAAAQIAAAA3VGhyb3cgZGljZSBub3QgYWxsb3cgc3RpbGwgd2FpdGluZyBmb3IgYmxvY2sgdG8gcHJvY2VzcwkAAAIAAAABAgAAAClHYW1lIGRvZXMgbm90IGV4aXN0IG9yIGhhcyBhbHJlYWR5IGVuZGVkLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleangzFs=", "height": 1554265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3xyfGpiECe248rgrw1jv4cPiFii3BgCvLjVfUDdJHtTt Next: F2kS4LccRVAChi2rK44KWyBkn5tK6ML2TWm8Xej7yimR Diff:
Old | New | Differences | |
---|---|---|---|
193 | 193 | func as (at,au,av) = if (if ((au == 4)) | |
194 | 194 | then true | |
195 | 195 | else (au == 10)) | |
196 | - | then { | |
197 | - | let aw = (at * 7) | |
198 | - | aw | |
199 | - | } | |
196 | + | then (at * 7) | |
200 | 197 | else if (if ((au == 5)) | |
201 | 198 | then true | |
202 | 199 | else (au == 8)) | |
203 | - | then { | |
204 | - | let aw = (at * 9) | |
205 | - | aw | |
206 | - | } | |
200 | + | then (at * 9) | |
207 | 201 | else if (if ((au == 3)) | |
208 | 202 | then true | |
209 | 203 | else (au == 11)) | |
210 | - | then { | |
211 | - | let aw = (at * 15) | |
212 | - | aw | |
213 | - | } | |
204 | + | then (at * 15) | |
214 | 205 | else if (if ((au == 2)) | |
215 | 206 | then true | |
216 | 207 | else (au == 12)) | |
217 | - | then { | |
218 | - | let aw = (at * 30) | |
219 | - | aw | |
220 | - | } | |
208 | + | then (at * 30) | |
221 | 209 | else if (if ((au == 10)) | |
222 | 210 | then true | |
223 | 211 | else (au == 4)) | |
224 | - | then { | |
225 | - | let aw = (at * 30) | |
226 | - | aw | |
227 | - | } | |
212 | + | then (at * 30) | |
228 | 213 | else if ((au == 7)) | |
229 | - | then { | |
230 | - | let aw = (at * 4) | |
231 | - | aw | |
232 | - | } | |
214 | + | then (at * 4) | |
233 | 215 | else if (if ((au == 100)) | |
234 | 216 | then if (if ((av == 3)) | |
235 | 217 | then true | |
237 | 219 | then true | |
238 | 220 | else (av == 2) | |
239 | 221 | else false) | |
240 | - | then { | |
241 | - | let aw = (at * 7) | |
242 | - | aw | |
243 | - | } | |
222 | + | then (at * 7) | |
244 | 223 | else 0 | |
245 | 224 | ||
246 | 225 | ||
247 | - | func ax (at,av) = if ((av == 12)) | |
248 | - | then { | |
249 | - | let aw = (at * 4) | |
250 | - | aw | |
251 | - | } | |
226 | + | func aw (at,av) = if ((av == 12)) | |
227 | + | then (at * 4) | |
252 | 228 | else if ((av == 2)) | |
253 | - | then { | |
254 | - | let aw = (at * 3) | |
255 | - | aw | |
256 | - | } | |
229 | + | then (at * 3) | |
257 | 230 | else if (if (if (if ((av == 5)) | |
258 | 231 | then true | |
259 | 232 | else (av == 6)) | |
262 | 235 | then true | |
263 | 236 | else (av == 8)) | |
264 | 237 | then 0 | |
265 | - | else { | |
266 | - | let aw = (at * 2) | |
267 | - | aw | |
268 | - | } | |
238 | + | else (at * 2) | |
269 | 239 | ||
270 | 240 | ||
271 | - | func | |
241 | + | func ax (z,at,ay,az,au) = { | |
272 | 242 | let an = T() | |
273 | 243 | if ($isInstanceOf(an, "Int")) | |
274 | 244 | then { | |
275 | - | let | |
276 | - | let | |
277 | - | if ($isInstanceOf( | |
245 | + | let aA = an | |
246 | + | let aB = ac(z) | |
247 | + | if ($isInstanceOf(aB, "Int")) | |
278 | 248 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | if (if (( | |
249 | + | let aC = aB | |
250 | + | let aD = (aA + 1) | |
251 | + | let aE = (aC + 1) | |
252 | + | if (if ((ay == k)) | |
283 | 253 | then true | |
284 | - | else ( | |
285 | - | then [IntegerEntry(ah( | |
286 | - | else [IntegerEntry(ah( | |
254 | + | else (ay == l)) | |
255 | + | then [IntegerEntry(ah(aD), z), StringEntry(F(aD), ((((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(z)) + "_") + toString(aE))), IntegerEntry(w, aD), IntegerEntry(ab(aD), aE)] | |
256 | + | else [IntegerEntry(ah(aD), z), StringEntry(F(aD), ((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(au))), IntegerEntry(w, aD), IntegerEntry(ab(aD), aE)] | |
287 | 257 | } | |
288 | 258 | else throw("Game doesn't exist") | |
289 | 259 | } | |
291 | 261 | } | |
292 | 262 | ||
293 | 263 | ||
294 | - | func | |
264 | + | func aF (aG,aH,aI,z,at,ay,az,au) = [IntegerEntry(ah(aG), z), StringEntry(F(aG), ((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(au))), StringEntry(F(aH), ((((((az + "_") + at) + "_") + ay) + "_inactive_rolled_") + toString(au))), IntegerEntry(x, aH), IntegerEntry(w, aG), IntegerEntry(ab(aG), aI)] | |
295 | 265 | ||
296 | 266 | ||
297 | - | func | |
298 | - | then | |
299 | - | else | |
267 | + | func aJ (aK,at,aL,aH,aI,ag,N,aM,au) = if ((aK == g)) | |
268 | + | then aF((aL + 1), (aH + 1), 1, (ag + 1), toString(at), N, aM, au) | |
269 | + | else aF((aL + 1), (aH + 1), (aI + 1), ag, toString(at), N, aM, au) | |
300 | 270 | ||
301 | 271 | ||
302 | - | func aO (aL,aP,av,at,aM,aI,aJ,ag,N,aN,au) = { | |
303 | - | let aQ = value(parseInt(split(aP, "_")[5])) | |
304 | - | let aR = value(parseInt(split(aP, "_")[6])) | |
305 | - | let aS = value(ad(aQ, aR)) | |
306 | - | if ((av == 7)) | |
307 | - | then if ((aP == k)) | |
308 | - | then throw("Only Field Type of Bet can be proceed") | |
309 | - | else throw("Only Field Type of Bet can be proceed") | |
310 | - | else if ((av == aS)) | |
311 | - | then throw("Only Field Type of Bet can be proceed") | |
312 | - | else if ((aL == g)) | |
313 | - | then aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
314 | - | else aK(aL, at, (aM + 1), (aI + 1), (aJ + 1), ag, N, aN, au) | |
315 | - | } | |
316 | - | ||
317 | - | ||
318 | - | func aT (z,at,az,aA) = { | |
272 | + | func aN (z,at,ay,az) = { | |
319 | 273 | let an = R() | |
320 | 274 | if ($isInstanceOf(an, "Int")) | |
321 | 275 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | [IntegerEntry(af( | |
276 | + | let aO = an | |
277 | + | let aP = (aO + 1) | |
278 | + | [IntegerEntry(af(aP), z), StringEntry(D(aP), (((((az + "_") + at) + "_") + ay) + "_active_pending")), IntegerEntry(u, aP)] | |
325 | 279 | } | |
326 | 280 | else throw("Game has not bee initialized") | |
327 | 281 | } | |
328 | 282 | ||
329 | 283 | ||
330 | - | func | |
331 | - | let | |
332 | - | [StringEntry( | |
284 | + | func aQ (aR,ag,aS,aT,aU) = { | |
285 | + | let aV = (aR + "_lost") | |
286 | + | [StringEntry(aT, aV), IntegerEntry(aU, aS)] | |
333 | 287 | } | |
334 | 288 | ||
335 | 289 | ||
336 | - | func | |
337 | - | let | |
338 | - | [StringEntry( | |
290 | + | func aW (aR,ag,aS,aT,aU,aX) = { | |
291 | + | let aV = ((aR + "_lost_") + toString(aX)) | |
292 | + | [StringEntry(aT, aV), IntegerEntry(aU, aS)] | |
339 | 293 | } | |
340 | 294 | ||
341 | 295 | ||
342 | - | func | |
343 | - | let | |
344 | - | [StringEntry(M(ag, | |
296 | + | func aY (aR,ag,aZ,aM,ba,N,aT,aU) = { | |
297 | + | let aV = (aR + "_won_") | |
298 | + | [StringEntry(M(ag, aZ, N), ((aM + "_amount_") + toString(ba))), StringEntry(aT, aR), IntegerEntry(aU, aZ), ScriptTransfer(value(addressFromString(aM)), ba, unit)] | |
345 | 299 | } | |
346 | 300 | ||
347 | 301 | ||
348 | - | func | |
302 | + | func bb (bc,ag,aO,aC,bd,be,bf) = [IntegerEntry(O(ag), bf), IntegerEntry(bc, aO), IntegerEntry(Y(ag), aC), IntegerEntry(A(ag), (bd + h)), StringEntry(Q(ag), toBase64String(be)), IntegerEntry(Z(ag, aC), aO)] | |
349 | 303 | ||
350 | 304 | ||
351 | - | @Callable(bl) | |
352 | - | func processNextBet () = if (I(bl.callerPublicKey)) | |
305 | + | func bg (bh,bi,bj) = { | |
306 | + | let N = split(bj, "_")[2] | |
307 | + | let aM = split(bj, "_")[0] | |
308 | + | let at = value(parseInt(split(bj, "_")[1])) | |
309 | + | if ((N == i)) | |
310 | + | then if ((bi == 0)) | |
311 | + | then if (if ((bh == 7)) | |
312 | + | then true | |
313 | + | else (bh == 11)) | |
314 | + | then (at * 2) | |
315 | + | else 0 | |
316 | + | else if ((bh == bi)) | |
317 | + | then (at * 2) | |
318 | + | else if ((bi == 7)) | |
319 | + | then 0 | |
320 | + | else 0 | |
321 | + | else if ((N == j)) | |
322 | + | then if ((bi == 0)) | |
323 | + | then if (if ((bh == 2)) | |
324 | + | then true | |
325 | + | else (bh == 3)) | |
326 | + | then (at * 2) | |
327 | + | else if (if ((bi == 7)) | |
328 | + | then true | |
329 | + | else (bi == 11)) | |
330 | + | then 0 | |
331 | + | else 0 | |
332 | + | else if (if ((bi == 2)) | |
333 | + | then true | |
334 | + | else (bi == 3)) | |
335 | + | then (at * 2) | |
336 | + | else if ((bi == 7)) | |
337 | + | then 0 | |
338 | + | else 0 | |
339 | + | else 0 | |
340 | + | } | |
341 | + | ||
342 | + | ||
343 | + | func bk (bj,av,bl) = { | |
344 | + | let N = split(bj, "_")[2] | |
345 | + | let au = value(parseInt(split(bj, "_")[5])) | |
346 | + | let at = value(parseInt(split(bj, "_")[1])) | |
347 | + | if ((N == m)) | |
348 | + | then if ((av == 12)) | |
349 | + | then (at * 4) | |
350 | + | else if ((av == 2)) | |
351 | + | then (at * 3) | |
352 | + | else if (if (if (if ((av == 5)) | |
353 | + | then true | |
354 | + | else (av == 6)) | |
355 | + | then true | |
356 | + | else (av == 7)) | |
357 | + | then true | |
358 | + | else (av == 8)) | |
359 | + | then 0 | |
360 | + | else (at * 2) | |
361 | + | else if ((N == n)) | |
362 | + | then if (if ((au == 4)) | |
363 | + | then true | |
364 | + | else (au == 10)) | |
365 | + | then (at * 7) | |
366 | + | else if (if ((au == 5)) | |
367 | + | then true | |
368 | + | else (au == 8)) | |
369 | + | then (at * 9) | |
370 | + | else if (if ((au == 3)) | |
371 | + | then true | |
372 | + | else (au == 11)) | |
373 | + | then (at * 15) | |
374 | + | else if (if ((au == 2)) | |
375 | + | then true | |
376 | + | else (au == 12)) | |
377 | + | then (at * 30) | |
378 | + | else if (if ((au == 10)) | |
379 | + | then true | |
380 | + | else (au == 4)) | |
381 | + | then (at * 30) | |
382 | + | else if ((au == 7)) | |
383 | + | then (at * 4) | |
384 | + | else if (if ((au == 100)) | |
385 | + | then if (if ((av == 3)) | |
386 | + | then true | |
387 | + | else (av == 12)) | |
388 | + | then true | |
389 | + | else (av == 2) | |
390 | + | else false) | |
391 | + | then (at * 7) | |
392 | + | else 0 | |
393 | + | else if ((N == o)) | |
394 | + | then if (if ((av == 6)) | |
395 | + | then true | |
396 | + | else (av == 8)) | |
397 | + | then (2 * at) | |
398 | + | else 0 | |
399 | + | else if (if ((N == r)) | |
400 | + | then true | |
401 | + | else (N == q)) | |
402 | + | then if ((av == 7)) | |
403 | + | then (at * 2) | |
404 | + | else if ((av == au)) | |
405 | + | then 0 | |
406 | + | else -1 | |
407 | + | else if (if ((N == p)) | |
408 | + | then true | |
409 | + | else (N == s)) | |
410 | + | then if ((av == 7)) | |
411 | + | then 0 | |
412 | + | else if ((av == au)) | |
413 | + | then (at * 2) | |
414 | + | else -1 | |
415 | + | else if ((N == k)) | |
416 | + | then { | |
417 | + | let bm = value(parseInt(split(bj, "_")[6])) | |
418 | + | if ((bl == 2)) | |
419 | + | then if (if ((av == 7)) | |
420 | + | then true | |
421 | + | else (av == 11)) | |
422 | + | then (at * 2) | |
423 | + | else if (if (if ((av == 2)) | |
424 | + | then true | |
425 | + | else (av == 12)) | |
426 | + | then true | |
427 | + | else (av == 3)) | |
428 | + | then 0 | |
429 | + | else if ((av == bm)) | |
430 | + | then (at * 2) | |
431 | + | else -1 | |
432 | + | else if ((bl > 2)) | |
433 | + | then if ((av == 7)) | |
434 | + | then 0 | |
435 | + | else if ((av == bm)) | |
436 | + | then (at * 2) | |
437 | + | else -1 | |
438 | + | else throw("Not Allow in The Beginning") | |
439 | + | } | |
440 | + | else if ((N == l)) | |
441 | + | then { | |
442 | + | let bm = value(parseInt(split(bj, "_")[6])) | |
443 | + | if ((bl == 2)) | |
444 | + | then if (if ((av == 7)) | |
445 | + | then true | |
446 | + | else (av == 11)) | |
447 | + | then 0 | |
448 | + | else if (if (if ((av == 2)) | |
449 | + | then true | |
450 | + | else (av == 12)) | |
451 | + | then true | |
452 | + | else (av == 3)) | |
453 | + | then (at * 2) | |
454 | + | else if ((av == bm)) | |
455 | + | then (at * 2) | |
456 | + | else -1 | |
457 | + | else if ((bl > 1)) | |
458 | + | then if ((av == 7)) | |
459 | + | then (at * 2) | |
460 | + | else if ((av == bm)) | |
461 | + | then 0 | |
462 | + | else -1 | |
463 | + | else throw("Not Allow in The Beginning") | |
464 | + | } | |
465 | + | else 0 | |
466 | + | } | |
467 | + | ||
468 | + | ||
469 | + | @Callable(bn) | |
470 | + | func processNextBet () = if (I(bn.callerPublicKey)) | |
353 | 471 | then throw("processFieldBet_FORBIDDEN") | |
354 | 472 | else { | |
355 | 473 | let an = R() | |
356 | 474 | if ($isInstanceOf(an, "Int")) | |
357 | 475 | then { | |
358 | - | let | |
359 | - | let | |
360 | - | if ($isInstanceOf( | |
476 | + | let aG = an | |
477 | + | let aB = S() | |
478 | + | if ($isInstanceOf(aB, "Int")) | |
361 | 479 | then { | |
362 | - | let | |
363 | - | let | |
364 | - | if (( | |
480 | + | let bo = aB | |
481 | + | let bp = (bo + 1) | |
482 | + | if ((bp > aG)) | |
365 | 483 | then throw("Next bet has not been places.") | |
366 | 484 | else { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
485 | + | let bq = ai(bp) | |
486 | + | if ($isInstanceOf(bq, "Int")) | |
369 | 487 | then { | |
370 | - | let ag = | |
371 | - | let | |
372 | - | if ($isInstanceOf( | |
488 | + | let ag = bq | |
489 | + | let br = V(ag) | |
490 | + | if ($isInstanceOf(br, "Int")) | |
373 | 491 | then { | |
374 | - | let | |
375 | - | if (if (( | |
492 | + | let aK = br | |
493 | + | if (if ((aK == e)) | |
376 | 494 | then true | |
377 | - | else ( | |
495 | + | else (aK == f)) | |
378 | 496 | then throw("Game has to finished in order to process NON-FIELD bets") | |
379 | 497 | else { | |
380 | - | let aP = value(G(bn)) | |
381 | - | let N = split(aP, "_")[2] | |
382 | - | let aN = split(aP, "_")[0] | |
383 | - | let at = value(parseInt(split(aP, "_")[1])) | |
384 | - | let bq = value(addressFromString(aN)) | |
385 | - | let br = am(bn) | |
386 | - | let bs = al(bn) | |
387 | - | let aX = (((((aN + "_") + split(aP, "_")[1]) + "_") + split(aP, "_")[2]) + "_inactive_") | |
388 | - | if ((N == i)) | |
389 | - | then if ((br == 0)) | |
390 | - | then if (if ((bs == 7)) | |
391 | - | then true | |
392 | - | else (bs == 11)) | |
393 | - | then { | |
394 | - | let aw = (at * 2) | |
395 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
396 | - | } | |
397 | - | else aW(aX, ag, bn, D(bn), v) | |
398 | - | else if ((bs == br)) | |
399 | - | then { | |
400 | - | let aw = (at * 2) | |
401 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
402 | - | } | |
403 | - | else if ((br == 7)) | |
404 | - | then aW(aX, ag, bn, D(bn), v) | |
405 | - | else aW(aX, ag, bn, D(bn), v) | |
406 | - | else if ((N == j)) | |
407 | - | then if ((br == 0)) | |
408 | - | then if (if ((bs == 2)) | |
409 | - | then true | |
410 | - | else (bs == 3)) | |
411 | - | then { | |
412 | - | let aw = (at * 2) | |
413 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
414 | - | } | |
415 | - | else if (if ((br == 7)) | |
416 | - | then true | |
417 | - | else (br == 11)) | |
418 | - | then aW(aX, ag, bn, D(bn), v) | |
419 | - | else aW(aX, ag, bn, D(bn), v) | |
420 | - | else if (if ((br == 2)) | |
421 | - | then true | |
422 | - | else (br == 3)) | |
423 | - | then { | |
424 | - | let aw = (at * 2) | |
425 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
426 | - | } | |
427 | - | else if ((br == 7)) | |
428 | - | then aW(aX, ag, bn, D(bn), v) | |
429 | - | else aW(aX, ag, bn, D(bn), v) | |
430 | - | else throw((((((("Only " + i) + ", ") + j) + " allowed in processNextBet()") + " currentBetType ") + N)) | |
498 | + | let bj = value(G(bp)) | |
499 | + | let bs = value(addressFromString(split(bj, "_")[0])) | |
500 | + | let bt = am(bp) | |
501 | + | let bh = value(al(bp)) | |
502 | + | let aR = (((((split(bj, "_")[0] + "_") + split(bj, "_")[1]) + "_") + split(bj, "_")[2]) + "_inactive_") | |
503 | + | let bu = bg(bh, bt, bj) | |
504 | + | if ((bu == 0)) | |
505 | + | then aQ(aR, ag, bp, D(bp), v) | |
506 | + | else if ((bu > 0)) | |
507 | + | then aY(aR, ag, bp, split(bj, "_")[0], bu, split(bj, "_")[2], D(bp), v) | |
508 | + | else throw((((((("Only " + i) + ", ") + j) + " allowed in processNextBet()") + " currentBetType ") + split(bj, "_")[2])) | |
431 | 509 | } | |
432 | 510 | } | |
433 | 511 | else throw("Game does not exist or has already ended.") | |
442 | 520 | ||
443 | 521 | ||
444 | 522 | ||
445 | - | @Callable( | |
446 | - | func processOneRoundBet () = if (I( | |
523 | + | @Callable(bn) | |
524 | + | func processOneRoundBet () = if (I(bn.callerPublicKey)) | |
447 | 525 | then throw("processFieldBet_FORBIDDEN") | |
448 | 526 | else { | |
449 | 527 | let an = T() | |
450 | 528 | if ($isInstanceOf(an, "Int")) | |
451 | 529 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | if ($isInstanceOf( | |
530 | + | let aL = an | |
531 | + | let aB = U() | |
532 | + | if ($isInstanceOf(aB, "Int")) | |
455 | 533 | then { | |
456 | - | let | |
457 | - | let | |
458 | - | if (( | |
534 | + | let aH = aB | |
535 | + | let bp = (aH + 1) | |
536 | + | if ((bp > aL)) | |
459 | 537 | then throw("Next Field Bet has not been places.") | |
460 | 538 | else { | |
461 | - | let | |
462 | - | if ($isInstanceOf( | |
539 | + | let bq = aj(bp) | |
540 | + | if ($isInstanceOf(bq, "Int")) | |
463 | 541 | then { | |
464 | - | let ag = | |
465 | - | let | |
466 | - | if ($isInstanceOf( | |
542 | + | let ag = bq | |
543 | + | let br = V(ag) | |
544 | + | if ($isInstanceOf(br, "Int")) | |
467 | 545 | then { | |
468 | - | let | |
469 | - | if (( | |
546 | + | let aK = br | |
547 | + | if ((aK == e)) | |
470 | 548 | then throw("Game has not started yet") | |
471 | 549 | else { | |
472 | - | let aP = value(H(bn)) | |
473 | - | let N = split(aP, "_")[2] | |
474 | - | let aN = split(aP, "_")[0] | |
475 | - | let at = value(parseInt(split(aP, "_")[1])) | |
476 | - | let au = value(parseInt(split(aP, "_")[5])) | |
477 | - | let bq = value(addressFromString(aN)) | |
478 | - | let aJ = value(ae(bn)) | |
479 | - | let bt = ad(ag, aJ) | |
480 | - | if ($isInstanceOf(bt, "Int")) | |
550 | + | let bj = value(H(bp)) | |
551 | + | let N = split(bj, "_")[2] | |
552 | + | let aM = split(bj, "_")[0] | |
553 | + | let at = value(parseInt(split(bj, "_")[1])) | |
554 | + | let au = value(parseInt(split(bj, "_")[5])) | |
555 | + | let bs = value(addressFromString(aM)) | |
556 | + | let aI = value(ae(bp)) | |
557 | + | let aR = (((((aM + "_") + split(bj, "_")[1]) + "_") + split(bj, "_")[2]) + "_inactive_") | |
558 | + | let bv = ad(ag, aI) | |
559 | + | if ($isInstanceOf(bv, "Int")) | |
481 | 560 | then { | |
482 | - | let av = bt | |
483 | - | let aX = (((((aN + "_") + split(aP, "_")[1]) + "_") + split(aP, "_")[2]) + "_inactive_") | |
484 | - | if ((N == m)) | |
485 | - | then { | |
486 | - | let aw = ax(at, av) | |
487 | - | if ((aw == 0)) | |
488 | - | then aW(aX, ag, bn, F(ag), x) | |
489 | - | else be(aX, ag, bn, aN, aw, N, F(bn), x) | |
490 | - | } | |
491 | - | else if ((N == n)) | |
492 | - | then { | |
493 | - | let aw = as(at, au, av) | |
494 | - | if ((aw == 0)) | |
495 | - | then be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
496 | - | else bc(aX, ag, bn, F(bn), x, au) | |
497 | - | } | |
498 | - | else if ((N == o)) | |
499 | - | then if (if ((av == 6)) | |
500 | - | then true | |
501 | - | else (av == 8)) | |
502 | - | then { | |
503 | - | let aw = (2 * at) | |
504 | - | be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
505 | - | } | |
506 | - | else bc(aX, ag, bn, F(bn), x, au) | |
507 | - | else if (if ((N == p)) | |
508 | - | then true | |
509 | - | else (N == s)) | |
510 | - | then if ((av == 7)) | |
511 | - | then bc(aX, ag, bn, F(bn), x, au) | |
512 | - | else if ((av == au)) | |
513 | - | then { | |
514 | - | let aw = (at * 2) | |
515 | - | be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
516 | - | } | |
517 | - | else aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
518 | - | else if (if ((N == r)) | |
519 | - | then true | |
520 | - | else (N == q)) | |
521 | - | then if ((av == 7)) | |
522 | - | then { | |
523 | - | let aw = (at * 2) | |
524 | - | be(aX, ag, bn, aN, aw, N, F(bn), x) | |
525 | - | } | |
526 | - | else if ((av == au)) | |
527 | - | then bc(aX, ag, bn, F(bn), x, au) | |
528 | - | else aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
529 | - | else if (if ((N == k)) | |
530 | - | then true | |
531 | - | else (N == l)) | |
532 | - | then aO(aL, aP, av, at, aM, aI, aJ, ag, N, aN, au) | |
533 | - | else throw("Only Field Type of Bet can be proceed") | |
561 | + | let av = bv | |
562 | + | let bw = value(parseInt(Y(ag))) | |
563 | + | let bx = bk(bj, av, bw) | |
564 | + | if ((bx == -1)) | |
565 | + | then aJ(aK, at, aL, aH, aI, ag, N, aM, au) | |
566 | + | else if ((bx == 0)) | |
567 | + | then aW(aR, ag, bp, F(ag), x, au) | |
568 | + | else aY((aR + "_won_"), ag, bp, aM, bx, N, F(bp), x) | |
534 | 569 | } | |
535 | 570 | else throw("There is no result for this round yet") | |
536 | 571 | } | |
547 | 582 | ||
548 | 583 | ||
549 | 584 | ||
550 | - | @Callable( | |
551 | - | func initGame () = if (I( | |
585 | + | @Callable(bn) | |
586 | + | func initGame () = if (I(bn.callerPublicKey)) | |
552 | 587 | then throw("initGame_FORBIDDEN") | |
553 | 588 | else { | |
554 | 589 | let an = ak() | |
555 | 590 | if ($isInstanceOf(an, "Int")) | |
556 | 591 | then { | |
557 | - | let | |
592 | + | let by = an | |
558 | 593 | throw("INIT_ALREADY_DONE") | |
559 | 594 | } | |
560 | 595 | else [IntegerEntry(t, 0), IntegerEntry(u, 0), IntegerEntry(v, 0), IntegerEntry(w, 0), IntegerEntry(x, 0)] | |
562 | 597 | ||
563 | 598 | ||
564 | 599 | ||
565 | - | @Callable( | |
566 | - | func startGame ( | |
600 | + | @Callable(bn) | |
601 | + | func startGame (be) = if (I(bn.callerPublicKey)) | |
567 | 602 | then throw("startGame_FORBIDDEN") | |
568 | 603 | else { | |
569 | 604 | let an = ak() | |
570 | 605 | if ($isInstanceOf(an, "Int")) | |
571 | 606 | then { | |
572 | - | let | |
573 | - | if (( | |
607 | + | let aO = an | |
608 | + | if ((aO == 0)) | |
574 | 609 | then { | |
575 | - | let | |
576 | - | [IntegerEntry(t, | |
610 | + | let bz = (aO + 1) | |
611 | + | [IntegerEntry(t, bz), IntegerEntry(O(bz), e), IntegerEntry(y(bz), lastBlock.height), IntegerEntry(A(bz), (lastBlock.height + h)), IntegerEntry(Y(bz), 0), StringEntry(P(bz), toBase58String(sha256(fromBase64String(be))))] | |
577 | 612 | } | |
578 | 613 | else { | |
579 | - | let | |
580 | - | if ($isInstanceOf( | |
614 | + | let aB = V(aO) | |
615 | + | if ($isInstanceOf(aB, "Int")) | |
581 | 616 | then { | |
582 | - | let | |
583 | - | if (if (( | |
617 | + | let bf = aB | |
618 | + | if (if ((bf == f)) | |
584 | 619 | then true | |
585 | - | else ( | |
620 | + | else (bf == e)) | |
586 | 621 | then throw("The previous game is still in progress") | |
587 | 622 | else { | |
588 | - | let | |
589 | - | [IntegerEntry(t, | |
623 | + | let bz = (aO + 1) | |
624 | + | [IntegerEntry(t, bz), IntegerEntry(O(bz), e), IntegerEntry(y(bz), lastBlock.height), IntegerEntry(A(bz), (lastBlock.height + h)), IntegerEntry(Y(bz), 0), StringEntry(P(bz), toBase58String(sha256(fromBase64String(be))))] | |
590 | 625 | } | |
591 | 626 | } | |
592 | 627 | else throw("Error") | |
597 | 632 | ||
598 | 633 | ||
599 | 634 | ||
600 | - | @Callable( | |
601 | - | func placeBet ( | |
602 | - | then if ((size( | |
635 | + | @Callable(bn) | |
636 | + | func placeBet (ay) = if (ap(ay)) | |
637 | + | then if ((size(bn.payments) == 0)) | |
603 | 638 | then throw("Payment not attached") | |
604 | 639 | else { | |
605 | 640 | let an = ak() | |
606 | 641 | if ($isInstanceOf(an, "Int")) | |
607 | 642 | then { | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | if ($isInstanceOf( | |
643 | + | let bA = an | |
644 | + | let bB = bn.payments[0] | |
645 | + | let aB = V(bA) | |
646 | + | if ($isInstanceOf(aB, "Int")) | |
612 | 647 | then { | |
613 | - | let | |
614 | - | if (( | |
615 | - | then if (if (( | |
648 | + | let bf = aB | |
649 | + | if ((bf == e)) | |
650 | + | then if (if ((ay == i)) | |
616 | 651 | then true | |
617 | - | else ( | |
618 | - | then | |
652 | + | else (ay == j)) | |
653 | + | then aN(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes)) | |
619 | 654 | else throw((((((("Only " + i) + ", ") + j) + " and ") + m) + " are allowed in the Beginning of Game")) | |
620 | - | else if (( | |
655 | + | else if ((bf == f)) | |
621 | 656 | then throw((((((("Only " + k) + ", ") + l) + " and ") + m) + " ARE ALLOWED at Start.")) | |
622 | - | else if (( | |
657 | + | else if ((bf == g)) | |
623 | 658 | then throw("Game already ended.") | |
624 | 659 | else throw("Unknown Game State.") | |
625 | 660 | } | |
631 | 666 | ||
632 | 667 | ||
633 | 668 | ||
634 | - | @Callable( | |
635 | - | func placeRoundBet ( | |
636 | - | then if ((size( | |
669 | + | @Callable(bn) | |
670 | + | func placeRoundBet (ay,aX) = if (ar(ay)) | |
671 | + | then if ((size(bn.payments) == 0)) | |
637 | 672 | then throw("Payment not attached") | |
638 | 673 | else { | |
639 | 674 | let an = ak() | |
640 | 675 | if ($isInstanceOf(an, "Int")) | |
641 | 676 | then { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | if ($isInstanceOf( | |
677 | + | let bA = an | |
678 | + | let bB = bn.payments[0] | |
679 | + | let aB = V(bA) | |
680 | + | if ($isInstanceOf(aB, "Int")) | |
646 | 681 | then { | |
647 | - | let | |
648 | - | if (( | |
682 | + | let bf = aB | |
683 | + | if ((bf == g)) | |
649 | 684 | then throw("Game already ended.") | |
650 | - | else if (if (( | |
685 | + | else if (if ((ay == k)) | |
651 | 686 | then true | |
652 | - | else ( | |
653 | - | then if (( | |
687 | + | else (ay == l)) | |
688 | + | then if ((bf == e)) | |
654 | 689 | then throw("Cannot place COME OR DONTCOME BET IF GAME HAS NOT STARTED") | |
655 | - | else | |
656 | - | else | |
690 | + | else ax(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes), 0) | |
691 | + | else ax(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes), aX) | |
657 | 692 | } | |
658 | 693 | else throw("Game does not exist or has already ended.") | |
659 | 694 | } | |
663 | 698 | ||
664 | 699 | ||
665 | 700 | ||
666 | - | @Callable( | |
667 | - | func throwDices ( | |
701 | + | @Callable(bn) | |
702 | + | func throwDices (bC,ag) = if (I(bn.callerPublicKey)) | |
668 | 703 | then throw("throwDices_FORBIDDEN") | |
669 | 704 | else { | |
670 | 705 | let an = V(ag) | |
671 | 706 | if ($isInstanceOf(an, "Int")) | |
672 | 707 | then { | |
673 | - | let | |
674 | - | if (( | |
708 | + | let bf = an | |
709 | + | if ((bf == g)) | |
675 | 710 | then throw("Game is finished") | |
676 | 711 | else { | |
677 | - | let | |
678 | - | let | |
679 | - | if (( | |
712 | + | let bd = lastBlock.height | |
713 | + | let bD = value(C(ag)) | |
714 | + | if ((bd >= bD)) | |
680 | 715 | then { | |
681 | - | let | |
682 | - | if ($isInstanceOf( | |
716 | + | let aB = W(ag) | |
717 | + | if ($isInstanceOf(aB, "String")) | |
683 | 718 | then { | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | if ($isInstanceOf( | |
719 | + | let bE = aB | |
720 | + | let bF = fromBase64String(bC) | |
721 | + | let bG = rsaVerify(SHA256, fromBase58String(bE), bF, d) | |
722 | + | let bq = blockInfoByHeight((lastBlock.height - 1)) | |
723 | + | if ($isInstanceOf(bq, "BlockInfo")) | |
689 | 724 | then { | |
690 | - | let | |
691 | - | let | |
692 | - | if (!( | |
725 | + | let bH = bq | |
726 | + | let be = sha256((take(bF, 4) + take(bH.generationSignature, 8))) | |
727 | + | if (!(bG)) | |
693 | 728 | then throw("INVALID_RSA_SIGN") | |
694 | 729 | else { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | if ($isInstanceOf( | |
730 | + | let bI = (toInt(be) % 11) | |
731 | + | let aO = b[bI] | |
732 | + | let br = ac(ag) | |
733 | + | if ($isInstanceOf(br, "Int")) | |
699 | 734 | then { | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
703 | - | then if (if (if (if (if (( | |
735 | + | let bJ = br | |
736 | + | let bK = (bJ + 1) | |
737 | + | if ((bf == e)) | |
738 | + | then if (if (if (if (if ((aO == 7)) | |
704 | 739 | then true | |
705 | - | else ( | |
740 | + | else (aO == 11)) | |
706 | 741 | then true | |
707 | - | else ( | |
742 | + | else (aO == 2)) | |
708 | 743 | then true | |
709 | - | else ( | |
744 | + | else (aO == 3)) | |
710 | 745 | then true | |
711 | - | else ( | |
712 | - | then | |
713 | - | else | |
746 | + | else (aO == 12)) | |
747 | + | then bb(L(ag), ag, aO, bK, bd, be, g) | |
748 | + | else bb(L(ag), ag, aO, bK, bd, be, f) | |
714 | 749 | else { | |
715 | - | let | |
716 | - | let | |
717 | - | if (( | |
718 | - | then if (if (( | |
750 | + | let bt = value(am(ag)) | |
751 | + | let bh = value(al(ag)) | |
752 | + | if ((bt == 0)) | |
753 | + | then if (if ((aO == 7)) | |
719 | 754 | then true | |
720 | - | else ( | |
721 | - | then | |
722 | - | else | |
723 | - | else if (if (( | |
755 | + | else (bh == aO)) | |
756 | + | then bb(K(ag), ag, aO, bK, bd, be, g) | |
757 | + | else bb(K(ag), ag, aO, bK, bd, be, f) | |
758 | + | else if (if ((aO == 7)) | |
724 | 759 | then true | |
725 | - | else ( | |
726 | - | then | |
727 | - | else | |
760 | + | else (bh == aO)) | |
761 | + | then bb(K(ag), ag, aO, bK, bd, be, g) | |
762 | + | else bb(K(ag), ag, aO, bK, bd, be, f) | |
728 | 763 | } | |
729 | 764 | } | |
730 | 765 | else throw("No dices have been thrown") | |
741 | 776 | } | |
742 | 777 | ||
743 | 778 | ||
744 | - | @Verifier( | |
745 | - | func | |
746 | - | let an = | |
747 | - | sigVerify( | |
779 | + | @Verifier(bL) | |
780 | + | func bM () = { | |
781 | + | let an = bL | |
782 | + | sigVerify(bL.bodyBytes, bL.proofs[0], bL.senderPublicKey) | |
748 | 783 | } | |
749 | 784 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'AN4MpPP69eUoXBNDezAU1WiBE9X2oVfoN8T7XeyRxiKt' | |
5 | 5 | ||
6 | 6 | let b = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
7 | 7 | ||
8 | 8 | let c = base58'Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8' | |
9 | 9 | ||
10 | 10 | let d = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjnt2PdN1Pdj7rsXzbapgucn9e1XffUx1o7grAlw8C6NFuv1PPj7KnQ6RtN9xhniLF4xKlc7//TYXd1uHWmx9vu9hjciYX9UMRJnhlZO2q34mxPdcgLDKhJHDN726KI0wHpFQ5dHMyzoMLdWsahFc1Wx/XxroK2Kc1y2JBWN2akRlkxSDcluqbbUcWMyrwG6iWuVlhej5xfcuerg/psK35WGn7SLF29tWuR2x+24nM+BJUsuRG7yBZUhGrYzJk2gvpucRLea6AFRvow7RdyMYAwKFrr6mgQ0VcUw2T750e1oGanY0UdU3NPsKIgvU4Ft4uibMlMMBJvcrsEbDQHfDlwIDAQAB") | |
11 | 11 | ||
12 | 12 | let e = 0 | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | let g = 2 | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = "PASSLINEBET" | |
21 | 21 | ||
22 | 22 | let j = "DONTPASSLINEBET" | |
23 | 23 | ||
24 | 24 | let k = "COMEBET" | |
25 | 25 | ||
26 | 26 | let l = "DONTCOMEBET" | |
27 | 27 | ||
28 | 28 | let m = "FIELDBET" | |
29 | 29 | ||
30 | 30 | let n = "ODDSBET" | |
31 | 31 | ||
32 | 32 | let o = "BIG6OR8BET" | |
33 | 33 | ||
34 | 34 | let p = "PLACEBETBUY" | |
35 | 35 | ||
36 | 36 | let q = "PLACEBETLOSE" | |
37 | 37 | ||
38 | 38 | let r = "PLACEBETLAY" | |
39 | 39 | ||
40 | 40 | let s = "PLACEBETWIN" | |
41 | 41 | ||
42 | 42 | let t = "G_GAMECOUNTER" | |
43 | 43 | ||
44 | 44 | let u = "G_TOTALBETS" | |
45 | 45 | ||
46 | 46 | let v = "G_PROCESSEDBETS" | |
47 | 47 | ||
48 | 48 | let w = "G_TOTALFIELD_ODDS_BETS" | |
49 | 49 | ||
50 | 50 | let x = "G_PROCESSEDFIEL_ODDS_BETS" | |
51 | 51 | ||
52 | 52 | func y (z) = (("G_" + toString(z)) + "_STARTHEIGHT") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func A (z) = (("G_" + toString(z)) + "_ENDHEIGHT") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func B (z) = getInteger(this, y(z)) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (z) = getInteger(this, A(z)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func D (E) = (("B_" + toString(E)) + "_BETDETAILS") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func F (E) = (("B_" + toString(E)) + "_BETFIELODDSDDETAILS") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func G (E) = getString(this, D(E)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func H (E) = getString(this, F(E)) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func I (J) = (J != a) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func K (z) = (("G_" + toString(z)) + "_LASTPOINT") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L (z) = (("G_" + toString(z)) + "_FIRSTPOINT") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func M (z,E,N) = ((((((("W_" + "BET_TYPE_") + N) + "_") + toString(E)) + "_WINNING_BET_") + toString(z)) + "_GAME_NUMBER") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func O (z) = (("G_" + toString(z)) + "_STATE") | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func P (z) = (("G_" + toString(z)) + "_SUMSHA") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func Q (z) = (("G_" + toString(z)) + "_RANDOMHASH") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func R () = getInteger(this, u) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func S () = getInteger(this, v) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func T () = getInteger(this, w) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func U () = getInteger(this, x) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func V (z) = getInteger(this, O(z)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func W (z) = getString(this, P(z)) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func X (z) = getString(this, Q(z)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func Y (z) = (("G_" + toString(z)) + "_ROLLSCOUNT") | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func Z (z,aa) = (((("G_" + toString(z)) + "_") + toString(aa)) + "_GAMENUMBER_ROLLDICE") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ab (E) = (("B_" + toString(E)) + "_FIELD_ODDS_BET_ROLLDICE") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ac (z) = getInteger(this, Y(z)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ad (z,aa) = getInteger(this, Z(z, aa)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ae (E) = getInteger(this, ab(E)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func af (ag) = (("B_" + toString(ag)) + "_BET_GAMENUMBER") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ah (ag) = (("B_" + toString(ag)) + "_FIELD_ODDS_BET_GAMENUMBER") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ai (ag) = getInteger(this, af(ag)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aj (ag) = getInteger(this, ah(ag)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ak () = getInteger(this, t) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func al (z) = getInteger(this, L(z)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func am (z) = { | |
155 | 155 | let an = getInteger(this, K(z)) | |
156 | 156 | if ($isInstanceOf(an, "Int")) | |
157 | 157 | then { | |
158 | 158 | let ao = an | |
159 | 159 | ao | |
160 | 160 | } | |
161 | 161 | else 0 | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ap (aq) = if ((aq == i)) | |
166 | 166 | then true | |
167 | 167 | else if ((aq == j)) | |
168 | 168 | then true | |
169 | 169 | else false | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ar (aq) = if ((aq == m)) | |
173 | 173 | then true | |
174 | 174 | else if ((aq == n)) | |
175 | 175 | then true | |
176 | 176 | else if ((aq == o)) | |
177 | 177 | then true | |
178 | 178 | else if ((aq == p)) | |
179 | 179 | then true | |
180 | 180 | else if ((aq == r)) | |
181 | 181 | then true | |
182 | 182 | else if ((aq == k)) | |
183 | 183 | then true | |
184 | 184 | else if ((aq == l)) | |
185 | 185 | then true | |
186 | 186 | else if ((aq == q)) | |
187 | 187 | then true | |
188 | 188 | else if ((aq == s)) | |
189 | 189 | then true | |
190 | 190 | else false | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func as (at,au,av) = if (if ((au == 4)) | |
194 | 194 | then true | |
195 | 195 | else (au == 10)) | |
196 | - | then { | |
197 | - | let aw = (at * 7) | |
198 | - | aw | |
199 | - | } | |
196 | + | then (at * 7) | |
200 | 197 | else if (if ((au == 5)) | |
201 | 198 | then true | |
202 | 199 | else (au == 8)) | |
203 | - | then { | |
204 | - | let aw = (at * 9) | |
205 | - | aw | |
206 | - | } | |
200 | + | then (at * 9) | |
207 | 201 | else if (if ((au == 3)) | |
208 | 202 | then true | |
209 | 203 | else (au == 11)) | |
210 | - | then { | |
211 | - | let aw = (at * 15) | |
212 | - | aw | |
213 | - | } | |
204 | + | then (at * 15) | |
214 | 205 | else if (if ((au == 2)) | |
215 | 206 | then true | |
216 | 207 | else (au == 12)) | |
217 | - | then { | |
218 | - | let aw = (at * 30) | |
219 | - | aw | |
220 | - | } | |
208 | + | then (at * 30) | |
221 | 209 | else if (if ((au == 10)) | |
222 | 210 | then true | |
223 | 211 | else (au == 4)) | |
224 | - | then { | |
225 | - | let aw = (at * 30) | |
226 | - | aw | |
227 | - | } | |
212 | + | then (at * 30) | |
228 | 213 | else if ((au == 7)) | |
229 | - | then { | |
230 | - | let aw = (at * 4) | |
231 | - | aw | |
232 | - | } | |
214 | + | then (at * 4) | |
233 | 215 | else if (if ((au == 100)) | |
234 | 216 | then if (if ((av == 3)) | |
235 | 217 | then true | |
236 | 218 | else (av == 12)) | |
237 | 219 | then true | |
238 | 220 | else (av == 2) | |
239 | 221 | else false) | |
240 | - | then { | |
241 | - | let aw = (at * 7) | |
242 | - | aw | |
243 | - | } | |
222 | + | then (at * 7) | |
244 | 223 | else 0 | |
245 | 224 | ||
246 | 225 | ||
247 | - | func ax (at,av) = if ((av == 12)) | |
248 | - | then { | |
249 | - | let aw = (at * 4) | |
250 | - | aw | |
251 | - | } | |
226 | + | func aw (at,av) = if ((av == 12)) | |
227 | + | then (at * 4) | |
252 | 228 | else if ((av == 2)) | |
253 | - | then { | |
254 | - | let aw = (at * 3) | |
255 | - | aw | |
256 | - | } | |
229 | + | then (at * 3) | |
257 | 230 | else if (if (if (if ((av == 5)) | |
258 | 231 | then true | |
259 | 232 | else (av == 6)) | |
260 | 233 | then true | |
261 | 234 | else (av == 7)) | |
262 | 235 | then true | |
263 | 236 | else (av == 8)) | |
264 | 237 | then 0 | |
265 | - | else { | |
266 | - | let aw = (at * 2) | |
267 | - | aw | |
268 | - | } | |
238 | + | else (at * 2) | |
269 | 239 | ||
270 | 240 | ||
271 | - | func | |
241 | + | func ax (z,at,ay,az,au) = { | |
272 | 242 | let an = T() | |
273 | 243 | if ($isInstanceOf(an, "Int")) | |
274 | 244 | then { | |
275 | - | let | |
276 | - | let | |
277 | - | if ($isInstanceOf( | |
245 | + | let aA = an | |
246 | + | let aB = ac(z) | |
247 | + | if ($isInstanceOf(aB, "Int")) | |
278 | 248 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | if (if (( | |
249 | + | let aC = aB | |
250 | + | let aD = (aA + 1) | |
251 | + | let aE = (aC + 1) | |
252 | + | if (if ((ay == k)) | |
283 | 253 | then true | |
284 | - | else ( | |
285 | - | then [IntegerEntry(ah( | |
286 | - | else [IntegerEntry(ah( | |
254 | + | else (ay == l)) | |
255 | + | then [IntegerEntry(ah(aD), z), StringEntry(F(aD), ((((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(z)) + "_") + toString(aE))), IntegerEntry(w, aD), IntegerEntry(ab(aD), aE)] | |
256 | + | else [IntegerEntry(ah(aD), z), StringEntry(F(aD), ((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(au))), IntegerEntry(w, aD), IntegerEntry(ab(aD), aE)] | |
287 | 257 | } | |
288 | 258 | else throw("Game doesn't exist") | |
289 | 259 | } | |
290 | 260 | else throw("Game has not bee initialized") | |
291 | 261 | } | |
292 | 262 | ||
293 | 263 | ||
294 | - | func | |
264 | + | func aF (aG,aH,aI,z,at,ay,az,au) = [IntegerEntry(ah(aG), z), StringEntry(F(aG), ((((((az + "_") + at) + "_") + ay) + "_active_pending_") + toString(au))), StringEntry(F(aH), ((((((az + "_") + at) + "_") + ay) + "_inactive_rolled_") + toString(au))), IntegerEntry(x, aH), IntegerEntry(w, aG), IntegerEntry(ab(aG), aI)] | |
295 | 265 | ||
296 | 266 | ||
297 | - | func | |
298 | - | then | |
299 | - | else | |
267 | + | func aJ (aK,at,aL,aH,aI,ag,N,aM,au) = if ((aK == g)) | |
268 | + | then aF((aL + 1), (aH + 1), 1, (ag + 1), toString(at), N, aM, au) | |
269 | + | else aF((aL + 1), (aH + 1), (aI + 1), ag, toString(at), N, aM, au) | |
300 | 270 | ||
301 | 271 | ||
302 | - | func aO (aL,aP,av,at,aM,aI,aJ,ag,N,aN,au) = { | |
303 | - | let aQ = value(parseInt(split(aP, "_")[5])) | |
304 | - | let aR = value(parseInt(split(aP, "_")[6])) | |
305 | - | let aS = value(ad(aQ, aR)) | |
306 | - | if ((av == 7)) | |
307 | - | then if ((aP == k)) | |
308 | - | then throw("Only Field Type of Bet can be proceed") | |
309 | - | else throw("Only Field Type of Bet can be proceed") | |
310 | - | else if ((av == aS)) | |
311 | - | then throw("Only Field Type of Bet can be proceed") | |
312 | - | else if ((aL == g)) | |
313 | - | then aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
314 | - | else aK(aL, at, (aM + 1), (aI + 1), (aJ + 1), ag, N, aN, au) | |
315 | - | } | |
316 | - | ||
317 | - | ||
318 | - | func aT (z,at,az,aA) = { | |
272 | + | func aN (z,at,ay,az) = { | |
319 | 273 | let an = R() | |
320 | 274 | if ($isInstanceOf(an, "Int")) | |
321 | 275 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | [IntegerEntry(af( | |
276 | + | let aO = an | |
277 | + | let aP = (aO + 1) | |
278 | + | [IntegerEntry(af(aP), z), StringEntry(D(aP), (((((az + "_") + at) + "_") + ay) + "_active_pending")), IntegerEntry(u, aP)] | |
325 | 279 | } | |
326 | 280 | else throw("Game has not bee initialized") | |
327 | 281 | } | |
328 | 282 | ||
329 | 283 | ||
330 | - | func | |
331 | - | let | |
332 | - | [StringEntry( | |
284 | + | func aQ (aR,ag,aS,aT,aU) = { | |
285 | + | let aV = (aR + "_lost") | |
286 | + | [StringEntry(aT, aV), IntegerEntry(aU, aS)] | |
333 | 287 | } | |
334 | 288 | ||
335 | 289 | ||
336 | - | func | |
337 | - | let | |
338 | - | [StringEntry( | |
290 | + | func aW (aR,ag,aS,aT,aU,aX) = { | |
291 | + | let aV = ((aR + "_lost_") + toString(aX)) | |
292 | + | [StringEntry(aT, aV), IntegerEntry(aU, aS)] | |
339 | 293 | } | |
340 | 294 | ||
341 | 295 | ||
342 | - | func | |
343 | - | let | |
344 | - | [StringEntry(M(ag, | |
296 | + | func aY (aR,ag,aZ,aM,ba,N,aT,aU) = { | |
297 | + | let aV = (aR + "_won_") | |
298 | + | [StringEntry(M(ag, aZ, N), ((aM + "_amount_") + toString(ba))), StringEntry(aT, aR), IntegerEntry(aU, aZ), ScriptTransfer(value(addressFromString(aM)), ba, unit)] | |
345 | 299 | } | |
346 | 300 | ||
347 | 301 | ||
348 | - | func | |
302 | + | func bb (bc,ag,aO,aC,bd,be,bf) = [IntegerEntry(O(ag), bf), IntegerEntry(bc, aO), IntegerEntry(Y(ag), aC), IntegerEntry(A(ag), (bd + h)), StringEntry(Q(ag), toBase64String(be)), IntegerEntry(Z(ag, aC), aO)] | |
349 | 303 | ||
350 | 304 | ||
351 | - | @Callable(bl) | |
352 | - | func processNextBet () = if (I(bl.callerPublicKey)) | |
305 | + | func bg (bh,bi,bj) = { | |
306 | + | let N = split(bj, "_")[2] | |
307 | + | let aM = split(bj, "_")[0] | |
308 | + | let at = value(parseInt(split(bj, "_")[1])) | |
309 | + | if ((N == i)) | |
310 | + | then if ((bi == 0)) | |
311 | + | then if (if ((bh == 7)) | |
312 | + | then true | |
313 | + | else (bh == 11)) | |
314 | + | then (at * 2) | |
315 | + | else 0 | |
316 | + | else if ((bh == bi)) | |
317 | + | then (at * 2) | |
318 | + | else if ((bi == 7)) | |
319 | + | then 0 | |
320 | + | else 0 | |
321 | + | else if ((N == j)) | |
322 | + | then if ((bi == 0)) | |
323 | + | then if (if ((bh == 2)) | |
324 | + | then true | |
325 | + | else (bh == 3)) | |
326 | + | then (at * 2) | |
327 | + | else if (if ((bi == 7)) | |
328 | + | then true | |
329 | + | else (bi == 11)) | |
330 | + | then 0 | |
331 | + | else 0 | |
332 | + | else if (if ((bi == 2)) | |
333 | + | then true | |
334 | + | else (bi == 3)) | |
335 | + | then (at * 2) | |
336 | + | else if ((bi == 7)) | |
337 | + | then 0 | |
338 | + | else 0 | |
339 | + | else 0 | |
340 | + | } | |
341 | + | ||
342 | + | ||
343 | + | func bk (bj,av,bl) = { | |
344 | + | let N = split(bj, "_")[2] | |
345 | + | let au = value(parseInt(split(bj, "_")[5])) | |
346 | + | let at = value(parseInt(split(bj, "_")[1])) | |
347 | + | if ((N == m)) | |
348 | + | then if ((av == 12)) | |
349 | + | then (at * 4) | |
350 | + | else if ((av == 2)) | |
351 | + | then (at * 3) | |
352 | + | else if (if (if (if ((av == 5)) | |
353 | + | then true | |
354 | + | else (av == 6)) | |
355 | + | then true | |
356 | + | else (av == 7)) | |
357 | + | then true | |
358 | + | else (av == 8)) | |
359 | + | then 0 | |
360 | + | else (at * 2) | |
361 | + | else if ((N == n)) | |
362 | + | then if (if ((au == 4)) | |
363 | + | then true | |
364 | + | else (au == 10)) | |
365 | + | then (at * 7) | |
366 | + | else if (if ((au == 5)) | |
367 | + | then true | |
368 | + | else (au == 8)) | |
369 | + | then (at * 9) | |
370 | + | else if (if ((au == 3)) | |
371 | + | then true | |
372 | + | else (au == 11)) | |
373 | + | then (at * 15) | |
374 | + | else if (if ((au == 2)) | |
375 | + | then true | |
376 | + | else (au == 12)) | |
377 | + | then (at * 30) | |
378 | + | else if (if ((au == 10)) | |
379 | + | then true | |
380 | + | else (au == 4)) | |
381 | + | then (at * 30) | |
382 | + | else if ((au == 7)) | |
383 | + | then (at * 4) | |
384 | + | else if (if ((au == 100)) | |
385 | + | then if (if ((av == 3)) | |
386 | + | then true | |
387 | + | else (av == 12)) | |
388 | + | then true | |
389 | + | else (av == 2) | |
390 | + | else false) | |
391 | + | then (at * 7) | |
392 | + | else 0 | |
393 | + | else if ((N == o)) | |
394 | + | then if (if ((av == 6)) | |
395 | + | then true | |
396 | + | else (av == 8)) | |
397 | + | then (2 * at) | |
398 | + | else 0 | |
399 | + | else if (if ((N == r)) | |
400 | + | then true | |
401 | + | else (N == q)) | |
402 | + | then if ((av == 7)) | |
403 | + | then (at * 2) | |
404 | + | else if ((av == au)) | |
405 | + | then 0 | |
406 | + | else -1 | |
407 | + | else if (if ((N == p)) | |
408 | + | then true | |
409 | + | else (N == s)) | |
410 | + | then if ((av == 7)) | |
411 | + | then 0 | |
412 | + | else if ((av == au)) | |
413 | + | then (at * 2) | |
414 | + | else -1 | |
415 | + | else if ((N == k)) | |
416 | + | then { | |
417 | + | let bm = value(parseInt(split(bj, "_")[6])) | |
418 | + | if ((bl == 2)) | |
419 | + | then if (if ((av == 7)) | |
420 | + | then true | |
421 | + | else (av == 11)) | |
422 | + | then (at * 2) | |
423 | + | else if (if (if ((av == 2)) | |
424 | + | then true | |
425 | + | else (av == 12)) | |
426 | + | then true | |
427 | + | else (av == 3)) | |
428 | + | then 0 | |
429 | + | else if ((av == bm)) | |
430 | + | then (at * 2) | |
431 | + | else -1 | |
432 | + | else if ((bl > 2)) | |
433 | + | then if ((av == 7)) | |
434 | + | then 0 | |
435 | + | else if ((av == bm)) | |
436 | + | then (at * 2) | |
437 | + | else -1 | |
438 | + | else throw("Not Allow in The Beginning") | |
439 | + | } | |
440 | + | else if ((N == l)) | |
441 | + | then { | |
442 | + | let bm = value(parseInt(split(bj, "_")[6])) | |
443 | + | if ((bl == 2)) | |
444 | + | then if (if ((av == 7)) | |
445 | + | then true | |
446 | + | else (av == 11)) | |
447 | + | then 0 | |
448 | + | else if (if (if ((av == 2)) | |
449 | + | then true | |
450 | + | else (av == 12)) | |
451 | + | then true | |
452 | + | else (av == 3)) | |
453 | + | then (at * 2) | |
454 | + | else if ((av == bm)) | |
455 | + | then (at * 2) | |
456 | + | else -1 | |
457 | + | else if ((bl > 1)) | |
458 | + | then if ((av == 7)) | |
459 | + | then (at * 2) | |
460 | + | else if ((av == bm)) | |
461 | + | then 0 | |
462 | + | else -1 | |
463 | + | else throw("Not Allow in The Beginning") | |
464 | + | } | |
465 | + | else 0 | |
466 | + | } | |
467 | + | ||
468 | + | ||
469 | + | @Callable(bn) | |
470 | + | func processNextBet () = if (I(bn.callerPublicKey)) | |
353 | 471 | then throw("processFieldBet_FORBIDDEN") | |
354 | 472 | else { | |
355 | 473 | let an = R() | |
356 | 474 | if ($isInstanceOf(an, "Int")) | |
357 | 475 | then { | |
358 | - | let | |
359 | - | let | |
360 | - | if ($isInstanceOf( | |
476 | + | let aG = an | |
477 | + | let aB = S() | |
478 | + | if ($isInstanceOf(aB, "Int")) | |
361 | 479 | then { | |
362 | - | let | |
363 | - | let | |
364 | - | if (( | |
480 | + | let bo = aB | |
481 | + | let bp = (bo + 1) | |
482 | + | if ((bp > aG)) | |
365 | 483 | then throw("Next bet has not been places.") | |
366 | 484 | else { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
485 | + | let bq = ai(bp) | |
486 | + | if ($isInstanceOf(bq, "Int")) | |
369 | 487 | then { | |
370 | - | let ag = | |
371 | - | let | |
372 | - | if ($isInstanceOf( | |
488 | + | let ag = bq | |
489 | + | let br = V(ag) | |
490 | + | if ($isInstanceOf(br, "Int")) | |
373 | 491 | then { | |
374 | - | let | |
375 | - | if (if (( | |
492 | + | let aK = br | |
493 | + | if (if ((aK == e)) | |
376 | 494 | then true | |
377 | - | else ( | |
495 | + | else (aK == f)) | |
378 | 496 | then throw("Game has to finished in order to process NON-FIELD bets") | |
379 | 497 | else { | |
380 | - | let aP = value(G(bn)) | |
381 | - | let N = split(aP, "_")[2] | |
382 | - | let aN = split(aP, "_")[0] | |
383 | - | let at = value(parseInt(split(aP, "_")[1])) | |
384 | - | let bq = value(addressFromString(aN)) | |
385 | - | let br = am(bn) | |
386 | - | let bs = al(bn) | |
387 | - | let aX = (((((aN + "_") + split(aP, "_")[1]) + "_") + split(aP, "_")[2]) + "_inactive_") | |
388 | - | if ((N == i)) | |
389 | - | then if ((br == 0)) | |
390 | - | then if (if ((bs == 7)) | |
391 | - | then true | |
392 | - | else (bs == 11)) | |
393 | - | then { | |
394 | - | let aw = (at * 2) | |
395 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
396 | - | } | |
397 | - | else aW(aX, ag, bn, D(bn), v) | |
398 | - | else if ((bs == br)) | |
399 | - | then { | |
400 | - | let aw = (at * 2) | |
401 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
402 | - | } | |
403 | - | else if ((br == 7)) | |
404 | - | then aW(aX, ag, bn, D(bn), v) | |
405 | - | else aW(aX, ag, bn, D(bn), v) | |
406 | - | else if ((N == j)) | |
407 | - | then if ((br == 0)) | |
408 | - | then if (if ((bs == 2)) | |
409 | - | then true | |
410 | - | else (bs == 3)) | |
411 | - | then { | |
412 | - | let aw = (at * 2) | |
413 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
414 | - | } | |
415 | - | else if (if ((br == 7)) | |
416 | - | then true | |
417 | - | else (br == 11)) | |
418 | - | then aW(aX, ag, bn, D(bn), v) | |
419 | - | else aW(aX, ag, bn, D(bn), v) | |
420 | - | else if (if ((br == 2)) | |
421 | - | then true | |
422 | - | else (br == 3)) | |
423 | - | then { | |
424 | - | let aw = (at * 2) | |
425 | - | be(aX, ag, bn, aN, aw, N, D(bn), v) | |
426 | - | } | |
427 | - | else if ((br == 7)) | |
428 | - | then aW(aX, ag, bn, D(bn), v) | |
429 | - | else aW(aX, ag, bn, D(bn), v) | |
430 | - | else throw((((((("Only " + i) + ", ") + j) + " allowed in processNextBet()") + " currentBetType ") + N)) | |
498 | + | let bj = value(G(bp)) | |
499 | + | let bs = value(addressFromString(split(bj, "_")[0])) | |
500 | + | let bt = am(bp) | |
501 | + | let bh = value(al(bp)) | |
502 | + | let aR = (((((split(bj, "_")[0] + "_") + split(bj, "_")[1]) + "_") + split(bj, "_")[2]) + "_inactive_") | |
503 | + | let bu = bg(bh, bt, bj) | |
504 | + | if ((bu == 0)) | |
505 | + | then aQ(aR, ag, bp, D(bp), v) | |
506 | + | else if ((bu > 0)) | |
507 | + | then aY(aR, ag, bp, split(bj, "_")[0], bu, split(bj, "_")[2], D(bp), v) | |
508 | + | else throw((((((("Only " + i) + ", ") + j) + " allowed in processNextBet()") + " currentBetType ") + split(bj, "_")[2])) | |
431 | 509 | } | |
432 | 510 | } | |
433 | 511 | else throw("Game does not exist or has already ended.") | |
434 | 512 | } | |
435 | 513 | else throw("Error") | |
436 | 514 | } | |
437 | 515 | } | |
438 | 516 | else throw("Game has not been initialized, next bets not found") | |
439 | 517 | } | |
440 | 518 | else throw("Game has not been initialized, next bets not found") | |
441 | 519 | } | |
442 | 520 | ||
443 | 521 | ||
444 | 522 | ||
445 | - | @Callable( | |
446 | - | func processOneRoundBet () = if (I( | |
523 | + | @Callable(bn) | |
524 | + | func processOneRoundBet () = if (I(bn.callerPublicKey)) | |
447 | 525 | then throw("processFieldBet_FORBIDDEN") | |
448 | 526 | else { | |
449 | 527 | let an = T() | |
450 | 528 | if ($isInstanceOf(an, "Int")) | |
451 | 529 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | if ($isInstanceOf( | |
530 | + | let aL = an | |
531 | + | let aB = U() | |
532 | + | if ($isInstanceOf(aB, "Int")) | |
455 | 533 | then { | |
456 | - | let | |
457 | - | let | |
458 | - | if (( | |
534 | + | let aH = aB | |
535 | + | let bp = (aH + 1) | |
536 | + | if ((bp > aL)) | |
459 | 537 | then throw("Next Field Bet has not been places.") | |
460 | 538 | else { | |
461 | - | let | |
462 | - | if ($isInstanceOf( | |
539 | + | let bq = aj(bp) | |
540 | + | if ($isInstanceOf(bq, "Int")) | |
463 | 541 | then { | |
464 | - | let ag = | |
465 | - | let | |
466 | - | if ($isInstanceOf( | |
542 | + | let ag = bq | |
543 | + | let br = V(ag) | |
544 | + | if ($isInstanceOf(br, "Int")) | |
467 | 545 | then { | |
468 | - | let | |
469 | - | if (( | |
546 | + | let aK = br | |
547 | + | if ((aK == e)) | |
470 | 548 | then throw("Game has not started yet") | |
471 | 549 | else { | |
472 | - | let aP = value(H(bn)) | |
473 | - | let N = split(aP, "_")[2] | |
474 | - | let aN = split(aP, "_")[0] | |
475 | - | let at = value(parseInt(split(aP, "_")[1])) | |
476 | - | let au = value(parseInt(split(aP, "_")[5])) | |
477 | - | let bq = value(addressFromString(aN)) | |
478 | - | let aJ = value(ae(bn)) | |
479 | - | let bt = ad(ag, aJ) | |
480 | - | if ($isInstanceOf(bt, "Int")) | |
550 | + | let bj = value(H(bp)) | |
551 | + | let N = split(bj, "_")[2] | |
552 | + | let aM = split(bj, "_")[0] | |
553 | + | let at = value(parseInt(split(bj, "_")[1])) | |
554 | + | let au = value(parseInt(split(bj, "_")[5])) | |
555 | + | let bs = value(addressFromString(aM)) | |
556 | + | let aI = value(ae(bp)) | |
557 | + | let aR = (((((aM + "_") + split(bj, "_")[1]) + "_") + split(bj, "_")[2]) + "_inactive_") | |
558 | + | let bv = ad(ag, aI) | |
559 | + | if ($isInstanceOf(bv, "Int")) | |
481 | 560 | then { | |
482 | - | let av = bt | |
483 | - | let aX = (((((aN + "_") + split(aP, "_")[1]) + "_") + split(aP, "_")[2]) + "_inactive_") | |
484 | - | if ((N == m)) | |
485 | - | then { | |
486 | - | let aw = ax(at, av) | |
487 | - | if ((aw == 0)) | |
488 | - | then aW(aX, ag, bn, F(ag), x) | |
489 | - | else be(aX, ag, bn, aN, aw, N, F(bn), x) | |
490 | - | } | |
491 | - | else if ((N == n)) | |
492 | - | then { | |
493 | - | let aw = as(at, au, av) | |
494 | - | if ((aw == 0)) | |
495 | - | then be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
496 | - | else bc(aX, ag, bn, F(bn), x, au) | |
497 | - | } | |
498 | - | else if ((N == o)) | |
499 | - | then if (if ((av == 6)) | |
500 | - | then true | |
501 | - | else (av == 8)) | |
502 | - | then { | |
503 | - | let aw = (2 * at) | |
504 | - | be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
505 | - | } | |
506 | - | else bc(aX, ag, bn, F(bn), x, au) | |
507 | - | else if (if ((N == p)) | |
508 | - | then true | |
509 | - | else (N == s)) | |
510 | - | then if ((av == 7)) | |
511 | - | then bc(aX, ag, bn, F(bn), x, au) | |
512 | - | else if ((av == au)) | |
513 | - | then { | |
514 | - | let aw = (at * 2) | |
515 | - | be((aX + "_won_"), ag, bn, aN, aw, N, F(bn), x) | |
516 | - | } | |
517 | - | else aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
518 | - | else if (if ((N == r)) | |
519 | - | then true | |
520 | - | else (N == q)) | |
521 | - | then if ((av == 7)) | |
522 | - | then { | |
523 | - | let aw = (at * 2) | |
524 | - | be(aX, ag, bn, aN, aw, N, F(bn), x) | |
525 | - | } | |
526 | - | else if ((av == au)) | |
527 | - | then bc(aX, ag, bn, F(bn), x, au) | |
528 | - | else aK(aL, at, (aM + 1), (aI + 1), 1, (ag + 1), N, aN, au) | |
529 | - | else if (if ((N == k)) | |
530 | - | then true | |
531 | - | else (N == l)) | |
532 | - | then aO(aL, aP, av, at, aM, aI, aJ, ag, N, aN, au) | |
533 | - | else throw("Only Field Type of Bet can be proceed") | |
561 | + | let av = bv | |
562 | + | let bw = value(parseInt(Y(ag))) | |
563 | + | let bx = bk(bj, av, bw) | |
564 | + | if ((bx == -1)) | |
565 | + | then aJ(aK, at, aL, aH, aI, ag, N, aM, au) | |
566 | + | else if ((bx == 0)) | |
567 | + | then aW(aR, ag, bp, F(ag), x, au) | |
568 | + | else aY((aR + "_won_"), ag, bp, aM, bx, N, F(bp), x) | |
534 | 569 | } | |
535 | 570 | else throw("There is no result for this round yet") | |
536 | 571 | } | |
537 | 572 | } | |
538 | 573 | else throw("Game does not exist or has already ended") | |
539 | 574 | } | |
540 | 575 | else throw("Error") | |
541 | 576 | } | |
542 | 577 | } | |
543 | 578 | else throw("Game has not been initialized, next bets not found") | |
544 | 579 | } | |
545 | 580 | else throw("Game has not been initialized, next bets not found") | |
546 | 581 | } | |
547 | 582 | ||
548 | 583 | ||
549 | 584 | ||
550 | - | @Callable( | |
551 | - | func initGame () = if (I( | |
585 | + | @Callable(bn) | |
586 | + | func initGame () = if (I(bn.callerPublicKey)) | |
552 | 587 | then throw("initGame_FORBIDDEN") | |
553 | 588 | else { | |
554 | 589 | let an = ak() | |
555 | 590 | if ($isInstanceOf(an, "Int")) | |
556 | 591 | then { | |
557 | - | let | |
592 | + | let by = an | |
558 | 593 | throw("INIT_ALREADY_DONE") | |
559 | 594 | } | |
560 | 595 | else [IntegerEntry(t, 0), IntegerEntry(u, 0), IntegerEntry(v, 0), IntegerEntry(w, 0), IntegerEntry(x, 0)] | |
561 | 596 | } | |
562 | 597 | ||
563 | 598 | ||
564 | 599 | ||
565 | - | @Callable( | |
566 | - | func startGame ( | |
600 | + | @Callable(bn) | |
601 | + | func startGame (be) = if (I(bn.callerPublicKey)) | |
567 | 602 | then throw("startGame_FORBIDDEN") | |
568 | 603 | else { | |
569 | 604 | let an = ak() | |
570 | 605 | if ($isInstanceOf(an, "Int")) | |
571 | 606 | then { | |
572 | - | let | |
573 | - | if (( | |
607 | + | let aO = an | |
608 | + | if ((aO == 0)) | |
574 | 609 | then { | |
575 | - | let | |
576 | - | [IntegerEntry(t, | |
610 | + | let bz = (aO + 1) | |
611 | + | [IntegerEntry(t, bz), IntegerEntry(O(bz), e), IntegerEntry(y(bz), lastBlock.height), IntegerEntry(A(bz), (lastBlock.height + h)), IntegerEntry(Y(bz), 0), StringEntry(P(bz), toBase58String(sha256(fromBase64String(be))))] | |
577 | 612 | } | |
578 | 613 | else { | |
579 | - | let | |
580 | - | if ($isInstanceOf( | |
614 | + | let aB = V(aO) | |
615 | + | if ($isInstanceOf(aB, "Int")) | |
581 | 616 | then { | |
582 | - | let | |
583 | - | if (if (( | |
617 | + | let bf = aB | |
618 | + | if (if ((bf == f)) | |
584 | 619 | then true | |
585 | - | else ( | |
620 | + | else (bf == e)) | |
586 | 621 | then throw("The previous game is still in progress") | |
587 | 622 | else { | |
588 | - | let | |
589 | - | [IntegerEntry(t, | |
623 | + | let bz = (aO + 1) | |
624 | + | [IntegerEntry(t, bz), IntegerEntry(O(bz), e), IntegerEntry(y(bz), lastBlock.height), IntegerEntry(A(bz), (lastBlock.height + h)), IntegerEntry(Y(bz), 0), StringEntry(P(bz), toBase58String(sha256(fromBase64String(be))))] | |
590 | 625 | } | |
591 | 626 | } | |
592 | 627 | else throw("Error") | |
593 | 628 | } | |
594 | 629 | } | |
595 | 630 | else throw("INIT_NEED") | |
596 | 631 | } | |
597 | 632 | ||
598 | 633 | ||
599 | 634 | ||
600 | - | @Callable( | |
601 | - | func placeBet ( | |
602 | - | then if ((size( | |
635 | + | @Callable(bn) | |
636 | + | func placeBet (ay) = if (ap(ay)) | |
637 | + | then if ((size(bn.payments) == 0)) | |
603 | 638 | then throw("Payment not attached") | |
604 | 639 | else { | |
605 | 640 | let an = ak() | |
606 | 641 | if ($isInstanceOf(an, "Int")) | |
607 | 642 | then { | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | if ($isInstanceOf( | |
643 | + | let bA = an | |
644 | + | let bB = bn.payments[0] | |
645 | + | let aB = V(bA) | |
646 | + | if ($isInstanceOf(aB, "Int")) | |
612 | 647 | then { | |
613 | - | let | |
614 | - | if (( | |
615 | - | then if (if (( | |
648 | + | let bf = aB | |
649 | + | if ((bf == e)) | |
650 | + | then if (if ((ay == i)) | |
616 | 651 | then true | |
617 | - | else ( | |
618 | - | then | |
652 | + | else (ay == j)) | |
653 | + | then aN(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes)) | |
619 | 654 | else throw((((((("Only " + i) + ", ") + j) + " and ") + m) + " are allowed in the Beginning of Game")) | |
620 | - | else if (( | |
655 | + | else if ((bf == f)) | |
621 | 656 | then throw((((((("Only " + k) + ", ") + l) + " and ") + m) + " ARE ALLOWED at Start.")) | |
622 | - | else if (( | |
657 | + | else if ((bf == g)) | |
623 | 658 | then throw("Game already ended.") | |
624 | 659 | else throw("Unknown Game State.") | |
625 | 660 | } | |
626 | 661 | else throw("Game does not exist or has already ended.") | |
627 | 662 | } | |
628 | 663 | else throw("Game has not been initialized.") | |
629 | 664 | } | |
630 | 665 | else throw(((((((((("Unsupported Type of Bet for Crap. Please Select one of " + i) + ", ") + j) + ", ") + k) + ", ") + l) + ", ") + m)) | |
631 | 666 | ||
632 | 667 | ||
633 | 668 | ||
634 | - | @Callable( | |
635 | - | func placeRoundBet ( | |
636 | - | then if ((size( | |
669 | + | @Callable(bn) | |
670 | + | func placeRoundBet (ay,aX) = if (ar(ay)) | |
671 | + | then if ((size(bn.payments) == 0)) | |
637 | 672 | then throw("Payment not attached") | |
638 | 673 | else { | |
639 | 674 | let an = ak() | |
640 | 675 | if ($isInstanceOf(an, "Int")) | |
641 | 676 | then { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | if ($isInstanceOf( | |
677 | + | let bA = an | |
678 | + | let bB = bn.payments[0] | |
679 | + | let aB = V(bA) | |
680 | + | if ($isInstanceOf(aB, "Int")) | |
646 | 681 | then { | |
647 | - | let | |
648 | - | if (( | |
682 | + | let bf = aB | |
683 | + | if ((bf == g)) | |
649 | 684 | then throw("Game already ended.") | |
650 | - | else if (if (( | |
685 | + | else if (if ((ay == k)) | |
651 | 686 | then true | |
652 | - | else ( | |
653 | - | then if (( | |
687 | + | else (ay == l)) | |
688 | + | then if ((bf == e)) | |
654 | 689 | then throw("Cannot place COME OR DONTCOME BET IF GAME HAS NOT STARTED") | |
655 | - | else | |
656 | - | else | |
690 | + | else ax(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes), 0) | |
691 | + | else ax(bA, toString(bB.amount), ay, toBase58String(bn.caller.bytes), aX) | |
657 | 692 | } | |
658 | 693 | else throw("Game does not exist or has already ended.") | |
659 | 694 | } | |
660 | 695 | else throw("Game has not been initialized.") | |
661 | 696 | } | |
662 | 697 | else throw(((((((((("Unsupported Type of Bet for Crap. Please Select one of " + n) + ", ") + j) + ", ") + k) + ", ") + l) + ", ") + m)) | |
663 | 698 | ||
664 | 699 | ||
665 | 700 | ||
666 | - | @Callable( | |
667 | - | func throwDices ( | |
701 | + | @Callable(bn) | |
702 | + | func throwDices (bC,ag) = if (I(bn.callerPublicKey)) | |
668 | 703 | then throw("throwDices_FORBIDDEN") | |
669 | 704 | else { | |
670 | 705 | let an = V(ag) | |
671 | 706 | if ($isInstanceOf(an, "Int")) | |
672 | 707 | then { | |
673 | - | let | |
674 | - | if (( | |
708 | + | let bf = an | |
709 | + | if ((bf == g)) | |
675 | 710 | then throw("Game is finished") | |
676 | 711 | else { | |
677 | - | let | |
678 | - | let | |
679 | - | if (( | |
712 | + | let bd = lastBlock.height | |
713 | + | let bD = value(C(ag)) | |
714 | + | if ((bd >= bD)) | |
680 | 715 | then { | |
681 | - | let | |
682 | - | if ($isInstanceOf( | |
716 | + | let aB = W(ag) | |
717 | + | if ($isInstanceOf(aB, "String")) | |
683 | 718 | then { | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | if ($isInstanceOf( | |
719 | + | let bE = aB | |
720 | + | let bF = fromBase64String(bC) | |
721 | + | let bG = rsaVerify(SHA256, fromBase58String(bE), bF, d) | |
722 | + | let bq = blockInfoByHeight((lastBlock.height - 1)) | |
723 | + | if ($isInstanceOf(bq, "BlockInfo")) | |
689 | 724 | then { | |
690 | - | let | |
691 | - | let | |
692 | - | if (!( | |
725 | + | let bH = bq | |
726 | + | let be = sha256((take(bF, 4) + take(bH.generationSignature, 8))) | |
727 | + | if (!(bG)) | |
693 | 728 | then throw("INVALID_RSA_SIGN") | |
694 | 729 | else { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | if ($isInstanceOf( | |
730 | + | let bI = (toInt(be) % 11) | |
731 | + | let aO = b[bI] | |
732 | + | let br = ac(ag) | |
733 | + | if ($isInstanceOf(br, "Int")) | |
699 | 734 | then { | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
703 | - | then if (if (if (if (if (( | |
735 | + | let bJ = br | |
736 | + | let bK = (bJ + 1) | |
737 | + | if ((bf == e)) | |
738 | + | then if (if (if (if (if ((aO == 7)) | |
704 | 739 | then true | |
705 | - | else ( | |
740 | + | else (aO == 11)) | |
706 | 741 | then true | |
707 | - | else ( | |
742 | + | else (aO == 2)) | |
708 | 743 | then true | |
709 | - | else ( | |
744 | + | else (aO == 3)) | |
710 | 745 | then true | |
711 | - | else ( | |
712 | - | then | |
713 | - | else | |
746 | + | else (aO == 12)) | |
747 | + | then bb(L(ag), ag, aO, bK, bd, be, g) | |
748 | + | else bb(L(ag), ag, aO, bK, bd, be, f) | |
714 | 749 | else { | |
715 | - | let | |
716 | - | let | |
717 | - | if (( | |
718 | - | then if (if (( | |
750 | + | let bt = value(am(ag)) | |
751 | + | let bh = value(al(ag)) | |
752 | + | if ((bt == 0)) | |
753 | + | then if (if ((aO == 7)) | |
719 | 754 | then true | |
720 | - | else ( | |
721 | - | then | |
722 | - | else | |
723 | - | else if (if (( | |
755 | + | else (bh == aO)) | |
756 | + | then bb(K(ag), ag, aO, bK, bd, be, g) | |
757 | + | else bb(K(ag), ag, aO, bK, bd, be, f) | |
758 | + | else if (if ((aO == 7)) | |
724 | 759 | then true | |
725 | - | else ( | |
726 | - | then | |
727 | - | else | |
760 | + | else (bh == aO)) | |
761 | + | then bb(K(ag), ag, aO, bK, bd, be, g) | |
762 | + | else bb(K(ag), ag, aO, bK, bd, be, f) | |
728 | 763 | } | |
729 | 764 | } | |
730 | 765 | else throw("No dices have been thrown") | |
731 | 766 | } | |
732 | 767 | } | |
733 | 768 | else throw("Last block doesn't exist.") | |
734 | 769 | } | |
735 | 770 | else throw("SHA doesn't exist") | |
736 | 771 | } | |
737 | 772 | else throw("Throw dice not allow still waiting for block to process") | |
738 | 773 | } | |
739 | 774 | } | |
740 | 775 | else throw("Game does not exist or has already ended.") | |
741 | 776 | } | |
742 | 777 | ||
743 | 778 | ||
744 | - | @Verifier( | |
745 | - | func | |
746 | - | let an = | |
747 | - | sigVerify( | |
779 | + | @Verifier(bL) | |
780 | + | func bM () = { | |
781 | + | let an = bL | |
782 | + | sigVerify(bL.bodyBytes, bL.proofs[0], bL.senderPublicKey) | |
748 | 783 | } | |
749 | 784 |
github/deemru/w8io/169f3d6 333.98 ms ◑