tx · FR9MHPyNyzhst1bMcY8W7Cc5E26Y1wXjkgPWTJAsMiwF 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE: -0.05000000 Waves 2019.11.26 05:11 [781615] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves
{ "type": 13, "id": "FR9MHPyNyzhst1bMcY8W7Cc5E26Y1wXjkgPWTJAsMiwF", "fee": 5000000, "feeAssetId": null, "timestamp": 1574734293890, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "oaYuWQt3SKsXGEJyGqbhA4zvPkCA72SarUo9LGv2r4bqoUe7cNKs1ZjEt41UdezZchT5XY4CRcvJ5utw7eA4FDx" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAALQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQgAA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AAIFAAAAD0dBTUVTQ09VTlRFUktFWQUAAAAKbmV3R2FtZU51bQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAAtnYW1lRGF0YVN0cgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADldBTExFVFdBVkVTQkVUCQAAawAAAAMIBQAAAAdwYXltZW50AAAABmFtb3VudAUAAAALRkVFV0FWRVNCRVQAAAAAAAAAAGQFAAAABFdCRVQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAMV0FMTEVUTUNBRkVFCQAAawAAAAMIBQAAAAdwYXltZW50AAAABmFtb3VudAUAAAAJRkVFTUNBRkVFAAAAAAAAAABkBQAAAARXQkVUBQAAAANuaWwAAAAAQ6Y1zA==", "chainId": 84, "height": 781615, "spentComplexity": 0 } View: original | compacted Prev: E1GTgFtd4r6QnUuikU2gZoJwVLWzZ5N8bLEWfx316X4s Next: 6gYp51dVNXQ8pkxbn82hGwRKrgUKVqVRSxNKsbcXRhxT Diff:
Old | New | Differences | |
---|---|---|---|
460 | 460 | let betNum1 = parseIntValue(betContents[2]) | |
461 | 461 | let betNum2 = parseIntValue(betContents[3]) | |
462 | 462 | let betNum3 = parseIntValue(betContents[4]) | |
463 | - | let t = if (is0to36(betNum1)) | |
463 | + | let t = if (if (is0to36(betNum1)) | |
464 | + | then true | |
465 | + | else (size(betContents) != 5)) | |
464 | 466 | then if ((betType == TSPLIT)) | |
465 | 467 | then isSplit(betNum1, betNum2, betNum3) | |
466 | 468 | else if ((betType == TSTREET)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | 10 | let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
11 | 11 | ||
12 | 12 | let WALLETWAVESBET = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
13 | 13 | ||
14 | 14 | let WALLETMCAFEE = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
15 | 15 | ||
16 | 16 | let WAVELET = 100000000 | |
17 | 17 | ||
18 | 18 | let FEEWAVESBET = 4 | |
19 | 19 | ||
20 | 20 | let FEEMCAFEE = 2 | |
21 | 21 | ||
22 | 22 | let STATESUBMITTED = "SUBMITTED" | |
23 | 23 | ||
24 | 24 | let STATEWON = "WON" | |
25 | 25 | ||
26 | 26 | let STATELOST = "LOST" | |
27 | 27 | ||
28 | 28 | let BETMIN = (1 * WAVELET) | |
29 | 29 | ||
30 | 30 | let BETMAX = (20000000 * WAVELET) | |
31 | 31 | ||
32 | 32 | let TSTRAIGHT = 1 | |
33 | 33 | ||
34 | 34 | let TSPLIT = 2 | |
35 | 35 | ||
36 | 36 | let TSTREET = 3 | |
37 | 37 | ||
38 | 38 | let TCORNER = 4 | |
39 | 39 | ||
40 | 40 | let TLINE = 5 | |
41 | 41 | ||
42 | 42 | let TCOLUMN = 6 | |
43 | 43 | ||
44 | 44 | let TDOZEN = 7 | |
45 | 45 | ||
46 | 46 | let TRED = 8 | |
47 | 47 | ||
48 | 48 | let TBLACK = 9 | |
49 | 49 | ||
50 | 50 | let TODD = 10 | |
51 | 51 | ||
52 | 52 | let TEVEN = 11 | |
53 | 53 | ||
54 | 54 | let T1TO18 = 12 | |
55 | 55 | ||
56 | 56 | let T19TO36 = 13 | |
57 | 57 | ||
58 | 58 | let HORIZONTAL = 1 | |
59 | 59 | ||
60 | 60 | let VERTICAL = 2 | |
61 | 61 | ||
62 | 62 | func is0to36 (num) = if (if ((num >= 0)) | |
63 | 63 | then (37 > num) | |
64 | 64 | else false) | |
65 | 65 | then true | |
66 | 66 | else throw("Invalid range, try between 0 and 36. Game aborted!") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func isSplit (num1,num2,direction) = if ((direction == HORIZONTAL)) | |
70 | 70 | then if (if (if (if (if ((num1 > 0)) | |
71 | 71 | then (34 > num1) | |
72 | 72 | else false) | |
73 | 73 | then true | |
74 | 74 | else if ((num1 == 0)) | |
75 | 75 | then (num2 == 1) | |
76 | 76 | else false) | |
77 | 77 | then true | |
78 | 78 | else if ((num1 == 0)) | |
79 | 79 | then (num2 == 2) | |
80 | 80 | else false) | |
81 | 81 | then true | |
82 | 82 | else if ((num1 == 0)) | |
83 | 83 | then (num2 == 3) | |
84 | 84 | else false) | |
85 | 85 | then true | |
86 | 86 | else throw("Invalid hotizontal split move. Game aborted!") | |
87 | 87 | else if ((direction == VERTICAL)) | |
88 | 88 | 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)) | |
89 | 89 | then true | |
90 | 90 | else (num1 == 2)) | |
91 | 91 | then true | |
92 | 92 | else (num1 == 4)) | |
93 | 93 | then true | |
94 | 94 | else (num1 == 5)) | |
95 | 95 | then true | |
96 | 96 | else (num1 == 7)) | |
97 | 97 | then true | |
98 | 98 | else (num1 == 8)) | |
99 | 99 | then true | |
100 | 100 | else (num1 == 10)) | |
101 | 101 | then true | |
102 | 102 | else (num1 == 11)) | |
103 | 103 | then true | |
104 | 104 | else (num1 == 13)) | |
105 | 105 | then true | |
106 | 106 | else (num1 == 14)) | |
107 | 107 | then true | |
108 | 108 | else (num1 == 16)) | |
109 | 109 | then true | |
110 | 110 | else (num1 == 17)) | |
111 | 111 | then true | |
112 | 112 | else (num1 == 19)) | |
113 | 113 | then true | |
114 | 114 | else (num1 == 20)) | |
115 | 115 | then true | |
116 | 116 | else (num1 == 22)) | |
117 | 117 | then true | |
118 | 118 | else (num1 == 23)) | |
119 | 119 | then true | |
120 | 120 | else (num1 == 25)) | |
121 | 121 | then true | |
122 | 122 | else (num1 == 26)) | |
123 | 123 | then true | |
124 | 124 | else (num1 == 28)) | |
125 | 125 | then true | |
126 | 126 | else (num1 == 29)) | |
127 | 127 | then true | |
128 | 128 | else (num1 == 31)) | |
129 | 129 | then true | |
130 | 130 | else (num1 == 32)) | |
131 | 131 | then true | |
132 | 132 | else (num1 == 34)) | |
133 | 133 | then true | |
134 | 134 | else (num1 == 35)) | |
135 | 135 | then true | |
136 | 136 | else throw("Invalid vertical split move. Game aborted!") | |
137 | 137 | else throw("Invalid split move. Game aborted!") | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func isStreet (num1,num2) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num1 == 1)) | |
141 | 141 | then true | |
142 | 142 | else (num1 == 4)) | |
143 | 143 | then true | |
144 | 144 | else (num1 == 7)) | |
145 | 145 | then true | |
146 | 146 | else (num1 == 10)) | |
147 | 147 | then true | |
148 | 148 | else (num1 == 13)) | |
149 | 149 | then true | |
150 | 150 | else (num1 == 16)) | |
151 | 151 | then true | |
152 | 152 | else (num1 == 19)) | |
153 | 153 | then true | |
154 | 154 | else (num1 == 22)) | |
155 | 155 | then true | |
156 | 156 | else (num1 == 25)) | |
157 | 157 | then true | |
158 | 158 | else (num1 == 28)) | |
159 | 159 | then true | |
160 | 160 | else (num1 == 31)) | |
161 | 161 | then true | |
162 | 162 | else (num1 == 34)) | |
163 | 163 | then true | |
164 | 164 | else if ((num1 == 0)) | |
165 | 165 | then (num2 == 1) | |
166 | 166 | else false) | |
167 | 167 | then true | |
168 | 168 | else if ((num1 == 0)) | |
169 | 169 | then (num2 == 3) | |
170 | 170 | else false) | |
171 | 171 | then true | |
172 | 172 | else throw("Invalid street move. Game aborted!") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | 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)) | |
176 | 176 | then true | |
177 | 177 | else (num1 == 2)) | |
178 | 178 | then true | |
179 | 179 | else (num1 == 4)) | |
180 | 180 | then true | |
181 | 181 | else (num1 == 5)) | |
182 | 182 | then true | |
183 | 183 | else (num1 == 7)) | |
184 | 184 | then true | |
185 | 185 | else (num1 == 8)) | |
186 | 186 | then true | |
187 | 187 | else (num1 == 10)) | |
188 | 188 | then true | |
189 | 189 | else (num1 == 11)) | |
190 | 190 | then true | |
191 | 191 | else (num1 == 13)) | |
192 | 192 | then true | |
193 | 193 | else (num1 == 14)) | |
194 | 194 | then true | |
195 | 195 | else (num1 == 16)) | |
196 | 196 | then true | |
197 | 197 | else (num1 == 17)) | |
198 | 198 | then true | |
199 | 199 | else (num1 == 19)) | |
200 | 200 | then true | |
201 | 201 | else (num1 == 20)) | |
202 | 202 | then true | |
203 | 203 | else (num1 == 22)) | |
204 | 204 | then true | |
205 | 205 | else (num1 == 23)) | |
206 | 206 | then true | |
207 | 207 | else (num1 == 25)) | |
208 | 208 | then true | |
209 | 209 | else (num1 == 26)) | |
210 | 210 | then true | |
211 | 211 | else (num1 == 28)) | |
212 | 212 | then true | |
213 | 213 | else (num1 == 29)) | |
214 | 214 | then true | |
215 | 215 | else (num1 == 31)) | |
216 | 216 | then true | |
217 | 217 | else (num1 == 32)) | |
218 | 218 | then true | |
219 | 219 | else if ((num1 == 0)) | |
220 | 220 | then (num2 == 1) | |
221 | 221 | else false) | |
222 | 222 | then true | |
223 | 223 | else throw("Invalid corner move. Game aborted!") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func isLine (num) = if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
227 | 227 | then true | |
228 | 228 | else (num == 4)) | |
229 | 229 | then true | |
230 | 230 | else (num == 7)) | |
231 | 231 | then true | |
232 | 232 | else (num == 10)) | |
233 | 233 | then true | |
234 | 234 | else (num == 13)) | |
235 | 235 | then true | |
236 | 236 | else (num == 16)) | |
237 | 237 | then true | |
238 | 238 | else (num == 19)) | |
239 | 239 | then true | |
240 | 240 | else (num == 22)) | |
241 | 241 | then true | |
242 | 242 | else (num == 25)) | |
243 | 243 | then true | |
244 | 244 | else (num == 28)) | |
245 | 245 | then true | |
246 | 246 | else (num == 31)) | |
247 | 247 | then true | |
248 | 248 | else throw("Invalid line move. Game aborted!") | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func isColumn (num,column) = if ((column == 1)) | |
252 | 252 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
253 | 253 | then true | |
254 | 254 | else (num == 4)) | |
255 | 255 | then true | |
256 | 256 | else (num == 7)) | |
257 | 257 | then true | |
258 | 258 | else (num == 10)) | |
259 | 259 | then true | |
260 | 260 | else (num == 13)) | |
261 | 261 | then true | |
262 | 262 | else (num == 16)) | |
263 | 263 | then true | |
264 | 264 | else (num == 19)) | |
265 | 265 | then true | |
266 | 266 | else (num == 22)) | |
267 | 267 | then true | |
268 | 268 | else (num == 25)) | |
269 | 269 | then true | |
270 | 270 | else (num == 28)) | |
271 | 271 | then true | |
272 | 272 | else (num == 31)) | |
273 | 273 | then true | |
274 | 274 | else (num == 34)) | |
275 | 275 | then true | |
276 | 276 | else throw("Invalid column 1 move. Game aborted!") | |
277 | 277 | else if ((column == 2)) | |
278 | 278 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 2)) | |
279 | 279 | then true | |
280 | 280 | else (num == 5)) | |
281 | 281 | then true | |
282 | 282 | else (num == 8)) | |
283 | 283 | then true | |
284 | 284 | else (num == 11)) | |
285 | 285 | then true | |
286 | 286 | else (num == 14)) | |
287 | 287 | then true | |
288 | 288 | else (num == 17)) | |
289 | 289 | then true | |
290 | 290 | else (num == 20)) | |
291 | 291 | then true | |
292 | 292 | else (num == 23)) | |
293 | 293 | then true | |
294 | 294 | else (num == 26)) | |
295 | 295 | then true | |
296 | 296 | else (num == 29)) | |
297 | 297 | then true | |
298 | 298 | else (num == 32)) | |
299 | 299 | then true | |
300 | 300 | else (num == 35)) | |
301 | 301 | then true | |
302 | 302 | else throw("Invalid column 2 move. Game aborted!") | |
303 | 303 | else if ((column == 3)) | |
304 | 304 | then if (if (if (if (if (if (if (if (if (if (if (if ((num == 3)) | |
305 | 305 | then true | |
306 | 306 | else (num == 6)) | |
307 | 307 | then true | |
308 | 308 | else (num == 9)) | |
309 | 309 | then true | |
310 | 310 | else (num == 12)) | |
311 | 311 | then true | |
312 | 312 | else (num == 15)) | |
313 | 313 | then true | |
314 | 314 | else (num == 18)) | |
315 | 315 | then true | |
316 | 316 | else (num == 21)) | |
317 | 317 | then true | |
318 | 318 | else (num == 24)) | |
319 | 319 | then true | |
320 | 320 | else (num == 27)) | |
321 | 321 | then true | |
322 | 322 | else (num == 30)) | |
323 | 323 | then true | |
324 | 324 | else (num == 33)) | |
325 | 325 | then true | |
326 | 326 | else (num == 36)) | |
327 | 327 | then true | |
328 | 328 | else throw("Invalid column 3 move. Game aborted!") | |
329 | 329 | else throw("Invalid column move. Game aborted!") | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func isDozen (num,dozen) = if ((dozen == 1)) | |
333 | 333 | then if (if ((num > 0)) | |
334 | 334 | then (13 > num) | |
335 | 335 | else false) | |
336 | 336 | then true | |
337 | 337 | else throw("Invalid dozen 1 move. Game aborted!") | |
338 | 338 | else if ((dozen == 2)) | |
339 | 339 | then if (if ((num > 12)) | |
340 | 340 | then (25 > num) | |
341 | 341 | else false) | |
342 | 342 | then true | |
343 | 343 | else throw("Invalid dozen 2 move. Game aborted!") | |
344 | 344 | else if ((dozen == 3)) | |
345 | 345 | then if (if ((num > 24)) | |
346 | 346 | then (37 > num) | |
347 | 347 | else false) | |
348 | 348 | then true | |
349 | 349 | else throw("Invalid dozen 3 move. Game aborted!") | |
350 | 350 | else throw("Invalid dozen move. Game aborted!") | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func isRed (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 1)) | |
354 | 354 | then true | |
355 | 355 | else (num == 3)) | |
356 | 356 | then true | |
357 | 357 | else (num == 5)) | |
358 | 358 | then true | |
359 | 359 | else (num == 7)) | |
360 | 360 | then true | |
361 | 361 | else (num == 9)) | |
362 | 362 | then true | |
363 | 363 | else (num == 12)) | |
364 | 364 | then true | |
365 | 365 | else (num == 14)) | |
366 | 366 | then true | |
367 | 367 | else (num == 16)) | |
368 | 368 | then true | |
369 | 369 | else (num == 18)) | |
370 | 370 | then true | |
371 | 371 | else (num == 19)) | |
372 | 372 | then true | |
373 | 373 | else (num == 21)) | |
374 | 374 | then true | |
375 | 375 | else (num == 23)) | |
376 | 376 | then true | |
377 | 377 | else (num == 25)) | |
378 | 378 | then true | |
379 | 379 | else (num == 27)) | |
380 | 380 | then true | |
381 | 381 | else (num == 30)) | |
382 | 382 | then true | |
383 | 383 | else (num == 32)) | |
384 | 384 | then true | |
385 | 385 | else (num == 34)) | |
386 | 386 | then true | |
387 | 387 | else (num == 36)) | |
388 | 388 | then true | |
389 | 389 | else throw("Invalid color, expected red color, try again. Game aborted!") | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func isBlack (num) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((num == 2)) | |
393 | 393 | then true | |
394 | 394 | else (num == 4)) | |
395 | 395 | then true | |
396 | 396 | else (num == 6)) | |
397 | 397 | then true | |
398 | 398 | else (num == 8)) | |
399 | 399 | then true | |
400 | 400 | else (num == 10)) | |
401 | 401 | then true | |
402 | 402 | else (num == 11)) | |
403 | 403 | then true | |
404 | 404 | else (num == 13)) | |
405 | 405 | then true | |
406 | 406 | else (num == 15)) | |
407 | 407 | then true | |
408 | 408 | else (num == 17)) | |
409 | 409 | then true | |
410 | 410 | else (num == 20)) | |
411 | 411 | then true | |
412 | 412 | else (num == 22)) | |
413 | 413 | then true | |
414 | 414 | else (num == 24)) | |
415 | 415 | then true | |
416 | 416 | else (num == 26)) | |
417 | 417 | then true | |
418 | 418 | else (num == 28)) | |
419 | 419 | then true | |
420 | 420 | else (num == 29)) | |
421 | 421 | then true | |
422 | 422 | else (num == 31)) | |
423 | 423 | then true | |
424 | 424 | else (num == 33)) | |
425 | 425 | then true | |
426 | 426 | else (num == 35)) | |
427 | 427 | then true | |
428 | 428 | else throw("Invalid color, expected black color, try again. Game aborted!") | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func isOdd (num) = if (((num % 2) != 0)) | |
432 | 432 | then true | |
433 | 433 | else throw("Invalid move, number is not odd. Game aborted!") | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func isEven (num) = if (((num % 2) == 0)) | |
437 | 437 | then true | |
438 | 438 | else throw("Invalid move, number is not even. Game aborted!") | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | func is1to18 (num) = if (if ((num > 0)) | |
442 | 442 | then (19 > num) | |
443 | 443 | else false) | |
444 | 444 | then true | |
445 | 445 | else throw("Invalid range for 1to18, try between 1 and 18. Game aborted!") | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func is19to36 (num) = if (if ((num > 18)) | |
449 | 449 | then (37 > num) | |
450 | 450 | else false) | |
451 | 451 | then true | |
452 | 452 | else throw("Invalid range for 19to36, try between 1 and 18. Game aborted!") | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func validateBet (bet) = if ((size(bet) > 10)) | |
456 | 456 | then { | |
457 | 457 | let betContents = split(bet, "_") | |
458 | 458 | let betType = parseIntValue(betContents[0]) | |
459 | 459 | let betAmount = parseIntValue(betContents[1]) | |
460 | 460 | let betNum1 = parseIntValue(betContents[2]) | |
461 | 461 | let betNum2 = parseIntValue(betContents[3]) | |
462 | 462 | let betNum3 = parseIntValue(betContents[4]) | |
463 | - | let t = if (is0to36(betNum1)) | |
463 | + | let t = if (if (is0to36(betNum1)) | |
464 | + | then true | |
465 | + | else (size(betContents) != 5)) | |
464 | 466 | then if ((betType == TSPLIT)) | |
465 | 467 | then isSplit(betNum1, betNum2, betNum3) | |
466 | 468 | else if ((betType == TSTREET)) | |
467 | 469 | then isStreet(betNum1, betNum2) | |
468 | 470 | else if ((betType == TCOLUMN)) | |
469 | 471 | then isCorner(betNum1, betNum2) | |
470 | 472 | else if ((betType == TLINE)) | |
471 | 473 | then isLine(betNum1) | |
472 | 474 | else if ((betType == TCOLUMN)) | |
473 | 475 | then isColumn(betNum1, betNum2) | |
474 | 476 | else if ((betType == TDOZEN)) | |
475 | 477 | then isDozen(betNum1, betNum2) | |
476 | 478 | else if ((betType == TRED)) | |
477 | 479 | then isRed(betNum1) | |
478 | 480 | else if ((betType == TBLACK)) | |
479 | 481 | then isBlack(betNum1) | |
480 | 482 | else if ((betType == TODD)) | |
481 | 483 | then isOdd(betNum1) | |
482 | 484 | else if ((betType == TEVEN)) | |
483 | 485 | then isEven(betNum1) | |
484 | 486 | else if ((betType == T1TO18)) | |
485 | 487 | then is1to18(betNum1) | |
486 | 488 | else if ((betType == T19TO36)) | |
487 | 489 | then is19to36(betNum1) | |
488 | 490 | else throw("Invalid bet type, Game aborted!") | |
489 | 491 | else throw("Invalid bet, Game aborted!") | |
490 | 492 | betAmount | |
491 | 493 | } | |
492 | 494 | else 0 | |
493 | 495 | ||
494 | 496 | ||
495 | 497 | 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])) | |
496 | 498 | ||
497 | 499 | ||
498 | 500 | func IncrementGameNum () = { | |
499 | 501 | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
500 | 502 | case num: Int => | |
501 | 503 | num | |
502 | 504 | case _ => | |
503 | 505 | 0 | |
504 | 506 | } | |
505 | 507 | (gameNum + 1) | |
506 | 508 | } | |
507 | 509 | ||
508 | 510 | ||
509 | 511 | @Callable(i) | |
510 | 512 | func playRoulette (bets) = { | |
511 | 513 | let gameId = toBase58String(i.transactionId) | |
512 | 514 | let payment = extract(i.payment) | |
513 | 515 | let feeAssetId = isDefined(i.feeAssetId) | |
514 | 516 | let gameIdUsed = isDefined(getString(this, gameId)) | |
515 | 517 | let playerBalance = wavesBalance(i.caller) | |
516 | 518 | let betList = split(bets, "|") | |
517 | 519 | if ((payment.assetId != WBET)) | |
518 | 520 | then throw("Payment should be in WBET. Game aborted.") | |
519 | 521 | else if ((1000000 > playerBalance)) | |
520 | 522 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
521 | 523 | else if (feeAssetId) | |
522 | 524 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
523 | 525 | else if (gameIdUsed) | |
524 | 526 | then throw("Passed gameId had been used before. Game aborted.") | |
525 | 527 | else if ((10 > size(bets))) | |
526 | 528 | then throw("No valid bets. Game aborted.") | |
527 | 529 | else { | |
528 | 530 | let p = validateBetsAndGetAmt(betList) | |
529 | 531 | let newGameNum = IncrementGameNum() | |
530 | 532 | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
531 | 533 | let gameDataStr = ((STATESUBMITTED + "-") + bets) | |
532 | 534 | ScriptResult(WriteSet([DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet([ScriptTransfer(WALLETWAVESBET, fraction(payment.amount, FEEWAVESBET, 100), WBET), ScriptTransfer(WALLETMCAFEE, fraction(payment.amount, FEEMCAFEE, 100), WBET)])) | |
533 | 535 | } | |
534 | 536 | } | |
535 | 537 | ||
536 | 538 |
github/deemru/w8io/026f985 83.42 ms ◑