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