tx · 4Jo2ENfW7ZBtadaNrgy8Eqf3VqUnN77e4RnuB6t1qQzy 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa: -0.05000000 Waves 2019.10.27 21:55 [738916] smart account 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa > SELF 0.00000000 Waves
{ "type": 13, "id": "4Jo2ENfW7ZBtadaNrgy8Eqf3VqUnN77e4RnuB6t1qQzy", "fee": 5000000, "feeAssetId": null, "timestamp": 1572202353714, "version": 1, "sender": "3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa", "senderPublicKey": "DdkgRd7YzZtSU3hXJc7sHsU7sM8nUSEwkzqZCaCTXKRe", "proofs": [ "4nFdjhRoNLDP1J1GPCwxbBa7TRxf214ZrBVVtseHFghfQJLoaJGpKMYDaRGJmx2VymJWxrFAAiUAivMJrq9wYHod" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIIARIECgIIAgAAACYAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAY9iYXNlNjQ6TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtT2xSQlRZRU8zSDdZOXJCbW9GUUZuNDM5MlB4MFF3MTNEc2RFaG56TUgyY2o2WTV5bVB1Q09MTU5lNXFyVXpRbDhvUkx6SUJ6RlZNWmx3VVlsMmJvc3JPSXhRYllGN1dWUVd2b1Z4RVQxWUlnRG0zTnp6T0xBNXVIN0NLTzBzbnNobU1GQ0RPWkVldzQxR2pLaDNQZ3grbmJBZ3VQOVpRUGZxU2FmRW1DM0NOLzR5RHNKcktyaVJuaVpKbzlqUy80TExzUkt3QjdIQVpIem9GOUxMN3RTWkgzaHRhTkd0YmRUa3haMVR6U1QzTWIyVlBTenNadlFEb2NYVVZPbUpPdTBvMjlhT1krR2tHL0c0UkNLMEZCV1FIRVV2QzUxVFJEUzVrOGphZDBPMU1vYmpRYzZiMThkK2Z1b1ZGZE5mWndHSCt1RnVkdFBHM1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AAA9HZW5lcmF0ZVJhbmRJbnQAAAACBQAAAAZnYW1lSWQFAAAABnJzYVNpZwQAAAAHcmFuZFN0cgkBAAAACVJhbmRUb1N0cgAAAAEFAAAABHJhbmQDCQEAAAAHZGljZVdpbgAAAAMFAAAACHJvbGxUeXBlBQAAAApwcmVkaWN0aW9uBQAAAARyYW5kBAAAAA5uZXdHYW1lRGF0YVN0cgkBAAAAEUZvcm1hdEdhbWVEYXRhU3RyAAAABgUAAAAIU1RBVEVXT04FAAAACnByZWRpY3Rpb24FAAAACHJvbGxUeXBlBQAAAA5wbGF5ZXJQdWJLZXk1OAUAAAAGd2luQW10BQAAAAdyYW5kU3RyCQEAAAAMV2luU2NyaXB0U2V0AAAABAUAAAAGZ2FtZUlkBQAAAA1wbGF5ZXJBZGRyZXNzBQAAAAZ3aW5BbXQFAAAADm5ld0dhbWVEYXRhU3RyBAAAAA5uZXdHYW1lRGF0YVN0cgkBAAAAEUZvcm1hdEdhbWVEYXRhU3RyAAAABgUAAAAJU1RBVEVMT1NUBQAAAApwcmVkaWN0aW9uBQAAAAhyb2xsVHlwZQUAAAAOcGxheWVyUHViS2V5NTgFAAAABndpbkFtdAUAAAAHcmFuZFN0cgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsAAAAADGIKKU=", "chainId": 84, "height": 738916, "spentComplexity": 0 } View: original | compacted Prev: 2vjcBi3enUk19jKpV2vnfhPXhWqxZ5pwjF3wLL7yzpvC Next: A8XAodu18dsXK2KtKevoyd28m9ipix69ywjsQPeKWwYg Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4' | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = ((100 * 1000) * 1000) | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = 4 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 2 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "SUBMITTED" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "WON" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "LOST" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "UNDER" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "OVER" | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = (100 * e) | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = (20000000 * e) | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 99 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 0 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 2 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 3 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 4 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 5 | |
47 | 47 | ||
48 | - | let w = 4 | |
49 | - | ||
50 | - | let x = 5 | |
51 | - | ||
52 | - | func y () = { | |
53 | - | let z = { | |
54 | - | let A = getInteger(this, b) | |
55 | - | if ($isInstanceOf(A, "Int")) | |
48 | + | func w () = { | |
49 | + | let x = { | |
50 | + | let y = getInteger(this, b) | |
51 | + | if ($isInstanceOf(y, "Int")) | |
56 | 52 | then { | |
57 | - | let | |
58 | - | | |
53 | + | let z = y | |
54 | + | z | |
59 | 55 | } | |
60 | 56 | else 0 | |
61 | 57 | } | |
62 | - | ( | |
58 | + | (x + 1) | |
63 | 59 | } | |
64 | 60 | ||
65 | 61 | ||
66 | - | func | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
62 | + | func A () = { | |
63 | + | let y = getInteger(this, c) | |
64 | + | if ($isInstanceOf(y, "Int")) | |
69 | 65 | then { | |
70 | - | let | |
71 | - | | |
66 | + | let B = y | |
67 | + | B | |
72 | 68 | } | |
73 | 69 | else 0 | |
74 | 70 | } | |
75 | 71 | ||
76 | 72 | ||
77 | - | func | |
78 | - | let | |
79 | - | let | |
80 | - | if (( | |
81 | - | then throw("Insufficient funds on | |
82 | - | else | |
73 | + | func C (D) = { | |
74 | + | let E = (A() + D) | |
75 | + | let F = assetBalance(this, d) | |
76 | + | if ((E > F)) | |
77 | + | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
78 | + | else E | |
83 | 79 | } | |
84 | 80 | ||
85 | 81 | ||
86 | - | func | |
87 | - | let | |
88 | - | if (( | |
82 | + | func G (H) = { | |
83 | + | let I = size(H) | |
84 | + | if ((I == 0)) | |
89 | 85 | then throw("Parameter size must be greater then 0") | |
90 | - | else if (( | |
86 | + | else if ((I > 99)) | |
91 | 87 | then throw("Parameter size must be less then 100") | |
92 | - | else if ((10 > | |
93 | - | then (("0" + toString( | |
94 | - | else (toString( | |
88 | + | else if ((10 > I)) | |
89 | + | then (("0" + toString(I)) + H) | |
90 | + | else (toString(I) + H) | |
95 | 91 | } | |
96 | 92 | ||
97 | 93 | ||
98 | - | func | |
99 | - | let | |
100 | - | if (( | |
101 | - | then | |
102 | - | else (( | |
94 | + | func J (K,L,M,N,D,O) = { | |
95 | + | let P = ((((((((G(K) + "_") + G(toString(L))) + "_") + G(M)) + "_") + G(N)) + "_") + G(toString(D))) | |
96 | + | if ((O == "")) | |
97 | + | then P | |
98 | + | else ((P + "_") + G(O)) | |
103 | 99 | } | |
104 | 100 | ||
105 | 101 | ||
106 | - | func | |
107 | - | then drop( | |
108 | - | else | |
102 | + | func Q (R) = if ((size(R) > 0)) | |
103 | + | then drop(R, 1) | |
104 | + | else R | |
109 | 105 | ||
110 | 106 | ||
111 | - | func | |
112 | - | let | |
113 | - | if (( | |
107 | + | func S (R) = { | |
108 | + | let I = size(R) | |
109 | + | if ((I > 0)) | |
114 | 110 | then { | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | [ | |
111 | + | let T = parseIntValue(take(R, 2)) | |
112 | + | let U = take(drop(R, 2), T) | |
113 | + | let V = drop(R, (T + 2)) | |
114 | + | let W = Q(V) | |
115 | + | [U, W] | |
120 | 116 | } | |
121 | 117 | else throw("Empty string was passed into parseNextAttribute func") | |
122 | 118 | } | |
123 | 119 | ||
124 | 120 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | [ | |
121 | + | func X (Y) = { | |
122 | + | let K = S(Y) | |
123 | + | let L = S(K[1]) | |
124 | + | let Z = S(L[1]) | |
125 | + | let N = S(Z[1]) | |
126 | + | let D = S(N[1]) | |
127 | + | [K[0], L[0], Z[0], N[0], D[0]] | |
132 | 128 | } | |
133 | 129 | ||
134 | 130 | ||
135 | - | func | |
136 | - | let | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
131 | + | func aa (ab) = { | |
132 | + | let ac = { | |
133 | + | let y = getString(this, ab) | |
134 | + | if ($isInstanceOf(y, "String")) | |
139 | 135 | then { | |
140 | - | let | |
141 | - | | |
136 | + | let ad = y | |
137 | + | ad | |
142 | 138 | } | |
143 | - | else throw(("Couldn't find game by " + | |
139 | + | else throw(("Couldn't find game by " + ab)) | |
144 | 140 | } | |
145 | - | | |
141 | + | X(ac) | |
146 | 142 | } | |
147 | 143 | ||
148 | 144 | ||
149 | - | func | |
150 | - | let | |
151 | - | if ((0 > | |
145 | + | func ae (ab,D) = { | |
146 | + | let E = (A() - D) | |
147 | + | if ((0 > E)) | |
152 | 148 | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
153 | - | else DataEntry(c, | |
149 | + | else DataEntry(c, E) | |
154 | 150 | } | |
155 | 151 | ||
156 | 152 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ( | |
153 | + | func af (ab,ag) = { | |
154 | + | let ah = rsaVerify(SHA256, toBytes(ab), ag, a) | |
155 | + | if (ah) | |
160 | 156 | then { | |
161 | - | let | |
162 | - | if ((0 > | |
163 | - | then ((-1 * | |
164 | - | else ( | |
157 | + | let ai = (toInt(sha256(ag)) % 100) | |
158 | + | if ((0 > ai)) | |
159 | + | then ((-1 * ai) + 1) | |
160 | + | else (ai + 1) | |
165 | 161 | } | |
166 | 162 | else throw("Invalid RSA signature") | |
167 | 163 | } | |
168 | 164 | ||
169 | 165 | ||
170 | - | func | |
171 | - | then (100 >= | |
166 | + | func aj (ak) = if (if ((ak >= 1)) | |
167 | + | then (100 >= ak) | |
172 | 168 | else false) | |
173 | - | then toString( | |
174 | - | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString( | |
169 | + | then toString(ak) | |
170 | + | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(ak))) | |
175 | 171 | ||
176 | 172 | ||
177 | - | func | |
178 | - | let | |
179 | - | let | |
180 | - | ScriptResult( | |
173 | + | func al (ab,am,D,an) = { | |
174 | + | let ao = [ScriptTransfer(am, D, d)] | |
175 | + | let ap = WriteSet([DataEntry("Game Id", ab), DataEntry("Player Address", toString(am))]) | |
176 | + | ScriptResult(ap, TransferSet(ao)) | |
181 | 177 | } | |
182 | 178 | ||
183 | 179 | ||
184 | - | func | |
185 | - | then if (( | |
180 | + | func aq (L,Z) = if ((Z == k)) | |
181 | + | then if ((L == 1)) | |
186 | 182 | then 9850000 | |
187 | - | else if (( | |
183 | + | else if ((L == 2)) | |
188 | 184 | then 4925000 | |
189 | - | else if (( | |
185 | + | else if ((L == 3)) | |
190 | 186 | then 3283330 | |
191 | - | else if (( | |
187 | + | else if ((L == 4)) | |
192 | 188 | then 2462500 | |
193 | - | else if (( | |
189 | + | else if ((L == 5)) | |
194 | 190 | then 1970000 | |
195 | - | else if (( | |
191 | + | else if ((L == 6)) | |
196 | 192 | then 1641660 | |
197 | - | else if (( | |
193 | + | else if ((L == 7)) | |
198 | 194 | then 1407140 | |
199 | - | else if (( | |
195 | + | else if ((L == 8)) | |
200 | 196 | then 1231250 | |
201 | - | else if (( | |
197 | + | else if ((L == 9)) | |
202 | 198 | then 1094440 | |
203 | - | else if (( | |
199 | + | else if ((L == 10)) | |
204 | 200 | then 985000 | |
205 | - | else if (( | |
201 | + | else if ((L == 11)) | |
206 | 202 | then 895450 | |
207 | - | else if (( | |
203 | + | else if ((L == 12)) | |
208 | 204 | then 820830 | |
209 | - | else if (( | |
205 | + | else if ((L == 13)) | |
210 | 206 | then 757690 | |
211 | - | else if (( | |
207 | + | else if ((L == 14)) | |
212 | 208 | then 703570 | |
213 | - | else if (( | |
209 | + | else if ((L == 15)) | |
214 | 210 | then 656660 | |
215 | - | else if (( | |
211 | + | else if ((L == 16)) | |
216 | 212 | then 615620 | |
217 | - | else if (( | |
213 | + | else if ((L == 17)) | |
218 | 214 | then 579410 | |
219 | - | else if (( | |
215 | + | else if ((L == 18)) | |
220 | 216 | then 547220 | |
221 | - | else if (( | |
217 | + | else if ((L == 19)) | |
222 | 218 | then 518420 | |
223 | - | else if (( | |
219 | + | else if ((L == 20)) | |
224 | 220 | then 492500 | |
225 | - | else if (( | |
221 | + | else if ((L == 21)) | |
226 | 222 | then 469040 | |
227 | - | else if (( | |
223 | + | else if ((L == 22)) | |
228 | 224 | then 447720 | |
229 | - | else if (( | |
225 | + | else if ((L == 23)) | |
230 | 226 | then 428260 | |
231 | - | else if (( | |
227 | + | else if ((L == 24)) | |
232 | 228 | then 410410 | |
233 | - | else if (( | |
229 | + | else if ((L == 25)) | |
234 | 230 | then 394000 | |
235 | - | else if (( | |
231 | + | else if ((L == 26)) | |
236 | 232 | then 378840 | |
237 | - | else if (( | |
233 | + | else if ((L == 27)) | |
238 | 234 | then 364810 | |
239 | - | else if (( | |
235 | + | else if ((L == 28)) | |
240 | 236 | then 351780 | |
241 | - | else if (( | |
237 | + | else if ((L == 29)) | |
242 | 238 | then 339650 | |
243 | - | else if (( | |
239 | + | else if ((L == 30)) | |
244 | 240 | then 328330 | |
245 | - | else if (( | |
241 | + | else if ((L == 31)) | |
246 | 242 | then 317740 | |
247 | - | else if (( | |
243 | + | else if ((L == 32)) | |
248 | 244 | then 307810 | |
249 | - | else if (( | |
245 | + | else if ((L == 33)) | |
250 | 246 | then 298480 | |
251 | - | else if (( | |
247 | + | else if ((L == 34)) | |
252 | 248 | then 289700 | |
253 | - | else if (( | |
249 | + | else if ((L == 35)) | |
254 | 250 | then 281420 | |
255 | - | else if (( | |
251 | + | else if ((L == 36)) | |
256 | 252 | then 273610 | |
257 | - | else if (( | |
253 | + | else if ((L == 37)) | |
258 | 254 | then 259210 | |
259 | - | else if (( | |
255 | + | else if ((L == 38)) | |
260 | 256 | then 259210 | |
261 | - | else if (( | |
257 | + | else if ((L == 39)) | |
262 | 258 | then 252560 | |
263 | - | else if (( | |
259 | + | else if ((L == 40)) | |
264 | 260 | then 246250 | |
265 | - | else if (( | |
261 | + | else if ((L == 41)) | |
266 | 262 | then 240240 | |
267 | - | else if (( | |
263 | + | else if ((L == 42)) | |
268 | 264 | then 234520 | |
269 | - | else if (( | |
265 | + | else if ((L == 43)) | |
270 | 266 | then 229060 | |
271 | - | else if (( | |
267 | + | else if ((L == 44)) | |
272 | 268 | then 223860 | |
273 | - | else if (( | |
269 | + | else if ((L == 45)) | |
274 | 270 | then 218880 | |
275 | - | else if (( | |
271 | + | else if ((L == 46)) | |
276 | 272 | then 214130 | |
277 | - | else if (( | |
273 | + | else if ((L == 47)) | |
278 | 274 | then 209570 | |
279 | - | else if (( | |
275 | + | else if ((L == 48)) | |
280 | 276 | then 205200 | |
281 | - | else if (( | |
277 | + | else if ((L == 49)) | |
282 | 278 | then 201020 | |
283 | - | else if (( | |
279 | + | else if ((L == 50)) | |
284 | 280 | then 197000 | |
285 | - | else if (( | |
281 | + | else if ((L == 51)) | |
286 | 282 | then 193130 | |
287 | - | else if (( | |
283 | + | else if ((L == 52)) | |
288 | 284 | then 189420 | |
289 | - | else if (( | |
285 | + | else if ((L == 53)) | |
290 | 286 | then 185840 | |
291 | - | else if (( | |
287 | + | else if ((L == 54)) | |
292 | 288 | then 182400 | |
293 | - | else if (( | |
289 | + | else if ((L == 55)) | |
294 | 290 | then 179090 | |
295 | - | else if (( | |
291 | + | else if ((L == 56)) | |
296 | 292 | then 175890 | |
297 | - | else if (( | |
293 | + | else if ((L == 57)) | |
298 | 294 | then 172800 | |
299 | - | else if (( | |
295 | + | else if ((L == 58)) | |
300 | 296 | then 169820 | |
301 | - | else if (( | |
297 | + | else if ((L == 59)) | |
302 | 298 | then 166940 | |
303 | - | else if (( | |
299 | + | else if ((L == 60)) | |
304 | 300 | then 164160 | |
305 | - | else if (( | |
301 | + | else if ((L == 61)) | |
306 | 302 | then 161470 | |
307 | - | else if (( | |
303 | + | else if ((L == 62)) | |
308 | 304 | then 158870 | |
309 | - | else if (( | |
305 | + | else if ((L == 63)) | |
310 | 306 | then 156340 | |
311 | - | else if (( | |
307 | + | else if ((L == 64)) | |
312 | 308 | then 153900 | |
313 | - | else if (( | |
309 | + | else if ((L == 65)) | |
314 | 310 | then 151530 | |
315 | - | else if (( | |
311 | + | else if ((L == 66)) | |
316 | 312 | then 149240 | |
317 | - | else if (( | |
313 | + | else if ((L == 67)) | |
318 | 314 | then 147010 | |
319 | - | else if (( | |
315 | + | else if ((L == 68)) | |
320 | 316 | then 144850 | |
321 | - | else if (( | |
317 | + | else if ((L == 69)) | |
322 | 318 | then 142750 | |
323 | - | else if (( | |
319 | + | else if ((L == 70)) | |
324 | 320 | then 140710 | |
325 | - | else if (( | |
321 | + | else if ((L == 71)) | |
326 | 322 | then 138730 | |
327 | - | else if (( | |
323 | + | else if ((L == 72)) | |
328 | 324 | then 136800 | |
329 | - | else if (( | |
325 | + | else if ((L == 73)) | |
330 | 326 | then 134930 | |
331 | - | else if (( | |
327 | + | else if ((L == 74)) | |
332 | 328 | then 133100 | |
333 | - | else if (( | |
329 | + | else if ((L == 75)) | |
334 | 330 | then 131330 | |
335 | - | else if (( | |
331 | + | else if ((L == 76)) | |
336 | 332 | then 129600 | |
337 | - | else if (( | |
333 | + | else if ((L == 77)) | |
338 | 334 | then 127920 | |
339 | - | else if (( | |
335 | + | else if ((L == 78)) | |
340 | 336 | then 126280 | |
341 | - | else if (( | |
337 | + | else if ((L == 79)) | |
342 | 338 | then 124680 | |
343 | - | else if (( | |
339 | + | else if ((L == 80)) | |
344 | 340 | then 123120 | |
345 | - | else if (( | |
341 | + | else if ((L == 81)) | |
346 | 342 | then 121600 | |
347 | - | else if (( | |
343 | + | else if ((L == 82)) | |
348 | 344 | then 120120 | |
349 | - | else if (( | |
345 | + | else if ((L == 83)) | |
350 | 346 | then 118670 | |
351 | - | else if (( | |
347 | + | else if ((L == 84)) | |
352 | 348 | then 117260 | |
353 | - | else if (( | |
349 | + | else if ((L == 85)) | |
354 | 350 | then 115880 | |
355 | - | else if (( | |
351 | + | else if ((L == 86)) | |
356 | 352 | then 114530 | |
357 | - | else if (( | |
353 | + | else if ((L == 87)) | |
358 | 354 | then 113210 | |
359 | - | else if (( | |
355 | + | else if ((L == 88)) | |
360 | 356 | then 111930 | |
361 | - | else if (( | |
357 | + | else if ((L == 89)) | |
362 | 358 | then 110670 | |
363 | - | else if (( | |
359 | + | else if ((L == 90)) | |
364 | 360 | then 109440 | |
365 | - | else if (( | |
361 | + | else if ((L == 91)) | |
366 | 362 | then 108240 | |
367 | - | else if (( | |
363 | + | else if ((L == 92)) | |
368 | 364 | then 107060 | |
369 | - | else if (( | |
365 | + | else if ((L == 93)) | |
370 | 366 | then 105910 | |
371 | - | else if (( | |
367 | + | else if ((L == 94)) | |
372 | 368 | then 104780 | |
373 | - | else if (( | |
369 | + | else if ((L == 95)) | |
374 | 370 | then 103680 | |
375 | - | else if (( | |
371 | + | else if ((L == 96)) | |
376 | 372 | then 103680 | |
377 | 373 | else 100000 | |
378 | - | else if (( | |
379 | - | then if (( | |
374 | + | else if ((Z == l)) | |
375 | + | then if ((L == 4)) | |
380 | 376 | then 103680 | |
381 | - | else if (( | |
377 | + | else if ((L == 5)) | |
382 | 378 | then 103680 | |
383 | - | else if (( | |
379 | + | else if ((L == 6)) | |
384 | 380 | then 104780 | |
385 | - | else if (( | |
381 | + | else if ((L == 7)) | |
386 | 382 | then 105910 | |
387 | - | else if (( | |
383 | + | else if ((L == 8)) | |
388 | 384 | then 107060 | |
389 | - | else if (( | |
385 | + | else if ((L == 9)) | |
390 | 386 | then 108240 | |
391 | - | else if (( | |
387 | + | else if ((L == 10)) | |
392 | 388 | then 109440 | |
393 | - | else if (( | |
389 | + | else if ((L == 11)) | |
394 | 390 | then 110670 | |
395 | - | else if (( | |
391 | + | else if ((L == 12)) | |
396 | 392 | then 111930 | |
397 | - | else if (( | |
393 | + | else if ((L == 13)) | |
398 | 394 | then 113210 | |
399 | - | else if (( | |
395 | + | else if ((L == 14)) | |
400 | 396 | then 114530 | |
401 | - | else if (( | |
397 | + | else if ((L == 15)) | |
402 | 398 | then 115880 | |
403 | - | else if (( | |
399 | + | else if ((L == 16)) | |
404 | 400 | then 117260 | |
405 | - | else if (( | |
401 | + | else if ((L == 17)) | |
406 | 402 | then 118670 | |
407 | - | else if (( | |
403 | + | else if ((L == 18)) | |
408 | 404 | then 120120 | |
409 | - | else if (( | |
405 | + | else if ((L == 19)) | |
410 | 406 | then 121600 | |
411 | - | else if (( | |
407 | + | else if ((L == 20)) | |
412 | 408 | then 123120 | |
413 | - | else if (( | |
409 | + | else if ((L == 21)) | |
414 | 410 | then 124680 | |
415 | - | else if (( | |
411 | + | else if ((L == 22)) | |
416 | 412 | then 126280 | |
417 | - | else if (( | |
413 | + | else if ((L == 23)) | |
418 | 414 | then 127920 | |
419 | - | else if (( | |
415 | + | else if ((L == 24)) | |
420 | 416 | then 129600 | |
421 | - | else if (( | |
417 | + | else if ((L == 25)) | |
422 | 418 | then 131330 | |
423 | - | else if (( | |
419 | + | else if ((L == 26)) | |
424 | 420 | then 133100 | |
425 | - | else if (( | |
421 | + | else if ((L == 27)) | |
426 | 422 | then 134930 | |
427 | - | else if (( | |
423 | + | else if ((L == 28)) | |
428 | 424 | then 136800 | |
429 | - | else if (( | |
425 | + | else if ((L == 29)) | |
430 | 426 | then 138730 | |
431 | - | else if (( | |
427 | + | else if ((L == 30)) | |
432 | 428 | then 140710 | |
433 | - | else if (( | |
429 | + | else if ((L == 31)) | |
434 | 430 | then 142750 | |
435 | - | else if (( | |
431 | + | else if ((L == 32)) | |
436 | 432 | then 144850 | |
437 | - | else if (( | |
433 | + | else if ((L == 33)) | |
438 | 434 | then 147010 | |
439 | - | else if (( | |
435 | + | else if ((L == 34)) | |
440 | 436 | then 149240 | |
441 | - | else if (( | |
437 | + | else if ((L == 35)) | |
442 | 438 | then 151530 | |
443 | - | else if (( | |
439 | + | else if ((L == 36)) | |
444 | 440 | then 153900 | |
445 | - | else if (( | |
441 | + | else if ((L == 37)) | |
446 | 442 | then 156340 | |
447 | - | else if (( | |
443 | + | else if ((L == 38)) | |
448 | 444 | then 158870 | |
449 | - | else if (( | |
445 | + | else if ((L == 39)) | |
450 | 446 | then 161470 | |
451 | - | else if (( | |
447 | + | else if ((L == 40)) | |
452 | 448 | then 164160 | |
453 | - | else if (( | |
449 | + | else if ((L == 41)) | |
454 | 450 | then 166940 | |
455 | - | else if (( | |
451 | + | else if ((L == 42)) | |
456 | 452 | then 169820 | |
457 | - | else if (( | |
453 | + | else if ((L == 43)) | |
458 | 454 | then 172800 | |
459 | - | else if (( | |
455 | + | else if ((L == 44)) | |
460 | 456 | then 175890 | |
461 | - | else if (( | |
457 | + | else if ((L == 45)) | |
462 | 458 | then 179090 | |
463 | - | else if (( | |
459 | + | else if ((L == 46)) | |
464 | 460 | then 185840 | |
465 | - | else if (( | |
461 | + | else if ((L == 47)) | |
466 | 462 | then 185840 | |
467 | - | else if (( | |
463 | + | else if ((L == 48)) | |
468 | 464 | then 189420 | |
469 | - | else if (( | |
465 | + | else if ((L == 49)) | |
470 | 466 | then 193130 | |
471 | - | else if (( | |
467 | + | else if ((L == 50)) | |
472 | 468 | then 197000 | |
473 | - | else if (( | |
469 | + | else if ((L == 51)) | |
474 | 470 | then 201020 | |
475 | - | else if (( | |
471 | + | else if ((L == 52)) | |
476 | 472 | then 205200 | |
477 | - | else if (( | |
473 | + | else if ((L == 53)) | |
478 | 474 | then 209570 | |
479 | - | else if (( | |
475 | + | else if ((L == 54)) | |
480 | 476 | then 214130 | |
481 | - | else if (( | |
477 | + | else if ((L == 55)) | |
482 | 478 | then 218880 | |
483 | - | else if (( | |
479 | + | else if ((L == 56)) | |
484 | 480 | then 223860 | |
485 | - | else if (( | |
481 | + | else if ((L == 57)) | |
486 | 482 | then 229060 | |
487 | - | else if (( | |
483 | + | else if ((L == 58)) | |
488 | 484 | then 234520 | |
489 | - | else if (( | |
485 | + | else if ((L == 59)) | |
490 | 486 | then 240240 | |
491 | - | else if (( | |
487 | + | else if ((L == 60)) | |
492 | 488 | then 246250 | |
493 | - | else if (( | |
489 | + | else if ((L == 61)) | |
494 | 490 | then 252560 | |
495 | - | else if (( | |
491 | + | else if ((L == 62)) | |
496 | 492 | then 259210 | |
497 | - | else if (( | |
493 | + | else if ((L == 63)) | |
498 | 494 | then 259210 | |
499 | - | else if (( | |
495 | + | else if ((L == 64)) | |
500 | 496 | then 273610 | |
501 | - | else if (( | |
497 | + | else if ((L == 65)) | |
502 | 498 | then 281420 | |
503 | - | else if (( | |
499 | + | else if ((L == 66)) | |
504 | 500 | then 289700 | |
505 | - | else if (( | |
501 | + | else if ((L == 67)) | |
506 | 502 | then 298480 | |
507 | - | else if (( | |
503 | + | else if ((L == 68)) | |
508 | 504 | then 307810 | |
509 | - | else if (( | |
505 | + | else if ((L == 69)) | |
510 | 506 | then 317740 | |
511 | - | else if (( | |
507 | + | else if ((L == 70)) | |
512 | 508 | then 328330 | |
513 | - | else if (( | |
509 | + | else if ((L == 71)) | |
514 | 510 | then 339650 | |
515 | - | else if (( | |
511 | + | else if ((L == 72)) | |
516 | 512 | then 351780 | |
517 | - | else if (( | |
513 | + | else if ((L == 73)) | |
518 | 514 | then 364810 | |
519 | - | else if (( | |
515 | + | else if ((L == 74)) | |
520 | 516 | then 378840 | |
521 | - | else if (( | |
517 | + | else if ((L == 75)) | |
522 | 518 | then 394000 | |
523 | - | else if (( | |
519 | + | else if ((L == 76)) | |
524 | 520 | then 410410 | |
525 | - | else if (( | |
521 | + | else if ((L == 77)) | |
526 | 522 | then 428260 | |
527 | - | else if (( | |
523 | + | else if ((L == 78)) | |
528 | 524 | then 447720 | |
529 | - | else if (( | |
525 | + | else if ((L == 79)) | |
530 | 526 | then 469040 | |
531 | - | else if (( | |
527 | + | else if ((L == 80)) | |
532 | 528 | then 492500 | |
533 | - | else if (( | |
529 | + | else if ((L == 81)) | |
534 | 530 | then 518420 | |
535 | - | else if (( | |
531 | + | else if ((L == 82)) | |
536 | 532 | then 547220 | |
537 | - | else if (( | |
533 | + | else if ((L == 83)) | |
538 | 534 | then 579410 | |
539 | - | else if (( | |
535 | + | else if ((L == 84)) | |
540 | 536 | then 615620 | |
541 | - | else if (( | |
537 | + | else if ((L == 85)) | |
542 | 538 | then 656660 | |
543 | - | else if (( | |
539 | + | else if ((L == 86)) | |
544 | 540 | then 703570 | |
545 | - | else if (( | |
541 | + | else if ((L == 87)) | |
546 | 542 | then 757690 | |
547 | - | else if (( | |
543 | + | else if ((L == 88)) | |
548 | 544 | then 820830 | |
549 | - | else if (( | |
545 | + | else if ((L == 89)) | |
550 | 546 | then 895450 | |
551 | - | else if (( | |
547 | + | else if ((L == 90)) | |
552 | 548 | then 985000 | |
553 | - | else if (( | |
549 | + | else if ((L == 91)) | |
554 | 550 | then 1094440 | |
555 | - | else if (( | |
551 | + | else if ((L == 92)) | |
556 | 552 | then 1231250 | |
557 | - | else if (( | |
553 | + | else if ((L == 93)) | |
558 | 554 | then 1407140 | |
559 | - | else if (( | |
555 | + | else if ((L == 94)) | |
560 | 556 | then 1641660 | |
561 | - | else if (( | |
557 | + | else if ((L == 95)) | |
562 | 558 | then 1970000 | |
563 | - | else if (( | |
559 | + | else if ((L == 96)) | |
564 | 560 | then 2462500 | |
565 | - | else if (( | |
561 | + | else if ((L == 97)) | |
566 | 562 | then 3283330 | |
567 | - | else if (( | |
563 | + | else if ((L == 98)) | |
568 | 564 | then 4925000 | |
569 | - | else if (( | |
565 | + | else if ((L == 99)) | |
570 | 566 | then 9850000 | |
571 | 567 | else 100000 | |
572 | 568 | else 100000 | |
573 | 569 | ||
574 | 570 | ||
575 | - | func | |
576 | - | then if (( | |
571 | + | func ar (as,L,at) = if ((as == k)) | |
572 | + | then if ((L >= at)) | |
577 | 573 | then true | |
578 | 574 | else false | |
579 | - | else if (( | |
580 | - | then if (( | |
575 | + | else if ((as == l)) | |
576 | + | then if ((at >= L)) | |
581 | 577 | then true | |
582 | 578 | else false | |
583 | 579 | else false | |
584 | 580 | ||
585 | 581 | ||
586 | - | func | |
582 | + | func au (av,L,Z) = if (if ((m > av)) | |
587 | 583 | then true | |
588 | - | else ( | |
589 | - | then throw(((("Bet amount is not in range: minBet=" + toString(( | |
590 | - | else if (if (( | |
591 | - | then ( | |
584 | + | else (av > n)) | |
585 | + | then throw(((("Bet amount is not in range: minBet=" + toString((m / e))) + " maxBet=") + toString((n / e)))) | |
586 | + | else if (if ((Z != k)) | |
587 | + | then (Z != l) | |
592 | 588 | else false) | |
593 | 589 | then throw("Invalid Roll type, try with OVER or UNDER") | |
594 | - | else if (if (( | |
590 | + | else if (if ((o > L)) | |
595 | 591 | then true | |
596 | - | else ( | |
597 | - | then throw(((("Prediction is out of the | |
592 | + | else (L > p)) | |
593 | + | then throw(((("Prediction is out of the range: " + toString(o)) + " <= prediction <= ") + toString(p))) | |
598 | 594 | else { | |
599 | - | let | |
600 | - | (((( | |
595 | + | let aw = aq(L, Z) | |
596 | + | ((((av * aw) / 100000) * (100 - (f + g))) / 100) | |
601 | 597 | } | |
602 | 598 | ||
603 | 599 | ||
604 | - | @Callable(aA) | |
605 | - | func playDice (ab,at) = { | |
606 | - | let aB = parseIntValue(at) | |
607 | - | let ad = toBase58String(aA.transactionId) | |
608 | - | let aC = extract(aA.payment) | |
609 | - | let aD = isDefined(aA.feeAssetId) | |
610 | - | let az = as(aB, ab) | |
611 | - | let F = ax(aC.amount, aB, ab) | |
612 | - | let aE = wavesBalance(aA.caller) | |
613 | - | let aF = isDefined(getString(this, ad)) | |
614 | - | if ((aC.assetId != d)) | |
600 | + | @Callable(ax) | |
601 | + | func playDice (Z,L) = { | |
602 | + | let ab = toBase58String(ax.transactionId) | |
603 | + | let ay = extract(ax.payment) | |
604 | + | let az = isDefined(ax.feeAssetId) | |
605 | + | let aw = aq(L, Z) | |
606 | + | let D = au(ay.amount, L, Z) | |
607 | + | let aA = wavesBalance(ax.caller) | |
608 | + | let aB = isDefined(getString(this, ab)) | |
609 | + | if ((ay.assetId != d)) | |
615 | 610 | then throw("Payment should be in Wavesbet") | |
616 | - | else if ((100000 > | |
611 | + | else if ((100000 > aA)) | |
617 | 612 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
618 | - | else if ( | |
613 | + | else if (az) | |
619 | 614 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
620 | - | else if ( | |
615 | + | else if (aB) | |
621 | 616 | then throw("Passed gameId had been used before. Game aborted.") | |
622 | 617 | else { | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | ScriptResult(WriteSet([DataEntry(c, | |
618 | + | let aC = w() | |
619 | + | let N = toBase58String(ax.callerPublicKey) | |
620 | + | let aD = J(h, L, Z, N, D, "") | |
621 | + | ScriptResult(WriteSet([DataEntry(c, C(D)), DataEntry(b, aC), DataEntry(ab, aD)]), TransferSet(nil)) | |
627 | 622 | } | |
628 | 623 | } | |
629 | 624 | ||
630 | 625 | ||
631 | 626 | ||
632 | - | @Callable( | |
633 | - | func withdraw ( | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if (( | |
627 | + | @Callable(ax) | |
628 | + | func withdraw (ab,aE) = { | |
629 | + | let aF = aa(ab) | |
630 | + | let K = aF[q] | |
631 | + | let L = parseIntValue(aF[r]) | |
632 | + | let Z = aF[s] | |
633 | + | let D = parseIntValue(aF[u]) | |
634 | + | let N = aF[t] | |
635 | + | let am = addressFromPublicKey(fromBase58String(N)) | |
636 | + | let aG = ae(ab, D) | |
637 | + | if ((K != h)) | |
643 | 638 | then throw("Invalid game state for passed gameId") | |
644 | 639 | else { | |
645 | - | let | |
646 | - | let | |
647 | - | if ( | |
640 | + | let ai = af(ab, aE) | |
641 | + | let aH = aj(ai) | |
642 | + | if (ar(Z, L, ai)) | |
648 | 643 | then { | |
649 | - | let | |
650 | - | | |
644 | + | let an = J(i, L, Z, N, D, aH) | |
645 | + | al(ab, am, D, an) | |
651 | 646 | } | |
652 | 647 | else { | |
653 | - | let | |
654 | - | WriteSet([DataEntry( | |
648 | + | let an = J(j, L, Z, N, D, aH) | |
649 | + | WriteSet([DataEntry(ab, an)]) | |
655 | 650 | } | |
656 | 651 | } | |
657 | 652 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQFn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2bosrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3Pgx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0FBWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkzZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let b = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let c = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4' | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = ((100 * 1000) * 1000) | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = 4 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 2 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "SUBMITTED" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "WON" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "LOST" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "UNDER" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "OVER" | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = (100 * e) | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = (20000000 * e) | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 99 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 0 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 2 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 3 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 4 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 5 | |
47 | 47 | ||
48 | - | let w = 4 | |
49 | - | ||
50 | - | let x = 5 | |
51 | - | ||
52 | - | func y () = { | |
53 | - | let z = { | |
54 | - | let A = getInteger(this, b) | |
55 | - | if ($isInstanceOf(A, "Int")) | |
48 | + | func w () = { | |
49 | + | let x = { | |
50 | + | let y = getInteger(this, b) | |
51 | + | if ($isInstanceOf(y, "Int")) | |
56 | 52 | then { | |
57 | - | let | |
58 | - | | |
53 | + | let z = y | |
54 | + | z | |
59 | 55 | } | |
60 | 56 | else 0 | |
61 | 57 | } | |
62 | - | ( | |
58 | + | (x + 1) | |
63 | 59 | } | |
64 | 60 | ||
65 | 61 | ||
66 | - | func | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
62 | + | func A () = { | |
63 | + | let y = getInteger(this, c) | |
64 | + | if ($isInstanceOf(y, "Int")) | |
69 | 65 | then { | |
70 | - | let | |
71 | - | | |
66 | + | let B = y | |
67 | + | B | |
72 | 68 | } | |
73 | 69 | else 0 | |
74 | 70 | } | |
75 | 71 | ||
76 | 72 | ||
77 | - | func | |
78 | - | let | |
79 | - | let | |
80 | - | if (( | |
81 | - | then throw("Insufficient funds on | |
82 | - | else | |
73 | + | func C (D) = { | |
74 | + | let E = (A() + D) | |
75 | + | let F = assetBalance(this, d) | |
76 | + | if ((E > F)) | |
77 | + | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
78 | + | else E | |
83 | 79 | } | |
84 | 80 | ||
85 | 81 | ||
86 | - | func | |
87 | - | let | |
88 | - | if (( | |
82 | + | func G (H) = { | |
83 | + | let I = size(H) | |
84 | + | if ((I == 0)) | |
89 | 85 | then throw("Parameter size must be greater then 0") | |
90 | - | else if (( | |
86 | + | else if ((I > 99)) | |
91 | 87 | then throw("Parameter size must be less then 100") | |
92 | - | else if ((10 > | |
93 | - | then (("0" + toString( | |
94 | - | else (toString( | |
88 | + | else if ((10 > I)) | |
89 | + | then (("0" + toString(I)) + H) | |
90 | + | else (toString(I) + H) | |
95 | 91 | } | |
96 | 92 | ||
97 | 93 | ||
98 | - | func | |
99 | - | let | |
100 | - | if (( | |
101 | - | then | |
102 | - | else (( | |
94 | + | func J (K,L,M,N,D,O) = { | |
95 | + | let P = ((((((((G(K) + "_") + G(toString(L))) + "_") + G(M)) + "_") + G(N)) + "_") + G(toString(D))) | |
96 | + | if ((O == "")) | |
97 | + | then P | |
98 | + | else ((P + "_") + G(O)) | |
103 | 99 | } | |
104 | 100 | ||
105 | 101 | ||
106 | - | func | |
107 | - | then drop( | |
108 | - | else | |
102 | + | func Q (R) = if ((size(R) > 0)) | |
103 | + | then drop(R, 1) | |
104 | + | else R | |
109 | 105 | ||
110 | 106 | ||
111 | - | func | |
112 | - | let | |
113 | - | if (( | |
107 | + | func S (R) = { | |
108 | + | let I = size(R) | |
109 | + | if ((I > 0)) | |
114 | 110 | then { | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | [ | |
111 | + | let T = parseIntValue(take(R, 2)) | |
112 | + | let U = take(drop(R, 2), T) | |
113 | + | let V = drop(R, (T + 2)) | |
114 | + | let W = Q(V) | |
115 | + | [U, W] | |
120 | 116 | } | |
121 | 117 | else throw("Empty string was passed into parseNextAttribute func") | |
122 | 118 | } | |
123 | 119 | ||
124 | 120 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | [ | |
121 | + | func X (Y) = { | |
122 | + | let K = S(Y) | |
123 | + | let L = S(K[1]) | |
124 | + | let Z = S(L[1]) | |
125 | + | let N = S(Z[1]) | |
126 | + | let D = S(N[1]) | |
127 | + | [K[0], L[0], Z[0], N[0], D[0]] | |
132 | 128 | } | |
133 | 129 | ||
134 | 130 | ||
135 | - | func | |
136 | - | let | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
131 | + | func aa (ab) = { | |
132 | + | let ac = { | |
133 | + | let y = getString(this, ab) | |
134 | + | if ($isInstanceOf(y, "String")) | |
139 | 135 | then { | |
140 | - | let | |
141 | - | | |
136 | + | let ad = y | |
137 | + | ad | |
142 | 138 | } | |
143 | - | else throw(("Couldn't find game by " + | |
139 | + | else throw(("Couldn't find game by " + ab)) | |
144 | 140 | } | |
145 | - | | |
141 | + | X(ac) | |
146 | 142 | } | |
147 | 143 | ||
148 | 144 | ||
149 | - | func | |
150 | - | let | |
151 | - | if ((0 > | |
145 | + | func ae (ab,D) = { | |
146 | + | let E = (A() - D) | |
147 | + | if ((0 > E)) | |
152 | 148 | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
153 | - | else DataEntry(c, | |
149 | + | else DataEntry(c, E) | |
154 | 150 | } | |
155 | 151 | ||
156 | 152 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ( | |
153 | + | func af (ab,ag) = { | |
154 | + | let ah = rsaVerify(SHA256, toBytes(ab), ag, a) | |
155 | + | if (ah) | |
160 | 156 | then { | |
161 | - | let | |
162 | - | if ((0 > | |
163 | - | then ((-1 * | |
164 | - | else ( | |
157 | + | let ai = (toInt(sha256(ag)) % 100) | |
158 | + | if ((0 > ai)) | |
159 | + | then ((-1 * ai) + 1) | |
160 | + | else (ai + 1) | |
165 | 161 | } | |
166 | 162 | else throw("Invalid RSA signature") | |
167 | 163 | } | |
168 | 164 | ||
169 | 165 | ||
170 | - | func | |
171 | - | then (100 >= | |
166 | + | func aj (ak) = if (if ((ak >= 1)) | |
167 | + | then (100 >= ak) | |
172 | 168 | else false) | |
173 | - | then toString( | |
174 | - | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString( | |
169 | + | then toString(ak) | |
170 | + | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(ak))) | |
175 | 171 | ||
176 | 172 | ||
177 | - | func | |
178 | - | let | |
179 | - | let | |
180 | - | ScriptResult( | |
173 | + | func al (ab,am,D,an) = { | |
174 | + | let ao = [ScriptTransfer(am, D, d)] | |
175 | + | let ap = WriteSet([DataEntry("Game Id", ab), DataEntry("Player Address", toString(am))]) | |
176 | + | ScriptResult(ap, TransferSet(ao)) | |
181 | 177 | } | |
182 | 178 | ||
183 | 179 | ||
184 | - | func | |
185 | - | then if (( | |
180 | + | func aq (L,Z) = if ((Z == k)) | |
181 | + | then if ((L == 1)) | |
186 | 182 | then 9850000 | |
187 | - | else if (( | |
183 | + | else if ((L == 2)) | |
188 | 184 | then 4925000 | |
189 | - | else if (( | |
185 | + | else if ((L == 3)) | |
190 | 186 | then 3283330 | |
191 | - | else if (( | |
187 | + | else if ((L == 4)) | |
192 | 188 | then 2462500 | |
193 | - | else if (( | |
189 | + | else if ((L == 5)) | |
194 | 190 | then 1970000 | |
195 | - | else if (( | |
191 | + | else if ((L == 6)) | |
196 | 192 | then 1641660 | |
197 | - | else if (( | |
193 | + | else if ((L == 7)) | |
198 | 194 | then 1407140 | |
199 | - | else if (( | |
195 | + | else if ((L == 8)) | |
200 | 196 | then 1231250 | |
201 | - | else if (( | |
197 | + | else if ((L == 9)) | |
202 | 198 | then 1094440 | |
203 | - | else if (( | |
199 | + | else if ((L == 10)) | |
204 | 200 | then 985000 | |
205 | - | else if (( | |
201 | + | else if ((L == 11)) | |
206 | 202 | then 895450 | |
207 | - | else if (( | |
203 | + | else if ((L == 12)) | |
208 | 204 | then 820830 | |
209 | - | else if (( | |
205 | + | else if ((L == 13)) | |
210 | 206 | then 757690 | |
211 | - | else if (( | |
207 | + | else if ((L == 14)) | |
212 | 208 | then 703570 | |
213 | - | else if (( | |
209 | + | else if ((L == 15)) | |
214 | 210 | then 656660 | |
215 | - | else if (( | |
211 | + | else if ((L == 16)) | |
216 | 212 | then 615620 | |
217 | - | else if (( | |
213 | + | else if ((L == 17)) | |
218 | 214 | then 579410 | |
219 | - | else if (( | |
215 | + | else if ((L == 18)) | |
220 | 216 | then 547220 | |
221 | - | else if (( | |
217 | + | else if ((L == 19)) | |
222 | 218 | then 518420 | |
223 | - | else if (( | |
219 | + | else if ((L == 20)) | |
224 | 220 | then 492500 | |
225 | - | else if (( | |
221 | + | else if ((L == 21)) | |
226 | 222 | then 469040 | |
227 | - | else if (( | |
223 | + | else if ((L == 22)) | |
228 | 224 | then 447720 | |
229 | - | else if (( | |
225 | + | else if ((L == 23)) | |
230 | 226 | then 428260 | |
231 | - | else if (( | |
227 | + | else if ((L == 24)) | |
232 | 228 | then 410410 | |
233 | - | else if (( | |
229 | + | else if ((L == 25)) | |
234 | 230 | then 394000 | |
235 | - | else if (( | |
231 | + | else if ((L == 26)) | |
236 | 232 | then 378840 | |
237 | - | else if (( | |
233 | + | else if ((L == 27)) | |
238 | 234 | then 364810 | |
239 | - | else if (( | |
235 | + | else if ((L == 28)) | |
240 | 236 | then 351780 | |
241 | - | else if (( | |
237 | + | else if ((L == 29)) | |
242 | 238 | then 339650 | |
243 | - | else if (( | |
239 | + | else if ((L == 30)) | |
244 | 240 | then 328330 | |
245 | - | else if (( | |
241 | + | else if ((L == 31)) | |
246 | 242 | then 317740 | |
247 | - | else if (( | |
243 | + | else if ((L == 32)) | |
248 | 244 | then 307810 | |
249 | - | else if (( | |
245 | + | else if ((L == 33)) | |
250 | 246 | then 298480 | |
251 | - | else if (( | |
247 | + | else if ((L == 34)) | |
252 | 248 | then 289700 | |
253 | - | else if (( | |
249 | + | else if ((L == 35)) | |
254 | 250 | then 281420 | |
255 | - | else if (( | |
251 | + | else if ((L == 36)) | |
256 | 252 | then 273610 | |
257 | - | else if (( | |
253 | + | else if ((L == 37)) | |
258 | 254 | then 259210 | |
259 | - | else if (( | |
255 | + | else if ((L == 38)) | |
260 | 256 | then 259210 | |
261 | - | else if (( | |
257 | + | else if ((L == 39)) | |
262 | 258 | then 252560 | |
263 | - | else if (( | |
259 | + | else if ((L == 40)) | |
264 | 260 | then 246250 | |
265 | - | else if (( | |
261 | + | else if ((L == 41)) | |
266 | 262 | then 240240 | |
267 | - | else if (( | |
263 | + | else if ((L == 42)) | |
268 | 264 | then 234520 | |
269 | - | else if (( | |
265 | + | else if ((L == 43)) | |
270 | 266 | then 229060 | |
271 | - | else if (( | |
267 | + | else if ((L == 44)) | |
272 | 268 | then 223860 | |
273 | - | else if (( | |
269 | + | else if ((L == 45)) | |
274 | 270 | then 218880 | |
275 | - | else if (( | |
271 | + | else if ((L == 46)) | |
276 | 272 | then 214130 | |
277 | - | else if (( | |
273 | + | else if ((L == 47)) | |
278 | 274 | then 209570 | |
279 | - | else if (( | |
275 | + | else if ((L == 48)) | |
280 | 276 | then 205200 | |
281 | - | else if (( | |
277 | + | else if ((L == 49)) | |
282 | 278 | then 201020 | |
283 | - | else if (( | |
279 | + | else if ((L == 50)) | |
284 | 280 | then 197000 | |
285 | - | else if (( | |
281 | + | else if ((L == 51)) | |
286 | 282 | then 193130 | |
287 | - | else if (( | |
283 | + | else if ((L == 52)) | |
288 | 284 | then 189420 | |
289 | - | else if (( | |
285 | + | else if ((L == 53)) | |
290 | 286 | then 185840 | |
291 | - | else if (( | |
287 | + | else if ((L == 54)) | |
292 | 288 | then 182400 | |
293 | - | else if (( | |
289 | + | else if ((L == 55)) | |
294 | 290 | then 179090 | |
295 | - | else if (( | |
291 | + | else if ((L == 56)) | |
296 | 292 | then 175890 | |
297 | - | else if (( | |
293 | + | else if ((L == 57)) | |
298 | 294 | then 172800 | |
299 | - | else if (( | |
295 | + | else if ((L == 58)) | |
300 | 296 | then 169820 | |
301 | - | else if (( | |
297 | + | else if ((L == 59)) | |
302 | 298 | then 166940 | |
303 | - | else if (( | |
299 | + | else if ((L == 60)) | |
304 | 300 | then 164160 | |
305 | - | else if (( | |
301 | + | else if ((L == 61)) | |
306 | 302 | then 161470 | |
307 | - | else if (( | |
303 | + | else if ((L == 62)) | |
308 | 304 | then 158870 | |
309 | - | else if (( | |
305 | + | else if ((L == 63)) | |
310 | 306 | then 156340 | |
311 | - | else if (( | |
307 | + | else if ((L == 64)) | |
312 | 308 | then 153900 | |
313 | - | else if (( | |
309 | + | else if ((L == 65)) | |
314 | 310 | then 151530 | |
315 | - | else if (( | |
311 | + | else if ((L == 66)) | |
316 | 312 | then 149240 | |
317 | - | else if (( | |
313 | + | else if ((L == 67)) | |
318 | 314 | then 147010 | |
319 | - | else if (( | |
315 | + | else if ((L == 68)) | |
320 | 316 | then 144850 | |
321 | - | else if (( | |
317 | + | else if ((L == 69)) | |
322 | 318 | then 142750 | |
323 | - | else if (( | |
319 | + | else if ((L == 70)) | |
324 | 320 | then 140710 | |
325 | - | else if (( | |
321 | + | else if ((L == 71)) | |
326 | 322 | then 138730 | |
327 | - | else if (( | |
323 | + | else if ((L == 72)) | |
328 | 324 | then 136800 | |
329 | - | else if (( | |
325 | + | else if ((L == 73)) | |
330 | 326 | then 134930 | |
331 | - | else if (( | |
327 | + | else if ((L == 74)) | |
332 | 328 | then 133100 | |
333 | - | else if (( | |
329 | + | else if ((L == 75)) | |
334 | 330 | then 131330 | |
335 | - | else if (( | |
331 | + | else if ((L == 76)) | |
336 | 332 | then 129600 | |
337 | - | else if (( | |
333 | + | else if ((L == 77)) | |
338 | 334 | then 127920 | |
339 | - | else if (( | |
335 | + | else if ((L == 78)) | |
340 | 336 | then 126280 | |
341 | - | else if (( | |
337 | + | else if ((L == 79)) | |
342 | 338 | then 124680 | |
343 | - | else if (( | |
339 | + | else if ((L == 80)) | |
344 | 340 | then 123120 | |
345 | - | else if (( | |
341 | + | else if ((L == 81)) | |
346 | 342 | then 121600 | |
347 | - | else if (( | |
343 | + | else if ((L == 82)) | |
348 | 344 | then 120120 | |
349 | - | else if (( | |
345 | + | else if ((L == 83)) | |
350 | 346 | then 118670 | |
351 | - | else if (( | |
347 | + | else if ((L == 84)) | |
352 | 348 | then 117260 | |
353 | - | else if (( | |
349 | + | else if ((L == 85)) | |
354 | 350 | then 115880 | |
355 | - | else if (( | |
351 | + | else if ((L == 86)) | |
356 | 352 | then 114530 | |
357 | - | else if (( | |
353 | + | else if ((L == 87)) | |
358 | 354 | then 113210 | |
359 | - | else if (( | |
355 | + | else if ((L == 88)) | |
360 | 356 | then 111930 | |
361 | - | else if (( | |
357 | + | else if ((L == 89)) | |
362 | 358 | then 110670 | |
363 | - | else if (( | |
359 | + | else if ((L == 90)) | |
364 | 360 | then 109440 | |
365 | - | else if (( | |
361 | + | else if ((L == 91)) | |
366 | 362 | then 108240 | |
367 | - | else if (( | |
363 | + | else if ((L == 92)) | |
368 | 364 | then 107060 | |
369 | - | else if (( | |
365 | + | else if ((L == 93)) | |
370 | 366 | then 105910 | |
371 | - | else if (( | |
367 | + | else if ((L == 94)) | |
372 | 368 | then 104780 | |
373 | - | else if (( | |
369 | + | else if ((L == 95)) | |
374 | 370 | then 103680 | |
375 | - | else if (( | |
371 | + | else if ((L == 96)) | |
376 | 372 | then 103680 | |
377 | 373 | else 100000 | |
378 | - | else if (( | |
379 | - | then if (( | |
374 | + | else if ((Z == l)) | |
375 | + | then if ((L == 4)) | |
380 | 376 | then 103680 | |
381 | - | else if (( | |
377 | + | else if ((L == 5)) | |
382 | 378 | then 103680 | |
383 | - | else if (( | |
379 | + | else if ((L == 6)) | |
384 | 380 | then 104780 | |
385 | - | else if (( | |
381 | + | else if ((L == 7)) | |
386 | 382 | then 105910 | |
387 | - | else if (( | |
383 | + | else if ((L == 8)) | |
388 | 384 | then 107060 | |
389 | - | else if (( | |
385 | + | else if ((L == 9)) | |
390 | 386 | then 108240 | |
391 | - | else if (( | |
387 | + | else if ((L == 10)) | |
392 | 388 | then 109440 | |
393 | - | else if (( | |
389 | + | else if ((L == 11)) | |
394 | 390 | then 110670 | |
395 | - | else if (( | |
391 | + | else if ((L == 12)) | |
396 | 392 | then 111930 | |
397 | - | else if (( | |
393 | + | else if ((L == 13)) | |
398 | 394 | then 113210 | |
399 | - | else if (( | |
395 | + | else if ((L == 14)) | |
400 | 396 | then 114530 | |
401 | - | else if (( | |
397 | + | else if ((L == 15)) | |
402 | 398 | then 115880 | |
403 | - | else if (( | |
399 | + | else if ((L == 16)) | |
404 | 400 | then 117260 | |
405 | - | else if (( | |
401 | + | else if ((L == 17)) | |
406 | 402 | then 118670 | |
407 | - | else if (( | |
403 | + | else if ((L == 18)) | |
408 | 404 | then 120120 | |
409 | - | else if (( | |
405 | + | else if ((L == 19)) | |
410 | 406 | then 121600 | |
411 | - | else if (( | |
407 | + | else if ((L == 20)) | |
412 | 408 | then 123120 | |
413 | - | else if (( | |
409 | + | else if ((L == 21)) | |
414 | 410 | then 124680 | |
415 | - | else if (( | |
411 | + | else if ((L == 22)) | |
416 | 412 | then 126280 | |
417 | - | else if (( | |
413 | + | else if ((L == 23)) | |
418 | 414 | then 127920 | |
419 | - | else if (( | |
415 | + | else if ((L == 24)) | |
420 | 416 | then 129600 | |
421 | - | else if (( | |
417 | + | else if ((L == 25)) | |
422 | 418 | then 131330 | |
423 | - | else if (( | |
419 | + | else if ((L == 26)) | |
424 | 420 | then 133100 | |
425 | - | else if (( | |
421 | + | else if ((L == 27)) | |
426 | 422 | then 134930 | |
427 | - | else if (( | |
423 | + | else if ((L == 28)) | |
428 | 424 | then 136800 | |
429 | - | else if (( | |
425 | + | else if ((L == 29)) | |
430 | 426 | then 138730 | |
431 | - | else if (( | |
427 | + | else if ((L == 30)) | |
432 | 428 | then 140710 | |
433 | - | else if (( | |
429 | + | else if ((L == 31)) | |
434 | 430 | then 142750 | |
435 | - | else if (( | |
431 | + | else if ((L == 32)) | |
436 | 432 | then 144850 | |
437 | - | else if (( | |
433 | + | else if ((L == 33)) | |
438 | 434 | then 147010 | |
439 | - | else if (( | |
435 | + | else if ((L == 34)) | |
440 | 436 | then 149240 | |
441 | - | else if (( | |
437 | + | else if ((L == 35)) | |
442 | 438 | then 151530 | |
443 | - | else if (( | |
439 | + | else if ((L == 36)) | |
444 | 440 | then 153900 | |
445 | - | else if (( | |
441 | + | else if ((L == 37)) | |
446 | 442 | then 156340 | |
447 | - | else if (( | |
443 | + | else if ((L == 38)) | |
448 | 444 | then 158870 | |
449 | - | else if (( | |
445 | + | else if ((L == 39)) | |
450 | 446 | then 161470 | |
451 | - | else if (( | |
447 | + | else if ((L == 40)) | |
452 | 448 | then 164160 | |
453 | - | else if (( | |
449 | + | else if ((L == 41)) | |
454 | 450 | then 166940 | |
455 | - | else if (( | |
451 | + | else if ((L == 42)) | |
456 | 452 | then 169820 | |
457 | - | else if (( | |
453 | + | else if ((L == 43)) | |
458 | 454 | then 172800 | |
459 | - | else if (( | |
455 | + | else if ((L == 44)) | |
460 | 456 | then 175890 | |
461 | - | else if (( | |
457 | + | else if ((L == 45)) | |
462 | 458 | then 179090 | |
463 | - | else if (( | |
459 | + | else if ((L == 46)) | |
464 | 460 | then 185840 | |
465 | - | else if (( | |
461 | + | else if ((L == 47)) | |
466 | 462 | then 185840 | |
467 | - | else if (( | |
463 | + | else if ((L == 48)) | |
468 | 464 | then 189420 | |
469 | - | else if (( | |
465 | + | else if ((L == 49)) | |
470 | 466 | then 193130 | |
471 | - | else if (( | |
467 | + | else if ((L == 50)) | |
472 | 468 | then 197000 | |
473 | - | else if (( | |
469 | + | else if ((L == 51)) | |
474 | 470 | then 201020 | |
475 | - | else if (( | |
471 | + | else if ((L == 52)) | |
476 | 472 | then 205200 | |
477 | - | else if (( | |
473 | + | else if ((L == 53)) | |
478 | 474 | then 209570 | |
479 | - | else if (( | |
475 | + | else if ((L == 54)) | |
480 | 476 | then 214130 | |
481 | - | else if (( | |
477 | + | else if ((L == 55)) | |
482 | 478 | then 218880 | |
483 | - | else if (( | |
479 | + | else if ((L == 56)) | |
484 | 480 | then 223860 | |
485 | - | else if (( | |
481 | + | else if ((L == 57)) | |
486 | 482 | then 229060 | |
487 | - | else if (( | |
483 | + | else if ((L == 58)) | |
488 | 484 | then 234520 | |
489 | - | else if (( | |
485 | + | else if ((L == 59)) | |
490 | 486 | then 240240 | |
491 | - | else if (( | |
487 | + | else if ((L == 60)) | |
492 | 488 | then 246250 | |
493 | - | else if (( | |
489 | + | else if ((L == 61)) | |
494 | 490 | then 252560 | |
495 | - | else if (( | |
491 | + | else if ((L == 62)) | |
496 | 492 | then 259210 | |
497 | - | else if (( | |
493 | + | else if ((L == 63)) | |
498 | 494 | then 259210 | |
499 | - | else if (( | |
495 | + | else if ((L == 64)) | |
500 | 496 | then 273610 | |
501 | - | else if (( | |
497 | + | else if ((L == 65)) | |
502 | 498 | then 281420 | |
503 | - | else if (( | |
499 | + | else if ((L == 66)) | |
504 | 500 | then 289700 | |
505 | - | else if (( | |
501 | + | else if ((L == 67)) | |
506 | 502 | then 298480 | |
507 | - | else if (( | |
503 | + | else if ((L == 68)) | |
508 | 504 | then 307810 | |
509 | - | else if (( | |
505 | + | else if ((L == 69)) | |
510 | 506 | then 317740 | |
511 | - | else if (( | |
507 | + | else if ((L == 70)) | |
512 | 508 | then 328330 | |
513 | - | else if (( | |
509 | + | else if ((L == 71)) | |
514 | 510 | then 339650 | |
515 | - | else if (( | |
511 | + | else if ((L == 72)) | |
516 | 512 | then 351780 | |
517 | - | else if (( | |
513 | + | else if ((L == 73)) | |
518 | 514 | then 364810 | |
519 | - | else if (( | |
515 | + | else if ((L == 74)) | |
520 | 516 | then 378840 | |
521 | - | else if (( | |
517 | + | else if ((L == 75)) | |
522 | 518 | then 394000 | |
523 | - | else if (( | |
519 | + | else if ((L == 76)) | |
524 | 520 | then 410410 | |
525 | - | else if (( | |
521 | + | else if ((L == 77)) | |
526 | 522 | then 428260 | |
527 | - | else if (( | |
523 | + | else if ((L == 78)) | |
528 | 524 | then 447720 | |
529 | - | else if (( | |
525 | + | else if ((L == 79)) | |
530 | 526 | then 469040 | |
531 | - | else if (( | |
527 | + | else if ((L == 80)) | |
532 | 528 | then 492500 | |
533 | - | else if (( | |
529 | + | else if ((L == 81)) | |
534 | 530 | then 518420 | |
535 | - | else if (( | |
531 | + | else if ((L == 82)) | |
536 | 532 | then 547220 | |
537 | - | else if (( | |
533 | + | else if ((L == 83)) | |
538 | 534 | then 579410 | |
539 | - | else if (( | |
535 | + | else if ((L == 84)) | |
540 | 536 | then 615620 | |
541 | - | else if (( | |
537 | + | else if ((L == 85)) | |
542 | 538 | then 656660 | |
543 | - | else if (( | |
539 | + | else if ((L == 86)) | |
544 | 540 | then 703570 | |
545 | - | else if (( | |
541 | + | else if ((L == 87)) | |
546 | 542 | then 757690 | |
547 | - | else if (( | |
543 | + | else if ((L == 88)) | |
548 | 544 | then 820830 | |
549 | - | else if (( | |
545 | + | else if ((L == 89)) | |
550 | 546 | then 895450 | |
551 | - | else if (( | |
547 | + | else if ((L == 90)) | |
552 | 548 | then 985000 | |
553 | - | else if (( | |
549 | + | else if ((L == 91)) | |
554 | 550 | then 1094440 | |
555 | - | else if (( | |
551 | + | else if ((L == 92)) | |
556 | 552 | then 1231250 | |
557 | - | else if (( | |
553 | + | else if ((L == 93)) | |
558 | 554 | then 1407140 | |
559 | - | else if (( | |
555 | + | else if ((L == 94)) | |
560 | 556 | then 1641660 | |
561 | - | else if (( | |
557 | + | else if ((L == 95)) | |
562 | 558 | then 1970000 | |
563 | - | else if (( | |
559 | + | else if ((L == 96)) | |
564 | 560 | then 2462500 | |
565 | - | else if (( | |
561 | + | else if ((L == 97)) | |
566 | 562 | then 3283330 | |
567 | - | else if (( | |
563 | + | else if ((L == 98)) | |
568 | 564 | then 4925000 | |
569 | - | else if (( | |
565 | + | else if ((L == 99)) | |
570 | 566 | then 9850000 | |
571 | 567 | else 100000 | |
572 | 568 | else 100000 | |
573 | 569 | ||
574 | 570 | ||
575 | - | func | |
576 | - | then if (( | |
571 | + | func ar (as,L,at) = if ((as == k)) | |
572 | + | then if ((L >= at)) | |
577 | 573 | then true | |
578 | 574 | else false | |
579 | - | else if (( | |
580 | - | then if (( | |
575 | + | else if ((as == l)) | |
576 | + | then if ((at >= L)) | |
581 | 577 | then true | |
582 | 578 | else false | |
583 | 579 | else false | |
584 | 580 | ||
585 | 581 | ||
586 | - | func | |
582 | + | func au (av,L,Z) = if (if ((m > av)) | |
587 | 583 | then true | |
588 | - | else ( | |
589 | - | then throw(((("Bet amount is not in range: minBet=" + toString(( | |
590 | - | else if (if (( | |
591 | - | then ( | |
584 | + | else (av > n)) | |
585 | + | then throw(((("Bet amount is not in range: minBet=" + toString((m / e))) + " maxBet=") + toString((n / e)))) | |
586 | + | else if (if ((Z != k)) | |
587 | + | then (Z != l) | |
592 | 588 | else false) | |
593 | 589 | then throw("Invalid Roll type, try with OVER or UNDER") | |
594 | - | else if (if (( | |
590 | + | else if (if ((o > L)) | |
595 | 591 | then true | |
596 | - | else ( | |
597 | - | then throw(((("Prediction is out of the | |
592 | + | else (L > p)) | |
593 | + | then throw(((("Prediction is out of the range: " + toString(o)) + " <= prediction <= ") + toString(p))) | |
598 | 594 | else { | |
599 | - | let | |
600 | - | (((( | |
595 | + | let aw = aq(L, Z) | |
596 | + | ((((av * aw) / 100000) * (100 - (f + g))) / 100) | |
601 | 597 | } | |
602 | 598 | ||
603 | 599 | ||
604 | - | @Callable(aA) | |
605 | - | func playDice (ab,at) = { | |
606 | - | let aB = parseIntValue(at) | |
607 | - | let ad = toBase58String(aA.transactionId) | |
608 | - | let aC = extract(aA.payment) | |
609 | - | let aD = isDefined(aA.feeAssetId) | |
610 | - | let az = as(aB, ab) | |
611 | - | let F = ax(aC.amount, aB, ab) | |
612 | - | let aE = wavesBalance(aA.caller) | |
613 | - | let aF = isDefined(getString(this, ad)) | |
614 | - | if ((aC.assetId != d)) | |
600 | + | @Callable(ax) | |
601 | + | func playDice (Z,L) = { | |
602 | + | let ab = toBase58String(ax.transactionId) | |
603 | + | let ay = extract(ax.payment) | |
604 | + | let az = isDefined(ax.feeAssetId) | |
605 | + | let aw = aq(L, Z) | |
606 | + | let D = au(ay.amount, L, Z) | |
607 | + | let aA = wavesBalance(ax.caller) | |
608 | + | let aB = isDefined(getString(this, ab)) | |
609 | + | if ((ay.assetId != d)) | |
615 | 610 | then throw("Payment should be in Wavesbet") | |
616 | - | else if ((100000 > | |
611 | + | else if ((100000 > aA)) | |
617 | 612 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
618 | - | else if ( | |
613 | + | else if (az) | |
619 | 614 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
620 | - | else if ( | |
615 | + | else if (aB) | |
621 | 616 | then throw("Passed gameId had been used before. Game aborted.") | |
622 | 617 | else { | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | ScriptResult(WriteSet([DataEntry(c, | |
618 | + | let aC = w() | |
619 | + | let N = toBase58String(ax.callerPublicKey) | |
620 | + | let aD = J(h, L, Z, N, D, "") | |
621 | + | ScriptResult(WriteSet([DataEntry(c, C(D)), DataEntry(b, aC), DataEntry(ab, aD)]), TransferSet(nil)) | |
627 | 622 | } | |
628 | 623 | } | |
629 | 624 | ||
630 | 625 | ||
631 | 626 | ||
632 | - | @Callable( | |
633 | - | func withdraw ( | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if (( | |
627 | + | @Callable(ax) | |
628 | + | func withdraw (ab,aE) = { | |
629 | + | let aF = aa(ab) | |
630 | + | let K = aF[q] | |
631 | + | let L = parseIntValue(aF[r]) | |
632 | + | let Z = aF[s] | |
633 | + | let D = parseIntValue(aF[u]) | |
634 | + | let N = aF[t] | |
635 | + | let am = addressFromPublicKey(fromBase58String(N)) | |
636 | + | let aG = ae(ab, D) | |
637 | + | if ((K != h)) | |
643 | 638 | then throw("Invalid game state for passed gameId") | |
644 | 639 | else { | |
645 | - | let | |
646 | - | let | |
647 | - | if ( | |
640 | + | let ai = af(ab, aE) | |
641 | + | let aH = aj(ai) | |
642 | + | if (ar(Z, L, ai)) | |
648 | 643 | then { | |
649 | - | let | |
650 | - | | |
644 | + | let an = J(i, L, Z, N, D, aH) | |
645 | + | al(ab, am, D, an) | |
651 | 646 | } | |
652 | 647 | else { | |
653 | - | let | |
654 | - | WriteSet([DataEntry( | |
648 | + | let an = J(j, L, Z, N, D, aH) | |
649 | + | WriteSet([DataEntry(ab, an)]) | |
655 | 650 | } | |
656 | 651 | } | |
657 | 652 | } | |
658 | 653 | ||
659 | 654 |
github/deemru/w8io/169f3d6 2060.71 ms ◑