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 (NFTDescription,IPFSHash,Category) = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let NFTSeriesName = "A4ADAO" | |
10 | + | let getIPFSHash = getString(this, IPFSHash) | |
10 | 11 | let getSeriesCounter = match getInteger(this, "Counter") { | |
11 | 12 | case a: Int => | |
12 | 13 | a | |
16 | 17 | let CurrentSeriesCounter = (getSeriesCounter + 1) | |
17 | 18 | let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0) | |
18 | 19 | let assetId = calculateAssetId(asset) | |
19 | - | [asset, IntegerEntry("Counter", CurrentSeriesCounter), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(IPFSHash, currentKey), StringEntry(("Link_" + IPFSHash), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + IPFSHash)), ScriptTransfer(i.caller, 1, assetId)] | |
20 | + | if ((getIPFSHash == IPFSHash)) | |
21 | + | then throw(((IPFSHash + " Hash Already Registered by ") + value(getIPFSHash))) | |
22 | + | else [asset, IntegerEntry("Counter", CurrentSeriesCounter), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(IPFSHash, currentKey), StringEntry(("Link_" + IPFSHash), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + IPFSHash)), ScriptTransfer(i.caller, 1, assetId)] | |
20 | 23 | } | |
21 | 24 | ||
22 | 25 |
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(i) | |
7 | 7 | func IssueNFTSeries (NFTDescription,IPFSHash,Category) = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let NFTSeriesName = "A4ADAO" | |
10 | + | let getIPFSHash = getString(this, IPFSHash) | |
10 | 11 | let getSeriesCounter = match getInteger(this, "Counter") { | |
11 | 12 | case a: Int => | |
12 | 13 | a | |
13 | 14 | case _ => | |
14 | 15 | 0 | |
15 | 16 | } | |
16 | 17 | let CurrentSeriesCounter = (getSeriesCounter + 1) | |
17 | 18 | let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0) | |
18 | 19 | let assetId = calculateAssetId(asset) | |
19 | - | [asset, IntegerEntry("Counter", CurrentSeriesCounter), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(IPFSHash, currentKey), StringEntry(("Link_" + IPFSHash), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + IPFSHash)), ScriptTransfer(i.caller, 1, assetId)] | |
20 | + | if ((getIPFSHash == IPFSHash)) | |
21 | + | then throw(((IPFSHash + " Hash Already Registered by ") + value(getIPFSHash))) | |
22 | + | else [asset, IntegerEntry("Counter", CurrentSeriesCounter), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(IPFSHash, currentKey), StringEntry(("Link_" + IPFSHash), ("https://api.ipfsbrowser.com/ipfs/get.php?hash=" + IPFSHash)), ScriptTransfer(i.caller, 1, assetId)] | |
20 | 23 | } | |
21 | 24 | ||
22 | 25 | ||
23 | 26 | @Verifier(tx) | |
24 | 27 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
25 | 28 |
github/deemru/w8io/169f3d6 44.15 ms ◑