tx · 5e5pznoADcmEEcCGWcQ2Xsdwy9XSqwJPKUcAu6uSa7Co 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb: -0.01000000 Waves 2020.09.07 19:19 [1167202] smart account 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb > SELF 0.00000000 Waves
{ "type": 13, "id": "5e5pznoADcmEEcCGWcQ2Xsdwy9XSqwJPKUcAu6uSa7Co", "fee": 1000000, "feeAssetId": null, "timestamp": 1599495604659, "version": 2, "chainId": 84, "sender": "3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb", "senderPublicKey": "DSRgh8Vqq8hiEKiYADV17zJViM4LbxicW6dAa6rHydE5", "proofs": [ "4bMTQgVcLhZjeAo5KVCdQAh1qnNjhM62ThzYzsoFsunDnjdD2ZvmE9EPgEVH6X1KxL5crK9ZMmmeeJm1jQ4avHyc" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAEWlzc3VlTGVzc29uVGlja2V0AAAAAgAAAAtpc3N1ZUFtb3VudAAAAAp0aWNrZXROYW1lBAAAAApjdXJyZW50S2V5AgAAAAthc3NldE51bWJlcgQAAAANY3VycmVudE51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld051bWJlcgkAAGQAAAACBQAAAA1jdXJyZW50TnVtYmVyAAAAAAAAAAABBAAAAAlhc3NldE5hbWUJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAxhc3NldE5hbWVLZXkJAAEsAAAAAgkAASwAAAACAgAAAAVQQVI3LQkAAaQAAAABBQAAAAluZXdOdW1iZXICAAAABV9uYW1lBAAAABBhc3NldERlc2NyaXB0aW9uCQABLAAAAAICAAAAGXNjb3JlR08gbGVzc29uIHRpY2tldCBOby4JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAthc3NldElzc3VlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA5hc3NldElzc3VlcktleQkAASwAAAACCQABLAAAAAICAAAABVBBUjctCQABpAAAAAEFAAAACW5ld051bWJlcgIAAAAHX2lzc3VlcgQAAAAFaXNzdWUJAARCAAAABQUAAAAJYXNzZXROYW1lBQAAABBhc3NldERlc2NyaXB0aW9uBQAAAAtpc3N1ZUFtb3VudAAAAAAAAAAAAgYEAAAAAmlkCQAEOAAAAAEFAAAABWlzc3VlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADGFzc2V0TmFtZUtleQUAAAAKdGlja2V0TmFtZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA5hc3NldElzc3VlcktleQUAAAALYXNzZXRJc3N1ZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld051bWJlcgkABEwAAAACBQAAAAVpc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAVpc3N1ZQAAAAhxdWFudGl0eQUAAAACaWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5LtzEOg==", "height": 1167202, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: JA6Pk32xe9Q1Pyn6DUHuZ1JziTU43Q4S6zmDuo9DexNd 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 issueLessonTicket (issueAmount,ticketName) = { | |
8 | + | let currentKey = "assetNumber" | |
9 | + | let currentNumber = match getInteger(this, currentKey) { | |
10 | + | case a: Int => | |
11 | + | a | |
12 | + | case _ => | |
13 | + | 0 | |
14 | + | } | |
15 | + | let newNumber = (currentNumber + 1) | |
16 | + | let assetName = ("PAR7-" + toString(newNumber)) | |
17 | + | let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name") | |
18 | + | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) | |
19 | + | let assetIssuer = toBase58String(i.caller.bytes) | |
20 | + | let assetIssuerKey = (("PAR7-" + toString(newNumber)) + "_issuer") | |
21 | + | let issue = Issue(assetName, assetDescription, issueAmount, 2, true) | |
22 | + | let id = calculateAssetId(issue) | |
23 | + | [StringEntry(assetNameKey, ticketName), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] | |
24 | + | } | |
25 | + | ||
26 | + | ||
27 | + | @Verifier(tx) | |
28 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
29 | + |
github/deemru/w8io/169f3d6 29.75 ms ◑