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