tx · EDiZ1riycn41xoFE6iBqFNBcYgqfDMHPtWZgGWxipxtF 3N3ed4RrX8NHhw4mX3yu5obUK6uqGFcA6ar: -0.01000000 Waves 2021.12.06 16:57 [1822482] smart account 3N3ed4RrX8NHhw4mX3yu5obUK6uqGFcA6ar > SELF 0.00000000 Waves
{ "type": 13, "id": "EDiZ1riycn41xoFE6iBqFNBcYgqfDMHPtWZgGWxipxtF", "fee": 1000000, "feeAssetId": null, "timestamp": 1638799076813, "version": 2, "chainId": 84, "sender": "3N3ed4RrX8NHhw4mX3yu5obUK6uqGFcA6ar", "senderPublicKey": "ArpGQ46FtvbDmJXQ7qnPrTSHBq85zSM6TcYpUkVJWqJo", "proofs": [ "5jNZYBTkZB8bxEypvU1VyPfi3nv8Qx84j7nuowdMJdv2QzY87FNEYSFmHQPrWYrLB9tcPaMbs6MDtubJrPZttP8z" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgEAAAAMd3JpdGVJbnRlZ2VyAAAAAgAAAANrZXkAAAAMaW50ZWdlclZhbHVlCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAxpbnRlZ2VyVmFsdWUBAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUAAAABAAAAAWkBAAAACWJ1eVRpY2tldAAAAAEAAAAHZXZlbnRJZAQAAAAPcHVibGljS2V5Q2FsbGVyCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAFYXNzZXQJAARCAAAABQIAAAALVGVzdCBUaWNrZXQCAAAAGU5GVC1UaWNrZXRpbmcgdGVzdCB0aWNrZXQAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAd0b2tlbklkCQACWAAAAAEJAAQ4AAAAAQUAAAAFYXNzZXQJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgkAASwAAAACBQAAAAd0b2tlbklkAgAAAApfUHVibGljS2V5BQAAAA9wdWJsaWNLZXlDYWxsZXIJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgkAASwAAAACBQAAAAd0b2tlbklkAgAAAAhfRXZlbnRJZAUAAAAHZXZlbnRJZAkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACCQABLAAAAAIFAAAAB3Rva2VuSWQCAAAAB19TdGF0dXMCAAAACGluYWN0aXZlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAlkAAAABBQAAAAd0b2tlbklkBQAAAANuaWwAAAAAmbZdNA==", "height": 1822482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7y9K5hXGQXHfMrHwBMng8jZx6p6EengTiHd1nMFLT3Zb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func writeInteger (key,integerValue) = IntegerEntry(key, integerValue) | |
5 | + | ||
6 | + | ||
7 | + | func writeString (key,stringValue) = StringEntry(key, stringValue) | |
8 | + | ||
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func buyTicket (eventId) = { | |
12 | + | let publicKeyCaller = toBase58String(i.callerPublicKey) | |
13 | + | let asset = Issue("Test Ticket", "NFT-Ticketing test ticket", 1, 0, false) | |
14 | + | let tokenId = toBase58String(calculateAssetId(asset)) | |
15 | + | [asset, writeString((tokenId + "_PublicKey"), publicKeyCaller), writeString((tokenId + "_EventId"), eventId), writeString((tokenId + "_Status"), "inactive"), ScriptTransfer(i.caller, 1, fromBase58String(tokenId))] | |
16 | + | } | |
17 | + | ||
18 | + |
github/deemru/w8io/026f985 33.47 ms ◑