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