tx · Fp8jMEWU38FP7MiywiNptxbfRLS6LsKn3AHiBsnnRoYT

3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE:  -0.05000000 Waves

2019.11.26 00:18 [781320] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves

{ "type": 13, "id": "Fp8jMEWU38FP7MiywiNptxbfRLS6LsKn3AHiBsnnRoYT", "fee": 5000000, "feeAssetId": null, "timestamp": 1574716611071, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "3Ja41WBprvGMrvsACP7NA8iYzS3dER8sMjJ5tyTQ9GSGfTgLwe5kTJLjLzYLxi7GC8Fc8FDHYa5oLGw4mKsj5nKX" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAALQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQg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ATgkBAAAAC3ZhbGlkYXRlQmV0AAAAAQkAAZEAAAACBQAAAARiZXRzAAAAAAAAAABPCQEAAAALdmFsaWRhdGVCZXQAAAABCQABkQAAAAIFAAAABGJldHMAAAAAAAAAAFAJAQAAAAt2YWxpZGF0ZUJldAAAAAEJAAGRAAAAAgUAAAAEYmV0cwAAAAAAAAAAUQkBAAAAC3ZhbGlkYXRlQmV0AAAAAQkAAZEAAAACBQAAAARiZXRzAAAAAAAAAABSCQEAAAALdmFsaWRhdGVCZXQAAAABCQABkQAAAAIFAAAABGJldHMAAAAAAAAAAFMJAQAAAAt2YWxpZGF0ZUJldAAAAAEJAAGRAAAAAgUAAAAEYmV0cwAAAAAAAAAAVAEAAAAQSW5jcmVtZW50R2FtZU51bQAAAAAEAAAAB2dhbWVOdW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAPR0FNRVNDT1VOVEVSS0VZAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAA251bQUAAAAHJG1hdGNoMAUAAAADbnVtAAAAAAAAAAAACQAAZAAAAAIFAAAAB2dhbWVOdW0AAAAAAAAAAAEAAAABAAAAAWkBAAAADHBsYXlSb3VsZXR0ZQAAAAEAAAAEYmV0cwMJAABmAAAAAgAAAAAAAAAACgkAATEAAAABBQAAAARiZXRzCQAAAgAAAAECAAAADXBvdWNhcyBsZXRyYXMJAQAAAAhXcml0ZVNldAAAAAEFAAAAA25pbAAAAAAYdlDt", "chainId": 84, "height": 781320, "spentComplexity": 0 } View: original | compacted Prev: 7JyBaTyTh3iE9TRcWUtW3hR6HqWUkTLSJX93XsMMfUJd Next: E1GTgFtd4r6QnUuikU2gZoJwVLWzZ5N8bLEWfx316X4s Diff:
OldNewDifferences
5858 let HORIZONTAL = 1
5959
6060 let VERTICAL = 2
61-
62-let payout = 0
6361
6462 func is0to36 (num) = if (if ((num >= 0))
6563 then (37 > num)
461459 let betNum1 = parseIntValue(betContents[2])
462460 let betNum2 = parseIntValue(betContents[3])
463461 let betNum3 = parseIntValue(betContents[4])
464- if (is0to36(betNum1))
462+ let t = if (is0to36(betNum1))
465463 then if ((betType == TSPLIT))
466464 then isSplit(betNum1, betNum2, betNum3)
467465 else if ((betType == TSTREET))
488486 then is19to36(betNum1)
489487 else throw("Invalid bet type, Game aborted!")
490488 else throw("Invalid bet, Game aborted!")
489+ betAmount
491490 }
491+
492+
493+func validateBetsAndGetAmt (bets) = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((validateBet(bets[0]) + validateBet(bets[1])) + validateBet(bets[2])) + validateBet(bets[3])) + validateBet(bets[4])) + validateBet(bets[5])) + validateBet(bets[6])) + validateBet(bets[7])) + validateBet(bets[8])) + validateBet(bets[9])) + validateBet(bets[10])) + validateBet(bets[11])) + validateBet(bets[12])) + validateBet(bets[13])) + validateBet(bets[14])) + validateBet(bets[15])) + validateBet(bets[16])) + validateBet(bets[17])) + validateBet(bets[18])) + validateBet(bets[19])) + validateBet(bets[20])) + validateBet(bets[21])) + validateBet(bets[22])) + validateBet(bets[23])) + validateBet(bets[24])) + validateBet(bets[25])) + validateBet(bets[26])) + validateBet(bets[27])) + validateBet(bets[28])) + validateBet(bets[29])) + validateBet(bets[30])) + validateBet(bets[31])) + validateBet(bets[32])) + validateBet(bets[33])) + validateBet(bets[34])) + validateBet(bets[35])) + validateBet(bets[36])) + validateBet(bets[37])) + validateBet(bets[38])) + validateBet(bets[39])) + validateBet(bets[40])) + validateBet(bets[41])) + validateBet(bets[42])) + validateBet(bets[43])) + validateBet(bets[44])) + validateBet(bets[45])) + validateBet(bets[46])) + validateBet(bets[47])) + validateBet(bets[48])) + validateBet(bets[49])) + validateBet(bets[50])) + validateBet(bets[51])) + validateBet(bets[52])) + validateBet(bets[53])) + validateBet(bets[54])) + validateBet(bets[55])) + validateBet(bets[56])) + validateBet(bets[57])) + validateBet(bets[58])) + validateBet(bets[59])) + validateBet(bets[60])) + validateBet(bets[61])) + validateBet(bets[62])) + validateBet(bets[63])) + validateBet(bets[64])) + validateBet(bets[65])) + validateBet(bets[66])) + validateBet(bets[67])) + validateBet(bets[68])) + validateBet(bets[69])) + validateBet(bets[70])) + validateBet(bets[71])) + validateBet(bets[72])) + validateBet(bets[73])) + validateBet(bets[74])) + validateBet(bets[75])) + validateBet(bets[76])) + validateBet(bets[77])) + validateBet(bets[78])) + validateBet(bets[79])) + validateBet(bets[80])) + validateBet(bets[81])) + validateBet(bets[82])) + validateBet(bets[83])) + validateBet(bets[84]))
492494
493495
494496 func IncrementGameNum () = {
503505
504506
505507 @Callable(i)
506-func playRoulette (bets) = {
507- let gameId = toBase58String(i.transactionId)
508- let payment = extract(i.payment)
509- let feeAssetId = isDefined(i.feeAssetId)
510- let gameIdUsed = isDefined(getString(this, gameId))
511- let playerBalance = wavesBalance(i.caller)
512- let betList = split(bets, "|")
513- throw(betList[0])
514- }
508+func playRoulette (bets) = if ((10 > size(bets)))
509+ then throw("poucas letras")
510+ else WriteSet(nil)
515511
516512
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 STATESUBMITTED = "SUBMITTED"
2323
2424 let STATEWON = "WON"
2525
2626 let STATELOST = "LOST"
2727
2828 let BETMIN = (1 * WAVELET)
2929
3030 let BETMAX = (20000000 * WAVELET)
3131
3232 let TSTRAIGHT = 1
3333
3434 let TSPLIT = 2
3535
3636 let TSTREET = 3
3737
3838 let TCORNER = 4
3939
4040 let TLINE = 5
4141
4242 let TCOLUMN = 6
4343
4444 let TDOZEN = 7
4545
4646 let TRED = 8
4747
4848 let TBLACK = 9
4949
5050 let TODD = 10
5151
5252 let TEVEN = 11
5353
5454 let T1TO18 = 12
5555
5656 let T19TO36 = 13
5757
5858 let HORIZONTAL = 1
5959
6060 let VERTICAL = 2
61-
62-let payout = 0
6361
6462 func is0to36 (num) = if (if ((num >= 0))
6563 then (37 > num)
6664 else false)
6765 then true
6866 else throw("Invalid range, try between 0 and 36. Game aborted!")
6967
7068
7169 func isSplit (num1,num2,direction) = if ((direction == HORIZONTAL))
7270 then if (if (if (if (if ((num1 > 0))
7371 then (34 > num1)
7472 else false)
7573 then true
7674 else if ((num1 == 0))
7775 then (num2 == 1)
7876 else false)
7977 then true
8078 else if ((num1 == 0))
8179 then (num2 == 2)
8280 else false)
8381 then true
8482 else if ((num1 == 0))
8583 then (num2 == 3)
8684 else false)
8785 then true
8886 else throw("Invalid hotizontal split move. Game aborted!")
8987 else if ((direction == VERTICAL))
9088 then if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1))
9189 then true
9290 else (num1 == 2))
9391 then true
9492 else (num1 == 4))
9593 then true
9694 else (num1 == 5))
9795 then true
9896 else (num1 == 7))
9997 then true
10098 else (num1 == 8))
10199 then true
102100 else (num1 == 10))
103101 then true
104102 else (num1 == 11))
105103 then true
106104 else (num1 == 13))
107105 then true
108106 else (num1 == 14))
109107 then true
110108 else (num1 == 16))
111109 then true
112110 else (num1 == 17))
113111 then true
114112 else (num1 == 19))
115113 then true
116114 else (num1 == 20))
117115 then true
118116 else (num1 == 22))
119117 then true
120118 else (num1 == 23))
121119 then true
122120 else (num1 == 25))
123121 then true
124122 else (num1 == 26))
125123 then true
126124 else (num1 == 28))
127125 then true
128126 else (num1 == 29))
129127 then true
130128 else (num1 == 31))
131129 then true
132130 else (num1 == 32))
133131 then true
134132 else (num1 == 34))
135133 then true
136134 else (num1 == 35))
137135 then true
138136 else throw("Invalid vertical split move. Game aborted!")
139137 else throw("Invalid split move. Game aborted!")
140138
141139
142140 func isStreet (num1,num2) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1))
143141 then true
144142 else (num1 == 4))
145143 then true
146144 else (num1 == 7))
147145 then true
148146 else (num1 == 10))
149147 then true
150148 else (num1 == 13))
151149 then true
152150 else (num1 == 16))
153151 then true
154152 else (num1 == 19))
155153 then true
156154 else (num1 == 22))
157155 then true
158156 else (num1 == 25))
159157 then true
160158 else (num1 == 28))
161159 then true
162160 else (num1 == 31))
163161 then true
164162 else (num1 == 34))
165163 then true
166164 else if ((num1 == 0))
167165 then (num2 == 1)
168166 else false)
169167 then true
170168 else if ((num1 == 0))
171169 then (num2 == 3)
172170 else false)
173171 then true
174172 else throw("Invalid street move. Game aborted!")
175173
176174
177175 func isCorner (num1,num2) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1))
178176 then true
179177 else (num1 == 2))
180178 then true
181179 else (num1 == 4))
182180 then true
183181 else (num1 == 5))
184182 then true
185183 else (num1 == 7))
186184 then true
187185 else (num1 == 8))
188186 then true
189187 else (num1 == 10))
190188 then true
191189 else (num1 == 11))
192190 then true
193191 else (num1 == 13))
194192 then true
195193 else (num1 == 14))
196194 then true
197195 else (num1 == 16))
198196 then true
199197 else (num1 == 17))
200198 then true
201199 else (num1 == 19))
202200 then true
203201 else (num1 == 20))
204202 then true
205203 else (num1 == 22))
206204 then true
207205 else (num1 == 23))
208206 then true
209207 else (num1 == 25))
210208 then true
211209 else (num1 == 26))
212210 then true
213211 else (num1 == 28))
214212 then true
215213 else (num1 == 29))
216214 then true
217215 else (num1 == 31))
218216 then true
219217 else (num1 == 32))
220218 then true
221219 else if ((num1 == 0))
222220 then (num2 == 1)
223221 else false)
224222 then true
225223 else throw("Invalid corner move. Game aborted!")
226224
227225
228226 func isLine (num) = if (if (if (if (if (if (if (if (if (if (if ((num == 1))
229227 then true
230228 else (num == 4))
231229 then true
232230 else (num == 7))
233231 then true
234232 else (num == 10))
235233 then true
236234 else (num == 13))
237235 then true
238236 else (num == 16))
239237 then true
240238 else (num == 19))
241239 then true
242240 else (num == 22))
243241 then true
244242 else (num == 25))
245243 then true
246244 else (num == 28))
247245 then true
248246 else (num == 31))
249247 then true
250248 else throw("Invalid line move. Game aborted!")
251249
252250
253251 func isColumn (num,column) = if ((column == 1))
254252 then if (if (if (if (if (if (if (if (if (if (if (if ((num == 1))
255253 then true
256254 else (num == 4))
257255 then true
258256 else (num == 7))
259257 then true
260258 else (num == 10))
261259 then true
262260 else (num == 13))
263261 then true
264262 else (num == 16))
265263 then true
266264 else (num == 19))
267265 then true
268266 else (num == 22))
269267 then true
270268 else (num == 25))
271269 then true
272270 else (num == 28))
273271 then true
274272 else (num == 31))
275273 then true
276274 else (num == 34))
277275 then true
278276 else throw("Invalid column 1 move. Game aborted!")
279277 else if ((column == 2))
280278 then if (if (if (if (if (if (if (if (if (if (if (if ((num == 2))
281279 then true
282280 else (num == 5))
283281 then true
284282 else (num == 8))
285283 then true
286284 else (num == 11))
287285 then true
288286 else (num == 14))
289287 then true
290288 else (num == 17))
291289 then true
292290 else (num == 20))
293291 then true
294292 else (num == 23))
295293 then true
296294 else (num == 26))
297295 then true
298296 else (num == 29))
299297 then true
300298 else (num == 32))
301299 then true
302300 else (num == 35))
303301 then true
304302 else throw("Invalid column 2 move. Game aborted!")
305303 else if ((column == 3))
306304 then if (if (if (if (if (if (if (if (if (if (if (if ((num == 3))
307305 then true
308306 else (num == 6))
309307 then true
310308 else (num == 9))
311309 then true
312310 else (num == 12))
313311 then true
314312 else (num == 15))
315313 then true
316314 else (num == 18))
317315 then true
318316 else (num == 21))
319317 then true
320318 else (num == 24))
321319 then true
322320 else (num == 27))
323321 then true
324322 else (num == 30))
325323 then true
326324 else (num == 33))
327325 then true
328326 else (num == 36))
329327 then true
330328 else throw("Invalid column 3 move. Game aborted!")
331329 else throw("Invalid column move. Game aborted!")
332330
333331
334332 func isDozen (num,dozen) = if ((dozen == 1))
335333 then if (if ((num > 0))
336334 then (13 > num)
337335 else false)
338336 then true
339337 else throw("Invalid dozen 1 move. Game aborted!")
340338 else if ((dozen == 2))
341339 then if (if ((num > 12))
342340 then (25 > num)
343341 else false)
344342 then true
345343 else throw("Invalid dozen 2 move. Game aborted!")
346344 else if ((dozen == 3))
347345 then if (if ((num > 24))
348346 then (37 > num)
349347 else false)
350348 then true
351349 else throw("Invalid dozen 3 move. Game aborted!")
352350 else throw("Invalid dozen move. Game aborted!")
353351
354352
355353 func isRed (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 1))
356354 then true
357355 else (num == 3))
358356 then true
359357 else (num == 5))
360358 then true
361359 else (num == 7))
362360 then true
363361 else (num == 9))
364362 then true
365363 else (num == 12))
366364 then true
367365 else (num == 14))
368366 then true
369367 else (num == 16))
370368 then true
371369 else (num == 18))
372370 then true
373371 else (num == 19))
374372 then true
375373 else (num == 21))
376374 then true
377375 else (num == 23))
378376 then true
379377 else (num == 25))
380378 then true
381379 else (num == 27))
382380 then true
383381 else (num == 30))
384382 then true
385383 else (num == 32))
386384 then true
387385 else (num == 34))
388386 then true
389387 else (num == 36))
390388 then true
391389 else throw("Invalid color, expected red color, try again. Game aborted!")
392390
393391
394392 func isBlack (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 2))
395393 then true
396394 else (num == 4))
397395 then true
398396 else (num == 6))
399397 then true
400398 else (num == 8))
401399 then true
402400 else (num == 10))
403401 then true
404402 else (num == 11))
405403 then true
406404 else (num == 13))
407405 then true
408406 else (num == 15))
409407 then true
410408 else (num == 17))
411409 then true
412410 else (num == 20))
413411 then true
414412 else (num == 22))
415413 then true
416414 else (num == 24))
417415 then true
418416 else (num == 26))
419417 then true
420418 else (num == 28))
421419 then true
422420 else (num == 29))
423421 then true
424422 else (num == 31))
425423 then true
426424 else (num == 33))
427425 then true
428426 else (num == 35))
429427 then true
430428 else throw("Invalid color, expected black color, try again. Game aborted!")
431429
432430
433431 func isOdd (num) = if (((num % 2) != 0))
434432 then true
435433 else throw("Invalid move, number is not odd. Game aborted!")
436434
437435
438436 func isEven (num) = if (((num % 2) == 0))
439437 then true
440438 else throw("Invalid move, number is not even. Game aborted!")
441439
442440
443441 func is1to18 (num) = if (if ((num > 0))
444442 then (19 > num)
445443 else false)
446444 then true
447445 else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!")
448446
449447
450448 func is19to36 (num) = if (if ((num > 18))
451449 then (37 > num)
452450 else false)
453451 then true
454452 else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!")
455453
456454
457455 func validateBet (bet) = {
458456 let betContents = split(bet, "_")
459457 let betType = parseIntValue(betContents[0])
460458 let betAmount = parseIntValue(betContents[1])
461459 let betNum1 = parseIntValue(betContents[2])
462460 let betNum2 = parseIntValue(betContents[3])
463461 let betNum3 = parseIntValue(betContents[4])
464- if (is0to36(betNum1))
462+ let t = if (is0to36(betNum1))
465463 then if ((betType == TSPLIT))
466464 then isSplit(betNum1, betNum2, betNum3)
467465 else if ((betType == TSTREET))
468466 then isStreet(betNum1, betNum2)
469467 else if ((betType == TCOLUMN))
470468 then isCorner(betNum1, betNum2)
471469 else if ((betType == TLINE))
472470 then isLine(betNum1)
473471 else if ((betType == TCOLUMN))
474472 then isColumn(betNum1, betNum2)
475473 else if ((betType == TDOZEN))
476474 then isDozen(betNum1, betNum2)
477475 else if ((betType == TRED))
478476 then isRed(betNum1)
479477 else if ((betType == TBLACK))
480478 then isBlack(betNum1)
481479 else if ((betType == TODD))
482480 then isOdd(betNum1)
483481 else if ((betType == TEVEN))
484482 then isEven(betNum1)
485483 else if ((betType == T1TO18))
486484 then is1to18(betNum1)
487485 else if ((betType == T19TO36))
488486 then is19to36(betNum1)
489487 else throw("Invalid bet type, Game aborted!")
490488 else throw("Invalid bet, Game aborted!")
489+ betAmount
491490 }
491+
492+
493+func validateBetsAndGetAmt (bets) = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((validateBet(bets[0]) + validateBet(bets[1])) + validateBet(bets[2])) + validateBet(bets[3])) + validateBet(bets[4])) + validateBet(bets[5])) + validateBet(bets[6])) + validateBet(bets[7])) + validateBet(bets[8])) + validateBet(bets[9])) + validateBet(bets[10])) + validateBet(bets[11])) + validateBet(bets[12])) + validateBet(bets[13])) + validateBet(bets[14])) + validateBet(bets[15])) + validateBet(bets[16])) + validateBet(bets[17])) + validateBet(bets[18])) + validateBet(bets[19])) + validateBet(bets[20])) + validateBet(bets[21])) + validateBet(bets[22])) + validateBet(bets[23])) + validateBet(bets[24])) + validateBet(bets[25])) + validateBet(bets[26])) + validateBet(bets[27])) + validateBet(bets[28])) + validateBet(bets[29])) + validateBet(bets[30])) + validateBet(bets[31])) + validateBet(bets[32])) + validateBet(bets[33])) + validateBet(bets[34])) + validateBet(bets[35])) + validateBet(bets[36])) + validateBet(bets[37])) + validateBet(bets[38])) + validateBet(bets[39])) + validateBet(bets[40])) + validateBet(bets[41])) + validateBet(bets[42])) + validateBet(bets[43])) + validateBet(bets[44])) + validateBet(bets[45])) + validateBet(bets[46])) + validateBet(bets[47])) + validateBet(bets[48])) + validateBet(bets[49])) + validateBet(bets[50])) + validateBet(bets[51])) + validateBet(bets[52])) + validateBet(bets[53])) + validateBet(bets[54])) + validateBet(bets[55])) + validateBet(bets[56])) + validateBet(bets[57])) + validateBet(bets[58])) + validateBet(bets[59])) + validateBet(bets[60])) + validateBet(bets[61])) + validateBet(bets[62])) + validateBet(bets[63])) + validateBet(bets[64])) + validateBet(bets[65])) + validateBet(bets[66])) + validateBet(bets[67])) + validateBet(bets[68])) + validateBet(bets[69])) + validateBet(bets[70])) + validateBet(bets[71])) + validateBet(bets[72])) + validateBet(bets[73])) + validateBet(bets[74])) + validateBet(bets[75])) + validateBet(bets[76])) + validateBet(bets[77])) + validateBet(bets[78])) + validateBet(bets[79])) + validateBet(bets[80])) + validateBet(bets[81])) + validateBet(bets[82])) + validateBet(bets[83])) + validateBet(bets[84]))
492494
493495
494496 func IncrementGameNum () = {
495497 let gameNum = match getInteger(this, GAMESCOUNTERKEY) {
496498 case num: Int =>
497499 num
498500 case _ =>
499501 0
500502 }
501503 (gameNum + 1)
502504 }
503505
504506
505507 @Callable(i)
506-func playRoulette (bets) = {
507- let gameId = toBase58String(i.transactionId)
508- let payment = extract(i.payment)
509- let feeAssetId = isDefined(i.feeAssetId)
510- let gameIdUsed = isDefined(getString(this, gameId))
511- let playerBalance = wavesBalance(i.caller)
512- let betList = split(bets, "|")
513- throw(betList[0])
514- }
508+func playRoulette (bets) = if ((10 > size(bets)))
509+ then throw("poucas letras")
510+ else WriteSet(nil)
515511
516512

github/deemru/w8io/169f3d6 
86.42 ms