tx · 4tkabmMuPbXRwGxZceEPc2cPGyNNRAwHuuruvaQCQBMt

3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP:  -0.00800000 Waves

2022.08.18 20:14 [2190205] smart account 3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP > SELF 0.00000000 Waves

{ "type": 13, "id": "4tkabmMuPbXRwGxZceEPc2cPGyNNRAwHuuruvaQCQBMt", "fee": 800000, "feeAssetId": null, "timestamp": 1660842850692, "version": 2, "chainId": 84, "sender": "3Muey1cqNaBjjcxXfKHF8qqTZeyGPAsvCpP", "senderPublicKey": "3bPATHM3GnqSGjJb8saHmYMvsaioqu2etEGkZDiuRCcn", "proofs": [ "4h1YzGLgtWS1gMHSk5hGK2hGTBb5LKHvSV6R7vbbQLtNEkCu5Lh5Sh7hisDsfQCbZ1FUbgEeY92XmsYdeSFx986x" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACwAAAAAJbWF4U3VwcGx5AAAAAAAAAAPoAAAAAAV3YXZlcwAAAAAABfXhAAEAAAAMZ2V0UHVua0lES2V5AAAAAQAAAAJpZAkAASwAAAACAgAAAAVwdW5rXwUAAAACaWQBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADXRyeUdldEJvb2xlYW4AAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMA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BheW1lbnRCb29sCQAAAgAAAAECAAAAJFBheW1lbnQgbXVzdCBiZSBpbiBXYXZlcyB0b2tlbnMgb25seQMJAABmAAAAAgUAAAALd2F2ZXNOZWVkZWQIBQAAAAxmaXJzdFBheW1lbnQAAAAGYW1vdW50CQAAAgAAAAECAAAAEkluc3VmZmljaWVudCBmdW5kcwkBAAAABV9taW50AAAAAwUAAAABaQUAAAAQdG90YWxQdW5rc1N1cHBseQUAAAAOYXZhaWxhYmxlUHVua3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQEIFXw=", "height": 2190205, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4zErmhgTQAwzcg5BXwwQMWWVnkhKUX5vhBbU3fJKqCM5 Next: none Diff:
OldNewDifferences
2424
2525 func j (f) = {
2626 let g = {
27+ let h = getBoolean(this, f)
28+ if ($isInstanceOf(h, "Boolean"))
29+ then {
30+ let i = h
31+ i
32+ }
33+ else false
34+ }
35+ g
36+ }
37+
38+
39+func k (f) = {
40+ let g = {
2741 let h = getString(this, f)
2842 if ($isInstanceOf(h, "String"))
2943 then {
3650 }
3751
3852
39-func k (d) = if (containsElement(split(j("gif_punk"), ","), d))
53+func l (d) = if (containsElement(split(k("gif_punk"), ","), d))
4054 then (("https://mypunks.wavespunks.com/mad/m" + d) + ".gif")
4155 else (("https://mypunks.wavespunks.com/mad/m" + d) + ".png")
4256
4357
44-func l (d) = {
45- let m = {
58+func m (d) = {
59+ let n = {
4660 let h = parseInt(d)
4761 if ($isInstanceOf(h, "Int"))
4862 then {
49- let n = h
50- n
63+ let o = h
64+ o
5165 }
5266 else if ($isInstanceOf(h, "Unit"))
5367 then {
54- let n = h
68+ let o = h
5569 0
5670 }
5771 else throw("Match error")
5872 }
59- if (containsElement(split(j("gif_punk"), ","), toString(m)))
73+ if (containsElement(split(k("gif_punk"), ","), toString(n)))
6074 then "ultra-rare"
61- else if ((29 >= m))
75+ else if ((29 >= n))
6276 then "rare"
6377 else "unique"
6478 }
6579
6680
67-func o (p,q,r,s) = {
68- let t = value(blockInfoByHeight((r - 1)))
69- let u = sha256_16Kb((q + value(t.vrf)))
70- (toInt(u, s) % p)
81+func p (q,r,s,t) = {
82+ let u = value(blockInfoByHeight((s - 1)))
83+ let v = sha256_16Kb((r + value(u.vrf)))
84+ (toInt(v, t) % q)
7185 }
7286
7387
74-func v () = (b * 6)
88+func w () = (b * 6)
7589
7690
77-func w (n,x,y) = {
78- let z = split(y, ",")
79- let A = o((a - x), n.transactionId, height, 0)
80- let B = z[A]
81- let C = ("MadPunk #" + B)
82- let D = j("collection_description")
83- let E = Issue(C, D, 1, 0, false, unit, height)
84- let F = calculateAssetId(E)
85- let G = [IntegerEntry("punks_supply", (x + 1)), StringEntry("available_punks", makeString(removeByIndex(z, A), ",")), E, StringEntry(c(B), toBase58String(F)), StringEntry((toBase58String(F) + "_id"), c(B)), StringEntry((toBase58String(F) + "_type"), l(B)), StringEntry((toBase58String(F) + "_url"), k(B)), StringEntry((toBase58String(F) + "_fraction"), j("fraction")), ScriptTransfer(n.caller, 1, F)]
86- G
91+func x (o,y,z) = {
92+ let A = split(z, ",")
93+ let B = p((a - y), o.transactionId, height, 0)
94+ let C = A[B]
95+ let D = ("MadPunk #" + C)
96+ let E = k("collection_description")
97+ let F = Issue(D, E, 1, 0, false, unit, height)
98+ let G = calculateAssetId(F)
99+ let H = [IntegerEntry("punks_supply", (y + 1)), StringEntry("available_punks", makeString(removeByIndex(A, B), ",")), F, StringEntry(c(C), toBase58String(G)), StringEntry((toBase58String(G) + "_id"), c(C)), StringEntry((toBase58String(G) + "_type"), m(C)), StringEntry((toBase58String(G) + "_url"), l(C)), StringEntry((toBase58String(G) + "_fraction"), k("fraction")), ScriptTransfer(o.caller, 1, G)]
100+ H
87101 }
88102
89103
90-@Callable(n)
104+@Callable(o)
91105 func mint () = {
92- let x = e("punks_supply")
93- let y = j("available_punks")
94- let H = split(j("premint_address"), ",")
95- let I = e("start_mint")
96- let J = v()
97- let K = value(n.payments[0])
98- let L = {
99- let h = K.assetId
106+ let y = e("punks_supply")
107+ let z = k("available_punks")
108+ let I = split(k("premint_address"), ",")
109+ let J = e("start_mint")
110+ let K = w()
111+ let L = value(o.payments[0])
112+ let M = {
113+ let h = L.assetId
100114 if ($isInstanceOf(h, "ByteVector"))
101115 then {
102- let M = h
116+ let N = h
103117 true
104118 }
105119 else if ($isInstanceOf(h, "Unit"))
106120 then {
107- let N = h
121+ let O = h
108122 false
109123 }
110124 else throw("Match error")
111125 }
112- if ((x == a))
126+ if ((y == a))
113127 then throw("All punks are minted")
114- else if ((y == ""))
128+ else if ((z == ""))
115129 then throw("No punks available")
116- else if (containsElement(H, toString(n.caller)))
130+ else if (j(toString(o.caller)))
117131 then {
118- let O = {
119- let h = indexOf(H, toString(n.caller))
120- if ($isInstanceOf(h, "Int"))
121- then {
122- let i = h
123- i
124- }
125- else if ($isInstanceOf(h, "Unit"))
126- then {
127- let i = h
128- 0
129- }
130- else throw("Match error")
131- }
132- let P = (w(n, x, y) ++ [StringEntry("premint_address", makeString(removeByIndex(H, O), ","))])
132+ let P = x(o, y, z)
133133 P
134134 }
135- else if ((I > lastBlock.timestamp))
135+ else if ((J > lastBlock.timestamp))
136136 then throw("Mint hasn`t yet begun")
137- else if (L)
137+ else if (M)
138138 then throw("Payment must be in Waves tokens only")
139- else if ((J > K.amount))
139+ else if ((K > L.amount))
140140 then throw("Insufficient funds")
141- else w(n, x, y)
141+ else x(o, y, z)
142142 }
143143
144144
145-@Verifier(G)
146-func Q () = sigVerify(G.bodyBytes, G.proofs[0], G.senderPublicKey)
145+@Verifier(H)
146+func Q () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
147147
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000
55
66 let b = 100000000
77
88 func c (d) = ("punk_" + d)
99
1010
1111 func e (f) = {
1212 let g = {
1313 let h = getInteger(this, f)
1414 if ($isInstanceOf(h, "Int"))
1515 then {
1616 let i = h
1717 i
1818 }
1919 else 0
2020 }
2121 g
2222 }
2323
2424
2525 func j (f) = {
2626 let g = {
27+ let h = getBoolean(this, f)
28+ if ($isInstanceOf(h, "Boolean"))
29+ then {
30+ let i = h
31+ i
32+ }
33+ else false
34+ }
35+ g
36+ }
37+
38+
39+func k (f) = {
40+ let g = {
2741 let h = getString(this, f)
2842 if ($isInstanceOf(h, "String"))
2943 then {
3044 let i = h
3145 i
3246 }
3347 else ""
3448 }
3549 g
3650 }
3751
3852
39-func k (d) = if (containsElement(split(j("gif_punk"), ","), d))
53+func l (d) = if (containsElement(split(k("gif_punk"), ","), d))
4054 then (("https://mypunks.wavespunks.com/mad/m" + d) + ".gif")
4155 else (("https://mypunks.wavespunks.com/mad/m" + d) + ".png")
4256
4357
44-func l (d) = {
45- let m = {
58+func m (d) = {
59+ let n = {
4660 let h = parseInt(d)
4761 if ($isInstanceOf(h, "Int"))
4862 then {
49- let n = h
50- n
63+ let o = h
64+ o
5165 }
5266 else if ($isInstanceOf(h, "Unit"))
5367 then {
54- let n = h
68+ let o = h
5569 0
5670 }
5771 else throw("Match error")
5872 }
59- if (containsElement(split(j("gif_punk"), ","), toString(m)))
73+ if (containsElement(split(k("gif_punk"), ","), toString(n)))
6074 then "ultra-rare"
61- else if ((29 >= m))
75+ else if ((29 >= n))
6276 then "rare"
6377 else "unique"
6478 }
6579
6680
67-func o (p,q,r,s) = {
68- let t = value(blockInfoByHeight((r - 1)))
69- let u = sha256_16Kb((q + value(t.vrf)))
70- (toInt(u, s) % p)
81+func p (q,r,s,t) = {
82+ let u = value(blockInfoByHeight((s - 1)))
83+ let v = sha256_16Kb((r + value(u.vrf)))
84+ (toInt(v, t) % q)
7185 }
7286
7387
74-func v () = (b * 6)
88+func w () = (b * 6)
7589
7690
77-func w (n,x,y) = {
78- let z = split(y, ",")
79- let A = o((a - x), n.transactionId, height, 0)
80- let B = z[A]
81- let C = ("MadPunk #" + B)
82- let D = j("collection_description")
83- let E = Issue(C, D, 1, 0, false, unit, height)
84- let F = calculateAssetId(E)
85- let G = [IntegerEntry("punks_supply", (x + 1)), StringEntry("available_punks", makeString(removeByIndex(z, A), ",")), E, StringEntry(c(B), toBase58String(F)), StringEntry((toBase58String(F) + "_id"), c(B)), StringEntry((toBase58String(F) + "_type"), l(B)), StringEntry((toBase58String(F) + "_url"), k(B)), StringEntry((toBase58String(F) + "_fraction"), j("fraction")), ScriptTransfer(n.caller, 1, F)]
86- G
91+func x (o,y,z) = {
92+ let A = split(z, ",")
93+ let B = p((a - y), o.transactionId, height, 0)
94+ let C = A[B]
95+ let D = ("MadPunk #" + C)
96+ let E = k("collection_description")
97+ let F = Issue(D, E, 1, 0, false, unit, height)
98+ let G = calculateAssetId(F)
99+ let H = [IntegerEntry("punks_supply", (y + 1)), StringEntry("available_punks", makeString(removeByIndex(A, B), ",")), F, StringEntry(c(C), toBase58String(G)), StringEntry((toBase58String(G) + "_id"), c(C)), StringEntry((toBase58String(G) + "_type"), m(C)), StringEntry((toBase58String(G) + "_url"), l(C)), StringEntry((toBase58String(G) + "_fraction"), k("fraction")), ScriptTransfer(o.caller, 1, G)]
100+ H
87101 }
88102
89103
90-@Callable(n)
104+@Callable(o)
91105 func mint () = {
92- let x = e("punks_supply")
93- let y = j("available_punks")
94- let H = split(j("premint_address"), ",")
95- let I = e("start_mint")
96- let J = v()
97- let K = value(n.payments[0])
98- let L = {
99- let h = K.assetId
106+ let y = e("punks_supply")
107+ let z = k("available_punks")
108+ let I = split(k("premint_address"), ",")
109+ let J = e("start_mint")
110+ let K = w()
111+ let L = value(o.payments[0])
112+ let M = {
113+ let h = L.assetId
100114 if ($isInstanceOf(h, "ByteVector"))
101115 then {
102- let M = h
116+ let N = h
103117 true
104118 }
105119 else if ($isInstanceOf(h, "Unit"))
106120 then {
107- let N = h
121+ let O = h
108122 false
109123 }
110124 else throw("Match error")
111125 }
112- if ((x == a))
126+ if ((y == a))
113127 then throw("All punks are minted")
114- else if ((y == ""))
128+ else if ((z == ""))
115129 then throw("No punks available")
116- else if (containsElement(H, toString(n.caller)))
130+ else if (j(toString(o.caller)))
117131 then {
118- let O = {
119- let h = indexOf(H, toString(n.caller))
120- if ($isInstanceOf(h, "Int"))
121- then {
122- let i = h
123- i
124- }
125- else if ($isInstanceOf(h, "Unit"))
126- then {
127- let i = h
128- 0
129- }
130- else throw("Match error")
131- }
132- let P = (w(n, x, y) ++ [StringEntry("premint_address", makeString(removeByIndex(H, O), ","))])
132+ let P = x(o, y, z)
133133 P
134134 }
135- else if ((I > lastBlock.timestamp))
135+ else if ((J > lastBlock.timestamp))
136136 then throw("Mint hasn`t yet begun")
137- else if (L)
137+ else if (M)
138138 then throw("Payment must be in Waves tokens only")
139- else if ((J > K.amount))
139+ else if ((K > L.amount))
140140 then throw("Insufficient funds")
141- else w(n, x, y)
141+ else x(o, y, z)
142142 }
143143
144144
145-@Verifier(G)
146-func Q () = sigVerify(G.bodyBytes, G.proofs[0], G.senderPublicKey)
145+@Verifier(H)
146+func Q () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
147147

github/deemru/w8io/169f3d6 
49.59 ms