tx · FjUbpjLGatgxg11EsG9MdV37kDTexKCzsKAxTRZCgtYy 3MwnPXzXRa4ShreRRWxGCjNmTWsgYZbatfk: -0.01000000 Waves 2023.12.01 12:37 [2867399] smart account 3MwnPXzXRa4ShreRRWxGCjNmTWsgYZbatfk > SELF 0.00000000 Waves
{ "type": 13, "id": "FjUbpjLGatgxg11EsG9MdV37kDTexKCzsKAxTRZCgtYy", "fee": 1000000, "feeAssetId": null, "timestamp": 1701423512891, "version": 2, "chainId": 84, "sender": "3MwnPXzXRa4ShreRRWxGCjNmTWsgYZbatfk", "senderPublicKey": "GchBxbDHWXNwzxpaS8rKakEYDkeKTELdF7gg77f6jErd", "proofs": [ "61aJz7f8ymcdffZbNU2FUujh1WVipeuYnGoQYTm8MXYQedNrJDfmBGpo6grYxXGxB1YNCp1A6iBfKZm2yUT3x2Yf" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAgAAAADAAAAAAZzdWZmaXgCAAAAAlJOAQAAAA9nZXRJbnRlZ2VyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADGlkQ2FsbGVyRGF0ZQAAAAEAAAABaQkABRUAAAADCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAAAAABAAAAAWkBAAAABG1pbnQAAAADAAAABG5hbWUAAAAEZGVzYwAAAANjaWQEAAAACSR0MDM3NTQxNQkBAAAADGlkQ2FsbGVyRGF0ZQAAAAEFAAAAAWkEAAAAAmlkCAUAAAAJJHQwMzc1NDE1AAAAAl8xBAAAAAZjYWxsZXIIBQAAAAkkdDAzNzU0MTUAAAACXzIEAAAABGRhdGUIBQAAAAkkdDAzNzU0MTUAAAACXzMEAAAACHRvdGFsTkZUCQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQIAAAAQdG90YWxfbmZ0X2lzc3VlZAQAAAAJaXNzdWVNZXRhAgAAACVSYW5kb20gTkZUIHRlc3QgZm9yIFNJR04gQVJUIGV4dGVybmFsBAAAAAhpc3N1ZU5GVAkABEIAAAAFCQABLAAAAAIJAAEsAAAAAgUAAAAGc3VmZml4AgAAAAFfCQABpAAAAAEJAABkAAAAAgUAAAAIdG90YWxORlQAAAAAAAAAAAEFAAAACWlzc3VlTWV0YQAAAAAAAAAAAQAAAAAAAAAAAAcEAAAABWlkTkZUCQAEOAAAAAEFAAAACGlzc3VlTkZUCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAAVpZE5GVAIAAAAGX2ltYWdlBQAAAARuYW1lCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAAVpZE5GVAIAAAAFX2Rlc2MFAAAABGRlc2MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQACWAAAAAEFAAAABWlkTkZUAgAAAARfY2lkBQAAAANjaWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAEHRvdGFsX25mdF9pc3N1ZWQJAABkAAAAAgUAAAAIdG90YWxORlQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEvI3b", "height": 2867399, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 8HCrHCaJ76Z7qB9pLdN9986H3R5EyfFmAGM4sy1fqUN Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let suffix = "RN" | |
5 | + | ||
6 | + | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
7 | + | ||
8 | + | ||
9 | + | func idCallerDate (i) = $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
10 | + | ||
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func mint (name,desc,cid) = { | |
14 | + | let $t0375415 = idCallerDate(i) | |
15 | + | let id = $t0375415._1 | |
16 | + | let caller = $t0375415._2 | |
17 | + | let date = $t0375415._3 | |
18 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
19 | + | let issueMeta = "Random NFT test for SIGN ART external" | |
20 | + | let issueNFT = Issue(((suffix + "_") + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
21 | + | let idNFT = calculateAssetId(issueNFT) | |
22 | + | [StringEntry((toBase58String(idNFT) + "_image"), name), StringEntry((toBase58String(idNFT) + "_desc"), desc), StringEntry((toBase58String(idNFT) + "_cid"), cid), IntegerEntry("total_nft_issued", (totalNFT + 1)), ScriptTransfer(i.caller, 1, idNFT)] | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | @Verifier(tx) | |
27 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
28 | + |
github/deemru/w8io/026f985 16.43 ms ◑