tx · Bi5AtqzMHNacaLhU3zHx21yceJTVu8c5zGi3nYRAyZvh

3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz:  -0.02500000 Waves

2022.10.19 18:44 [2279466] smart account 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz > SELF 0.00000000 Waves

{ "type": 13, "id": "Bi5AtqzMHNacaLhU3zHx21yceJTVu8c5zGi3nYRAyZvh", "fee": 2500000, "feeAssetId": null, "timestamp": 1666194266387, "version": 2, "chainId": 84, "sender": "3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz", "senderPublicKey": "AmNGcQhk77jcLZEVysQPbYbF3QCHAzQH9Zc9oRZB963h", "proofs": [ "5veNK6Yzw9UUh8gxzbuhE8KZX3yFFiCybQ7Lbqk92CfQbDY5pABeSgSH3sHtuGcfyjqMvsaAMRRbvBaBqape2gij" ], "script": "base64:AAIFAAAAAAAAABUIAhIGCgQICAEBEgMKAQgSBAoCCAgAAAAAAAAAAwAAAAFpAQAAABFSZWdpc3Rlck5GVFNlcmllcwAAAAQAAAANTkZUU2VyaWVzTmFtZQAAAA5ORlREZXNjcmlwdGlvbgAAABJTZXJpZXNTdGFydENvdW50ZXIAAAAQU2VyaWVzRW5kQ291bnRlcgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAtjaGVja3NlcmllcwkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAADk5GVFNlcmllc05hbWVfBQAAAA1ORlRTZXJpZXNOYW1lAwkAAAAAAAACBQAAAAtjaGVja3NlcmllcwUAAAANTkZUU2VyaWVzTmFtZQkAAAIAAAABAgAAADZTZXJpZXMgTmFtZSBBbHJlYWR5IEV4aXN0LiBDaG9vc2UgQW5vdGhlciBTZXJpZXMgTmFtZS4DCQAAZgAAAAIFAAAAElNlcmllc1N0YXJ0Q291bnRlcgUAAAAQU2VyaWVzRW5kQ291bnRlcgkAAAIAAAABAgAAAC9FbmQ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l0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSfO4gg=", "height": 2279466, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2pLxhjVozXcwLwSe2Zm6UJ9K8pDiLif4GKkTK7uMWDub Next: EXkyNRLu4QFJGQGi6d4aoLoaBrrhThyRJiZz5aKH6e4W Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func RegisterNFTSeries (NFTSeriesName,NFTDescription,SeriesStartCounter,SeriesEndCounter) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName))
1010 if ((checkseries == NFTSeriesName))
1111 then throw("Series Name Already Exist. Choose Another Series Name.")
1212 else if ((SeriesStartCounter > SeriesEndCounter))
1313 then throw("End Counter must be greater than Start Counter.")
1414 else [StringEntry(("NFTSeriesName_" + NFTSeriesName), NFTSeriesName), StringEntry(("NFTDescription_" + NFTSeriesName), NFTDescription), StringEntry(("SeriesIssuerPubkey_" + NFTSeriesName), currentKey), IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), SeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), SeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), 0)]
1515 }
1616
1717
1818
1919 @Callable(i)
2020 func IssueNFTSeries (NFTSeriesName) = {
2121 let currentKey = toBase58String(i.caller.bytes)
2222 let getSeriesStartCounter = getIntegerValue(this, ("SeriesStartCounter_" + NFTSeriesName))
2323 let getSeriesEndCounter = getIntegerValue(this, ("SeriesEndCounter_" + NFTSeriesName))
2424 let getSeriesCurrentCounter = getIntegerValue(this, ("SeriesCurrentCounter_" + NFTSeriesName))
2525 let getSeriesNewCounter = (getSeriesCurrentCounter + 1)
2626 let asset = Issue(((NFTSeriesName + "-") + toString(getSeriesNewCounter)), getStringValue(this, ("NFTDescription_" + NFTSeriesName)), 1, 0, false, unit, 0)
2727 let assetId = calculateAssetId(asset)
2828 let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName))
2929 let checkseriesissuerpubkey = getStringValue(this, ("SeriesIssuerPubkey_" + NFTSeriesName))
3030 if ((checkseriesissuerpubkey != currentKey))
3131 then throw(((("I know You are not An Admin. Only " + checkseriesissuerpubkey) + " has rights to issue NFT. But You are ") + currentKey))
3232 else if ((getSeriesNewCounter > getSeriesEndCounter))
3333 then throw((("Counter to Mint " + NFTSeriesName) + " is Finished. Create a New Series Please."))
3434 else if ((checkseries == NFTSeriesName))
3535 then [asset, IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), getSeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), getSeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), getSeriesNewCounter), ScriptTransfer(i.caller, 1, assetId)]
3636 else throw("Name Not Found.")
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func UploadNFTSeriesImg (NFTSeriesName,NFTSeriesImg) = {
4343 let currentKey = toBase58String(i.caller.bytes)
4444 let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName))
4545 let checkseriesissuerpubkey = getStringValue(this, ("SeriesIssuerPubkey_" + NFTSeriesName))
4646 if ((size(NFTSeriesImg) > 150000))
4747 then throw("NFT Image Size can't Exceed 150kb as of now.")
4848 else if ((checkseriesissuerpubkey != currentKey))
4949 then throw(((("I know You are not An Admin. Only " + checkseriesissuerpubkey) + " has rights to issue NFT. But You are ") + currentKey))
5050 else if ((checkseries == NFTSeriesName))
5151 then [StringEntry(("Image_" + NFTSeriesName), NFTSeriesImg)]
5252 else throw("Name Not Found.")
5353 }
5454
5555
5656 @Verifier(tx)
5757 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5858

github/deemru/w8io/169f3d6 
42.77 ms