tx · 9ixt5jW6HuccsRYgcYe9fH89u2QErHE8vvDD5956kKL8 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves 2022.04.13 00:51 [2005930] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{ "type": 13, "id": "9ixt5jW6HuccsRYgcYe9fH89u2QErHE8vvDD5956kKL8", "fee": 1400000, "feeAssetId": null, "timestamp": 1649800336596, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "3uAp8WevmYb5BbfBF3WQVvYZxGzKUxzg6YPPYLSFuSJaLiDaTmtHceQyjPy6pi3Sx77iKr3fXkuxu3Qz3RpJso6f" ], "script": "base64:AAIEAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAAAAAAIAAAABaQEAAAAMUmVnaXN0ZXJOYW1lAAAAAgAAAAhVc2VyTmFtZQAAAA9Vc2VyRGVzY3JpcHRpb24EAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALY2hlY2tzZXJpZXMJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAlVc2VyTmFtZV8FAAAACFVzZXJOYW1lAwkAAGYAAAACAAAAAAAAAAADCQABMQAAAAEFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAJ0Nob29zZSBhIFVuaXF1ZSBVc2VyTmFtZSBhYm92ZSAzIENoYXJzLgMJAAAAAAAAAgUAAAALY2hlY2tzZXJpZXMFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAQlVzZXIgTmFtZSBBbHJlYWR5IEV4aXN0IG9yIFRha2VuLiBDaG9vc2UgQW5vdGhlciBVbmlxdWUgVXNlciBOYW1lLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAA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AAAgkAASwAAAACAgAAABBDb3VudGVyIHRvIE1pbnQgBQAAAA1ORlRTZXJpZXNOYW1lAgAAACkgaXMgRmluaXNoZWQuIENyZWF0ZSBhIE5ldyBTZXJpZXMgUGxlYXNlLgMJAAAAAAAAAgUAAAALY2hlY2tzZXJpZXMFAAAADU5GVFNlcmllc05hbWUJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAATU2VyaWVzU3RhcnRDb3VudGVyXwUAAAANTkZUU2VyaWVzTmFtZQUAAAAVZ2V0U2VyaWVzU3RhcnRDb3VudGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEVNlcmllc0VuZENvdW50ZXJfBQAAAA1ORlRTZXJpZXNOYW1lBQAAABNnZXRTZXJpZXNFbmRDb3VudGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAFVNlcmllc0N1cnJlbnRDb3VudGVyXwUAAAANTkZUU2VyaWVzTmFtZQUAAAATZ2V0U2VyaWVzTmV3Q291bnRlcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAA9OYW1lIE5vdCBGb3VuZC4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeZp/eI=", "height": 2005930, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AthhZppPwRCVCKZHj4iLGNaShr4pgV1ft2khTrSbybK7 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func RegisterName (UserName,UserDescription) = { | |
8 | + | let currentKey = toBase58String(i.caller.bytes) | |
9 | + | let checkseries = getString(this, ("UserName_" + UserName)) | |
10 | + | if ((3 > size(UserName))) | |
11 | + | then throw("Choose a Unique UserName above 3 Chars.") | |
12 | + | else if ((checkseries == UserName)) | |
13 | + | then throw("User Name Already Exist or Taken. Choose Another Unique User Name.") | |
14 | + | else [StringEntry(("UserName_" + UserName), UserName), StringEntry(("UserDescription_" + UserName), UserDescription), StringEntry(("UserAddress_" + UserName), currentKey), IntegerEntry(("Account_Creation_TimeStamp" + UserName), lastBlock.timestamp), IntegerEntry(("MessageCounter_" + UserName), 0)] | |
15 | + | } | |
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | @Callable(i) | |
20 | + | func IssueNFTSeries (NFTSeriesName) = { | |
21 | + | let currentKey = toBase58String(i.caller.bytes) | |
22 | + | let getSeriesStartCounter = getIntegerValue(this, ("SeriesStartCounter_" + NFTSeriesName)) | |
23 | + | let getSeriesEndCounter = getIntegerValue(this, ("SeriesEndCounter_" + NFTSeriesName)) | |
24 | + | let getSeriesCurrentCounter = getIntegerValue(this, ("SeriesCurrentCounter_" + NFTSeriesName)) | |
25 | + | let getSeriesNewCounter = (getSeriesCurrentCounter + 1) | |
26 | + | let asset = Issue(((NFTSeriesName + "-") + toString(getSeriesNewCounter)), getStringValue(this, ("NFTDescription_" + NFTSeriesName)), 1, 0, false, unit, 0) | |
27 | + | let assetId = calculateAssetId(asset) | |
28 | + | let checkseries = getString(this, ("NFTSeriesName_" + NFTSeriesName)) | |
29 | + | let checkseriesissuerpubkey = getStringValue(this, ("SeriesIssuerPubkey_" + NFTSeriesName)) | |
30 | + | if ((checkseriesissuerpubkey != currentKey)) | |
31 | + | then throw(((("I know You are not An Admin. Only " + checkseriesissuerpubkey) + " has rights to issue NFT. But You are ") + currentKey)) | |
32 | + | else if ((getSeriesNewCounter > getSeriesEndCounter)) | |
33 | + | then throw((("Counter to Mint " + NFTSeriesName) + " is Finished. Create a New Series Please.")) | |
34 | + | else if ((checkseries == NFTSeriesName)) | |
35 | + | then [asset, IntegerEntry(("SeriesStartCounter_" + NFTSeriesName), getSeriesStartCounter), IntegerEntry(("SeriesEndCounter_" + NFTSeriesName), getSeriesEndCounter), IntegerEntry(("SeriesCurrentCounter_" + NFTSeriesName), getSeriesNewCounter), ScriptTransfer(i.caller, 1, assetId)] | |
36 | + | else throw("Name Not Found.") | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | @Verifier(tx) | |
41 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
42 | + |
github/deemru/w8io/169f3d6 16.96 ms ◑