tx · 8tKVhruEYp54xvkGbQgeNBUoD1V2VoYQjLsY93cLKhSh 3NA8CCJEpWACAN7uMTTGiVERNtc4dSSayyE: -0.01400000 Waves 2019.09.02 19:52 [658582] smart account 3NA8CCJEpWACAN7uMTTGiVERNtc4dSSayyE > SELF 0.00000000 Waves
{ "type": 13, "id": "8tKVhruEYp54xvkGbQgeNBUoD1V2VoYQjLsY93cLKhSh", "fee": 1400000, "feeAssetId": null, "timestamp": 1567443165803, "version": 1, "sender": "3NA8CCJEpWACAN7uMTTGiVERNtc4dSSayyE", "senderPublicKey": "FgntDUgs7tdnp33MDzzH2k7CjvDsAxhC4r413RdQEF2F", "proofs": [ "38rFvjpxtmtcegVwyEyBK6RsdD2EuGyR6ZG9EkoyzhVysYZ9zAyaoWtrSRCbpYiaBuquSGWv71JNMGzqMPj28cF7" ], "script": "base64:AAIDAAAAAAAAAAAAAAAHAQAAAA5nZW5lcmF0ZU51bWJlcgAAAAMAAAADaW52AAAAA21heAAAAANtaW4EAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAFhBQAAAAckbWF0Y2gwAQAAAAxXYXZlc0xvdHRvVjIJAQAAAAV0aHJvdwAAAAAEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0Qm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UAAAAPb3Bwb25lbnRBZGRyZXNzAAAAAAAAAAAACAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAARjb2luBQAAAAVyY29pbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGcGF5b3V0BQAAAAZwYXlvdXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABndpbm5lcgkABCUAAAABCAUAAAADaW52AAAABmNhbGxlcgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAANpbnYAAAAGY2FsbGVyAAAAAAAAAAAACAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAmUGF5bWVudCBzaG91bGQgYmUgaW4gV2F2ZXNiZXQgb3IgV2F2ZXMAAAACAAAAA2ludgEAAAAIcGxheURpY2UAAAAACQEAAAAJc3RhcnREaWNlAAAAAAAAAANpbnYBAAAADHBsYXlDb2luRmxpcAAAAAIAAAAPb3Bwb25lbnRBZGRyZXNzAAAADG9wcG9uZW50TW92ZQkBAAAADXN0YXJ0Q29pbkZsaXAAAAADBQAAAANpbnYFAAAAD29wcG9uZW50QWRkcmVzcwUAAAAMb3Bwb25lbnRNb3ZlAAAAABlL65w=", "chainId": 84, "height": 658582, "spentComplexity": 0 } View: original | compacted Prev: G2uWvPdyuTGLHVGofTispj7LmveBVtYFw8P3iqDrWXby Next: none Diff:
Old | New | Differences | |
---|---|---|---|
425 | 425 | func startDice () = { | |
426 | 426 | let addr = Address(base58'3MvPzCGFduA2MR4RwpGUUCryXQHqXa8H7Ju') | |
427 | 427 | let addr2 = Address(base58'3MtQmgCKvc2b6CU6ckk9kCepsoFVLQSqUuC') | |
428 | - | ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addr, 1000, unit), ScriptTransfer( | |
428 | + | ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addr, 1000, unit), ScriptTransfer(addr2, 1000, unit)])) | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func generateNumber (inv,max,min) = { | |
5 | 5 | let lastPlay = match getBinary(this, "lastPlay") { | |
6 | 6 | case s: ByteVector => | |
7 | 7 | s | |
8 | 8 | case a: Unit => | |
9 | 9 | base58'2ee4oFDYriWJ9EMeR' | |
10 | 10 | case _ => | |
11 | 11 | throw() | |
12 | 12 | } | |
13 | 13 | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
14 | 14 | (((toInt(sha256(rand)) % 1000) % ((max - min) + 1)) + 1) | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func getMultiplier (type,prediction) = if ((type == "Under")) | |
19 | 19 | then if ((prediction == 1)) | |
20 | 20 | then 9850000 | |
21 | 21 | else if ((prediction == 2)) | |
22 | 22 | then 4925000 | |
23 | 23 | else if ((prediction == 3)) | |
24 | 24 | then 3283330 | |
25 | 25 | else if ((prediction == 4)) | |
26 | 26 | then 2462500 | |
27 | 27 | else if ((prediction == 5)) | |
28 | 28 | then 1970000 | |
29 | 29 | else if ((prediction == 6)) | |
30 | 30 | then 1641660 | |
31 | 31 | else if ((prediction == 7)) | |
32 | 32 | then 1407140 | |
33 | 33 | else if ((prediction == 8)) | |
34 | 34 | then 1231250 | |
35 | 35 | else if ((prediction == 9)) | |
36 | 36 | then 1094440 | |
37 | 37 | else if ((prediction == 10)) | |
38 | 38 | then 985000 | |
39 | 39 | else if ((prediction == 11)) | |
40 | 40 | then 895450 | |
41 | 41 | else if ((prediction == 12)) | |
42 | 42 | then 820830 | |
43 | 43 | else if ((prediction == 13)) | |
44 | 44 | then 757690 | |
45 | 45 | else if ((prediction == 14)) | |
46 | 46 | then 703570 | |
47 | 47 | else if ((prediction == 15)) | |
48 | 48 | then 656660 | |
49 | 49 | else if ((prediction == 16)) | |
50 | 50 | then 615620 | |
51 | 51 | else if ((prediction == 17)) | |
52 | 52 | then 579410 | |
53 | 53 | else if ((prediction == 18)) | |
54 | 54 | then 547220 | |
55 | 55 | else if ((prediction == 19)) | |
56 | 56 | then 518420 | |
57 | 57 | else if ((prediction == 20)) | |
58 | 58 | then 492500 | |
59 | 59 | else if ((prediction == 21)) | |
60 | 60 | then 469040 | |
61 | 61 | else if ((prediction == 22)) | |
62 | 62 | then 447720 | |
63 | 63 | else if ((prediction == 23)) | |
64 | 64 | then 428260 | |
65 | 65 | else if ((prediction == 24)) | |
66 | 66 | then 410410 | |
67 | 67 | else if ((prediction == 25)) | |
68 | 68 | then 394000 | |
69 | 69 | else if ((prediction == 26)) | |
70 | 70 | then 378840 | |
71 | 71 | else if ((prediction == 27)) | |
72 | 72 | then 364810 | |
73 | 73 | else if ((prediction == 28)) | |
74 | 74 | then 351780 | |
75 | 75 | else if ((prediction == 29)) | |
76 | 76 | then 339650 | |
77 | 77 | else if ((prediction == 30)) | |
78 | 78 | then 328330 | |
79 | 79 | else if ((prediction == 31)) | |
80 | 80 | then 317740 | |
81 | 81 | else if ((prediction == 32)) | |
82 | 82 | then 307810 | |
83 | 83 | else if ((prediction == 33)) | |
84 | 84 | then 298480 | |
85 | 85 | else if ((prediction == 34)) | |
86 | 86 | then 289700 | |
87 | 87 | else if ((prediction == 35)) | |
88 | 88 | then 281420 | |
89 | 89 | else if ((prediction == 36)) | |
90 | 90 | then 273610 | |
91 | 91 | else if ((prediction == 37)) | |
92 | 92 | then 259210 | |
93 | 93 | else if ((prediction == 38)) | |
94 | 94 | then 259210 | |
95 | 95 | else if ((prediction == 39)) | |
96 | 96 | then 252560 | |
97 | 97 | else if ((prediction == 40)) | |
98 | 98 | then 246250 | |
99 | 99 | else if ((prediction == 41)) | |
100 | 100 | then 240240 | |
101 | 101 | else if ((prediction == 42)) | |
102 | 102 | then 234520 | |
103 | 103 | else if ((prediction == 43)) | |
104 | 104 | then 229060 | |
105 | 105 | else if ((prediction == 44)) | |
106 | 106 | then 223860 | |
107 | 107 | else if ((prediction == 45)) | |
108 | 108 | then 218880 | |
109 | 109 | else if ((prediction == 46)) | |
110 | 110 | then 214130 | |
111 | 111 | else if ((prediction == 47)) | |
112 | 112 | then 209570 | |
113 | 113 | else if ((prediction == 48)) | |
114 | 114 | then 205200 | |
115 | 115 | else if ((prediction == 49)) | |
116 | 116 | then 201020 | |
117 | 117 | else if ((prediction == 50)) | |
118 | 118 | then 197000 | |
119 | 119 | else if ((prediction == 51)) | |
120 | 120 | then 193130 | |
121 | 121 | else if ((prediction == 52)) | |
122 | 122 | then 189420 | |
123 | 123 | else if ((prediction == 53)) | |
124 | 124 | then 185840 | |
125 | 125 | else if ((prediction == 54)) | |
126 | 126 | then 182400 | |
127 | 127 | else if ((prediction == 55)) | |
128 | 128 | then 179090 | |
129 | 129 | else if ((prediction == 56)) | |
130 | 130 | then 175890 | |
131 | 131 | else if ((prediction == 57)) | |
132 | 132 | then 172800 | |
133 | 133 | else if ((prediction == 58)) | |
134 | 134 | then 169820 | |
135 | 135 | else if ((prediction == 59)) | |
136 | 136 | then 166940 | |
137 | 137 | else if ((prediction == 60)) | |
138 | 138 | then 164160 | |
139 | 139 | else if ((prediction == 61)) | |
140 | 140 | then 161470 | |
141 | 141 | else if ((prediction == 62)) | |
142 | 142 | then 158870 | |
143 | 143 | else if ((prediction == 63)) | |
144 | 144 | then 156340 | |
145 | 145 | else if ((prediction == 64)) | |
146 | 146 | then 153900 | |
147 | 147 | else if ((prediction == 65)) | |
148 | 148 | then 151530 | |
149 | 149 | else if ((prediction == 66)) | |
150 | 150 | then 149240 | |
151 | 151 | else if ((prediction == 67)) | |
152 | 152 | then 147010 | |
153 | 153 | else if ((prediction == 68)) | |
154 | 154 | then 144850 | |
155 | 155 | else if ((prediction == 69)) | |
156 | 156 | then 142750 | |
157 | 157 | else if ((prediction == 70)) | |
158 | 158 | then 140710 | |
159 | 159 | else if ((prediction == 71)) | |
160 | 160 | then 138730 | |
161 | 161 | else if ((prediction == 72)) | |
162 | 162 | then 136800 | |
163 | 163 | else if ((prediction == 73)) | |
164 | 164 | then 134930 | |
165 | 165 | else if ((prediction == 74)) | |
166 | 166 | then 133100 | |
167 | 167 | else if ((prediction == 75)) | |
168 | 168 | then 131330 | |
169 | 169 | else if ((prediction == 76)) | |
170 | 170 | then 129600 | |
171 | 171 | else if ((prediction == 77)) | |
172 | 172 | then 127920 | |
173 | 173 | else if ((prediction == 78)) | |
174 | 174 | then 126280 | |
175 | 175 | else if ((prediction == 79)) | |
176 | 176 | then 124680 | |
177 | 177 | else if ((prediction == 80)) | |
178 | 178 | then 123120 | |
179 | 179 | else if ((prediction == 81)) | |
180 | 180 | then 121600 | |
181 | 181 | else if ((prediction == 82)) | |
182 | 182 | then 120120 | |
183 | 183 | else if ((prediction == 83)) | |
184 | 184 | then 118670 | |
185 | 185 | else if ((prediction == 84)) | |
186 | 186 | then 117260 | |
187 | 187 | else if ((prediction == 85)) | |
188 | 188 | then 115880 | |
189 | 189 | else if ((prediction == 86)) | |
190 | 190 | then 114530 | |
191 | 191 | else if ((prediction == 87)) | |
192 | 192 | then 113210 | |
193 | 193 | else if ((prediction == 88)) | |
194 | 194 | then 111930 | |
195 | 195 | else if ((prediction == 89)) | |
196 | 196 | then 110670 | |
197 | 197 | else if ((prediction == 90)) | |
198 | 198 | then 109440 | |
199 | 199 | else if ((prediction == 91)) | |
200 | 200 | then 108240 | |
201 | 201 | else if ((prediction == 92)) | |
202 | 202 | then 107060 | |
203 | 203 | else if ((prediction == 93)) | |
204 | 204 | then 105910 | |
205 | 205 | else if ((prediction == 94)) | |
206 | 206 | then 104780 | |
207 | 207 | else if ((prediction == 95)) | |
208 | 208 | then 103680 | |
209 | 209 | else if ((prediction == 96)) | |
210 | 210 | then 103680 | |
211 | 211 | else 100000 | |
212 | 212 | else if ((type == "Over")) | |
213 | 213 | then if ((prediction == 4)) | |
214 | 214 | then 103680 | |
215 | 215 | else if ((prediction == 5)) | |
216 | 216 | then 103680 | |
217 | 217 | else if ((prediction == 6)) | |
218 | 218 | then 104780 | |
219 | 219 | else if ((prediction == 7)) | |
220 | 220 | then 105910 | |
221 | 221 | else if ((prediction == 8)) | |
222 | 222 | then 107060 | |
223 | 223 | else if ((prediction == 9)) | |
224 | 224 | then 108240 | |
225 | 225 | else if ((prediction == 10)) | |
226 | 226 | then 109440 | |
227 | 227 | else if ((prediction == 11)) | |
228 | 228 | then 110670 | |
229 | 229 | else if ((prediction == 12)) | |
230 | 230 | then 111930 | |
231 | 231 | else if ((prediction == 13)) | |
232 | 232 | then 113210 | |
233 | 233 | else if ((prediction == 14)) | |
234 | 234 | then 114530 | |
235 | 235 | else if ((prediction == 15)) | |
236 | 236 | then 115880 | |
237 | 237 | else if ((prediction == 16)) | |
238 | 238 | then 117260 | |
239 | 239 | else if ((prediction == 17)) | |
240 | 240 | then 118670 | |
241 | 241 | else if ((prediction == 18)) | |
242 | 242 | then 120120 | |
243 | 243 | else if ((prediction == 19)) | |
244 | 244 | then 121600 | |
245 | 245 | else if ((prediction == 20)) | |
246 | 246 | then 123120 | |
247 | 247 | else if ((prediction == 21)) | |
248 | 248 | then 124680 | |
249 | 249 | else if ((prediction == 22)) | |
250 | 250 | then 126280 | |
251 | 251 | else if ((prediction == 23)) | |
252 | 252 | then 127920 | |
253 | 253 | else if ((prediction == 24)) | |
254 | 254 | then 129600 | |
255 | 255 | else if ((prediction == 25)) | |
256 | 256 | then 131330 | |
257 | 257 | else if ((prediction == 26)) | |
258 | 258 | then 133100 | |
259 | 259 | else if ((prediction == 27)) | |
260 | 260 | then 134930 | |
261 | 261 | else if ((prediction == 28)) | |
262 | 262 | then 136800 | |
263 | 263 | else if ((prediction == 29)) | |
264 | 264 | then 138730 | |
265 | 265 | else if ((prediction == 30)) | |
266 | 266 | then 140710 | |
267 | 267 | else if ((prediction == 31)) | |
268 | 268 | then 142750 | |
269 | 269 | else if ((prediction == 32)) | |
270 | 270 | then 144850 | |
271 | 271 | else if ((prediction == 33)) | |
272 | 272 | then 147010 | |
273 | 273 | else if ((prediction == 34)) | |
274 | 274 | then 149240 | |
275 | 275 | else if ((prediction == 35)) | |
276 | 276 | then 151530 | |
277 | 277 | else if ((prediction == 36)) | |
278 | 278 | then 153900 | |
279 | 279 | else if ((prediction == 37)) | |
280 | 280 | then 156340 | |
281 | 281 | else if ((prediction == 38)) | |
282 | 282 | then 158870 | |
283 | 283 | else if ((prediction == 39)) | |
284 | 284 | then 161470 | |
285 | 285 | else if ((prediction == 40)) | |
286 | 286 | then 164160 | |
287 | 287 | else if ((prediction == 41)) | |
288 | 288 | then 166940 | |
289 | 289 | else if ((prediction == 42)) | |
290 | 290 | then 169820 | |
291 | 291 | else if ((prediction == 43)) | |
292 | 292 | then 172800 | |
293 | 293 | else if ((prediction == 44)) | |
294 | 294 | then 175890 | |
295 | 295 | else if ((prediction == 45)) | |
296 | 296 | then 179090 | |
297 | 297 | else if ((prediction == 46)) | |
298 | 298 | then 185840 | |
299 | 299 | else if ((prediction == 47)) | |
300 | 300 | then 185840 | |
301 | 301 | else if ((prediction == 48)) | |
302 | 302 | then 189420 | |
303 | 303 | else if ((prediction == 49)) | |
304 | 304 | then 193130 | |
305 | 305 | else if ((prediction == 50)) | |
306 | 306 | then 197000 | |
307 | 307 | else if ((prediction == 51)) | |
308 | 308 | then 201020 | |
309 | 309 | else if ((prediction == 52)) | |
310 | 310 | then 205200 | |
311 | 311 | else if ((prediction == 53)) | |
312 | 312 | then 209570 | |
313 | 313 | else if ((prediction == 54)) | |
314 | 314 | then 214130 | |
315 | 315 | else if ((prediction == 55)) | |
316 | 316 | then 218880 | |
317 | 317 | else if ((prediction == 56)) | |
318 | 318 | then 223860 | |
319 | 319 | else if ((prediction == 57)) | |
320 | 320 | then 229060 | |
321 | 321 | else if ((prediction == 58)) | |
322 | 322 | then 234520 | |
323 | 323 | else if ((prediction == 59)) | |
324 | 324 | then 240240 | |
325 | 325 | else if ((prediction == 60)) | |
326 | 326 | then 246250 | |
327 | 327 | else if ((prediction == 61)) | |
328 | 328 | then 252560 | |
329 | 329 | else if ((prediction == 62)) | |
330 | 330 | then 259210 | |
331 | 331 | else if ((prediction == 63)) | |
332 | 332 | then 259210 | |
333 | 333 | else if ((prediction == 64)) | |
334 | 334 | then 273610 | |
335 | 335 | else if ((prediction == 65)) | |
336 | 336 | then 281420 | |
337 | 337 | else if ((prediction == 66)) | |
338 | 338 | then 289700 | |
339 | 339 | else if ((prediction == 67)) | |
340 | 340 | then 298480 | |
341 | 341 | else if ((prediction == 68)) | |
342 | 342 | then 307810 | |
343 | 343 | else if ((prediction == 69)) | |
344 | 344 | then 317740 | |
345 | 345 | else if ((prediction == 70)) | |
346 | 346 | then 328330 | |
347 | 347 | else if ((prediction == 71)) | |
348 | 348 | then 339650 | |
349 | 349 | else if ((prediction == 72)) | |
350 | 350 | then 351780 | |
351 | 351 | else if ((prediction == 73)) | |
352 | 352 | then 364810 | |
353 | 353 | else if ((prediction == 74)) | |
354 | 354 | then 378840 | |
355 | 355 | else if ((prediction == 75)) | |
356 | 356 | then 394000 | |
357 | 357 | else if ((prediction == 76)) | |
358 | 358 | then 410410 | |
359 | 359 | else if ((prediction == 77)) | |
360 | 360 | then 428260 | |
361 | 361 | else if ((prediction == 78)) | |
362 | 362 | then 447720 | |
363 | 363 | else if ((prediction == 79)) | |
364 | 364 | then 469040 | |
365 | 365 | else if ((prediction == 80)) | |
366 | 366 | then 492500 | |
367 | 367 | else if ((prediction == 81)) | |
368 | 368 | then 518420 | |
369 | 369 | else if ((prediction == 82)) | |
370 | 370 | then 547220 | |
371 | 371 | else if ((prediction == 83)) | |
372 | 372 | then 579410 | |
373 | 373 | else if ((prediction == 84)) | |
374 | 374 | then 615620 | |
375 | 375 | else if ((prediction == 85)) | |
376 | 376 | then 656660 | |
377 | 377 | else if ((prediction == 86)) | |
378 | 378 | then 703570 | |
379 | 379 | else if ((prediction == 87)) | |
380 | 380 | then 757690 | |
381 | 381 | else if ((prediction == 88)) | |
382 | 382 | then 820830 | |
383 | 383 | else if ((prediction == 89)) | |
384 | 384 | then 895450 | |
385 | 385 | else if ((prediction == 90)) | |
386 | 386 | then 985000 | |
387 | 387 | else if ((prediction == 91)) | |
388 | 388 | then 1094440 | |
389 | 389 | else if ((prediction == 92)) | |
390 | 390 | then 1231250 | |
391 | 391 | else if ((prediction == 93)) | |
392 | 392 | then 1407140 | |
393 | 393 | else if ((prediction == 94)) | |
394 | 394 | then 1641660 | |
395 | 395 | else if ((prediction == 95)) | |
396 | 396 | then 1970000 | |
397 | 397 | else if ((prediction == 96)) | |
398 | 398 | then 2462500 | |
399 | 399 | else if ((prediction == 97)) | |
400 | 400 | then 3283330 | |
401 | 401 | else if ((prediction == 98)) | |
402 | 402 | then 4925000 | |
403 | 403 | else if ((prediction == 99)) | |
404 | 404 | then 9850000 | |
405 | 405 | else 100000 | |
406 | 406 | else 100000 | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func diceWin (type,prediction,number) = if ((type == "Under")) | |
410 | 410 | then if ((prediction >= number)) | |
411 | 411 | then true | |
412 | 412 | else false | |
413 | 413 | else if ((type == "Over")) | |
414 | 414 | then if ((number >= prediction)) | |
415 | 415 | then true | |
416 | 416 | else false | |
417 | 417 | else false | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | func dicePayout (win,amount,mult) = if (win) | |
421 | 421 | then ((amount * mult) / 100000) | |
422 | 422 | else 0 | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | func startDice () = { | |
426 | 426 | let addr = Address(base58'3MvPzCGFduA2MR4RwpGUUCryXQHqXa8H7Ju') | |
427 | 427 | let addr2 = Address(base58'3MtQmgCKvc2b6CU6ckk9kCepsoFVLQSqUuC') | |
428 | - | ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addr, 1000, unit), ScriptTransfer( | |
428 | + | ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addr, 1000, unit), ScriptTransfer(addr2, 1000, unit)])) | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 | ||
432 | 432 | func coinFlip (number) = if ((51 > number)) | |
433 | 433 | then "red" | |
434 | 434 | else "blue" | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | func startCoinFlip (inv,opponentAddress,opponentMove) = { | |
438 | 438 | let payment = extract(inv.payment) | |
439 | 439 | if (if ((payment.assetId == assetInfo(base58'WAVES'))) | |
440 | 440 | then true | |
441 | 441 | else (payment.assetId == base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4')) | |
442 | 442 | then { | |
443 | 443 | let rand = generateNumber(inv, 100, 1) | |
444 | 444 | let rcoin = coinFlip(rand) | |
445 | 445 | let payout = (((payment.amount * 2) * 95) / 100) | |
446 | 446 | if ((rcoin == opponentMove)) | |
447 | 447 | then ScriptResult(WriteSet([DataEntry("coin", rcoin), DataEntry("payout", payout), DataEntry("winner", opponentAddress)]), TransferSet([ScriptTransfer(Address(fromBase58String(opponentAddress)), 0, payment.assetId)])) | |
448 | 448 | else ScriptResult(WriteSet([DataEntry("coin", rcoin), DataEntry("payout", payout), DataEntry("winner", toString(inv.caller))]), TransferSet([ScriptTransfer(inv.caller, 0, payment.assetId)])) | |
449 | 449 | } | |
450 | 450 | else throw("Payment should be in Wavesbet or Waves") | |
451 | 451 | } | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | @Callable(inv) | |
455 | 455 | func playDice () = startDice() | |
456 | 456 | ||
457 | 457 | ||
458 | 458 | ||
459 | 459 | @Callable(inv) | |
460 | 460 | func playCoinFlip (opponentAddress,opponentMove) = startCoinFlip(inv, opponentAddress, opponentMove) | |
461 | 461 | ||
462 | 462 |
github/deemru/w8io/169f3d6 82.47 ms ◑