tx · Hnu8oHffJWW7njZPaUm6bNXFpF6BFTThy8oTWg63Gyww

3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1:  -0.01400000 Waves

2021.02.09 15:07 [1390632] smart account 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1 > SELF 0.00000000 Waves

{ "type": 13, "id": "Hnu8oHffJWW7njZPaUm6bNXFpF6BFTThy8oTWg63Gyww", "fee": 1400000, "feeAssetId": null, "timestamp": 1612872513352, "version": 2, "chainId": 84, "sender": "3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1", "senderPublicKey": "4ZSmQKKSEVi7FUZVartg8PJgDtovcTaKW3HWpdXKkjx2", "proofs": [ "5Mg7VvBp9Rr6GQRPTr9BLDd9BpMk5fuTq2xq7N45qQSBZSFv25TbkRFabSmeNVQYSKxFiPCHt5A7xtUezcXYVBBJ" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzd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AAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACnRva2VuUHJpY2UFAAAADWFjdHVhbEFzc2V0SWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwUAAAALd2luVHJhbnNmZXIAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQiRZYw=", "height": 1390632, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CvCaZEzJpiktem6nrsv2CX1mkkQcsJCh8BDR1aGvbF91 Next: 31bjaN1YfGZPDNYwMk5LS453WySmxRiNfZFT9TirEvzp Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_amount"
55
66 let b = "_probability"
77
88 let c = "_probability_decimal"
99
1010 let d = "_price"
1111
1212 let e = "_lottery_prices"
1313
1414 let f = "_lottery_asset_id"
1515
1616 let g = "_count_prices"
1717
1818 let h = "last_spin_random_hash"
1919
2020 let i = "last_token_random_hash"
2121
2222 let j = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV"
2323
2424 let k = 5
2525
2626 func l (m) = {
2727 let n = {
2828 let o = getBinary(this, h)
2929 if ($isInstanceOf(o, "ByteVector"))
3030 then {
3131 let p = o
3232 p
3333 }
3434 else if ($isInstanceOf(o, "Unit"))
3535 then base58'2ee4oFDYriWJ9EMeR'
3636 else throw("Match error")
3737 }
3838 let q = (((((n + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
3939 sha256(q)
4040 }
4141
4242
4343 func r (m) = {
4444 let s = {
4545 let o = getBinary(this, i)
4646 if ($isInstanceOf(o, "ByteVector"))
4747 then {
4848 let p = o
4949 p
5050 }
5151 else if ($isInstanceOf(o, "Unit"))
5252 then base58'4dD7osCQzvuXJdTiGfKvTwnKT'
5353 else throw("Match error")
5454 }
5555 let q = (((((s + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
5656 sha256(q)
5757 }
5858
5959
6060 func t () = {
6161 let u = getStringValue(this, e)
6262 let v = take(u, (size(u) - 1))
6363 let w = split(v, ",")
6464 w
6565 }
6666
6767
6868 func x (y,z) = {
6969 let A = indexOf(y, ",")
7070 if ((A == unit))
7171 then (z + ",")
7272 else ((y + z) + ",")
7373 }
7474
7575
7676 func B (C,y) = if (isDefined(y))
7777 then {
7878 let D = getIntegerValue(this, (y + b))
7979 let E = getIntegerValue(this, (y + c))
8080 let F = (E * 1000)
8181 let G = (E % F)
8282 let H = size(C)
8383 if ((H == 1))
8484 then {
8585 let I = C[1]
8686 let J = toInt(fromBase64String(I))
8787 if ((G > J))
8888 then {
8989 let K = y :: C
9090 K
9191 }
9292 else C
9393 }
9494 else C
9595 }
9696 else C
9797
9898
9999 @Callable(L)
100100 func updateprobability (M,N,O,P,Q) = {
101101 let y = toBase64String(r(L))
102102 let R = if (!(isDefined(L.payment)))
103103 then false
104104 else true
105105 let S = if ((Q == ""))
106106 then true
107107 else false
108108 let T = (N * O)
109109 if ((R == true))
110110 then {
111111 let U = extract(L.payment)
112112 let V = {
113113 let o = U.assetId
114114 if ($isInstanceOf(o, "ByteVector"))
115115 then {
116116 let W = o
117117 toBase64String(W)
118118 }
119119 else if ($isInstanceOf(o, "Unit"))
120120 then ""
121121 else throw("Match error")
122122 }
123123 let X = U.amount
124124 if ((V != Q))
125125 then throw("Asset Id not matching with Payment Asset Id")
126126 else if ((T > X))
127127 then throw("Not enough Asset Amount")
128128 else {
129129 let Y = {
130130 let o = getString(this, e)
131131 if ($isInstanceOf(o, "String"))
132132 then {
133133 let W = o
134134 W
135135 }
136136 else if ($isInstanceOf(o, "Unit"))
137137 then ""
138138 else throw("Match error")
139139 }
140140 let Z = indexOf(Y, y)
141141 let aa = {
142142 let o = Z
143143 if ($isInstanceOf(o, "Unit"))
144144 then ((Y + y) + ",")
145145 else if ($isInstanceOf(o, "Int"))
146146 then {
147147 let ab = o
148148 throw("Token is duplicated")
149149 }
150150 else throw("Match error")
151151 }
152152 let ac = {
153153 let o = getInteger(this, g)
154154 if ($isInstanceOf(o, "Int"))
155155 then {
156156 let W = o
157157 W
158158 }
159159 else if ($isInstanceOf(o, "Unit"))
160160 then 0
161161 else throw("Match error")
162162 }
163163 if ((k > ac))
164164 then {
165165 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)])
166166 ScriptResult(ad, TransferSet(nil))
167167 }
168168 else throw(("Lottery prices has reached maximum " + toString(k)))
169169 }
170170 }
171171 else {
172172 let ae = if (S)
173173 then wavesBalance(this)
174174 else assetBalance(this, fromBase64String(Q))
175175 if ((T > ae))
176176 then throw("Not enough Asset Amount")
177177 else {
178178 let Y = {
179179 let o = getString(this, e)
180180 if ($isInstanceOf(o, "String"))
181181 then {
182182 let W = o
183183 W
184184 }
185185 else if ($isInstanceOf(o, "Unit"))
186186 then ""
187187 else throw("Match error")
188188 }
189189 let Z = indexOf(Y, y)
190190 let aa = {
191191 let o = Z
192192 if ($isInstanceOf(o, "Unit"))
193193 then ((Y + y) + ",")
194194 else if ($isInstanceOf(o, "Int"))
195195 then {
196196 let ab = o
197197 throw("Token is duplicated")
198198 }
199199 else throw("Match error")
200200 }
201201 let ac = {
202202 let o = getInteger(this, g)
203203 if ($isInstanceOf(o, "Int"))
204204 then {
205205 let W = o
206206 W
207207 }
208208 else if ($isInstanceOf(o, "Unit"))
209209 then 0
210210 else throw("Match error")
211211 }
212212 if ((k >= ac))
213213 then {
214214 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)])
215215 ScriptResult(ad, TransferSet(nil))
216216 }
217217 else throw("Lottery prices has reached maximum 15")
218218 }
219219 }
220220 }
221221
222222
223223
224224 @Callable(L)
225225 func startlotto () = {
226226 let af = toBase58String(L.caller.bytes)
227227 let ag = l(L)
228228 let ac = {
229229 let o = getInteger(this, g)
230230 if ($isInstanceOf(o, "Int"))
231231 then {
232232 let W = o
233233 W
234234 }
235235 else if ($isInstanceOf(o, "Unit"))
236236 then 0
237237 else throw("Match error")
238238 }
239239 let ah = t()
240240 let ai = toInt(ag)
241241 let aj = {
242242 let ak = ah
243243 let al = size(ak)
244244 let am = [toString(ai)]
245245 if ((al == 0))
246246 then am
247247 else {
248248 let an = B(am, ak[0])
249249 if ((al == 1))
250250 then an
251251 else {
252252 let ao = B(an, ak[1])
253253 if ((al == 2))
254254 then ao
255255 else {
256256 let ap = B(ao, ak[2])
257257 if ((al == 3))
258258 then ap
259259 else {
260260 let aq = B(ap, ak[3])
261261 if ((al == 4))
262262 then aq
263263 else {
264264 let ar = B(aq, ak[4])
265265 if ((al == 5))
266266 then ar
267267 else {
268268 let as = B(ar, ak[5])
269269 if ((al == 6))
270270 then as
271271 else {
272272 let at = B(as, ak[6])
273273 if ((al == 7))
274274 then at
275275 else {
276276 let au = B(at, ak[7])
277277 if ((al == 8))
278278 then au
279279 else {
280280 let av = B(au, ak[8])
281281 if ((al == 9))
282282 then av
283283 else {
284284 let aw = B(av, ak[9])
285285 if ((al == 10))
286286 then aw
287287 else {
288288 let ax = B(aw, ak[10])
289289 if ((al == 11))
290290 then ax
291291 else {
292292 let ay = B(ax, ak[11])
293293 if ((al == 12))
294294 then ay
295295 else {
296296 let az = B(ay, ak[12])
297297 if ((al == 13))
298298 then az
299299 else {
300300 let aA = B(az, ak[13])
301301 if ((al == 14))
302302 then aA
303303 else {
304304 let aB = B(aA, ak[14])
305305 throw("List size exceed 14")
306306 }
307307 }
308308 }
309309 }
310310 }
311311 }
312312 }
313313 }
314314 }
315315 }
316316 }
317317 }
318318 }
319319 }
320320 }
321321 }
322322 let aC = size(aj)
323323 if ((aC == 0))
324324 then {
325325 let aD = WriteSet(nil)
326326 ScriptResult(aD, TransferSet(nil))
327327 }
328328 else {
329329 let y = aj[1]
330330 let aE = getIntegerValue(this, (y + a))
331331 if ((aE == 0))
332332 then throw("Amount exceeded")
333333 else {
334334 let aF = -(1)
335335 let aG = getIntegerValue(this, (y + d))
336336 let aH = getStringValue(this, (y + f))
337337 if ((aF == 0))
338338 then {
339339 let aa = {
340340 let aI = ah
341341 let aJ = size(aI)
342342 let aK = y
343343 if ((aJ == 0))
344344 then aK
345345 else {
346346 let aL = x(aK, aI[0])
347347 if ((aJ == 1))
348348 then aL
349349 else {
350350 let aM = x(aL, aI[1])
351351 if ((aJ == 2))
352352 then aM
353353 else {
354354 let aN = x(aM, aI[2])
355355 if ((aJ == 3))
356356 then aN
357357 else {
358358 let aO = x(aN, aI[3])
359359 if ((aJ == 4))
360360 then aO
361361 else {
362362 let aP = x(aO, aI[4])
363363 if ((aJ == 5))
364364 then aP
365365 else {
366366 let aQ = x(aP, aI[5])
367367 throw("List size exceed 5")
368368 }
369369 }
370370 }
371371 }
372372 }
373373 }
374374 }
375375 let aD = WriteSet([DataEntry(("winning_token_" + y), y), DataEntry((af + "_wininning_address_"), af), DataEntry(g, (ac - 1)), DataEntry(e, aa), DataEntry(h, ai)])
376376 if ((aH == ""))
377377 then {
378378 let aR = TransferSet([ScriptTransfer(L.caller, aG, unit)])
379379 ScriptResult(aD, aR)
380380 }
381381 else {
382382 let aS = fromBase64String(aH)
383383 let aR = TransferSet([ScriptTransfer(L.caller, aG, aS)])
384384 ScriptResult(aD, aR)
385385 }
386386 }
387387 else {
388388 let aD = WriteSet([DataEntry((af + "_winning_token_"), y), DataEntry((af + "_wininning_address_"), af), DataEntry((y + a), aF), DataEntry(h, ai)])
389389 if ((aH == ""))
390390 then {
391391 let aR = TransferSet([ScriptTransfer(L.caller, aG, unit)])
392392 ScriptResult(aD, aR)
393393 }
394394 else {
395395 let aS = fromBase64String(aH)
396396 let aR = TransferSet([ScriptTransfer(L.caller, aG, aS)])
397397 ScriptResult(aD, aR)
398398 }
399399 }
400400 }
401401 }
402402 }
403403
404404
405405 @Verifier(aT)
406406 func aU () = {
407407 let o = aT
408408 if ($isInstanceOf(o, "DataTransaction"))
409409 then true
410410 else if ($isInstanceOf(o, "SetScriptTransaction"))
411411 then true
412412 else sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
413413 }
414414

github/deemru/w8io/169f3d6 
45.34 ms