tx · HsmusuhHUpnqfiKYnAVKGPYnQ2bv8QNa7KhpSfECrM9S 3N8gbU8daeQsLjaMgBngnZB999X7e13Rk4A: -0.01000000 Waves 2021.04.10 12:19 [1476161] smart account 3N8gbU8daeQsLjaMgBngnZB999X7e13Rk4A > SELF 0.00000000 Waves
{ "type": 13, "id": "HsmusuhHUpnqfiKYnAVKGPYnQ2bv8QNa7KhpSfECrM9S", "fee": 1000000, "feeAssetId": null, "timestamp": 1618046412658, "version": 2, "chainId": 84, "sender": "3N8gbU8daeQsLjaMgBngnZB999X7e13Rk4A", "senderPublicKey": "Bo8DbABLbLDy5spqq8CTn9AWWjnwuyWYDyfVoSoUGJfL", "proofs": [ "5UcsDVb3Wo1Zk9sHXj2tmrQ6zSYiMQHq6nGARm8SeX1zXruSdULL3aWNmY23V4E8nDt89U2QCPPaLtK7uQSoVUzx" ], "script": "base64:AAIEAAAAAAAAABEIAhIGCgQICAgIEgUKAwgICAAAAAAAAAACAAAAAWkBAAAACGlzc3VlTmZ0AAAABAAAAARjb2RlAAAABWJyYW5kAAAABG5hbWUAAAAEanNvbgQAAAADbmZ0CQAEQgAAAAUCAAAADUdPTEYgR0VBUiBORlQJAAEsAAAAAgkAASwAAAACBQAAAAVicmFuZAIAAAADIC8gBQAAAARuYW1lAAAAAAAAAAABAAAAAAAAAAAABwQAAAAFbmZ0SWQJAAQ4AAAAAQUAAAADbmZ0BAAAAAtuZnRJZFN0cmluZwkAAlgAAAABBQAAAAVuZnRJZAkABEwAAAACBQAAAANuZnQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAALbmZ0SWRTdHJpbmcFAAAABGpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVuZnRJZAUAAAADbmlsAAAAAWkBAAAACXVwZGF0ZU5mdAAAAAMAAAAEY29kZQAAAAVuZnRpZAAAAARqc29uBAAAAAVuZnRJZAkAAlkAAAABBQAAAAVuZnRpZAQAAAAHYmFsYW5jZQkAA/AAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABW5mdElkAwkAAAAAAAACBQAAAAdiYWxhbmNlAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdGlkBQAAAARqc29uBQAAAANuaWwJAAACAAAAAQIAAAAhWW91IGFyZSBub3QgYXV0aG9yaXplZCB0byB1cGRhdGUuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmLIoWF", "height": 1476161, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HpyAvKCkFMgzDDJE257AYtxvKtTpaMF3rSarwr9tcjGT 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 issueNft (code,brand,name,json) = { | |
8 | + | let nft = Issue("GOLF GEAR NFT", ((brand + " / ") + name), 1, 0, false) | |
9 | + | let nftId = calculateAssetId(nft) | |
10 | + | let nftIdString = toBase58String(nftId) | |
11 | + | [nft, StringEntry(nftIdString, json), ScriptTransfer(i.caller, 1, nftId)] | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | @Callable(i) | |
17 | + | func updateNft (code,nftid,json) = { | |
18 | + | let nftId = fromBase58String(nftid) | |
19 | + | let balance = assetBalance(i.caller, nftId) | |
20 | + | if ((balance == 1)) | |
21 | + | then [StringEntry(nftid, json)] | |
22 | + | else throw("You are not authorized to update.") | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | @Verifier(tx) | |
27 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
28 | + |
github/deemru/w8io/169f3d6 18.58 ms ◑