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