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:AAIFAAAAAAAAAAkIAhIFCgMICAgAAAAAAAAAAQAAAAFpAQAAAA5Jc3N1ZU5GVFNlcmllcwAAAAMAAAAOTkZURGVzY3JpcHRpb24AAAAISVBGU0hhc2gAAAAIQ2F0ZWdvcnkEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANTkZUU2VyaWVzTmFtZQIAAAAGQTRBREFPBAAAAAtnZXRJUEZTSGFzaAkABB0AAAACBQAAAAR0aGlzBQAAAAhJUEZTSGFzaAQAAAAQZ2V0U2VyaWVzQ291bnRlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAdDb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFEN1cnJlbnRTZXJpZXNDb3VudGVyCQAAZAAAAAIFAAAAEGdldFNlcmllc0NvdW50ZXIAAAAAAAAAAAEEAAAABWFzc2V0CQAEQwAAAAcJAAEsAAAAAgkAASw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AAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVItdMw=", "height": 2295364, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EXkyNRLu4QFJGQGi6d4aoLoaBrrhThyRJiZz5aKH6e4W Next: 4HGZSQCyiGVyGvt67EKK9b17HKjvFiJ2X7cXCe4mMCYK Diff:
OldNewDifferences
77 func IssueNFTSeries (NFTDescription,IPFSHash,Category) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let NFTSeriesName = "A4ADAO"
10+ let getIPFSHash = getString(this, IPFSHash)
1011 let getSeriesCounter = match getInteger(this, "Counter") {
1112 case a: Int =>
1213 a
1617 let CurrentSeriesCounter = (getSeriesCounter + 1)
1718 let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0)
1819 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)]
2023 }
2124
2225
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func IssueNFTSeries (NFTDescription,IPFSHash,Category) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let NFTSeriesName = "A4ADAO"
10+ let getIPFSHash = getString(this, IPFSHash)
1011 let getSeriesCounter = match getInteger(this, "Counter") {
1112 case a: Int =>
1213 a
1314 case _ =>
1415 0
1516 }
1617 let CurrentSeriesCounter = (getSeriesCounter + 1)
1718 let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0)
1819 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)]
2023 }
2124
2225
2326 @Verifier(tx)
2427 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2528

github/deemru/w8io/169f3d6 
44.15 ms