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