tx · DGg8hPuy1PRYd9GfUibtiWupgatE9QQDchaf2CMaVQDj 3Mye5M9KfeoHfWNZtWk5gXe3DJiWD1Wgps3: -0.01500000 Waves 2021.02.09 16:45 [1390734] smart account 3Mye5M9KfeoHfWNZtWk5gXe3DJiWD1Wgps3 > SELF 0.00000000 Waves
{ "type": 13, "id": "DGg8hPuy1PRYd9GfUibtiWupgatE9QQDchaf2CMaVQDj", "fee": 1500000, "feeAssetId": null, "timestamp": 1612878370834, "version": 2, "chainId": 84, "sender": "3Mye5M9KfeoHfWNZtWk5gXe3DJiWD1Wgps3", "senderPublicKey": "Crax6jGgWtQYaBaDSjijPf7hNdS2UMdZAmmtrdXqGE4x", "proofs": [ "4zZoDnKExqQrb8hmtWJWF7YV3hLQWzbzoCuLgGJ6FsJgX2KjBi2W45rXvRkDYnSHNCSZcchbNZZgKyiocwXmf5vE" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ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lclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAp0b2tlblByaWNlBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAl3cml0ZVNldHMFAAAAC3dpblRyYW5zZmVyBAAAAA1hY3R1YWxBc3NldElkCQACWwAAAAEFAAAADHRva2VuQXNzZXRJZAQAAAALd2luVHJhbnNmZXIJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAp0b2tlblByaWNlBQAAAA1hY3R1YWxBc3NldElkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAl3cml0ZVNldHMFAAAAC3dpblRyYW5zZmVyAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXleVVl6", "height": 1390734, "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[0] | |
86 | + | let J = toInt(fromBase64String(I)) | |
87 | + | if ((G > J)) | |
88 | + | then y :: C | |
89 | + | else C | |
90 | + | } | |
91 | + | else C | |
92 | + | } | |
93 | + | else C | |
94 | + | ||
95 | + | ||
96 | + | @Callable(K) | |
97 | + | func updateprobability (L,M,N,O,P) = { | |
98 | + | let y = toBase64String(r(K)) | |
99 | + | let Q = if (!(isDefined(K.payment))) | |
100 | + | then false | |
101 | + | else true | |
102 | + | let R = if ((P == "")) | |
103 | + | then true | |
104 | + | else false | |
105 | + | let S = (M * N) | |
106 | + | if ((Q == true)) | |
107 | + | then { | |
108 | + | let T = extract(K.payment) | |
109 | + | let U = { | |
110 | + | let o = T.assetId | |
111 | + | if ($isInstanceOf(o, "ByteVector")) | |
112 | + | then { | |
113 | + | let V = o | |
114 | + | toBase64String(V) | |
115 | + | } | |
116 | + | else if ($isInstanceOf(o, "Unit")) | |
117 | + | then "" | |
118 | + | else throw("Match error") | |
119 | + | } | |
120 | + | let W = T.amount | |
121 | + | if ((U != P)) | |
122 | + | then throw("Asset Id not matching with Payment Asset Id") | |
123 | + | else if ((S > W)) | |
124 | + | then throw("Not enough Asset Amount") | |
125 | + | else { | |
126 | + | let X = { | |
127 | + | let o = getString(this, e) | |
128 | + | if ($isInstanceOf(o, "String")) | |
129 | + | then { | |
130 | + | let V = o | |
131 | + | V | |
132 | + | } | |
133 | + | else if ($isInstanceOf(o, "Unit")) | |
134 | + | then "" | |
135 | + | else throw("Match error") | |
136 | + | } | |
137 | + | let Y = indexOf(X, y) | |
138 | + | let Z = { | |
139 | + | let o = Y | |
140 | + | if ($isInstanceOf(o, "Unit")) | |
141 | + | then ((X + y) + ",") | |
142 | + | else if ($isInstanceOf(o, "Int")) | |
143 | + | then { | |
144 | + | let aa = o | |
145 | + | throw("Token is duplicated") | |
146 | + | } | |
147 | + | else throw("Match error") | |
148 | + | } | |
149 | + | let ab = { | |
150 | + | let o = getInteger(this, g) | |
151 | + | if ($isInstanceOf(o, "Int")) | |
152 | + | then { | |
153 | + | let V = o | |
154 | + | V | |
155 | + | } | |
156 | + | else if ($isInstanceOf(o, "Unit")) | |
157 | + | then 0 | |
158 | + | else throw("Match error") | |
159 | + | } | |
160 | + | if ((k > ab)) | |
161 | + | then { | |
162 | + | 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)]) | |
163 | + | ScriptResult(ac, TransferSet(nil)) | |
164 | + | } | |
165 | + | else throw(("Lottery prices has reached maximum " + toString(k))) | |
166 | + | } | |
167 | + | } | |
168 | + | else { | |
169 | + | let ad = if (R) | |
170 | + | then wavesBalance(this) | |
171 | + | else assetBalance(this, fromBase64String(P)) | |
172 | + | if ((S > ad)) | |
173 | + | then throw("Not enough Asset Amount") | |
174 | + | else { | |
175 | + | let X = { | |
176 | + | let o = getString(this, e) | |
177 | + | if ($isInstanceOf(o, "String")) | |
178 | + | then { | |
179 | + | let V = o | |
180 | + | V | |
181 | + | } | |
182 | + | else if ($isInstanceOf(o, "Unit")) | |
183 | + | then "" | |
184 | + | else throw("Match error") | |
185 | + | } | |
186 | + | let Y = indexOf(X, y) | |
187 | + | let Z = { | |
188 | + | let o = Y | |
189 | + | if ($isInstanceOf(o, "Unit")) | |
190 | + | then ((X + y) + ",") | |
191 | + | else if ($isInstanceOf(o, "Int")) | |
192 | + | then { | |
193 | + | let aa = o | |
194 | + | throw("Token is duplicated") | |
195 | + | } | |
196 | + | else throw("Match error") | |
197 | + | } | |
198 | + | let ab = { | |
199 | + | let o = getInteger(this, g) | |
200 | + | if ($isInstanceOf(o, "Int")) | |
201 | + | then { | |
202 | + | let V = o | |
203 | + | V | |
204 | + | } | |
205 | + | else if ($isInstanceOf(o, "Unit")) | |
206 | + | then 0 | |
207 | + | else throw("Match error") | |
208 | + | } | |
209 | + | if ((k > ab)) | |
210 | + | then { | |
211 | + | 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)]) | |
212 | + | ScriptResult(ac, TransferSet(nil)) | |
213 | + | } | |
214 | + | else throw(("Lottery prices has reached maximum " + toString(k))) | |
215 | + | } | |
216 | + | } | |
217 | + | } | |
218 | + | ||
219 | + | ||
220 | + | ||
221 | + | @Callable(K) | |
222 | + | func startlotto () = { | |
223 | + | let ae = toBase58String(K.caller.bytes) | |
224 | + | let af = l(K) | |
225 | + | let ab = { | |
226 | + | let o = getInteger(this, g) | |
227 | + | if ($isInstanceOf(o, "Int")) | |
228 | + | then { | |
229 | + | let V = o | |
230 | + | V | |
231 | + | } | |
232 | + | else if ($isInstanceOf(o, "Unit")) | |
233 | + | then 0 | |
234 | + | else throw("Match error") | |
235 | + | } | |
236 | + | let ag = t() | |
237 | + | let ah = toBase64String(af) | |
238 | + | let ai = { | |
239 | + | let aj = ag | |
240 | + | let ak = size(aj) | |
241 | + | let al = [ah] | |
242 | + | if ((ak == 0)) | |
243 | + | then al | |
244 | + | else { | |
245 | + | let am = B(al, aj[0]) | |
246 | + | if ((ak == 1)) | |
247 | + | then am | |
248 | + | else { | |
249 | + | let an = B(am, aj[1]) | |
250 | + | if ((ak == 2)) | |
251 | + | then an | |
252 | + | else { | |
253 | + | let ao = B(an, aj[2]) | |
254 | + | if ((ak == 3)) | |
255 | + | then ao | |
256 | + | else { | |
257 | + | let ap = B(ao, aj[3]) | |
258 | + | if ((ak == 4)) | |
259 | + | then ap | |
260 | + | else { | |
261 | + | let aq = B(ap, aj[4]) | |
262 | + | if ((ak == 5)) | |
263 | + | then aq | |
264 | + | else { | |
265 | + | let ar = B(aq, aj[5]) | |
266 | + | throw("List size exceed 5") | |
267 | + | } | |
268 | + | } | |
269 | + | } | |
270 | + | } | |
271 | + | } | |
272 | + | } | |
273 | + | } | |
274 | + | let as = size(ai) | |
275 | + | if ((as == 0)) | |
276 | + | then { | |
277 | + | let at = WriteSet(nil) | |
278 | + | ScriptResult(at, TransferSet(nil)) | |
279 | + | } | |
280 | + | else { | |
281 | + | let y = ai[0] | |
282 | + | let au = getIntegerValue(this, (y + a)) | |
283 | + | if ((au == 1)) | |
284 | + | then throw("Amount exceeded") | |
285 | + | else { | |
286 | + | let av = -(1) | |
287 | + | let aw = getIntegerValue(this, (y + d)) | |
288 | + | let ax = getStringValue(this, (y + f)) | |
289 | + | if ((av == 0)) | |
290 | + | then { | |
291 | + | let Z = { | |
292 | + | let ay = ag | |
293 | + | let az = size(ay) | |
294 | + | let aA = y | |
295 | + | if ((az == 0)) | |
296 | + | then aA | |
297 | + | else { | |
298 | + | let aB = x(aA, ay[0]) | |
299 | + | if ((az == 1)) | |
300 | + | then aB | |
301 | + | else { | |
302 | + | let aC = x(aB, ay[1]) | |
303 | + | if ((az == 2)) | |
304 | + | then aC | |
305 | + | else { | |
306 | + | let aD = x(aC, ay[2]) | |
307 | + | if ((az == 3)) | |
308 | + | then aD | |
309 | + | else { | |
310 | + | let aE = x(aD, ay[3]) | |
311 | + | if ((az == 4)) | |
312 | + | then aE | |
313 | + | else { | |
314 | + | let aF = x(aE, ay[4]) | |
315 | + | if ((az == 5)) | |
316 | + | then aF | |
317 | + | else { | |
318 | + | let aG = x(aF, ay[5]) | |
319 | + | throw("List size exceed 5") | |
320 | + | } | |
321 | + | } | |
322 | + | } | |
323 | + | } | |
324 | + | } | |
325 | + | } | |
326 | + | } | |
327 | + | let at = WriteSet([DataEntry(("winning_token_" + y), y), DataEntry((ae + "_wininning_address_"), ae), DataEntry(g, (ab - 1)), DataEntry(e, Z), DataEntry(h, ah)]) | |
328 | + | if ((ax == "")) | |
329 | + | then { | |
330 | + | let aH = TransferSet([ScriptTransfer(K.caller, aw, unit)]) | |
331 | + | ScriptResult(at, aH) | |
332 | + | } | |
333 | + | else { | |
334 | + | let aI = fromBase64String(ax) | |
335 | + | let aH = TransferSet([ScriptTransfer(K.caller, aw, aI)]) | |
336 | + | ScriptResult(at, aH) | |
337 | + | } | |
338 | + | } | |
339 | + | else { | |
340 | + | let at = WriteSet([DataEntry((ae + "_winning_token_"), y), DataEntry((ae + "_wininning_address_"), ae), DataEntry((y + a), av), DataEntry(h, ah)]) | |
341 | + | if ((ax == "")) | |
342 | + | then { | |
343 | + | let aH = TransferSet([ScriptTransfer(K.caller, aw, unit)]) | |
344 | + | ScriptResult(at, aH) | |
345 | + | } | |
346 | + | else { | |
347 | + | let aI = fromBase64String(ax) | |
348 | + | let aH = TransferSet([ScriptTransfer(K.caller, aw, aI)]) | |
349 | + | ScriptResult(at, aH) | |
350 | + | } | |
351 | + | } | |
352 | + | } | |
353 | + | } | |
354 | + | } | |
355 | + | ||
356 | + | ||
357 | + | @Verifier(aJ) | |
358 | + | func aK () = { | |
359 | + | let o = aJ | |
360 | + | if ($isInstanceOf(o, "DataTransaction")) | |
361 | + | then true | |
362 | + | else if ($isInstanceOf(o, "SetScriptTransaction")) | |
363 | + | then true | |
364 | + | else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
365 | + | } | |
366 | + |
github/deemru/w8io/169f3d6 25.96 ms ◑