tx · D8oWYfQFdR6j5mmQVcduJZQDcK1uj3ZNRdUdo44oLera 3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd: -0.01400000 Waves 2022.04.07 10:32 [1997856] smart account 3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd > SELF 0.00000000 Waves
{ "type": 13, "id": "D8oWYfQFdR6j5mmQVcduJZQDcK1uj3ZNRdUdo44oLera", "fee": 1400000, "feeAssetId": null, "timestamp": 1649316822919, "version": 2, "chainId": 84, "sender": "3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd", "senderPublicKey": "AY9PCR6Qs5xrVE8XpYJqGK9CiHsyH73ERfuJvDUypi2h", "proofs": [ "2jVyzZgvNb2LVuEphNLnGgAT9nYo2kUrSqXQd9c5xEMTzQxemdEeE3z2z4pYeprSh4mWeTjTen4gmTjog5PK6w6c" ], "script": "base64:AAIFAAAAAAAAABcIAhIGCgQICAEBEgMKAQgSBgoECAgICAAAAAAAAAADAAAAAWkBAAAAEVJlZ2lzdGVyTkZUU2VyaWVzAAAABAAAAA1ORlRTZXJpZXNOYW1lAAAADk5GVERlc2NyaXB0aW9uAAAAElNlcmllc1N0YXJ0Q291bnRlcgAAABBTZXJpZXNFbmRDb3VudGVyBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC2NoZWNrc2VyaWVzCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAOTkZUU2VyaWVzTmFtZV8FAAAADU5GVFNlcmllc05hbWUDCQAAAAAAAAIFAAAAC2NoZWNrc2VyaWVzBQAAAA1ORlRTZXJpZXNOYW1lCQAAAgAAAAECAAAANlNlcmllcyBOYW1lIEFscmVhZHkgRXhpc3QuIENob29zZSBBbm90aGVyIFNlcmllcyBOYW1lLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADk5GVFNlcmllc05hbWVfBQAAAA1ORlRTZXJpZX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XwkAAaQAAAABBQAAABNnZXRTZXJpZXNOZXdDb3VudGVyCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABNTZXJpZXNTdGFydENvdW50ZXJfBQAAAA1ORlRTZXJpZXNOYW1lBQAAABVnZXRTZXJpZXNTdGFydENvdW50ZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAARU2VyaWVzRW5kQ291bnRlcl8FAAAADU5GVFNlcmllc05hbWUFAAAAE2dldFNlcmllc0VuZENvdW50ZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAVU2VyaWVzQ3VycmVudENvdW50ZXJfBQAAAA1ORlRTZXJpZXNOYW1lBQAAABNnZXRTZXJpZXNOZXdDb3VudGVyBQAAAANuaWwJAAACAAAAAQIAAAATU2VyaWVzIGlzIG91dGRhdGVkLgAAAAFpAQAAAAtSZW1vdmVFbnRyeQAAAAQAAAADS2V5AAAABEtleTEAAAAES2V5MgAAAARLZXkzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA0tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkxCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlPP0ep", "height": 1997856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9qayz34CxsuedspRdyQHVgyoiwMssPCTdZ2hHCLPdHju Next: 7vs1YCkmp6YnGpetftCeg6gXs31Ee5odZRzjPpzNbDCd Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | let asset = Issue(NFTSeriesName, ((("This is a NFT Issued Against Series: " + NFTSeriesName) + " with a Counter No: ") + toString(getSeriesNewCounter)), 1, 0, false, unit, 0) | |
25 | 25 | let assetId = calculateAssetId(asset) | |
26 | 26 | let checkseries = getStringValue(this, ("NFTSeriesName_" + NFTSeriesName)) | |
27 | - | if ((checkseries == NFTSeriesName)) | |
27 | + | if (((checkseries == NFTSeriesName) == true)) | |
28 | 28 | then [asset, StringEntry(("NFTSeriesName_" + NFTSeriesName), NFTSeriesName), StringEntry(((("SeriesIssuer_" + NFTSeriesName) + "_") + toString(getSeriesNewCounter)), toBase58String(i.callerPublicKey)), IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), getSeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), getSeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), getSeriesNewCounter)] | |
29 | 29 | else throw("Series is outdated.") | |
30 | 30 | } |
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 RegisterNFTSeries (NFTSeriesName,NFTDescription,SeriesStartCounter,SeriesEndCounter) = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName)) | |
10 | 10 | if ((checkseries == NFTSeriesName)) | |
11 | 11 | then throw("Series Name Already Exist. Choose Another Series Name.") | |
12 | 12 | else [StringEntry(("NFTSeriesName_" + NFTSeriesName), NFTSeriesName), StringEntry(("NFTDescription_" + NFTSeriesName), NFTDescription), StringEntry(("SeriesIssuerPubkey_" + NFTSeriesName), toBase58String(i.callerPublicKey)), IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), SeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), SeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), 0)] | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(i) | |
18 | 18 | func IssueNFTSeries (NFTSeriesName) = { | |
19 | 19 | let currentKey = toBase58String(i.caller.bytes) | |
20 | 20 | let getSeriesStartCounter = getIntegerValue(this, ("SeriesStartCounter_" + NFTSeriesName)) | |
21 | 21 | let getSeriesEndCounter = getIntegerValue(this, ("SeriesEndCounter_" + NFTSeriesName)) | |
22 | 22 | let getSeriesCurrentCounter = getIntegerValue(this, ("SeriesCurrentCounter_" + NFTSeriesName)) | |
23 | 23 | let getSeriesNewCounter = (getSeriesCurrentCounter + 1) | |
24 | 24 | let asset = Issue(NFTSeriesName, ((("This is a NFT Issued Against Series: " + NFTSeriesName) + " with a Counter No: ") + toString(getSeriesNewCounter)), 1, 0, false, unit, 0) | |
25 | 25 | let assetId = calculateAssetId(asset) | |
26 | 26 | let checkseries = getStringValue(this, ("NFTSeriesName_" + NFTSeriesName)) | |
27 | - | if ((checkseries == NFTSeriesName)) | |
27 | + | if (((checkseries == NFTSeriesName) == true)) | |
28 | 28 | then [asset, StringEntry(("NFTSeriesName_" + NFTSeriesName), NFTSeriesName), StringEntry(((("SeriesIssuer_" + NFTSeriesName) + "_") + toString(getSeriesNewCounter)), toBase58String(i.callerPublicKey)), IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), getSeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), getSeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), getSeriesNewCounter)] | |
29 | 29 | else throw("Series is outdated.") | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func RemoveEntry (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Verifier(tx) | |
39 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
40 | 40 |
github/deemru/w8io/169f3d6 30.32 ms ◑