tx · 4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK

3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb:  -0.01400000 Waves

2020.09.11 03:47 [1171965] smart account 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb > SELF 0.00000000 Waves

{ "type": 13, "id": "4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK", "fee": 1400000, "feeAssetId": null, "timestamp": 1599785256130, "version": 2, "chainId": 84, "sender": "3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb", "senderPublicKey": "DSRgh8Vqq8hiEKiYADV17zJViM4LbxicW6dAa6rHydE5", "proofs": [ "3hb7w5oHedR7QC7XBqWHVV3Ci49J7RSahkSvjWwNEpXRp5ECJpayakyqrMhneyndMSVfs6HHyLDpMQPn1Ft3gKNc" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAEWlzc3VlTGVzc29uVGlja2V0AAAAAgAAAAtpc3N1ZUFtb3VudAAAAARkYXRhBAAAAApjdXJyZW50S2V5AgAAAAthc3NldE51bWJlcgQAAAANY3VycmVudE51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld051bWJlcgkAAGQAAAACBQAAAA1jdXJyZW50TnVtYmVyAAAAAAAAAAABBAAAAAlhc3NldE5hbWUJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAABBhc3NldERlc2NyaXB0aW9uCQABLAAAAAICAAAAGXNjb3JlR08gbGVzc29uIHRpY2tldCBOby4JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAVpc3N1ZQkABEIAAAAFBQAAAAlhc3NldE5hbWUFAAAAEGFzc2V0RGVzY3JpcHRpb24FAAAAC2lzc3VlQW1vdW50AAAAAAAAAAAABgQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAJYXNzZXROYW1lBQAAAARkYXRhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdOdW1iZXIJAARMAAAAAgUAAAAFaXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAAFaXNzdWUAAAAIcXVhbnRpdHkFAAAAAmlkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleaC3PRw=", "height": 1171965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JA6Pk32xe9Q1Pyn6DUHuZ1JziTU43Q4S6zmDuo9DexNd Next: FapjUHz5b8Wq9tbnDNuAXNtY8i1YmbQsXSdsfS5PCKsE Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func issueLessonTicket (issueAmount,ticketName,ticketImage) = {
7+func issueLessonTicket (issueAmount,data) = {
88 let currentKey = "assetNumber"
99 let currentNumber = match getInteger(this, currentKey) {
1010 case a: Int =>
1414 }
1515 let newNumber = (currentNumber + 1)
1616 let assetName = ("PAR7-" + toString(newNumber))
17- let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name")
1817 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
19- let assetIssuer = toBase58String(i.caller.bytes)
20- let assetIssuerKey = (("PAR7-" + toString(newNumber)) + "_issuer")
21- let assetImageKey = (("PAR7-" + toString(newNumber)) + "_image")
2218 let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
2319 let id = calculateAssetId(issue)
24-[StringEntry(assetNameKey, ticketName), StringEntry(assetImageKey, ticketImage), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
20+[StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2521 }
2622
2723
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func issueLessonTicket (issueAmount,ticketName,ticketImage) = {
7+func issueLessonTicket (issueAmount,data) = {
88 let currentKey = "assetNumber"
99 let currentNumber = match getInteger(this, currentKey) {
1010 case a: Int =>
1111 a
1212 case _ =>
1313 0
1414 }
1515 let newNumber = (currentNumber + 1)
1616 let assetName = ("PAR7-" + toString(newNumber))
17- let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name")
1817 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
19- let assetIssuer = toBase58String(i.caller.bytes)
20- let assetIssuerKey = (("PAR7-" + toString(newNumber)) + "_issuer")
21- let assetImageKey = (("PAR7-" + toString(newNumber)) + "_image")
2218 let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
2319 let id = calculateAssetId(issue)
24-[StringEntry(assetNameKey, ticketName), StringEntry(assetImageKey, ticketImage), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
20+[StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2521 }
2622
2723
2824 @Verifier(tx)
2925 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3026

github/deemru/w8io/169f3d6 
23.99 ms