tx · E9hJi7AaGZh7frf4BBVbkESvnTxX6xN6rhWNzsHwNuPD 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1: -0.01400000 Waves 2021.02.09 11:21 [1390395] smart account 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1 > SELF 0.00000000 Waves
{ "type": 13, "id": "E9hJi7AaGZh7frf4BBVbkESvnTxX6xN6rhWNzsHwNuPD", "fee": 1400000, "feeAssetId": null, "timestamp": 1612858973140, "version": 2, "chainId": 84, "sender": "3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1", "senderPublicKey": "4ZSmQKKSEVi7FUZVartg8PJgDtovcTaKW3HWpdXKkjx2", "proofs": [ "4C57U3hzcz6Hg8aMBApZ9eEFj8qWRGrx77rk2HgFbdezjqFZrNaMd5qcyWHRdSkhH9jWjcDnF1EUaPBuFDC8BJkB" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzd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RhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V57iJwtw==", "height": 1390395, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HHnnA3EqUkGzpjv35mmtSKadGNjwfkDGTvoYC6nZroya Next: E9YJtjBZG5Wzm8G7om317X6MNFGwfce6Fu2C64C6Mhnr Diff:
Old | New | Differences | |
---|---|---|---|
424 | 424 | } | |
425 | 425 | else { | |
426 | 426 | let ba = fromBase64String(aG) | |
427 | - | let aZ = TransferSet([ScriptTransfer(K.caller, aF, | |
427 | + | let aZ = TransferSet([ScriptTransfer(K.caller, aF, ba)]) | |
428 | 428 | ScriptResult(aC, aZ) | |
429 | 429 | } | |
430 | 430 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_amount" | |
5 | 5 | ||
6 | 6 | let b = "_probability" | |
7 | 7 | ||
8 | 8 | let c = "_probability_decimal" | |
9 | 9 | ||
10 | 10 | let d = "_price" | |
11 | 11 | ||
12 | 12 | let e = "_lottery_prices" | |
13 | 13 | ||
14 | 14 | let f = "_lottery_asset_id" | |
15 | 15 | ||
16 | 16 | let g = "_count_prices" | |
17 | 17 | ||
18 | 18 | let h = "last_spin_random_hash" | |
19 | 19 | ||
20 | 20 | let i = "last_token_random_hash" | |
21 | 21 | ||
22 | 22 | let j = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV" | |
23 | 23 | ||
24 | 24 | let k = 14 | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = { | |
28 | 28 | let o = getBinary(this, h) | |
29 | 29 | if ($isInstanceOf(o, "ByteVector")) | |
30 | 30 | then { | |
31 | 31 | let p = o | |
32 | 32 | p | |
33 | 33 | } | |
34 | 34 | else if ($isInstanceOf(o, "Unit")) | |
35 | 35 | then base58'2ee4oFDYriWJ9EMeR' | |
36 | 36 | else throw("Match error") | |
37 | 37 | } | |
38 | 38 | let q = (((((n + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
39 | 39 | sha256(q) | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func r (m) = { | |
44 | 44 | let s = { | |
45 | 45 | let o = getBinary(this, i) | |
46 | 46 | if ($isInstanceOf(o, "ByteVector")) | |
47 | 47 | then { | |
48 | 48 | let p = o | |
49 | 49 | p | |
50 | 50 | } | |
51 | 51 | else if ($isInstanceOf(o, "Unit")) | |
52 | 52 | then base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
53 | 53 | else throw("Match error") | |
54 | 54 | } | |
55 | 55 | let q = (((((s + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
56 | 56 | sha256(q) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func t () = { | |
61 | 61 | let u = getStringValue(this, e) | |
62 | 62 | let v = take(u, (size(u) - 1)) | |
63 | 63 | let w = split(v, ",") | |
64 | 64 | w | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func x (y,z) = { | |
69 | 69 | let A = indexOf(y, ",") | |
70 | 70 | if ((A == unit)) | |
71 | 71 | then (z + ",") | |
72 | 72 | else ((y + z) + ",") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func B (C,y) = if (isDefined(y)) | |
77 | 77 | then { | |
78 | 78 | let D = getIntegerValue(this, (y + b)) | |
79 | 79 | let E = getIntegerValue(this, (y + c)) | |
80 | 80 | let F = (E * 1000) | |
81 | 81 | let G = (E % F) | |
82 | 82 | let H = size(C) | |
83 | 83 | if ((H == 1)) | |
84 | 84 | then { | |
85 | 85 | let I = C[0] | |
86 | 86 | if ((F > G)) | |
87 | 87 | then { | |
88 | 88 | let J = y :: C | |
89 | 89 | J | |
90 | 90 | } | |
91 | 91 | else C | |
92 | 92 | } | |
93 | 93 | else C | |
94 | 94 | } | |
95 | 95 | else C | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | @Callable(K) | |
99 | 99 | func updateprobability (L,M,N,O,P) = { | |
100 | 100 | let y = toBase64String(r(K)) | |
101 | 101 | let Q = if (!(isDefined(K.payment))) | |
102 | 102 | then false | |
103 | 103 | else true | |
104 | 104 | let R = if ((P == "")) | |
105 | 105 | then true | |
106 | 106 | else false | |
107 | 107 | let S = (M * N) | |
108 | 108 | if ((Q == true)) | |
109 | 109 | then { | |
110 | 110 | let T = extract(K.payment) | |
111 | 111 | let U = { | |
112 | 112 | let o = T.assetId | |
113 | 113 | if ($isInstanceOf(o, "ByteVector")) | |
114 | 114 | then { | |
115 | 115 | let V = o | |
116 | 116 | toBase64String(V) | |
117 | 117 | } | |
118 | 118 | else if ($isInstanceOf(o, "Unit")) | |
119 | 119 | then "" | |
120 | 120 | else throw("Match error") | |
121 | 121 | } | |
122 | 122 | let W = T.amount | |
123 | 123 | if ((U != P)) | |
124 | 124 | then throw("Asset Id not matching with Payment Asset Id") | |
125 | 125 | else if ((S > W)) | |
126 | 126 | then throw("Not enough Asset Amount") | |
127 | 127 | else { | |
128 | 128 | let X = { | |
129 | 129 | let o = getString(this, e) | |
130 | 130 | if ($isInstanceOf(o, "String")) | |
131 | 131 | then { | |
132 | 132 | let V = o | |
133 | 133 | V | |
134 | 134 | } | |
135 | 135 | else if ($isInstanceOf(o, "Unit")) | |
136 | 136 | then "" | |
137 | 137 | else throw("Match error") | |
138 | 138 | } | |
139 | 139 | let Y = indexOf(X, y) | |
140 | 140 | let Z = { | |
141 | 141 | let o = Y | |
142 | 142 | if ($isInstanceOf(o, "Unit")) | |
143 | 143 | then ((X + y) + ",") | |
144 | 144 | else if ($isInstanceOf(o, "Int")) | |
145 | 145 | then { | |
146 | 146 | let aa = o | |
147 | 147 | throw("Token is duplicated") | |
148 | 148 | } | |
149 | 149 | else throw("Match error") | |
150 | 150 | } | |
151 | 151 | let ab = { | |
152 | 152 | let o = getInteger(this, g) | |
153 | 153 | if ($isInstanceOf(o, "Int")) | |
154 | 154 | then { | |
155 | 155 | let V = o | |
156 | 156 | V | |
157 | 157 | } | |
158 | 158 | else if ($isInstanceOf(o, "Unit")) | |
159 | 159 | then 0 | |
160 | 160 | else throw("Match error") | |
161 | 161 | } | |
162 | 162 | if ((k > ab)) | |
163 | 163 | then { | |
164 | 164 | let ac = WriteSet([DataEntry((y + a), M), DataEntry((y + b), L), DataEntry((y + d), N), DataEntry(e, Z), DataEntry(g, (ab + 1)), DataEntry((y + c), O), DataEntry((y + f), P), DataEntry(i, y)]) | |
165 | 165 | ScriptResult(ac, TransferSet(nil)) | |
166 | 166 | } | |
167 | 167 | else throw(("Lottery prices has reached maximum " + toString(k))) | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | else { | |
171 | 171 | let ad = if (R) | |
172 | 172 | then wavesBalance(this) | |
173 | 173 | else assetBalance(this, fromBase64String(P)) | |
174 | 174 | if ((S > ad)) | |
175 | 175 | then throw("Not enough Asset Amount") | |
176 | 176 | else { | |
177 | 177 | let X = { | |
178 | 178 | let o = getString(this, e) | |
179 | 179 | if ($isInstanceOf(o, "String")) | |
180 | 180 | then { | |
181 | 181 | let V = o | |
182 | 182 | V | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(o, "Unit")) | |
185 | 185 | then "" | |
186 | 186 | else throw("Match error") | |
187 | 187 | } | |
188 | 188 | let Y = indexOf(X, y) | |
189 | 189 | let Z = { | |
190 | 190 | let o = Y | |
191 | 191 | if ($isInstanceOf(o, "Unit")) | |
192 | 192 | then ((X + y) + ",") | |
193 | 193 | else if ($isInstanceOf(o, "Int")) | |
194 | 194 | then { | |
195 | 195 | let aa = o | |
196 | 196 | throw("Token is duplicated") | |
197 | 197 | } | |
198 | 198 | else throw("Match error") | |
199 | 199 | } | |
200 | 200 | let ab = { | |
201 | 201 | let o = getInteger(this, g) | |
202 | 202 | if ($isInstanceOf(o, "Int")) | |
203 | 203 | then { | |
204 | 204 | let V = o | |
205 | 205 | V | |
206 | 206 | } | |
207 | 207 | else if ($isInstanceOf(o, "Unit")) | |
208 | 208 | then 0 | |
209 | 209 | else throw("Match error") | |
210 | 210 | } | |
211 | 211 | if ((k >= ab)) | |
212 | 212 | then { | |
213 | 213 | let ac = WriteSet([DataEntry((y + a), M), DataEntry((y + b), L), DataEntry((y + d), N), DataEntry(e, Z), DataEntry(g, (ab + 1)), DataEntry((y + c), O), DataEntry((y + f), P), DataEntry(i, y)]) | |
214 | 214 | ScriptResult(ac, TransferSet(nil)) | |
215 | 215 | } | |
216 | 216 | else throw("Lottery prices has reached maximum 15") | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(K) | |
224 | 224 | func startlotto () = { | |
225 | 225 | let ae = toBase58String(K.caller.bytes) | |
226 | 226 | let af = l(K) | |
227 | 227 | let ab = { | |
228 | 228 | let o = getInteger(this, g) | |
229 | 229 | if ($isInstanceOf(o, "Int")) | |
230 | 230 | then { | |
231 | 231 | let V = o | |
232 | 232 | V | |
233 | 233 | } | |
234 | 234 | else if ($isInstanceOf(o, "Unit")) | |
235 | 235 | then 0 | |
236 | 236 | else throw("Match error") | |
237 | 237 | } | |
238 | 238 | let ag = t() | |
239 | 239 | let ah = toInt(af) | |
240 | 240 | let ai = { | |
241 | 241 | let aj = ag | |
242 | 242 | let ak = size(aj) | |
243 | 243 | let al = nil | |
244 | 244 | if ((ak == 0)) | |
245 | 245 | then al | |
246 | 246 | else { | |
247 | 247 | let am = B(al, aj[0]) | |
248 | 248 | if ((ak == 1)) | |
249 | 249 | then am | |
250 | 250 | else { | |
251 | 251 | let an = B(am, aj[1]) | |
252 | 252 | if ((ak == 2)) | |
253 | 253 | then an | |
254 | 254 | else { | |
255 | 255 | let ao = B(an, aj[2]) | |
256 | 256 | if ((ak == 3)) | |
257 | 257 | then ao | |
258 | 258 | else { | |
259 | 259 | let ap = B(ao, aj[3]) | |
260 | 260 | if ((ak == 4)) | |
261 | 261 | then ap | |
262 | 262 | else { | |
263 | 263 | let aq = B(ap, aj[4]) | |
264 | 264 | if ((ak == 5)) | |
265 | 265 | then aq | |
266 | 266 | else { | |
267 | 267 | let ar = B(aq, aj[5]) | |
268 | 268 | if ((ak == 6)) | |
269 | 269 | then ar | |
270 | 270 | else { | |
271 | 271 | let as = B(ar, aj[6]) | |
272 | 272 | if ((ak == 7)) | |
273 | 273 | then as | |
274 | 274 | else { | |
275 | 275 | let at = B(as, aj[7]) | |
276 | 276 | if ((ak == 8)) | |
277 | 277 | then at | |
278 | 278 | else { | |
279 | 279 | let au = B(at, aj[8]) | |
280 | 280 | if ((ak == 9)) | |
281 | 281 | then au | |
282 | 282 | else { | |
283 | 283 | let av = B(au, aj[9]) | |
284 | 284 | if ((ak == 10)) | |
285 | 285 | then av | |
286 | 286 | else { | |
287 | 287 | let aw = B(av, aj[10]) | |
288 | 288 | if ((ak == 11)) | |
289 | 289 | then aw | |
290 | 290 | else { | |
291 | 291 | let ax = B(aw, aj[11]) | |
292 | 292 | if ((ak == 12)) | |
293 | 293 | then ax | |
294 | 294 | else { | |
295 | 295 | let ay = B(ax, aj[12]) | |
296 | 296 | if ((ak == 13)) | |
297 | 297 | then ay | |
298 | 298 | else { | |
299 | 299 | let az = B(ay, aj[13]) | |
300 | 300 | if ((ak == 14)) | |
301 | 301 | then az | |
302 | 302 | else { | |
303 | 303 | let aA = B(az, aj[14]) | |
304 | 304 | throw("List size exceed 14") | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | } | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | } | |
311 | 311 | } | |
312 | 312 | } | |
313 | 313 | } | |
314 | 314 | } | |
315 | 315 | } | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | } | |
321 | 321 | let aB = size(ai) | |
322 | 322 | if ((aB == 0)) | |
323 | 323 | then { | |
324 | 324 | let aC = WriteSet(nil) | |
325 | 325 | ScriptResult(aC, TransferSet(nil)) | |
326 | 326 | } | |
327 | 327 | else { | |
328 | 328 | let y = ai[1] | |
329 | 329 | let aD = getIntegerValue(this, (y + a)) | |
330 | 330 | if ((aD == 0)) | |
331 | 331 | then throw("Amount exceeded") | |
332 | 332 | else { | |
333 | 333 | let aE = (aD - 1) | |
334 | 334 | let aF = getIntegerValue(this, (y + d)) | |
335 | 335 | let aG = getStringValue(this, (y + f)) | |
336 | 336 | if ((aE == 0)) | |
337 | 337 | then { | |
338 | 338 | let Z = { | |
339 | 339 | let aH = ag | |
340 | 340 | let aI = size(aH) | |
341 | 341 | let aJ = y | |
342 | 342 | if ((aI == 0)) | |
343 | 343 | then aJ | |
344 | 344 | else { | |
345 | 345 | let aK = x(aJ, aH[0]) | |
346 | 346 | if ((aI == 1)) | |
347 | 347 | then aK | |
348 | 348 | else { | |
349 | 349 | let aL = x(aK, aH[1]) | |
350 | 350 | if ((aI == 2)) | |
351 | 351 | then aL | |
352 | 352 | else { | |
353 | 353 | let aM = x(aL, aH[2]) | |
354 | 354 | if ((aI == 3)) | |
355 | 355 | then aM | |
356 | 356 | else { | |
357 | 357 | let aN = x(aM, aH[3]) | |
358 | 358 | if ((aI == 4)) | |
359 | 359 | then aN | |
360 | 360 | else { | |
361 | 361 | let aO = x(aN, aH[4]) | |
362 | 362 | if ((aI == 5)) | |
363 | 363 | then aO | |
364 | 364 | else { | |
365 | 365 | let aP = x(aO, aH[5]) | |
366 | 366 | if ((aI == 6)) | |
367 | 367 | then aP | |
368 | 368 | else { | |
369 | 369 | let aQ = x(aP, aH[6]) | |
370 | 370 | if ((aI == 7)) | |
371 | 371 | then aQ | |
372 | 372 | else { | |
373 | 373 | let aR = x(aQ, aH[7]) | |
374 | 374 | if ((aI == 8)) | |
375 | 375 | then aR | |
376 | 376 | else { | |
377 | 377 | let aS = x(aR, aH[8]) | |
378 | 378 | if ((aI == 9)) | |
379 | 379 | then aS | |
380 | 380 | else { | |
381 | 381 | let aT = x(aS, aH[9]) | |
382 | 382 | if ((aI == 10)) | |
383 | 383 | then aT | |
384 | 384 | else { | |
385 | 385 | let aU = x(aT, aH[10]) | |
386 | 386 | if ((aI == 11)) | |
387 | 387 | then aU | |
388 | 388 | else { | |
389 | 389 | let aV = x(aU, aH[11]) | |
390 | 390 | if ((aI == 12)) | |
391 | 391 | then aV | |
392 | 392 | else { | |
393 | 393 | let aW = x(aV, aH[12]) | |
394 | 394 | if ((aI == 13)) | |
395 | 395 | then aW | |
396 | 396 | else { | |
397 | 397 | let aX = x(aW, aH[13]) | |
398 | 398 | if ((aI == 14)) | |
399 | 399 | then aX | |
400 | 400 | else { | |
401 | 401 | let aY = x(aX, aH[14]) | |
402 | 402 | throw("List size exceed 14") | |
403 | 403 | } | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | } | |
407 | 407 | } | |
408 | 408 | } | |
409 | 409 | } | |
410 | 410 | } | |
411 | 411 | } | |
412 | 412 | } | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | } | |
416 | 416 | } | |
417 | 417 | } | |
418 | 418 | } | |
419 | 419 | let aC = WriteSet([DataEntry(("winning_token_" + y), y), DataEntry((ae + "_wininning_address_"), ae), DataEntry(g, (ab - 1)), DataEntry(e, Z), DataEntry(h, ah)]) | |
420 | 420 | if ((aG == "")) | |
421 | 421 | then { | |
422 | 422 | let aZ = TransferSet([ScriptTransfer(K.caller, aF, unit)]) | |
423 | 423 | ScriptResult(aC, aZ) | |
424 | 424 | } | |
425 | 425 | else { | |
426 | 426 | let ba = fromBase64String(aG) | |
427 | - | let aZ = TransferSet([ScriptTransfer(K.caller, aF, | |
427 | + | let aZ = TransferSet([ScriptTransfer(K.caller, aF, ba)]) | |
428 | 428 | ScriptResult(aC, aZ) | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | else { | |
432 | 432 | let aC = WriteSet([DataEntry((ae + "_winning_token_"), y), DataEntry((ae + "_wininning_address_"), ae), DataEntry((y + a), aE), DataEntry(h, ah)]) | |
433 | 433 | if ((aG == "")) | |
434 | 434 | then { | |
435 | 435 | let aZ = TransferSet([ScriptTransfer(K.caller, aF, unit)]) | |
436 | 436 | ScriptResult(aC, aZ) | |
437 | 437 | } | |
438 | 438 | else { | |
439 | 439 | let ba = fromBase64String(aG) | |
440 | 440 | let aZ = TransferSet([ScriptTransfer(K.caller, aF, ba)]) | |
441 | 441 | ScriptResult(aC, aZ) | |
442 | 442 | } | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Verifier(bb) | |
450 | 450 | func bc () = { | |
451 | 451 | let o = bb | |
452 | 452 | if ($isInstanceOf(o, "DataTransaction")) | |
453 | 453 | then true | |
454 | 454 | else if ($isInstanceOf(o, "SetScriptTransaction")) | |
455 | 455 | then true | |
456 | 456 | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
457 | 457 | } | |
458 | 458 |
github/deemru/w8io/169f3d6 53.80 ms ◑