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