tx · Gh72Ls16LUkUAtDWwLM5xieXgNRXEp5Ra5CH5bfsNvNa 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz: -0.01400000 Waves 2022.10.30 19:07 [2295364] smart account 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz > SELF 0.00000000 Waves
{ "type": 13, "id": "Gh72Ls16LUkUAtDWwLM5xieXgNRXEp5Ra5CH5bfsNvNa", "fee": 1400000, "feeAssetId": null, "timestamp": 1667146032921, "version": 2, "chainId": 84, "sender": "3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz", "senderPublicKey": "AmNGcQhk77jcLZEVysQPbYbF3QCHAzQH9Zc9oRZB963h", "proofs": [ "4hkG4kUQ4i4DNdMsZmtyjo9k6hdoYguu4AaRhiM9GBZbJMc7UTw2KUyXULmwc4wY1MezThqAKzmK3s8DDmx3cPTF" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAgAAAAAAAAAAQAAAAFpAQAAAA5Jc3N1ZU5GVFNlcmllcwAAAAMAAAAOTkZURGVzY3JpcHRpb24AAAAISVBGU0hhc2gAAAAIQ2F0ZWdvcnkEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANTkZUU2VyaWVzTmFtZQIAAAAGQTRBREFPBAAAAAtnZXRJUEZTSGFzaAkABB0AAAACBQAAAAR0aGlzBQAAAAhJUEZTSGFzaAQAAAAQZ2V0U2VyaWVzQ291bnRlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAdDb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFEN1cnJlbnRTZXJpZXNDb3VudGVyCQAAZAAAAAIFAAAAEGdldFNlcmllc0NvdW50ZXIAAAAAAAAAAAEEAAAABWFzc2V0CQAEQwAAAAcJAAEsAAAAAgkAASwA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AAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVItdMw=", "height": 2295364, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EXkyNRLu4QFJGQGi6d4aoLoaBrrhThyRJiZz5aKH6e4W Next: 4HGZSQCyiGVyGvt67EKK9b17HKjvFiJ2X7cXCe4mMCYK Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func IssueNFTSeries (b,c,d) = { | |
8 | 8 | let e = toBase58String(a.caller.bytes) | |
9 | 9 | let f = "A4ADAO" | |
10 | - | let g = { | |
11 | - | let h = getInteger(this, "Counter") | |
12 | - | if ($isInstanceOf(h, "Int")) | |
10 | + | let g = getString(this, c) | |
11 | + | let h = { | |
12 | + | let i = getInteger(this, "Counter") | |
13 | + | if ($isInstanceOf(i, "Int")) | |
13 | 14 | then { | |
14 | - | let | |
15 | - | | |
15 | + | let j = i | |
16 | + | j | |
16 | 17 | } | |
17 | 18 | else 0 | |
18 | 19 | } | |
19 | - | let j = (g + 1) | |
20 | - | let k = Issue(((f + "-") + toString(j)), b, 1, 0, false, unit, 0) | |
21 | - | let l = calculateAssetId(k) | |
22 | - | [k, IntegerEntry("Counter", j), IntegerEntry(("Timestamp_" + c), lastBlock.timestamp), StringEntry(c, e), StringEntry(("Link_" + c), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + c)), ScriptTransfer(a.caller, 1, l)] | |
20 | + | let k = (h + 1) | |
21 | + | let l = Issue(((f + "-") + toString(k)), b, 1, 0, false, unit, 0) | |
22 | + | let m = calculateAssetId(l) | |
23 | + | if ((g == c)) | |
24 | + | then throw(((c + " Hash Already Registered by ") + value(g))) | |
25 | + | else [l, IntegerEntry("Counter", k), IntegerEntry(("Timestamp_" + c), lastBlock.timestamp), StringEntry(c, e), StringEntry(("Link_" + c), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + c)), ScriptTransfer(a.caller, 1, m)] | |
23 | 26 | } | |
24 | 27 | ||
25 | 28 | ||
26 | - | @Verifier( | |
27 | - | func | |
29 | + | @Verifier(n) | |
30 | + | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) | |
28 | 31 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func IssueNFTSeries (b,c,d) = { | |
8 | 8 | let e = toBase58String(a.caller.bytes) | |
9 | 9 | let f = "A4ADAO" | |
10 | - | let g = { | |
11 | - | let h = getInteger(this, "Counter") | |
12 | - | if ($isInstanceOf(h, "Int")) | |
10 | + | let g = getString(this, c) | |
11 | + | let h = { | |
12 | + | let i = getInteger(this, "Counter") | |
13 | + | if ($isInstanceOf(i, "Int")) | |
13 | 14 | then { | |
14 | - | let | |
15 | - | | |
15 | + | let j = i | |
16 | + | j | |
16 | 17 | } | |
17 | 18 | else 0 | |
18 | 19 | } | |
19 | - | let j = (g + 1) | |
20 | - | let k = Issue(((f + "-") + toString(j)), b, 1, 0, false, unit, 0) | |
21 | - | let l = calculateAssetId(k) | |
22 | - | [k, IntegerEntry("Counter", j), IntegerEntry(("Timestamp_" + c), lastBlock.timestamp), StringEntry(c, e), StringEntry(("Link_" + c), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + c)), ScriptTransfer(a.caller, 1, l)] | |
20 | + | let k = (h + 1) | |
21 | + | let l = Issue(((f + "-") + toString(k)), b, 1, 0, false, unit, 0) | |
22 | + | let m = calculateAssetId(l) | |
23 | + | if ((g == c)) | |
24 | + | then throw(((c + " Hash Already Registered by ") + value(g))) | |
25 | + | else [l, IntegerEntry("Counter", k), IntegerEntry(("Timestamp_" + c), lastBlock.timestamp), StringEntry(c, e), StringEntry(("Link_" + c), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + c)), ScriptTransfer(a.caller, 1, m)] | |
23 | 26 | } | |
24 | 27 | ||
25 | 28 | ||
26 | - | @Verifier( | |
27 | - | func | |
29 | + | @Verifier(n) | |
30 | + | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) | |
28 | 31 |
github/deemru/w8io/169f3d6 26.20 ms ◑