tx · 6ZFoLBxbJzFKshNcFoZbu8RyyyR2SBd9UeETxGPSX9n9

3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz:  -0.01400000 Waves

2022.11.01 19:18 [2298281] smart account 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz > SELF 0.00000000 Waves

{ "type": 13, "id": "6ZFoLBxbJzFKshNcFoZbu8RyyyR2SBd9UeETxGPSX9n9", "fee": 1400000, "feeAssetId": null, "timestamp": 1667319550419, "version": 2, "chainId": 84, "sender": "3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz", "senderPublicKey": "AmNGcQhk77jcLZEVysQPbYbF3QCHAzQH9Zc9oRZB963h", "proofs": [ "3apK2A4UeVrcqn6TrsNpBPQ3BYsUXMX7bScpAF6N6GXTbmjkFyVZWqkeKVqRSFaXkNJpqh6SMzT9jRC6o6Ze7j88" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQICAgIAAAAAAAAAAEAAAABaQEAAAAOSXNzdWVORlRTZXJpZXMAAAAEAAAADk5GVERlc2NyaXB0aW9uAAAACElQRlNIYXNoAAAADElQRlNIYXNoTGluawAAAAZGb3JtYXQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAKTkZUTWludEZlZQAAAAAAAJiWgAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAALTEwMDAgVE4gVG9rZW4gaXMgcmVxdWlyZWQgYXMgQXR0YWNoZWQgcGF5bWVudAQAAAANTkZUU2VyaWVzTmFtZQIAAAAGQTRBREFPBAAAAAtnZXRJUEZTSGFzaAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABUhBU0hfBQAAAAhJUEZTSGFzaAQAAAAQZ2V0U2VyaWVzQ291bnRlcgQAAAAH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AAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefhU0Sg=", "height": 2298281, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J1PRYKxbtYxLL8gd2GdjN6sWzjhY8Stz4j8eTGpC2C8F Next: Hiz2TkQquAfwpuBMQAQRc6tRuzRUCxk4npAi1jdLKSQd Diff:
OldNewDifferences
99 let NFTMintFee = 10000000
1010 let pmt = if ((size(i.payments) == 1))
1111 then i.payments[0]
12- else throw((toString((NFTMintFee / 100000000)) + " TN Token is required as Attached payment"))
12+ 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") {
2222 let asset = Issue(((NFTSeriesName + "-") + toString(CurrentSeriesCounter)), NFTDescription, 1, 0, false, unit, 0)
2323 let getassetId = calculateAssetId(asset)
2424 if (isDefined(pmt.assetId))
25- then throw((("Wrong Asset Attached please attach only " + toString((NFTMintFee / 100000000))) + " TN Tokens to mint NFT."))
25+ then throw("Wrong Asset Attached please attach only 1000 TN Tokens to mint NFT.")
2626 else if ((pmt.amount != NFTMintFee))
27- then throw("1000 TN Token is required as Attached payment amount.")
27+ 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), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(("Creator_" + IPFSHash), currentKey), StringEntry(("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]
12- else throw((toString((NFTMintFee / 100000000)) + " TN Token is required as Attached payment"))
12+ 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))
25- then throw((("Wrong Asset Attached please attach only " + toString((NFTMintFee / 100000000))) + " TN Tokens to mint NFT."))
25+ then throw("Wrong Asset Attached please attach only 1000 TN Tokens to mint NFT.")
2626 else if ((pmt.amount != NFTMintFee))
27- then throw("1000 TN Token is required as Attached payment amount.")
27+ 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), IntegerEntry(("Timestamp_" + IPFSHash), lastBlock.timestamp), StringEntry(("HASH_" + IPFSHash), IPFSHash), StringEntry(("Creator_" + IPFSHash), currentKey), StringEntry(("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 
34.94 ms