tx · ErxQjkTkxiJ7T5oKheEaqTGQPX4LDbScseCpLvaithns 3Mu8FKNn2fEuxsE5mVhCwDQ275Ygi3ejweU: -0.01400000 Waves 2019.10.24 20:30 [734480] smart account 3Mu8FKNn2fEuxsE5mVhCwDQ275Ygi3ejweU > SELF 0.00000000 Waves
{ "type": 13, "id": "ErxQjkTkxiJ7T5oKheEaqTGQPX4LDbScseCpLvaithns", "fee": 1400000, "feeAssetId": null, "timestamp": 1571938201744, "version": 1, "sender": "3Mu8FKNn2fEuxsE5mVhCwDQ275Ygi3ejweU", "senderPublicKey": "6EzysHLfsAMmtxy8XtuFoQrCNTEkUdPSEzHYEwqpqSs3", "proofs": [ "jQANbVtgiLkWpFSTz9o6q8WahcxJn9Xz8FCjE5ozghC1DkhTDKdbkKsR51oK2sb3LbL3diKp33bUeqxunMUFDrY" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIICBIECgIIAgAAAB0AAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAcliYXNlNjQ6LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtT2xSQlRZRU8zSDdZOXJCbW9GUQpGbjQzOTJQeDBRdzEzRHNkRWhuek1IMmNqNlk1eW1QdUNPTE1OZTVxclV6UWw4b1JMeklCekZWTVpsd1VZbDJiCm9zck9JeFFiWUY3V1ZRV3ZvVnhFVDFZSWdEbTNOenpPTEE1dUg3Q0tPMHNuc2htTUZDRE9aRWV3NDFHaktoM1AKZ3grbmJBZ3VQOVpRUGZxU2FmRW1DM0NOLzR5RHNKcktyaVJuaVpKbzlqUy80TExzUkt3QjdIQVpIem9GOUxMNwp0U1pIM2h0YU5HdGJkVGt4WjFUelNUM01iMlZQU3pzWnZRRG9jWFVWT21KT3UwbzI5YU9ZK0drRy9HNFJDSzBGCkJXUUhFVXZDNTFUUkRTNWs4amFkME8xTW9ialFjNmIxOGQr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lU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsAAAAALl/h7s=", "chainId": 84, "height": 734480, "spentComplexity": 0 } View: original | compacted Prev: none Next: FhpTxiu4rxZx2UrMfJbsLToWJPzyPtxHDjA7UUovq1zD Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let RSAPUBLIC = fromBase64String("base64:-----BEGIN PUBLIC KEY----- | |
5 | + | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQ | |
6 | + | Fn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2b | |
7 | + | osrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3P | |
8 | + | gx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7 | |
9 | + | tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0F | |
10 | + | BWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkz | |
11 | + | ZQIDAQAB | |
12 | + | -----END PUBLIC KEY-----") | |
13 | + | ||
14 | + | let rasTest = fromBase64String("Ww0VvjXnWc71ypTbOSR8EwXkwSaF") | |
15 | + | ||
16 | + | let GAMESCOUNTERKEY = "$GAME_NUM" | |
17 | + | ||
18 | + | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
19 | + | ||
20 | + | let STATESUBMITTED = "SUBMITTED" | |
21 | + | ||
22 | + | let STATEWON = "WON" | |
23 | + | ||
24 | + | let STATELOST = "LOST" | |
25 | + | ||
26 | + | let IdxGameState = 0 | |
27 | + | ||
28 | + | let IdxPlayerChoice = 1 | |
29 | + | ||
30 | + | let IdxType = 2 | |
31 | + | ||
32 | + | let IdxPlayerPubKey58 = 3 | |
33 | + | ||
34 | + | let IdxStartedHeight = 4 | |
35 | + | ||
36 | + | let IdxWinAmt = 5 | |
37 | + | ||
38 | + | let IdxRandOrEmpty = 6 | |
39 | + | ||
40 | + | func IncrementGameNum () = { | |
41 | + | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
42 | + | case num: Int => | |
43 | + | num | |
44 | + | case _ => | |
45 | + | 0 | |
46 | + | } | |
47 | + | (gameNum + 1) | |
48 | + | } | |
49 | + | ||
50 | + | ||
51 | + | func ExtractReservedAmt () = match getInteger(this, RESERVATIONKEY) { | |
52 | + | case a: Int => | |
53 | + | a | |
54 | + | case _ => | |
55 | + | 0 | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
60 | + | let newReservedAmount = (ExtractReservedAmt() + winAmt) | |
61 | + | let balance = wavesBalance(this) | |
62 | + | if ((newReservedAmount > balance)) | |
63 | + | then throw("Insufficient funds on Waves Rider account. Transaction was rejected for your safety.") | |
64 | + | else newReservedAmount | |
65 | + | } | |
66 | + | ||
67 | + | ||
68 | + | func FormatGameDataParam (p) = { | |
69 | + | let s = size(p) | |
70 | + | if ((s == 0)) | |
71 | + | then throw("Parameter size must be greater then 0") | |
72 | + | else if ((s > 99)) | |
73 | + | then throw("Parameter size must be less then 100") | |
74 | + | else if ((10 > s)) | |
75 | + | then (("0" + toString(s)) + p) | |
76 | + | else (toString(s) + p) | |
77 | + | } | |
78 | + | ||
79 | + | ||
80 | + | func FormatGameDataStr (gameState,playerChoice,playerType,playerPubKey58,startedHeight,winAmt,randOrEmpty) = { | |
81 | + | let fullStateStr = ((((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam(playerChoice)) + "_") + FormatGameDataParam(playerType)) + "_") + FormatGameDataParam(playerPubKey58)) + "_") + FormatGameDataParam(toString(startedHeight))) + "_") + FormatGameDataParam(toString(winAmt))) | |
82 | + | if ((randOrEmpty == "")) | |
83 | + | then fullStateStr | |
84 | + | else ((fullStateStr + "_") + FormatGameDataParam(randOrEmpty)) | |
85 | + | } | |
86 | + | ||
87 | + | ||
88 | + | func RemoveUnderscoreIfPresent (remaining) = if ((size(remaining) > 0)) | |
89 | + | then drop(remaining, 1) | |
90 | + | else remaining | |
91 | + | ||
92 | + | ||
93 | + | func ParseNextAttribute (remaining) = { | |
94 | + | let s = size(remaining) | |
95 | + | if ((s > 0)) | |
96 | + | then { | |
97 | + | let nn = parseIntValue(take(remaining, 2)) | |
98 | + | let v = take(drop(remaining, 2), nn) | |
99 | + | let tmpRemaining = drop(remaining, (nn + 2)) | |
100 | + | let remainingState = RemoveUnderscoreIfPresent(tmpRemaining) | |
101 | + | [v, remainingState] | |
102 | + | } | |
103 | + | else throw("Empty string was passed into parseNextAttribute func") | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | func ParseGameRawDataStr (rawStateStr) = { | |
108 | + | let gameState = ParseNextAttribute(rawStateStr) | |
109 | + | let playerChoice = ParseNextAttribute(gameState[1]) | |
110 | + | let type = ParseNextAttribute(playerChoice[1]) | |
111 | + | let playerPubKey58 = ParseNextAttribute(type[1]) | |
112 | + | let startedHeight = ParseNextAttribute(playerPubKey58[1]) | |
113 | + | let winAmt = ParseNextAttribute(startedHeight[1]) | |
114 | + | [gameState[0], playerChoice[0], type[0], playerPubKey58[0], startedHeight[0], winAmt[0]] | |
115 | + | } | |
116 | + | ||
117 | + | ||
118 | + | func ExtractGameDataList (gameId) = { | |
119 | + | let rawDataStr = match getString(this, gameId) { | |
120 | + | case str: String => | |
121 | + | str | |
122 | + | case _ => | |
123 | + | throw(("Couldn't find game by " + gameId)) | |
124 | + | } | |
125 | + | ParseGameRawDataStr(rawDataStr) | |
126 | + | } | |
127 | + | ||
128 | + | ||
129 | + | func DecreaseReservedAmt (gameId,winAmt) = { | |
130 | + | let newReservedAmount = (ExtractReservedAmt() - winAmt) | |
131 | + | if ((0 > newReservedAmount)) | |
132 | + | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
133 | + | else DataEntry(RESERVATIONKEY, newReservedAmount) | |
134 | + | } | |
135 | + | ||
136 | + | ||
137 | + | func GenerateRandInt (gameId) = { | |
138 | + | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rasTest, RSAPUBLIC) | |
139 | + | if (rsaSigValid) | |
140 | + | then { | |
141 | + | let rand = (toInt(sha256(rasTest)) % 100) | |
142 | + | if ((0 > rand)) | |
143 | + | then ((-1 * rand) + 1) | |
144 | + | else (rand + 1) | |
145 | + | } | |
146 | + | else throw("Invalid RSA signature") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func RandToStr (r) = if (if ((r >= 1)) | |
151 | + | then (100 >= r) | |
152 | + | else false) | |
153 | + | then toString(r) | |
154 | + | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(r))) | |
155 | + | ||
156 | + | ||
157 | + | func WinScriptSet (gameId,playerAddress,winAmt,newGameDataStr) = { | |
158 | + | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4')] | |
159 | + | let writeDicePlay = WriteSet([DataEntry("Game Id", gameId), DataEntry("Player Address", toString(playerAddress))]) | |
160 | + | ScriptResult(writeDicePlay, TransferSet(tSetCommonData)) | |
161 | + | } | |
162 | + | ||
163 | + | ||
164 | + | func getMultiplier (type,playerPrediction) = { | |
165 | + | let prediction = 50 | |
166 | + | if ((type == "Under")) | |
167 | + | then if ((prediction == 1)) | |
168 | + | then 9850000 | |
169 | + | else if ((prediction == 2)) | |
170 | + | then 4925000 | |
171 | + | else if ((prediction == 3)) | |
172 | + | then 3283330 | |
173 | + | else if ((prediction == 4)) | |
174 | + | then 2462500 | |
175 | + | else if ((prediction == 5)) | |
176 | + | then 1970000 | |
177 | + | else if ((prediction == 6)) | |
178 | + | then 1641660 | |
179 | + | else if ((prediction == 7)) | |
180 | + | then 1407140 | |
181 | + | else if ((prediction == 8)) | |
182 | + | then 1231250 | |
183 | + | else if ((prediction == 9)) | |
184 | + | then 1094440 | |
185 | + | else if ((prediction == 10)) | |
186 | + | then 985000 | |
187 | + | else if ((prediction == 11)) | |
188 | + | then 895450 | |
189 | + | else if ((prediction == 12)) | |
190 | + | then 820830 | |
191 | + | else if ((prediction == 13)) | |
192 | + | then 757690 | |
193 | + | else if ((prediction == 14)) | |
194 | + | then 703570 | |
195 | + | else if ((prediction == 15)) | |
196 | + | then 656660 | |
197 | + | else if ((prediction == 16)) | |
198 | + | then 615620 | |
199 | + | else if ((prediction == 17)) | |
200 | + | then 579410 | |
201 | + | else if ((prediction == 18)) | |
202 | + | then 547220 | |
203 | + | else if ((prediction == 19)) | |
204 | + | then 518420 | |
205 | + | else if ((prediction == 20)) | |
206 | + | then 492500 | |
207 | + | else if ((prediction == 21)) | |
208 | + | then 469040 | |
209 | + | else if ((prediction == 22)) | |
210 | + | then 447720 | |
211 | + | else if ((prediction == 23)) | |
212 | + | then 428260 | |
213 | + | else if ((prediction == 24)) | |
214 | + | then 410410 | |
215 | + | else if ((prediction == 25)) | |
216 | + | then 394000 | |
217 | + | else if ((prediction == 26)) | |
218 | + | then 378840 | |
219 | + | else if ((prediction == 27)) | |
220 | + | then 364810 | |
221 | + | else if ((prediction == 28)) | |
222 | + | then 351780 | |
223 | + | else if ((prediction == 29)) | |
224 | + | then 339650 | |
225 | + | else if ((prediction == 30)) | |
226 | + | then 328330 | |
227 | + | else if ((prediction == 31)) | |
228 | + | then 317740 | |
229 | + | else if ((prediction == 32)) | |
230 | + | then 307810 | |
231 | + | else if ((prediction == 33)) | |
232 | + | then 298480 | |
233 | + | else if ((prediction == 34)) | |
234 | + | then 289700 | |
235 | + | else if ((prediction == 35)) | |
236 | + | then 281420 | |
237 | + | else if ((prediction == 36)) | |
238 | + | then 273610 | |
239 | + | else if ((prediction == 37)) | |
240 | + | then 259210 | |
241 | + | else if ((prediction == 38)) | |
242 | + | then 259210 | |
243 | + | else if ((prediction == 39)) | |
244 | + | then 252560 | |
245 | + | else if ((prediction == 40)) | |
246 | + | then 246250 | |
247 | + | else if ((prediction == 41)) | |
248 | + | then 240240 | |
249 | + | else if ((prediction == 42)) | |
250 | + | then 234520 | |
251 | + | else if ((prediction == 43)) | |
252 | + | then 229060 | |
253 | + | else if ((prediction == 44)) | |
254 | + | then 223860 | |
255 | + | else if ((prediction == 45)) | |
256 | + | then 218880 | |
257 | + | else if ((prediction == 46)) | |
258 | + | then 214130 | |
259 | + | else if ((prediction == 47)) | |
260 | + | then 209570 | |
261 | + | else if ((prediction == 48)) | |
262 | + | then 205200 | |
263 | + | else if ((prediction == 49)) | |
264 | + | then 201020 | |
265 | + | else if ((prediction == 50)) | |
266 | + | then 197000 | |
267 | + | else if ((prediction == 51)) | |
268 | + | then 193130 | |
269 | + | else if ((prediction == 52)) | |
270 | + | then 189420 | |
271 | + | else if ((prediction == 53)) | |
272 | + | then 185840 | |
273 | + | else if ((prediction == 54)) | |
274 | + | then 182400 | |
275 | + | else if ((prediction == 55)) | |
276 | + | then 179090 | |
277 | + | else if ((prediction == 56)) | |
278 | + | then 175890 | |
279 | + | else if ((prediction == 57)) | |
280 | + | then 172800 | |
281 | + | else if ((prediction == 58)) | |
282 | + | then 169820 | |
283 | + | else if ((prediction == 59)) | |
284 | + | then 166940 | |
285 | + | else if ((prediction == 60)) | |
286 | + | then 164160 | |
287 | + | else if ((prediction == 61)) | |
288 | + | then 161470 | |
289 | + | else if ((prediction == 62)) | |
290 | + | then 158870 | |
291 | + | else if ((prediction == 63)) | |
292 | + | then 156340 | |
293 | + | else if ((prediction == 64)) | |
294 | + | then 153900 | |
295 | + | else if ((prediction == 65)) | |
296 | + | then 151530 | |
297 | + | else if ((prediction == 66)) | |
298 | + | then 149240 | |
299 | + | else if ((prediction == 67)) | |
300 | + | then 147010 | |
301 | + | else if ((prediction == 68)) | |
302 | + | then 144850 | |
303 | + | else if ((prediction == 69)) | |
304 | + | then 142750 | |
305 | + | else if ((prediction == 70)) | |
306 | + | then 140710 | |
307 | + | else if ((prediction == 71)) | |
308 | + | then 138730 | |
309 | + | else if ((prediction == 72)) | |
310 | + | then 136800 | |
311 | + | else if ((prediction == 73)) | |
312 | + | then 134930 | |
313 | + | else if ((prediction == 74)) | |
314 | + | then 133100 | |
315 | + | else if ((prediction == 75)) | |
316 | + | then 131330 | |
317 | + | else if ((prediction == 76)) | |
318 | + | then 129600 | |
319 | + | else if ((prediction == 77)) | |
320 | + | then 127920 | |
321 | + | else if ((prediction == 78)) | |
322 | + | then 126280 | |
323 | + | else if ((prediction == 79)) | |
324 | + | then 124680 | |
325 | + | else if ((prediction == 80)) | |
326 | + | then 123120 | |
327 | + | else if ((prediction == 81)) | |
328 | + | then 121600 | |
329 | + | else if ((prediction == 82)) | |
330 | + | then 120120 | |
331 | + | else if ((prediction == 83)) | |
332 | + | then 118670 | |
333 | + | else if ((prediction == 84)) | |
334 | + | then 117260 | |
335 | + | else if ((prediction == 85)) | |
336 | + | then 115880 | |
337 | + | else if ((prediction == 86)) | |
338 | + | then 114530 | |
339 | + | else if ((prediction == 87)) | |
340 | + | then 113210 | |
341 | + | else if ((prediction == 88)) | |
342 | + | then 111930 | |
343 | + | else if ((prediction == 89)) | |
344 | + | then 110670 | |
345 | + | else if ((prediction == 90)) | |
346 | + | then 109440 | |
347 | + | else if ((prediction == 91)) | |
348 | + | then 108240 | |
349 | + | else if ((prediction == 92)) | |
350 | + | then 107060 | |
351 | + | else if ((prediction == 93)) | |
352 | + | then 105910 | |
353 | + | else if ((prediction == 94)) | |
354 | + | then 104780 | |
355 | + | else if ((prediction == 95)) | |
356 | + | then 103680 | |
357 | + | else if ((prediction == 96)) | |
358 | + | then 103680 | |
359 | + | else 100000 | |
360 | + | else if ((type == "Over")) | |
361 | + | then if ((prediction == 4)) | |
362 | + | then 103680 | |
363 | + | else if ((prediction == 5)) | |
364 | + | then 103680 | |
365 | + | else if ((prediction == 6)) | |
366 | + | then 104780 | |
367 | + | else if ((prediction == 7)) | |
368 | + | then 105910 | |
369 | + | else if ((prediction == 8)) | |
370 | + | then 107060 | |
371 | + | else if ((prediction == 9)) | |
372 | + | then 108240 | |
373 | + | else if ((prediction == 10)) | |
374 | + | then 109440 | |
375 | + | else if ((prediction == 11)) | |
376 | + | then 110670 | |
377 | + | else if ((prediction == 12)) | |
378 | + | then 111930 | |
379 | + | else if ((prediction == 13)) | |
380 | + | then 113210 | |
381 | + | else if ((prediction == 14)) | |
382 | + | then 114530 | |
383 | + | else if ((prediction == 15)) | |
384 | + | then 115880 | |
385 | + | else if ((prediction == 16)) | |
386 | + | then 117260 | |
387 | + | else if ((prediction == 17)) | |
388 | + | then 118670 | |
389 | + | else if ((prediction == 18)) | |
390 | + | then 120120 | |
391 | + | else if ((prediction == 19)) | |
392 | + | then 121600 | |
393 | + | else if ((prediction == 20)) | |
394 | + | then 123120 | |
395 | + | else if ((prediction == 21)) | |
396 | + | then 124680 | |
397 | + | else if ((prediction == 22)) | |
398 | + | then 126280 | |
399 | + | else if ((prediction == 23)) | |
400 | + | then 127920 | |
401 | + | else if ((prediction == 24)) | |
402 | + | then 129600 | |
403 | + | else if ((prediction == 25)) | |
404 | + | then 131330 | |
405 | + | else if ((prediction == 26)) | |
406 | + | then 133100 | |
407 | + | else if ((prediction == 27)) | |
408 | + | then 134930 | |
409 | + | else if ((prediction == 28)) | |
410 | + | then 136800 | |
411 | + | else if ((prediction == 29)) | |
412 | + | then 138730 | |
413 | + | else if ((prediction == 30)) | |
414 | + | then 140710 | |
415 | + | else if ((prediction == 31)) | |
416 | + | then 142750 | |
417 | + | else if ((prediction == 32)) | |
418 | + | then 144850 | |
419 | + | else if ((prediction == 33)) | |
420 | + | then 147010 | |
421 | + | else if ((prediction == 34)) | |
422 | + | then 149240 | |
423 | + | else if ((prediction == 35)) | |
424 | + | then 151530 | |
425 | + | else if ((prediction == 36)) | |
426 | + | then 153900 | |
427 | + | else if ((prediction == 37)) | |
428 | + | then 156340 | |
429 | + | else if ((prediction == 38)) | |
430 | + | then 158870 | |
431 | + | else if ((prediction == 39)) | |
432 | + | then 161470 | |
433 | + | else if ((prediction == 40)) | |
434 | + | then 164160 | |
435 | + | else if ((prediction == 41)) | |
436 | + | then 166940 | |
437 | + | else if ((prediction == 42)) | |
438 | + | then 169820 | |
439 | + | else if ((prediction == 43)) | |
440 | + | then 172800 | |
441 | + | else if ((prediction == 44)) | |
442 | + | then 175890 | |
443 | + | else if ((prediction == 45)) | |
444 | + | then 179090 | |
445 | + | else if ((prediction == 46)) | |
446 | + | then 185840 | |
447 | + | else if ((prediction == 47)) | |
448 | + | then 185840 | |
449 | + | else if ((prediction == 48)) | |
450 | + | then 189420 | |
451 | + | else if ((prediction == 49)) | |
452 | + | then 193130 | |
453 | + | else if ((prediction == 50)) | |
454 | + | then 197000 | |
455 | + | else if ((prediction == 51)) | |
456 | + | then 201020 | |
457 | + | else if ((prediction == 52)) | |
458 | + | then 205200 | |
459 | + | else if ((prediction == 53)) | |
460 | + | then 209570 | |
461 | + | else if ((prediction == 54)) | |
462 | + | then 214130 | |
463 | + | else if ((prediction == 55)) | |
464 | + | then 218880 | |
465 | + | else if ((prediction == 56)) | |
466 | + | then 223860 | |
467 | + | else if ((prediction == 57)) | |
468 | + | then 229060 | |
469 | + | else if ((prediction == 58)) | |
470 | + | then 234520 | |
471 | + | else if ((prediction == 59)) | |
472 | + | then 240240 | |
473 | + | else if ((prediction == 60)) | |
474 | + | then 246250 | |
475 | + | else if ((prediction == 61)) | |
476 | + | then 252560 | |
477 | + | else if ((prediction == 62)) | |
478 | + | then 259210 | |
479 | + | else if ((prediction == 63)) | |
480 | + | then 259210 | |
481 | + | else if ((prediction == 64)) | |
482 | + | then 273610 | |
483 | + | else if ((prediction == 65)) | |
484 | + | then 281420 | |
485 | + | else if ((prediction == 66)) | |
486 | + | then 289700 | |
487 | + | else if ((prediction == 67)) | |
488 | + | then 298480 | |
489 | + | else if ((prediction == 68)) | |
490 | + | then 307810 | |
491 | + | else if ((prediction == 69)) | |
492 | + | then 317740 | |
493 | + | else if ((prediction == 70)) | |
494 | + | then 328330 | |
495 | + | else if ((prediction == 71)) | |
496 | + | then 339650 | |
497 | + | else if ((prediction == 72)) | |
498 | + | then 351780 | |
499 | + | else if ((prediction == 73)) | |
500 | + | then 364810 | |
501 | + | else if ((prediction == 74)) | |
502 | + | then 378840 | |
503 | + | else if ((prediction == 75)) | |
504 | + | then 394000 | |
505 | + | else if ((prediction == 76)) | |
506 | + | then 410410 | |
507 | + | else if ((prediction == 77)) | |
508 | + | then 428260 | |
509 | + | else if ((prediction == 78)) | |
510 | + | then 447720 | |
511 | + | else if ((prediction == 79)) | |
512 | + | then 469040 | |
513 | + | else if ((prediction == 80)) | |
514 | + | then 492500 | |
515 | + | else if ((prediction == 81)) | |
516 | + | then 518420 | |
517 | + | else if ((prediction == 82)) | |
518 | + | then 547220 | |
519 | + | else if ((prediction == 83)) | |
520 | + | then 579410 | |
521 | + | else if ((prediction == 84)) | |
522 | + | then 615620 | |
523 | + | else if ((prediction == 85)) | |
524 | + | then 656660 | |
525 | + | else if ((prediction == 86)) | |
526 | + | then 703570 | |
527 | + | else if ((prediction == 87)) | |
528 | + | then 757690 | |
529 | + | else if ((prediction == 88)) | |
530 | + | then 820830 | |
531 | + | else if ((prediction == 89)) | |
532 | + | then 895450 | |
533 | + | else if ((prediction == 90)) | |
534 | + | then 985000 | |
535 | + | else if ((prediction == 91)) | |
536 | + | then 1094440 | |
537 | + | else if ((prediction == 92)) | |
538 | + | then 1231250 | |
539 | + | else if ((prediction == 93)) | |
540 | + | then 1407140 | |
541 | + | else if ((prediction == 94)) | |
542 | + | then 1641660 | |
543 | + | else if ((prediction == 95)) | |
544 | + | then 1970000 | |
545 | + | else if ((prediction == 96)) | |
546 | + | then 2462500 | |
547 | + | else if ((prediction == 97)) | |
548 | + | then 3283330 | |
549 | + | else if ((prediction == 98)) | |
550 | + | then 4925000 | |
551 | + | else if ((prediction == 99)) | |
552 | + | then 9850000 | |
553 | + | else 100000 | |
554 | + | else 100000 | |
555 | + | } | |
556 | + | ||
557 | + | ||
558 | + | func diceWin (type,prediction,number) = if ((type == "Under")) | |
559 | + | then if ((prediction >= number)) | |
560 | + | then true | |
561 | + | else false | |
562 | + | else if ((type == "Over")) | |
563 | + | then if ((number >= prediction)) | |
564 | + | then true | |
565 | + | else false | |
566 | + | else false | |
567 | + | ||
568 | + | ||
569 | + | @Callable(i) | |
570 | + | func playDice (type,prediction) = { | |
571 | + | let newGameNum = IncrementGameNum() | |
572 | + | let gameId = toBase58String(i.transactionId) | |
573 | + | let payment = extract(i.payment) | |
574 | + | let multi = getMultiplier(type, prediction) | |
575 | + | let winAmt = (((payment.amount * multi) / 100000) * (95 / 100)) | |
576 | + | let txIdUsed = isDefined(getString(this, gameId)) | |
577 | + | if ((payment.assetId != base58'waves')) | |
578 | + | then throw("Payment should be in Wavesbet") | |
579 | + | else if (txIdUsed) | |
580 | + | then throw("Passed txId had been used before. Game aborted.") | |
581 | + | else { | |
582 | + | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
583 | + | let gameDataStr = FormatGameDataStr(STATESUBMITTED, prediction, type, playerPubKey58, height, winAmt, "") | |
584 | + | ScriptResult(WriteSet([DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet(nil)) | |
585 | + | } | |
586 | + | } | |
587 | + | ||
588 | + | ||
589 | + | ||
590 | + | @Callable(i) | |
591 | + | func withdraw (gameId,rsaSig) = { | |
592 | + | let gameDataList = ExtractGameDataList(gameId) | |
593 | + | let gameState = gameDataList[IdxGameState] | |
594 | + | let playerChoice = gameDataList[IdxPlayerChoice] | |
595 | + | let type = gameDataList[IdxType] | |
596 | + | let startedHeight = parseIntValue(gameDataList[IdxStartedHeight]) | |
597 | + | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
598 | + | let playerPubKey58 = gameDataList[IdxPlayerPubKey58] | |
599 | + | let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58)) | |
600 | + | if ((gameState != STATESUBMITTED)) | |
601 | + | then throw("Invalid game state for passed gameId") | |
602 | + | else { | |
603 | + | let rand = GenerateRandInt(gameId) | |
604 | + | let randStr = RandToStr(rand) | |
605 | + | if (diceWin(type, parseIntValue(playerChoice), rand)) | |
606 | + | then { | |
607 | + | let newGameDataStr = FormatGameDataStr(STATEWON, playerChoice, type, playerPubKey58, startedHeight, winAmt, randStr) | |
608 | + | WinScriptSet(gameId, playerAddress, winAmt, newGameDataStr) | |
609 | + | } | |
610 | + | else { | |
611 | + | let newGameDataStr = FormatGameDataStr(STATELOST, playerChoice, type, playerPubKey58, startedHeight, winAmt, randStr) | |
612 | + | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
613 | + | } | |
614 | + | } | |
615 | + | } | |
616 | + | ||
617 | + |
github/deemru/w8io/169f3d6 80.51 ms ◑![]()