tx · 5w43zDNAmUKyq3WjkX9rvioAuQvaE3iwLm19KHCBhL8C

3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP:  -0.00800000 Waves

2022.08.10 11:12 [2178093] smart account 3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP > SELF 0.00000000 Waves

{ "type": 13, "id": "5w43zDNAmUKyq3WjkX9rvioAuQvaE3iwLm19KHCBhL8C", "fee": 800000, "feeAssetId": null, "timestamp": 1660119214406, "version": 2, "chainId": 84, "sender": "3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP", "senderPublicKey": "3bPATHM3GnqSGjJb8saHmYMvsaioqu2etEGkZDiuRCcn", "proofs": [ "2MD4WjKtiRhAf2CHYKku4RUp7UTGzPamdbxUUBN7FpJxHskrukq3aZsMp49U6Psny286uyx4NHaX1RMThZu6NkG5" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAAJAAAAAAltYXhTdXBwbHkAAAAAAAAAE4gBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAUAAAADdmFsAQAAAA10cnlHZXRBZGRyZXNzAAAAAQAAAARhZGRyBAAAAAN2YWwEAAAAByRtYXRjaDAJAAQmAAAAAQUAAAAEYWRkcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQWRkcmVzcwQAAAABYQUAAAAHJG1hdGNoMAUA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AAIhPQAAAAIJAQAAAAx0cnlHZXRTdHJpbmcAAAABCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAAACQAAAgAAAAECAAAAFllvdSBhbHJlYWR5IG1pbnRlZCBORlQEAAAAAmlkCQABpAAAAAEFAAAAE3RvdGFsTWVtYWxpZW5TdXBwbHkEAAAABWFzc2V0CQAEQwAAAAcJAQAAAAdnZXROYW1lAAAAAQUAAAACaWQJAQAAAAdnZXRNZXRhAAAAAQUAAAACaWQAAAAAAAAAAAEAAAAAAAAAAAAHBQAAAAR1bml0BQAAAAZoZWlnaHQEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAD21lbWFsaWVuX3N1cHBseQkAAGQAAAACBQAAABN0b3RhbE1lbWFsaWVuU3VwcGx5AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQACWAAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUxg98A=", "height": 2178093, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BB9FAuMxbHieyCbjeBV4czfUfesDaPVcUkXPsijEXNaP Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 5000
5+
6+func b (c) = {
7+ let d = {
8+ let e = getInteger(this, c)
9+ if ($isInstanceOf(e, "Int"))
10+ then {
11+ let f = e
12+ f
13+ }
14+ else 0
15+ }
16+ d
17+ }
18+
19+
20+func g (c) = {
21+ let d = {
22+ let e = getString(this, c)
23+ if ($isInstanceOf(e, "String"))
24+ then {
25+ let f = e
26+ f
27+ }
28+ else ""
29+ }
30+ d
31+ }
32+
33+
34+func h (i) = {
35+ let d = {
36+ let e = addressFromString(i)
37+ if ($isInstanceOf(e, "Address"))
38+ then {
39+ let j = e
40+ j
41+ }
42+ else if ($isInstanceOf(e, "Unit"))
43+ then {
44+ let j = e
45+ Address(base58'3PQG1wqM5vECAGVzMDvBzyq5nSkriqnVFxs')
46+ }
47+ else throw("Match error")
48+ }
49+ d
50+ }
51+
52+
53+func k (l) = ("Memalien #" + l)
54+
55+
56+func m (l) = (("https://images.wavespunks.com/memalien/" + l) + ".png")
57+
58+
59+func n (l) = (("https://images.wavespunks.com/memalien/" + l) + ".mp4")
60+
61+
62+func o (l) = (((("{\"id\": " + l) + "\", \"url\": \"") + m(l)) + "\"}")
63+
64+
65+func p (l) = (((((("{\"id\": " + l) + "\", \"url\": \"") + m(l)) + "\", \"animation_url\": \"") + n(l)) + "\"}")
66+
67+
68+@Callable(q)
69+func dropNFT (r) = {
70+ let s = b("memalien_supply")
71+ let t = b("end_drop")
72+ let u = g("owner")
73+ if ((s > (t - 1)))
74+ then throw("Drop was ended")
75+ else if ((s == a))
76+ then throw("All memalien are minted")
77+ else if ((toString(q.caller) != u))
78+ then throw("The function is available only to the admin")
79+ else {
80+ let l = toString(s)
81+ if (containsElement(split(g("video_nft"), ","), l))
82+ then {
83+ let v = Issue(k(l), p(l), 1, 0, false, unit, height)
84+ let w = calculateAssetId(v)
85+[IntegerEntry("memalien_supply", (s + 1)), StringEntry(("drop: " + r), toBase58String(w)), v, ScriptTransfer(h(r), 1, w)]
86+ }
87+ else {
88+ let v = Issue(k(l), o(l), 1, 0, false, unit, height)
89+ let w = calculateAssetId(v)
90+[IntegerEntry("memalien_supply", (s + 1)), StringEntry(r, toBase58String(w)), v, ScriptTransfer(h(r), 1, w)]
91+ }
92+ }
93+ }
94+
95+
96+
97+@Callable(q)
98+func mint () = {
99+ let s = b("memalien_supply")
100+ let t = b("end_drop")
101+ if (((t - 1) > s))
102+ then throw("Drop wasn`t ended yet")
103+ else if ((s == a))
104+ then throw("All memalien are minted")
105+ else if ((g(toString(q.caller)) != ""))
106+ then throw("You already minted NFT")
107+ else {
108+ let l = toString(s)
109+ let v = Issue(k(l), o(l), 1, 0, false, unit, height)
110+ let w = calculateAssetId(v)
111+[IntegerEntry("memalien_supply", (s + 1)), StringEntry(toString(q.caller), toBase58String(w)), v, ScriptTransfer(q.caller, 1, w)]
112+ }
113+ }
114+
115+
116+@Verifier(x)
117+func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
118+

github/deemru/w8io/169f3d6 
27.22 ms