tx · 27iB7CLFSyPwVbknxscdvESvQ1cjNzUYQsc27mFn52Vp 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE: -0.05000000 Waves 2019.11.26 05:14 [781618] smart account 3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE > SELF 0.00000000 Waves
{ "type": 13, "id": "27iB7CLFSyPwVbknxscdvESvQ1cjNzUYQsc27mFn52Vp", "fee": 5000000, "feeAssetId": null, "timestamp": 1574734457618, "version": 1, "sender": "3NA7cHZ9oBicev5AEn3BidRAyitA3HdjRbE", "senderPublicKey": "FEmBffz5oKcY5pLrHbwcj8jxovWVvTYCeNRzNT6uHBJc", "proofs": [ "vRrtA3UuGsYu5DJNUL5GLbZqGGG2PUp5ERKi6EmA2cVUmmou3gjiAbRiVSL4aqmV1CkS8ijL581xh2c925F15Qa" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAALQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFBQgAAAAAPR0FN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AAPY2FsbGVyUHVibGljS2V5BAAAAAtnYW1lRGF0YVN0cgkAASwAAAACCQABLAAAAAIFAAAADlNUQVRFU1VCTUlUVEVEAgAAAAEtBQAAAARiZXRzCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAPR0FNRVNDT1VOVEVSS0VZBQAAAApuZXdHYW1lTnVtCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZnYW1lSWQFAAAAC2dhbWVEYXRhU3RyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAOV0FMTEVUV0FWRVNCRVQJAABrAAAAAwgFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAtGRUVXQVZFU0JFVAAAAAAAAAAAZAUAAAAEV0JFVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxXQUxMRVRNQ0FGRUUJAABrAAAAAwgFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAlGRUVNQ0FGRUUAAAAAAAAAAGQFAAAABFdCRVQFAAAAA25pbAAAAAARwPjj", "chainId": 84, "height": 781618, "spentComplexity": 0 } View: original | compacted Prev: 6gYp51dVNXQ8pkxbn82hGwRKrgUKVqVRSxNKsbcXRhxT Next: 7tCJuioLJyUqCUaZFmTxUh7DRNfFspwgcKqDrcDLCGCR Diff:
Old | New | Differences | |
---|---|---|---|
460 | 460 | let ab = parseIntValue(Y[2]) | |
461 | 461 | let ac = parseIntValue(Y[3]) | |
462 | 462 | let ad = parseIntValue(Y[4]) | |
463 | - | | |
464 | - | then (size(Y) | |
463 | + | if (if (D(ab)) | |
464 | + | then (size(Y) == 5) | |
465 | 465 | else false) | |
466 | 466 | then if ((Z == p)) | |
467 | 467 | then F(ab, ac, ad) | |
489 | 489 | then V(ab) | |
490 | 490 | else throw("Invalid bet type, Game aborted!") | |
491 | 491 | else throw("Invalid bet, Game aborted!") | |
492 | - | aa | |
493 | 492 | } | |
494 | 493 | else 0 | |
495 | 494 | ||
496 | 495 | ||
497 | - | func | |
496 | + | func ae (af) = throw(af[0]) | |
498 | 497 | ||
499 | 498 | ||
500 | - | func | |
501 | - | let | |
502 | - | let | |
503 | - | if ($isInstanceOf( | |
499 | + | func ag () = { | |
500 | + | let ah = { | |
501 | + | let ai = getInteger(this, b) | |
502 | + | if ($isInstanceOf(ai, "Int")) | |
504 | 503 | then { | |
505 | - | let E = | |
504 | + | let E = ai | |
506 | 505 | E | |
507 | 506 | } | |
508 | 507 | else 0 | |
509 | 508 | } | |
510 | - | ( | |
509 | + | (ah + 1) | |
511 | 510 | } | |
512 | 511 | ||
513 | 512 | ||
514 | - | @Callable( | |
515 | - | func playRoulette ( | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
513 | + | @Callable(aj) | |
514 | + | func playRoulette (af) = { | |
515 | + | let ak = toBase58String(aj.transactionId) | |
516 | + | let al = extract(aj.payment) | |
517 | + | let am = isDefined(aj.feeAssetId) | |
518 | + | let an = isDefined(getString(this, ak)) | |
519 | + | let ao = wavesBalance(aj.caller) | |
520 | + | let ap = split(af, "|") | |
521 | + | if ((al.assetId != d)) | |
523 | 522 | then throw("Payment should be in WBET. Game aborted.") | |
524 | - | else if ((1000000 > | |
523 | + | else if ((1000000 > ao)) | |
525 | 524 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
526 | - | else if ( | |
525 | + | else if (am) | |
527 | 526 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
528 | - | else if ( | |
527 | + | else if (an) | |
529 | 528 | then throw("Passed gameId had been used before. Game aborted.") | |
530 | - | else if ((10 > size( | |
529 | + | else if ((10 > size(af))) | |
531 | 530 | then throw("No valid bets. Game aborted.") | |
532 | 531 | else { | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | ScriptResult(WriteSet([DataEntry(b, | |
532 | + | let aq = ae(ap) | |
533 | + | let ar = ag() | |
534 | + | let as = toBase58String(aj.callerPublicKey) | |
535 | + | let at = ((j + "-") + af) | |
536 | + | ScriptResult(WriteSet([DataEntry(b, ar), DataEntry(ak, at)]), TransferSet([ScriptTransfer(e, fraction(al.amount, h, 100), d), ScriptTransfer(f, fraction(al.amount, i, 100), d)])) | |
538 | 537 | } | |
539 | 538 | } | |
540 | 539 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let b = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let c = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | 10 | let d = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
11 | 11 | ||
12 | 12 | let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
13 | 13 | ||
14 | 14 | let f = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
15 | 15 | ||
16 | 16 | let g = 100000000 | |
17 | 17 | ||
18 | 18 | let h = 4 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = "SUBMITTED" | |
23 | 23 | ||
24 | 24 | let k = "WON" | |
25 | 25 | ||
26 | 26 | let l = "LOST" | |
27 | 27 | ||
28 | 28 | let m = (1 * g) | |
29 | 29 | ||
30 | 30 | let n = (20000000 * g) | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 11 | |
53 | 53 | ||
54 | 54 | let z = 12 | |
55 | 55 | ||
56 | 56 | let A = 13 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 2 | |
61 | 61 | ||
62 | 62 | func D (E) = if (if ((E >= 0)) | |
63 | 63 | then (37 > E) | |
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 F (G,H,I) = if ((I == B)) | |
70 | 70 | then if (if (if (if (if ((G > 0)) | |
71 | 71 | then (34 > G) | |
72 | 72 | else false) | |
73 | 73 | then true | |
74 | 74 | else if ((G == 0)) | |
75 | 75 | then (H == 1) | |
76 | 76 | else false) | |
77 | 77 | then true | |
78 | 78 | else if ((G == 0)) | |
79 | 79 | then (H == 2) | |
80 | 80 | else false) | |
81 | 81 | then true | |
82 | 82 | else if ((G == 0)) | |
83 | 83 | then (H == 3) | |
84 | 84 | else false) | |
85 | 85 | then true | |
86 | 86 | else throw("Invalid hotizontal split move. Game aborted!") | |
87 | 87 | else if ((I == C)) | |
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 ((G == 1)) | |
89 | 89 | then true | |
90 | 90 | else (G == 2)) | |
91 | 91 | then true | |
92 | 92 | else (G == 4)) | |
93 | 93 | then true | |
94 | 94 | else (G == 5)) | |
95 | 95 | then true | |
96 | 96 | else (G == 7)) | |
97 | 97 | then true | |
98 | 98 | else (G == 8)) | |
99 | 99 | then true | |
100 | 100 | else (G == 10)) | |
101 | 101 | then true | |
102 | 102 | else (G == 11)) | |
103 | 103 | then true | |
104 | 104 | else (G == 13)) | |
105 | 105 | then true | |
106 | 106 | else (G == 14)) | |
107 | 107 | then true | |
108 | 108 | else (G == 16)) | |
109 | 109 | then true | |
110 | 110 | else (G == 17)) | |
111 | 111 | then true | |
112 | 112 | else (G == 19)) | |
113 | 113 | then true | |
114 | 114 | else (G == 20)) | |
115 | 115 | then true | |
116 | 116 | else (G == 22)) | |
117 | 117 | then true | |
118 | 118 | else (G == 23)) | |
119 | 119 | then true | |
120 | 120 | else (G == 25)) | |
121 | 121 | then true | |
122 | 122 | else (G == 26)) | |
123 | 123 | then true | |
124 | 124 | else (G == 28)) | |
125 | 125 | then true | |
126 | 126 | else (G == 29)) | |
127 | 127 | then true | |
128 | 128 | else (G == 31)) | |
129 | 129 | then true | |
130 | 130 | else (G == 32)) | |
131 | 131 | then true | |
132 | 132 | else (G == 34)) | |
133 | 133 | then true | |
134 | 134 | else (G == 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 J (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1)) | |
141 | 141 | then true | |
142 | 142 | else (G == 4)) | |
143 | 143 | then true | |
144 | 144 | else (G == 7)) | |
145 | 145 | then true | |
146 | 146 | else (G == 10)) | |
147 | 147 | then true | |
148 | 148 | else (G == 13)) | |
149 | 149 | then true | |
150 | 150 | else (G == 16)) | |
151 | 151 | then true | |
152 | 152 | else (G == 19)) | |
153 | 153 | then true | |
154 | 154 | else (G == 22)) | |
155 | 155 | then true | |
156 | 156 | else (G == 25)) | |
157 | 157 | then true | |
158 | 158 | else (G == 28)) | |
159 | 159 | then true | |
160 | 160 | else (G == 31)) | |
161 | 161 | then true | |
162 | 162 | else (G == 34)) | |
163 | 163 | then true | |
164 | 164 | else if ((G == 0)) | |
165 | 165 | then (H == 1) | |
166 | 166 | else false) | |
167 | 167 | then true | |
168 | 168 | else if ((G == 0)) | |
169 | 169 | then (H == 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 K (G,H) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((G == 1)) | |
176 | 176 | then true | |
177 | 177 | else (G == 2)) | |
178 | 178 | then true | |
179 | 179 | else (G == 4)) | |
180 | 180 | then true | |
181 | 181 | else (G == 5)) | |
182 | 182 | then true | |
183 | 183 | else (G == 7)) | |
184 | 184 | then true | |
185 | 185 | else (G == 8)) | |
186 | 186 | then true | |
187 | 187 | else (G == 10)) | |
188 | 188 | then true | |
189 | 189 | else (G == 11)) | |
190 | 190 | then true | |
191 | 191 | else (G == 13)) | |
192 | 192 | then true | |
193 | 193 | else (G == 14)) | |
194 | 194 | then true | |
195 | 195 | else (G == 16)) | |
196 | 196 | then true | |
197 | 197 | else (G == 17)) | |
198 | 198 | then true | |
199 | 199 | else (G == 19)) | |
200 | 200 | then true | |
201 | 201 | else (G == 20)) | |
202 | 202 | then true | |
203 | 203 | else (G == 22)) | |
204 | 204 | then true | |
205 | 205 | else (G == 23)) | |
206 | 206 | then true | |
207 | 207 | else (G == 25)) | |
208 | 208 | then true | |
209 | 209 | else (G == 26)) | |
210 | 210 | then true | |
211 | 211 | else (G == 28)) | |
212 | 212 | then true | |
213 | 213 | else (G == 29)) | |
214 | 214 | then true | |
215 | 215 | else (G == 31)) | |
216 | 216 | then true | |
217 | 217 | else (G == 32)) | |
218 | 218 | then true | |
219 | 219 | else if ((G == 0)) | |
220 | 220 | then (H == 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 L (E) = if (if (if (if (if (if (if (if (if (if (if ((E == 1)) | |
227 | 227 | then true | |
228 | 228 | else (E == 4)) | |
229 | 229 | then true | |
230 | 230 | else (E == 7)) | |
231 | 231 | then true | |
232 | 232 | else (E == 10)) | |
233 | 233 | then true | |
234 | 234 | else (E == 13)) | |
235 | 235 | then true | |
236 | 236 | else (E == 16)) | |
237 | 237 | then true | |
238 | 238 | else (E == 19)) | |
239 | 239 | then true | |
240 | 240 | else (E == 22)) | |
241 | 241 | then true | |
242 | 242 | else (E == 25)) | |
243 | 243 | then true | |
244 | 244 | else (E == 28)) | |
245 | 245 | then true | |
246 | 246 | else (E == 31)) | |
247 | 247 | then true | |
248 | 248 | else throw("Invalid line move. Game aborted!") | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func M (E,N) = if ((N == 1)) | |
252 | 252 | then if (if (if (if (if (if (if (if (if (if (if (if ((E == 1)) | |
253 | 253 | then true | |
254 | 254 | else (E == 4)) | |
255 | 255 | then true | |
256 | 256 | else (E == 7)) | |
257 | 257 | then true | |
258 | 258 | else (E == 10)) | |
259 | 259 | then true | |
260 | 260 | else (E == 13)) | |
261 | 261 | then true | |
262 | 262 | else (E == 16)) | |
263 | 263 | then true | |
264 | 264 | else (E == 19)) | |
265 | 265 | then true | |
266 | 266 | else (E == 22)) | |
267 | 267 | then true | |
268 | 268 | else (E == 25)) | |
269 | 269 | then true | |
270 | 270 | else (E == 28)) | |
271 | 271 | then true | |
272 | 272 | else (E == 31)) | |
273 | 273 | then true | |
274 | 274 | else (E == 34)) | |
275 | 275 | then true | |
276 | 276 | else throw("Invalid column 1 move. Game aborted!") | |
277 | 277 | else if ((N == 2)) | |
278 | 278 | then if (if (if (if (if (if (if (if (if (if (if (if ((E == 2)) | |
279 | 279 | then true | |
280 | 280 | else (E == 5)) | |
281 | 281 | then true | |
282 | 282 | else (E == 8)) | |
283 | 283 | then true | |
284 | 284 | else (E == 11)) | |
285 | 285 | then true | |
286 | 286 | else (E == 14)) | |
287 | 287 | then true | |
288 | 288 | else (E == 17)) | |
289 | 289 | then true | |
290 | 290 | else (E == 20)) | |
291 | 291 | then true | |
292 | 292 | else (E == 23)) | |
293 | 293 | then true | |
294 | 294 | else (E == 26)) | |
295 | 295 | then true | |
296 | 296 | else (E == 29)) | |
297 | 297 | then true | |
298 | 298 | else (E == 32)) | |
299 | 299 | then true | |
300 | 300 | else (E == 35)) | |
301 | 301 | then true | |
302 | 302 | else throw("Invalid column 2 move. Game aborted!") | |
303 | 303 | else if ((N == 3)) | |
304 | 304 | then if (if (if (if (if (if (if (if (if (if (if (if ((E == 3)) | |
305 | 305 | then true | |
306 | 306 | else (E == 6)) | |
307 | 307 | then true | |
308 | 308 | else (E == 9)) | |
309 | 309 | then true | |
310 | 310 | else (E == 12)) | |
311 | 311 | then true | |
312 | 312 | else (E == 15)) | |
313 | 313 | then true | |
314 | 314 | else (E == 18)) | |
315 | 315 | then true | |
316 | 316 | else (E == 21)) | |
317 | 317 | then true | |
318 | 318 | else (E == 24)) | |
319 | 319 | then true | |
320 | 320 | else (E == 27)) | |
321 | 321 | then true | |
322 | 322 | else (E == 30)) | |
323 | 323 | then true | |
324 | 324 | else (E == 33)) | |
325 | 325 | then true | |
326 | 326 | else (E == 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 O (E,P) = if ((P == 1)) | |
333 | 333 | then if (if ((E > 0)) | |
334 | 334 | then (13 > E) | |
335 | 335 | else false) | |
336 | 336 | then true | |
337 | 337 | else throw("Invalid dozen 1 move. Game aborted!") | |
338 | 338 | else if ((P == 2)) | |
339 | 339 | then if (if ((E > 12)) | |
340 | 340 | then (25 > E) | |
341 | 341 | else false) | |
342 | 342 | then true | |
343 | 343 | else throw("Invalid dozen 2 move. Game aborted!") | |
344 | 344 | else if ((P == 3)) | |
345 | 345 | then if (if ((E > 24)) | |
346 | 346 | then (37 > E) | |
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 Q (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 1)) | |
354 | 354 | then true | |
355 | 355 | else (E == 3)) | |
356 | 356 | then true | |
357 | 357 | else (E == 5)) | |
358 | 358 | then true | |
359 | 359 | else (E == 7)) | |
360 | 360 | then true | |
361 | 361 | else (E == 9)) | |
362 | 362 | then true | |
363 | 363 | else (E == 12)) | |
364 | 364 | then true | |
365 | 365 | else (E == 14)) | |
366 | 366 | then true | |
367 | 367 | else (E == 16)) | |
368 | 368 | then true | |
369 | 369 | else (E == 18)) | |
370 | 370 | then true | |
371 | 371 | else (E == 19)) | |
372 | 372 | then true | |
373 | 373 | else (E == 21)) | |
374 | 374 | then true | |
375 | 375 | else (E == 23)) | |
376 | 376 | then true | |
377 | 377 | else (E == 25)) | |
378 | 378 | then true | |
379 | 379 | else (E == 27)) | |
380 | 380 | then true | |
381 | 381 | else (E == 30)) | |
382 | 382 | then true | |
383 | 383 | else (E == 32)) | |
384 | 384 | then true | |
385 | 385 | else (E == 34)) | |
386 | 386 | then true | |
387 | 387 | else (E == 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 R (E) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((E == 2)) | |
393 | 393 | then true | |
394 | 394 | else (E == 4)) | |
395 | 395 | then true | |
396 | 396 | else (E == 6)) | |
397 | 397 | then true | |
398 | 398 | else (E == 8)) | |
399 | 399 | then true | |
400 | 400 | else (E == 10)) | |
401 | 401 | then true | |
402 | 402 | else (E == 11)) | |
403 | 403 | then true | |
404 | 404 | else (E == 13)) | |
405 | 405 | then true | |
406 | 406 | else (E == 15)) | |
407 | 407 | then true | |
408 | 408 | else (E == 17)) | |
409 | 409 | then true | |
410 | 410 | else (E == 20)) | |
411 | 411 | then true | |
412 | 412 | else (E == 22)) | |
413 | 413 | then true | |
414 | 414 | else (E == 24)) | |
415 | 415 | then true | |
416 | 416 | else (E == 26)) | |
417 | 417 | then true | |
418 | 418 | else (E == 28)) | |
419 | 419 | then true | |
420 | 420 | else (E == 29)) | |
421 | 421 | then true | |
422 | 422 | else (E == 31)) | |
423 | 423 | then true | |
424 | 424 | else (E == 33)) | |
425 | 425 | then true | |
426 | 426 | else (E == 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 S (E) = if (((E % 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 T (E) = if (((E % 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 U (E) = if (if ((E > 0)) | |
442 | 442 | then (19 > E) | |
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 V (E) = if (if ((E > 18)) | |
449 | 449 | then (37 > E) | |
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 W (X) = if ((size(X) > 10)) | |
456 | 456 | then { | |
457 | 457 | let Y = split(X, "_") | |
458 | 458 | let Z = parseIntValue(Y[0]) | |
459 | 459 | let aa = parseIntValue(Y[1]) | |
460 | 460 | let ab = parseIntValue(Y[2]) | |
461 | 461 | let ac = parseIntValue(Y[3]) | |
462 | 462 | let ad = parseIntValue(Y[4]) | |
463 | - | | |
464 | - | then (size(Y) | |
463 | + | if (if (D(ab)) | |
464 | + | then (size(Y) == 5) | |
465 | 465 | else false) | |
466 | 466 | then if ((Z == p)) | |
467 | 467 | then F(ab, ac, ad) | |
468 | 468 | else if ((Z == q)) | |
469 | 469 | then J(ab, ac) | |
470 | 470 | else if ((Z == t)) | |
471 | 471 | then K(ab, ac) | |
472 | 472 | else if ((Z == s)) | |
473 | 473 | then L(ab) | |
474 | 474 | else if ((Z == t)) | |
475 | 475 | then M(ab, ac) | |
476 | 476 | else if ((Z == u)) | |
477 | 477 | then O(ab, ac) | |
478 | 478 | else if ((Z == v)) | |
479 | 479 | then Q(ab) | |
480 | 480 | else if ((Z == w)) | |
481 | 481 | then R(ab) | |
482 | 482 | else if ((Z == x)) | |
483 | 483 | then S(ab) | |
484 | 484 | else if ((Z == y)) | |
485 | 485 | then T(ab) | |
486 | 486 | else if ((Z == z)) | |
487 | 487 | then U(ab) | |
488 | 488 | else if ((Z == A)) | |
489 | 489 | then V(ab) | |
490 | 490 | else throw("Invalid bet type, Game aborted!") | |
491 | 491 | else throw("Invalid bet, Game aborted!") | |
492 | - | aa | |
493 | 492 | } | |
494 | 493 | else 0 | |
495 | 494 | ||
496 | 495 | ||
497 | - | func | |
496 | + | func ae (af) = throw(af[0]) | |
498 | 497 | ||
499 | 498 | ||
500 | - | func | |
501 | - | let | |
502 | - | let | |
503 | - | if ($isInstanceOf( | |
499 | + | func ag () = { | |
500 | + | let ah = { | |
501 | + | let ai = getInteger(this, b) | |
502 | + | if ($isInstanceOf(ai, "Int")) | |
504 | 503 | then { | |
505 | - | let E = | |
504 | + | let E = ai | |
506 | 505 | E | |
507 | 506 | } | |
508 | 507 | else 0 | |
509 | 508 | } | |
510 | - | ( | |
509 | + | (ah + 1) | |
511 | 510 | } | |
512 | 511 | ||
513 | 512 | ||
514 | - | @Callable( | |
515 | - | func playRoulette ( | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
513 | + | @Callable(aj) | |
514 | + | func playRoulette (af) = { | |
515 | + | let ak = toBase58String(aj.transactionId) | |
516 | + | let al = extract(aj.payment) | |
517 | + | let am = isDefined(aj.feeAssetId) | |
518 | + | let an = isDefined(getString(this, ak)) | |
519 | + | let ao = wavesBalance(aj.caller) | |
520 | + | let ap = split(af, "|") | |
521 | + | if ((al.assetId != d)) | |
523 | 522 | then throw("Payment should be in WBET. Game aborted.") | |
524 | - | else if ((1000000 > | |
523 | + | else if ((1000000 > ao)) | |
525 | 524 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
526 | - | else if ( | |
525 | + | else if (am) | |
527 | 526 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
528 | - | else if ( | |
527 | + | else if (an) | |
529 | 528 | then throw("Passed gameId had been used before. Game aborted.") | |
530 | - | else if ((10 > size( | |
529 | + | else if ((10 > size(af))) | |
531 | 530 | then throw("No valid bets. Game aborted.") | |
532 | 531 | else { | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | ScriptResult(WriteSet([DataEntry(b, | |
532 | + | let aq = ae(ap) | |
533 | + | let ar = ag() | |
534 | + | let as = toBase58String(aj.callerPublicKey) | |
535 | + | let at = ((j + "-") + af) | |
536 | + | ScriptResult(WriteSet([DataEntry(b, ar), DataEntry(ak, at)]), TransferSet([ScriptTransfer(e, fraction(al.amount, h, 100), d), ScriptTransfer(f, fraction(al.amount, i, 100), d)])) | |
538 | 537 | } | |
539 | 538 | } | |
540 | 539 | ||
541 | 540 |
github/deemru/w8io/169f3d6 74.66 ms ◑