tx · Hiz2TkQquAfwpuBMQAQRc6tRuzRUCxk4npAi1jdLKSQd

3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz:  -0.01400000 Waves

2022.11.01 19:37 [2298300] smart account 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz > SELF 0.00000000 Waves

{ "type": 13, "id": "Hiz2TkQquAfwpuBMQAQRc6tRuzRUCxk4npAi1jdLKSQd", "fee": 1400000, "feeAssetId": null, "timestamp": 1667320748882, "version": 2, "chainId": 84, "sender": "3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz", "senderPublicKey": "AmNGcQhk77jcLZEVysQPbYbF3QCHAzQH9Zc9oRZB963h", "proofs": [ "3pbGhnEehbQmj8XxZTQJWRBUWPT11xCPXnEx8TSBhEi1Tf7GgNF3hwhVkqp4Y1ZHZtjta79RZkAytAN8LDYW4sNJ" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQICAgIAAAAAAAAAAEAAAABaQEAAAAOSXNzdWVORlRTZXJpZXMAAAAEAAAADk5GVERlc2NyaXB0aW9uAAAACElQRlNIYXNoAAAADElQRlNIYXNoTGluawAAAAZGb3JtYXQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAKTkZUTWludEZlZQAAAAAAAJiWgAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAALTEwMDAgVE4gVG9rZW4gaXMgcmVxdWlyZWQgYXMgQXR0YWNoZWQgcGF5bWVudAQAAAANTkZUU2VyaWVzTmFtZQIAAAAGQTRBREFPBAAAAAtnZXRJUEZTSGFzaAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABUhBU0hfBQAAAAhJUEZTSGFzaAQAAAAQZ2V0U2VyaWVzQ291bnRlcgQAAAAHJ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AMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefZFRYo=", "height": 2298300, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ZFoLBxbJzFKshNcFoZbu8RyyyR2SBd9UeETxGPSX9n9 Next: none Diff:
OldNewDifferences
2727 then throw(("1000 TN Token is required as Attached payment amount. You attached only " + toString((pmt.amount / 100000000))))
2828 else if ((getIPFSHash == IPFSHash))
2929 then throw((IPFSHash + " Hash Already Registered"))
30- else [asset, IntegerEntry("Counter", CurrentSeriesCounter), StringEntry(((toString(CurrentSeriesCounter) + "_AssetID_") + IPFSHash), toBase58String(getassetId)), IntegerEntry(((toString(CurrentSeriesCounter) + "_Timestamp_") + IPFSHash), lastBlock.timestamp), StringEntry(((toString(CurrentSeriesCounter) + "HASH_") + IPFSHash), IPFSHash), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(((toString(CurrentSeriesCounter) + "Creator_") + IPFSHash), currentKey), StringEntry(((toString(CurrentSeriesCounter) + "Link_") + IPFSHash), IPFSHashLink), ScriptTransfer(i.caller, 1, getassetId)]
30+ else [asset, IntegerEntry("Counter", CurrentSeriesCounter), StringEntry(((toString(CurrentSeriesCounter) + "_AssetID_") + IPFSHash), toBase58String(getassetId)), IntegerEntry(((toString(CurrentSeriesCounter) + "_Timestamp_") + IPFSHash), lastBlock.timestamp), StringEntry(((toString(CurrentSeriesCounter) + "_HASH_") + IPFSHash), IPFSHash), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(((toString(CurrentSeriesCounter) + "_Creator_") + IPFSHash), currentKey), StringEntry(((toString(CurrentSeriesCounter) + "_Link_") + IPFSHash), IPFSHashLink), ScriptTransfer(i.caller, 1, getassetId)]
3131 }
3232
3333
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func IssueNFTSeries (NFTDescription,IPFSHash,IPFSHashLink,Format) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let NFTMintFee = 10000000
1010 let pmt = if ((size(i.payments) == 1))
1111 then i.payments[0]
1212 else throw("1000 TN Token is required as Attached payment")
1313 let NFTSeriesName = "A4ADAO"
1414 let getIPFSHash = getString(this, ("HASH_" + IPFSHash))
1515 let getSeriesCounter = match getInteger(this, "Counter") {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 let CurrentSeriesCounter = (getSeriesCounter + 1)
2222 let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0)
2323 let getassetId = calculateAssetId(asset)
2424 if (isDefined(pmt.assetId))
2525 then throw("Wrong Asset Attached please attach only 1000 TN Tokens to mint NFT.")
2626 else if ((pmt.amount != NFTMintFee))
2727 then throw(("1000 TN Token is required as Attached payment amount. You attached only " + toString((pmt.amount / 100000000))))
2828 else if ((getIPFSHash == IPFSHash))
2929 then throw((IPFSHash + " Hash Already Registered"))
30- else [asset, IntegerEntry("Counter", CurrentSeriesCounter), StringEntry(((toString(CurrentSeriesCounter) + "_AssetID_") + IPFSHash), toBase58String(getassetId)), IntegerEntry(((toString(CurrentSeriesCounter) + "_Timestamp_") + IPFSHash), lastBlock.timestamp), StringEntry(((toString(CurrentSeriesCounter) + "HASH_") + IPFSHash), IPFSHash), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(((toString(CurrentSeriesCounter) + "Creator_") + IPFSHash), currentKey), StringEntry(((toString(CurrentSeriesCounter) + "Link_") + IPFSHash), IPFSHashLink), ScriptTransfer(i.caller, 1, getassetId)]
30+ else [asset, IntegerEntry("Counter", CurrentSeriesCounter), StringEntry(((toString(CurrentSeriesCounter) + "_AssetID_") + IPFSHash), toBase58String(getassetId)), IntegerEntry(((toString(CurrentSeriesCounter) + "_Timestamp_") + IPFSHash), lastBlock.timestamp), StringEntry(((toString(CurrentSeriesCounter) + "_HASH_") + IPFSHash), IPFSHash), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(((toString(CurrentSeriesCounter) + "_Creator_") + IPFSHash), currentKey), StringEntry(((toString(CurrentSeriesCounter) + "_Link_") + IPFSHash), IPFSHashLink), ScriptTransfer(i.caller, 1, getassetId)]
3131 }
3232
3333
3434 @Verifier(tx)
3535 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3636

github/deemru/w8io/026f985 
41.13 ms