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