tx · J56Wp1om2itUtAeP345ninChzRwwAVco7fYa9KCwWqm8 3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd: -0.01400000 Waves 2022.04.07 11:10 [1997892] smart account 3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd > SELF 0.00000000 Waves
{ "type": 13, "id": "J56Wp1om2itUtAeP345ninChzRwwAVco7fYa9KCwWqm8", "fee": 1400000, "feeAssetId": null, "timestamp": 1649319088805, "version": 2, "chainId": 84, "sender": "3MsGgBAKydWguLMEpobQUKaBWxX6F4Wbsrd", "senderPublicKey": "AY9PCR6Qs5xrVE8XpYJqGK9CiHsyH73ERfuJvDUypi2h", "proofs": [ "Bf5KHnYog3qcEoferFRS4zruHuWRseRHotvy67rfDx9Q8xMr5vpnBsr5PWM25oesdNt6KaxjSghLscgC7ojKn39" ], "script": "base64:AAIFAAAAAAAAABcIAhIGCgQICAEBEgMKAQgSBgoECAgICAAAAAAAAAADAAAAAWkBAAAAEVJlZ2lzdGVyTkZUU2VyaWVzAAAABAAAAA1ORlRTZXJpZXNOYW1lAAAADk5GVERlc2NyaXB0aW9uAAAAElNlcmllc1N0YXJ0Q291bnRlcgAAABBTZXJpZXNFbmRDb3VudGVyBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC2NoZWNrc2VyaWVzCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAOTkZUU2VyaWVzTmFtZV8FAAAADU5GVFNlcmllc05hbWUDCQAAAAAAAAIFAAAAC2NoZWNrc2VyaWVzBQAAAA1ORlRTZXJpZXNOYW1lCQAAAgAAAAECAAAANlNlcmllcyBOYW1lIEFscmVhZHkgRXhpc3QuIENob29zZSBBbm90aGVyIFNlcmllcyBOYW1lLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADk5GVFNlcmllc05hbWVfBQAAAA1ORlRTZXJpZXNOYW1lBQAAAA1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ETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5gz75vA==", "height": 1997892, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HkCwqfLdjweMVoLAB8QhnEawELb92qm7m1XAUoNH6zNE Next: HDctfXRSkZp28Yutug7Lx38Q8fwiAgtL7nE6MMTvg5JD Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName)) | |
27 | 27 | if ((checkseries == NFTSeriesName)) | |
28 | 28 | then throw("Series Name Already Exist. Choose Another Series Name.") | |
29 | - | else [{ | |
30 | - | let checkseriesValue = getStringValue(this, ("NFTSeriesName_" + NFTSeriesName)) | |
31 | - | StringEntry("TestValue", checkseriesValue) | |
32 | - | }] | |
29 | + | else nil | |
33 | 30 | } | |
34 | 31 | ||
35 | 32 |
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 = getString(this, ("NFTSeriesName_" + NFTSeriesName)) | |
27 | 27 | if ((checkseries == NFTSeriesName)) | |
28 | 28 | then throw("Series Name Already Exist. Choose Another Series Name.") | |
29 | - | else [{ | |
30 | - | let checkseriesValue = getStringValue(this, ("NFTSeriesName_" + NFTSeriesName)) | |
31 | - | StringEntry("TestValue", checkseriesValue) | |
32 | - | }] | |
29 | + | else nil | |
33 | 30 | } | |
34 | 31 | ||
35 | 32 | ||
36 | 33 | ||
37 | 34 | @Callable(i) | |
38 | 35 | func RemoveEntry (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)] | |
39 | 36 | ||
40 | 37 | ||
41 | 38 | @Verifier(tx) | |
42 | 39 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
43 | 40 |
github/deemru/w8io/169f3d6 49.62 ms ◑