tx · 7gwUZWnPYwsx6fhsXHjGPH6RnzAiYV3NhKHb5C6tBDVt

3NAJB2szuJxcM3SGfPsh3EgUCeTs8gCyCBD:  -0.01500000 Waves

2021.03.12 14:08 [1434391] smart account 3NAJB2szuJxcM3SGfPsh3EgUCeTs8gCyCBD > SELF 0.00000000 Waves

{ "type": 13, "id": "7gwUZWnPYwsx6fhsXHjGPH6RnzAiYV3NhKHb5C6tBDVt", "fee": 1500000, "feeAssetId": null, "timestamp": 1615547372154, "version": 2, "chainId": 84, "sender": "3NAJB2szuJxcM3SGfPsh3EgUCeTs8gCyCBD", "senderPublicKey": "74ZB758ZK2aSVfA8W8phVinVrtNhBzXvpV3azTACMt2z", "proofs": [ "5v9L3cTDucq2xMYMf2cZP5M1LADNVfeAxJNY8psqbXrqDwZHyNeMD2biKp4tZpdcjUGoMewaNy6CP2BfPBiamQfY" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAWAAAAAApkQXBwQWRkcmVzAgAAACtGOURDR2lZZ1Q4eXZCcTFBUUZjU3BHRzRwOHNkek56OW1aY3pEdko0NUxMAAAAAAx0b2tlbkFzc2V0SWQCAAAALDVpaDlqZDRLVjlrU2V5NTV5dktNZ0xTSGN3c1lZa1E0cFJESnRSTm94VWh5AAAAAA11c2VHYXJsaWNDb2luBwAAAAANdG9rZW5zUGVyUGxheQAAAAAAAJiWgAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAABVsb3R0ZXJ5V2lubmluZ0FkZHJlc3MCAAAAEF93aW5uaW5nX2FkZHJlc3MAAAAADGxvdHRlcnlQcmljZQIAAAAGX3ByaWNlAAAAAA1sb3R0ZXJ5UHJpY2VzAgAAAA9fbG90dGVyeV9wcmljZXMAAAAADmxv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BQAAAAFpAAAABmNhbGxlcgUAAAASbG90dGVyeVByaWNlVG9rZW5CBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAl3cml0ZVNldHMFAAAAC3dpblRyYW5zZmVyCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAlZb3UgbmVlZCAFAAAADHRva2VuQXNzZXRJZAIAAAATIHRvIHBsYXkgdGhpcyBnYW1lLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefzt6Y8=", "height": 1434391, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "F9DCGiYgT8yvBq1AQFcSpGG4p8sdzNz9mZczDvJ45LL"
5+
6+let b = "5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy"
7+
8+let c = false
9+
10+let d = 10000000
11+
12+let e = "_amount"
13+
14+let f = "_probability"
15+
16+let g = "_probability_decimal"
17+
18+let h = "_winning_address"
19+
20+let i = "_price"
21+
22+let j = "_lottery_prices"
23+
24+let k = "_lottery_asset_id"
25+
26+let l = "_count_prices"
27+
28+let m = "last_spin_random_hash"
29+
30+let n = 3
31+
32+let o = "total_prizes_pool"
33+
34+let p = "f2MzwrmN5wiMn5DwbBL33247fdsf432FV9kSe"
35+
36+let q = "f1MzwrmN4wiMn4DwbBL43242fsdf434Ffsdfs"
37+
38+let r = "f3MzwrmN4wiMn5DsdBL436542fsdf434Ffsdw"
39+
40+func s (t) = {
41+ let u = {
42+ let v = getBinary(this, m)
43+ if ($isInstanceOf(v, "ByteVector"))
44+ then {
45+ let w = v
46+ w
47+ }
48+ else if ($isInstanceOf(v, "Unit"))
49+ then base58'2ee4oFDYriWJ9EMeR'
50+ else throw("Match error")
51+ }
52+ let x = (((((u + t.transactionId) + t.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
53+ sha256(x)
54+ }
55+
56+
57+func y () = {
58+ let z = {
59+ let v = getString(this, j)
60+ if ($isInstanceOf(v, "String"))
61+ then {
62+ let A = v
63+ A
64+ }
65+ else if ($isInstanceOf(v, "Unit"))
66+ then ""
67+ else throw("Match error")
68+ }
69+ let B = size(z)
70+ if ((B == 0))
71+ then nil
72+ else {
73+ let C = take(z, (size(z) - 1))
74+ let D = split(C, ",")
75+ D
76+ }
77+ }
78+
79+
80+func E () = if ((c == true))
81+ then assetBalance(this, fromBase58String(b))
82+ else wavesBalance(this)
83+
84+
85+func F (G,H) = if (if (isDefined(H))
86+ then true
87+ else (H != ""))
88+ then {
89+ let I = getIntegerValue(this, (H + f))
90+ let J = getIntegerValue(this, (H + g))
91+ let K = size(G)
92+ if ((K == 1))
93+ then {
94+ let L = G[0]
95+ let M = fromBase64String(L)
96+ let N = (J * 1000)
97+ let O = (toInt(M) % N)
98+ if ((I > O))
99+ then H :: G
100+ else G
101+ }
102+ else G
103+ }
104+ else G
105+
106+
107+@Callable(P)
108+func setGarlicCoinLottery () = {
109+ let Q = E()
110+ if ((69 > Q))
111+ then throw("Not enought Amount")
112+ else {
113+ let R = (((((p + ",") + q) + ",") + r) + ",")
114+ if (c)
115+ then {
116+ let S = WriteSet([DataEntry((p + f), 69), DataEntry((p + i), 69), DataEntry((p + g), 100000), DataEntry((p + k), b), DataEntry((q + f), 69), DataEntry((q + i), 6900000000), DataEntry((q + g), 10000), DataEntry((q + k), b), DataEntry((r + f), 69), DataEntry((r + i), 690000000), DataEntry((r + g), 1000), DataEntry((r + k), b), DataEntry(j, R), DataEntry(l, 3)])
117+ ScriptResult(S, TransferSet(nil))
118+ }
119+ else {
120+ let S = WriteSet([DataEntry((p + f), 69), DataEntry((p + i), 69), DataEntry((p + g), 100000), DataEntry((p + k), ""), DataEntry((q + e), 6900000000), DataEntry((q + f), 69), DataEntry((q + i), 6900000000), DataEntry((q + g), 10000), DataEntry((q + k), ""), DataEntry((r + f), 69), DataEntry((r + i), 690000000), DataEntry((r + g), 1), DataEntry((r + k), ""), DataEntry(j, R), DataEntry(l, 3)])
121+ ScriptResult(S, TransferSet(nil))
122+ }
123+ }
124+ }
125+
126+
127+
128+@Callable(P)
129+func startlotto () = {
130+ let T = if (!(isDefined(P.payment)))
131+ then false
132+ else true
133+ if ((T == true))
134+ then {
135+ let U = extract(P.payment)
136+ if (isDefined(U.assetId))
137+ then if ((U.amount != d))
138+ then throw("Incorrect asset passed or incorrect quantity passed")
139+ else if ((fromBase58String(b) != U.assetId))
140+ then throw("Incorrect asset passed or incorrect quantity passed")
141+ else {
142+ let V = toBase58String(P.caller.bytes)
143+ let W = s(P)
144+ let X = y()
145+ let Y = toBase64String(W)
146+ let Z = [Y]
147+ let aa = {
148+ let ab = X
149+ let ac = size(ab)
150+ let ad = Z
151+ if ((ac == 0))
152+ then ad
153+ else {
154+ let ae = F(ad, ab[0])
155+ if ((ac == 1))
156+ then ae
157+ else {
158+ let af = F(ae, ab[1])
159+ if ((ac == 2))
160+ then af
161+ else {
162+ let ag = F(af, ab[2])
163+ if ((ac == 3))
164+ then ag
165+ else {
166+ let ah = F(ag, ab[3])
167+ throw("List size exceed 3")
168+ }
169+ }
170+ }
171+ }
172+ }
173+ let ai = size(aa)
174+ if ((ai == 1))
175+ then {
176+ let aj = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(m, Y)])
177+ ScriptResult(aj, TransferSet(nil))
178+ }
179+ else {
180+ let H = aa[0]
181+ let ak = toBase58String(P.caller.bytes)
182+ let al = E()
183+ if ((al == 0))
184+ then throw("Not Enough Garlic Coin")
185+ else if ((H == p))
186+ then {
187+ let am = {
188+ let v = getInteger(this, (p + i))
189+ if ($isInstanceOf(v, "Int"))
190+ then {
191+ let an = v
192+ an
193+ }
194+ else if ($isInstanceOf(v, "Unit"))
195+ then 0
196+ else throw("Match error")
197+ }
198+ let ao = (am * al)
199+ let aj = WriteSet([DataEntry((H + e), ao), DataEntry((H + h), ak), DataEntry(m, Y), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(ao)) + " ") + H) + "!<p>"))])
200+ if (c)
201+ then {
202+ let ap = TransferSet([ScriptTransfer(P.caller, ao, fromBase58String(b))])
203+ ScriptResult(aj, ap)
204+ }
205+ else {
206+ let ap = TransferSet([ScriptTransfer(P.caller, ao, unit)])
207+ ScriptResult(aj, ap)
208+ }
209+ }
210+ else {
211+ let aq = {
212+ let v = getInteger(this, (H + f))
213+ if ($isInstanceOf(v, "Int"))
214+ then {
215+ let an = v
216+ an
217+ }
218+ else if ($isInstanceOf(v, "Unit"))
219+ then 0
220+ else throw("Match error")
221+ }
222+ let aj = WriteSet([DataEntry((H + e), aq), DataEntry(m, Y), DataEntry((H + h), ak), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(aq)) + " ") + H) + "!<p>"))])
223+ if (c)
224+ then {
225+ let ap = TransferSet([ScriptTransfer(P.caller, aq, fromBase58String(b))])
226+ ScriptResult(aj, ap)
227+ }
228+ else {
229+ let ap = TransferSet([ScriptTransfer(P.caller, aq, unit)])
230+ ScriptResult(aj, ap)
231+ }
232+ }
233+ }
234+ }
235+ else if ((U.amount != d))
236+ then throw("Incorrect asset passed or incorrect quantity passed")
237+ else {
238+ let V = toBase58String(P.caller.bytes)
239+ let W = s(P)
240+ let X = y()
241+ let Y = toBase64String(W)
242+ let Z = [Y]
243+ let aa = {
244+ let ar = X
245+ let as = size(ar)
246+ let at = Z
247+ if ((as == 0))
248+ then at
249+ else {
250+ let au = F(at, ar[0])
251+ if ((as == 1))
252+ then au
253+ else {
254+ let av = F(au, ar[1])
255+ if ((as == 2))
256+ then av
257+ else {
258+ let aw = F(av, ar[2])
259+ if ((as == 3))
260+ then aw
261+ else {
262+ let ax = F(aw, ar[3])
263+ throw("List size exceed 3")
264+ }
265+ }
266+ }
267+ }
268+ }
269+ let ai = size(aa)
270+ if ((ai == 1))
271+ then {
272+ let aj = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(m, Y)])
273+ ScriptResult(aj, TransferSet(nil))
274+ }
275+ else {
276+ let H = aa[0]
277+ let ak = toBase58String(P.caller.bytes)
278+ let al = E()
279+ if ((al == 0))
280+ then throw("Not Enough Garlic Coin")
281+ else if ((H == p))
282+ then {
283+ let am = {
284+ let v = getInteger(this, (p + i))
285+ if ($isInstanceOf(v, "Int"))
286+ then {
287+ let an = v
288+ an
289+ }
290+ else if ($isInstanceOf(v, "Unit"))
291+ then 0
292+ else throw("Match error")
293+ }
294+ let ao = (am * al)
295+ let aj = WriteSet([DataEntry((H + e), ao), DataEntry((H + h), ak), DataEntry(m, Y), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(ao)) + " ") + H) + "!<p>"))])
296+ if (c)
297+ then {
298+ let ap = TransferSet([ScriptTransfer(P.caller, ao, fromBase58String(b))])
299+ ScriptResult(aj, ap)
300+ }
301+ else {
302+ let ap = TransferSet([ScriptTransfer(P.caller, ao, unit)])
303+ ScriptResult(aj, ap)
304+ }
305+ }
306+ else {
307+ let aq = {
308+ let v = getInteger(this, (H + f))
309+ if ($isInstanceOf(v, "Int"))
310+ then {
311+ let an = v
312+ an
313+ }
314+ else if ($isInstanceOf(v, "Unit"))
315+ then 0
316+ else throw("Match error")
317+ }
318+ let aj = WriteSet([DataEntry((H + e), aq), DataEntry(m, Y), DataEntry((H + h), ak), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(aq)) + " ") + H) + "!<p>"))])
319+ if (c)
320+ then {
321+ let ap = TransferSet([ScriptTransfer(P.caller, aq, fromBase58String(b))])
322+ ScriptResult(aj, ap)
323+ }
324+ else {
325+ let ap = TransferSet([ScriptTransfer(P.caller, aq, unit)])
326+ ScriptResult(aj, ap)
327+ }
328+ }
329+ }
330+ }
331+ }
332+ else throw((("You need " + b) + " to play this game."))
333+ }
334+
335+
336+@Verifier(ay)
337+func az () = {
338+ let v = ay
339+ sigVerify(ay.bodyBytes, ay.proofs[0], ay.senderPublicKey)
340+ }
341+

github/deemru/w8io/169f3d6 
31.99 ms