tx · AgMHbHJaZuitT99dBfvrpeMs9TbYzsaAyjJ85MUhQtAG

3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW:  -0.01400000 Waves

2021.12.13 15:45 [1832499] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves

{ "type": 13, "id": "AgMHbHJaZuitT99dBfvrpeMs9TbYzsaAyjJ85MUhQtAG", "fee": 1400000, "feeAssetId": null, "timestamp": 1639399536248, "version": 2, "chainId": 84, "sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW", "senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv", "proofs": [ "3g7nx6PSZZpdXWYX9SAkfkHNjRk4mAwGCSaGteDikGMXRJ4owwqrefTYxtcTeJZ4VdFtnmTmQvfMH7SfHRkG9brJ" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgUKAwgBCAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAgAAAAFpAAAABXByaWNlBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgBi7WREUMKdJnPRpCCOky/DKzvRQlW1GeENSHUVBimooDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAUAAAAFcHJpY2UHCQAAAgAAAAECAAAAE0JhZCBhc3NldCBvciBhb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GlzdAUAAAALbW9uZXlhcnRpc3QFAAAABm1kc3RpZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAt3YWxsZXRvd25lcgUAAAAKbW9uZXlvd25lcgUAAAAGbWRzdGlkBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUqZG4U=", "height": 1832499, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HGuL4D683NzonbtFTSEZ96EtKSfFVQmGRgHHKx3bBMXY Next: XdUmQYfF8iYiBFP84GLkYWr4uSAt7WZomKr37o11EZF Diff:
OldNewDifferences
6060 let w = split(v[5], "=")
6161 let x = ((w[0] + "=") + r)
6262 let y = ((((((((((((((((((((((v[0] + ",") + v[1]) + ",") + v[2]) + ",") + v[3]) + ",") + v[4]) + ",") + x) + "',") + v[6]) + ",") + "false") + ",") + v[8]) + ",") + v[9]) + ",") + k) + ",") + v[11])
63- let c = v[8]
63+ let c = parseIntValue(v[8])
6464 let z = (size(b.payments) * 10000)
65- let A = (z / 2)
66- let B = (z / 4)
67- let C = (z / 4)
65+ let A = (c / 2)
66+ let B = (c / 4)
67+ let C = (c / 4)
6868 let D = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
69- let E = base58'3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C'
70- let F = drop(v[0], 1)
71- let G = dropRight(F, 1)
72- let H = drop(v[2], 1)
73- let I = dropRight(H, 1)
74- let J = addressFromStringValue(G)
75- let K = addressFromStringValue(I)
69+ let E = drop(v[0], 1)
70+ let F = dropRight(E, 1)
71+ let G = drop(v[2], 1)
72+ let H = dropRight(G, 1)
73+ let I = addressFromStringValue(F)
74+ let J = addressFromStringValue(H)
7675 let n = Issue(m, y, 1, 0, false)
7776 let o = calculateAssetId(n)
78- let L = parseIntValue(v[9])
79- if (if ((q > L))
80- then (L != 0)
77+ let K = parseIntValue(v[9])
78+ if (if ((q > K))
79+ then (K != 0)
8180 else false)
8281 then throw("Mint impossible, max NFT amount exceeded")
83- else if (a(b, z))
84- then [n, ScriptTransfer(b.caller, 1, o), ScriptTransfer(J, A, D), ScriptTransfer(K, B, D)]
82+ else if (a(b, c))
83+ then [n, ScriptTransfer(b.caller, 1, o), ScriptTransfer(I, A, D), ScriptTransfer(J, B, D)]
8584 else throw("Wrong payment amount or asset")
8685 }
8786
8887
89-@Verifier(M)
90-func N () = sigVerify(M.bodyBytes, M.proofs[0], M.senderPublicKey)
88+@Verifier(L)
89+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
9190
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = {
55 let d = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
66 if ((size(b.payments) == 0))
77 then throw("Payment not attached")
88 else {
99 let e = b.payments[0]
1010 let f = e.assetId
1111 if ($isInstanceOf(f, "ByteVector"))
1212 then {
1313 let g = f
1414 if ((g == d))
1515 then (e.amount >= c)
1616 else false
1717 }
1818 else throw("Bad asset or amount")
1919 }
2020 }
2121
2222
2323 @Callable(b)
2424 func mintme (h) = {
2525 let i = {
2626 let f = getInteger(this, "counter")
2727 if ($isInstanceOf(f, "Int"))
2828 then {
2929 let j = f
3030 (j + 1)
3131 }
3232 else 0
3333 }
3434 let k = toString(i)
3535 let l = "MDST-NFT #"
3636 let m = (l + k)
3737 let n = Issue(m, h, 1, 0, false)
3838 let o = calculateAssetId(n)
3939 [n, ScriptTransfer(b.caller, n.quantity, o), IntegerEntry("counter", i)]
4040 }
4141
4242
4343
4444 @Callable(b)
4545 func buynft (p,q,r) = {
4646 let k = toString(q)
4747 let m = ("MDST-COPY#" + k)
4848 let h = "kiki bikit"
4949 let s = fromBase58String(p)
5050 let t = {
5151 let f = assetInfo(s)
5252 if ($isInstanceOf(f, "Asset"))
5353 then {
5454 let u = f
5555 u.description
5656 }
5757 else throw("Can't find this NFT")
5858 }
5959 let v = split(t, ",")
6060 let w = split(v[5], "=")
6161 let x = ((w[0] + "=") + r)
6262 let y = ((((((((((((((((((((((v[0] + ",") + v[1]) + ",") + v[2]) + ",") + v[3]) + ",") + v[4]) + ",") + x) + "',") + v[6]) + ",") + "false") + ",") + v[8]) + ",") + v[9]) + ",") + k) + ",") + v[11])
63- let c = v[8]
63+ let c = parseIntValue(v[8])
6464 let z = (size(b.payments) * 10000)
65- let A = (z / 2)
66- let B = (z / 4)
67- let C = (z / 4)
65+ let A = (c / 2)
66+ let B = (c / 4)
67+ let C = (c / 4)
6868 let D = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
69- let E = base58'3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C'
70- let F = drop(v[0], 1)
71- let G = dropRight(F, 1)
72- let H = drop(v[2], 1)
73- let I = dropRight(H, 1)
74- let J = addressFromStringValue(G)
75- let K = addressFromStringValue(I)
69+ let E = drop(v[0], 1)
70+ let F = dropRight(E, 1)
71+ let G = drop(v[2], 1)
72+ let H = dropRight(G, 1)
73+ let I = addressFromStringValue(F)
74+ let J = addressFromStringValue(H)
7675 let n = Issue(m, y, 1, 0, false)
7776 let o = calculateAssetId(n)
78- let L = parseIntValue(v[9])
79- if (if ((q > L))
80- then (L != 0)
77+ let K = parseIntValue(v[9])
78+ if (if ((q > K))
79+ then (K != 0)
8180 else false)
8281 then throw("Mint impossible, max NFT amount exceeded")
83- else if (a(b, z))
84- then [n, ScriptTransfer(b.caller, 1, o), ScriptTransfer(J, A, D), ScriptTransfer(K, B, D)]
82+ else if (a(b, c))
83+ then [n, ScriptTransfer(b.caller, 1, o), ScriptTransfer(I, A, D), ScriptTransfer(J, B, D)]
8584 else throw("Wrong payment amount or asset")
8685 }
8786
8887
89-@Verifier(M)
90-func N () = sigVerify(M.bodyBytes, M.proofs[0], M.senderPublicKey)
88+@Verifier(L)
89+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
9190

github/deemru/w8io/026f985 
25.07 ms