tx · AJVRdwRMi6GJH9X2y6uJqmEo3qAr9nLsRDyxiq7s4hfy

3MugHf1wRTdGuTrjXGB4qunDNZ6jNEVEAdu:  -0.00800000 Waves

2022.08.24 12:32 [2198386] smart account 3MugHf1wRTdGuTrjXGB4qunDNZ6jNEVEAdu > SELF 0.00000000 Waves

{ "type": 13, "id": "AJVRdwRMi6GJH9X2y6uJqmEo3qAr9nLsRDyxiq7s4hfy", "fee": 800000, "feeAssetId": null, "timestamp": 1661333615783, "version": 2, "chainId": 84, "sender": "3MugHf1wRTdGuTrjXGB4qunDNZ6jNEVEAdu", "senderPublicKey": "FbyxDzJQJeCSLtjFFYUf8YN6yLMPB1sXnpiQ13oFNHWd", "proofs": [ "2wC1k2r8aQUSQG1e4uDmK92y8DwKBHSLQ9B22f2qQxfGSck8jfaWyQffwGmT5fFWfdWHyjBaPAzmVbhMaxCNUjgW" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACwAAAAAJbWF4U3VwcGx5AAAAAAAAAAPoAAAAAAV3YXZlcwAAAAAABfXhAAEAAAAMZ2V0UHVua0lES2V5AAAAAQAAAAJpZAkAASwAAAACAgAAAAVwdW5rXwUAAAACaWQBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADXRyeUdldEJvb2xlYW4AAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1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ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BIPTyA==", "height": 2198386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DZuzK4vAPbzoyMrGGQTutn76wempBaJe3XRLsH1Dq4UW Next: CaWCvkNGCQ3royZtbKRRmeSUvHSvMRtkNQDihVznLSt1 Diff:
OldNewDifferences
5151
5252
5353 func l (d) = if (containsElement(split(k("gif_punk"), ","), d))
54- then (("https://mypunks.wavespunks.com/mad/m" + d) + ".gif")
55- else (("https://mypunks.wavespunks.com/mad/m" + d) + ".png")
54+ then (("https://images.wavespunks.com/mad/mutation/" + d) + ".gif")
55+ else (("https://images.wavespunks.com/mad/mutation/" + d) + ".png")
5656
5757
5858 func m (d) = {
103103
104104 @Callable(o)
105105 func mint () = {
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
114- if ($isInstanceOf(h, "ByteVector"))
115- then {
116- let N = h
117- true
118- }
119- else if ($isInstanceOf(h, "Unit"))
120- then {
121- let O = h
122- false
123- }
124- else throw("Match error")
125- }
126- if ((y == a))
127- then throw("All punks are minted")
128- else if ((z == ""))
129- then throw("No punks available")
130- else if (j(toString(o.caller)))
131- then {
132- let P = x(o, y, z)
133- P
134- }
135- else if ((J > lastBlock.timestamp))
136- then throw("Mint hasn`t yet begun")
137- else if (M)
138- then throw("Payment must be in Waves tokens only")
139- else if ((K > L.amount))
140- then throw("Insufficient funds")
141- else x(o, y, z)
106+ let C = toString(5)
107+ let D = ("MadPunk #" + C)
108+ let E = k("collection_description")
109+ let F = Issue(D, E, 1, 0, false, unit, height)
110+ let G = calculateAssetId(F)
111+ let H = [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)]
112+ H
142113 }
143114
144115
145116 @Verifier(H)
146-func Q () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
117+func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
147118
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 = {
2727 let h = getBoolean(this, f)
2828 if ($isInstanceOf(h, "Boolean"))
2929 then {
3030 let i = h
3131 i
3232 }
3333 else false
3434 }
3535 g
3636 }
3737
3838
3939 func k (f) = {
4040 let g = {
4141 let h = getString(this, f)
4242 if ($isInstanceOf(h, "String"))
4343 then {
4444 let i = h
4545 i
4646 }
4747 else ""
4848 }
4949 g
5050 }
5151
5252
5353 func l (d) = if (containsElement(split(k("gif_punk"), ","), d))
54- then (("https://mypunks.wavespunks.com/mad/m" + d) + ".gif")
55- else (("https://mypunks.wavespunks.com/mad/m" + d) + ".png")
54+ then (("https://images.wavespunks.com/mad/mutation/" + d) + ".gif")
55+ else (("https://images.wavespunks.com/mad/mutation/" + d) + ".png")
5656
5757
5858 func m (d) = {
5959 let n = {
6060 let h = parseInt(d)
6161 if ($isInstanceOf(h, "Int"))
6262 then {
6363 let o = h
6464 o
6565 }
6666 else if ($isInstanceOf(h, "Unit"))
6767 then {
6868 let o = h
6969 0
7070 }
7171 else throw("Match error")
7272 }
7373 if (containsElement(split(k("gif_punk"), ","), toString(n)))
7474 then "ultra-rare"
7575 else if ((29 >= n))
7676 then "rare"
7777 else "unique"
7878 }
7979
8080
8181 func p (q,r,s,t) = {
8282 let u = value(blockInfoByHeight((s - 1)))
8383 let v = sha256_16Kb((r + value(u.vrf)))
8484 (toInt(v, t) % q)
8585 }
8686
8787
8888 func w () = (b * 6)
8989
9090
9191 func x (o,y,z) = {
9292 let A = split(z, ",")
9393 let B = p((a - y), o.transactionId, height, 0)
9494 let C = A[B]
9595 let D = ("MadPunk #" + C)
9696 let E = k("collection_description")
9797 let F = Issue(D, E, 1, 0, false, unit, height)
9898 let G = calculateAssetId(F)
9999 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)]
100100 H
101101 }
102102
103103
104104 @Callable(o)
105105 func mint () = {
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
114- if ($isInstanceOf(h, "ByteVector"))
115- then {
116- let N = h
117- true
118- }
119- else if ($isInstanceOf(h, "Unit"))
120- then {
121- let O = h
122- false
123- }
124- else throw("Match error")
125- }
126- if ((y == a))
127- then throw("All punks are minted")
128- else if ((z == ""))
129- then throw("No punks available")
130- else if (j(toString(o.caller)))
131- then {
132- let P = x(o, y, z)
133- P
134- }
135- else if ((J > lastBlock.timestamp))
136- then throw("Mint hasn`t yet begun")
137- else if (M)
138- then throw("Payment must be in Waves tokens only")
139- else if ((K > L.amount))
140- then throw("Insufficient funds")
141- else x(o, y, z)
106+ let C = toString(5)
107+ let D = ("MadPunk #" + C)
108+ let E = k("collection_description")
109+ let F = Issue(D, E, 1, 0, false, unit, height)
110+ let G = calculateAssetId(F)
111+ let H = [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)]
112+ H
142113 }
143114
144115
145116 @Verifier(H)
146-func Q () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
117+func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
147118

github/deemru/w8io/169f3d6 
69.28 ms