tx · 4p4X9offAuYsHnfyeYipmtZFmGmTy499LzoMB3pyBEjE 3Mp6RDjZ3qAp2UtAEgrzzu9LifFPkPRKyY5: -0.01000000 Waves 2021.12.06 16:57 [1822482] smart account 3Mp6RDjZ3qAp2UtAEgrzzu9LifFPkPRKyY5 > SELF 0.00000000 Waves
{ "type": 13, "id": "4p4X9offAuYsHnfyeYipmtZFmGmTy499LzoMB3pyBEjE", "fee": 1000000, "feeAssetId": null, "timestamp": 1638799090891, "version": 2, "chainId": 84, "sender": "3Mp6RDjZ3qAp2UtAEgrzzu9LifFPkPRKyY5", "senderPublicKey": "7srCzMGcJ4G1BHjenqGXTwUpc4SL2LrTTutvviaQ3baE", "proofs": [ "4YSmboYEfM8JdoHCdKUmUtrs9dZXDK6Mnev4srZaav7KwkGvLZQwnEs3Agk9X4L5W8QQ8CmqbNZ3ARA7qaWQdXXP" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgEAAAAMd3JpdGVJbnRlZ2VyAAAAAgAAAANrZXkAAAAMaW50ZWdlclZhbHVlCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAxpbnRlZ2VyVmFsdWUBAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUAAAABAAAAAWkBAAAACWJ1eVRpY2tldAAAAAEAAAAHZXZlbnRJZAQAAAAPcHVibGljS2V5Q2FsbGVyCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAFYXNzZXQJAARCAAAABQIAAAALVGVzdCBUaWNrZXQCAAAAGU5GVC1UaWNrZXRpbmcgdGVzdCB0aWNrZXQAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAd0b2tlbklkCQACWAAAAAEJAAQ4AAAAAQUAAAAFYXNzZXQJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgkAASwAAAACBQAAAAd0b2tlbklkAgAAAApfUHVibGljS2V5BQAAAA9wdWJsaWNLZXlDYWxsZXIJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgkAASwAAAACBQAAAAd0b2tlbklkAgAAAAhfRXZlbnRJZAUAAAAHZXZlbnRJZAkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACCQABLAAAAAIFAAAAB3Rva2VuSWQCAAAAB19TdGF0dXMCAAAACGluYWN0aXZlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAlkAAAABBQAAAAd0b2tlbklkBQAAAANuaWwAAAAAmbZdNA==", "height": 1822482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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 16.38 ms ◑