tx · JA6Pk32xe9Q1Pyn6DUHuZ1JziTU43Q4S6zmDuo9DexNd

3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb:  -0.01400000 Waves

2020.09.09 09:49 [1169441] smart account 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb > SELF 0.00000000 Waves

{ "type": 13, "id": "JA6Pk32xe9Q1Pyn6DUHuZ1JziTU43Q4S6zmDuo9DexNd", "fee": 1400000, "feeAssetId": null, "timestamp": 1599634165007, "version": 2, "chainId": 84, "sender": "3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb", "senderPublicKey": "DSRgh8Vqq8hiEKiYADV17zJViM4LbxicW6dAa6rHydE5", "proofs": [ "2mxsTrYhi2QctSZosxKL2pzT4HEb5kbQ77DA58zyFj4aqFDLYfTVngFCWts4RhpwTtJKvpfyTMgMMcuSQv529BJv" ], "script": "base64:AAIEAAAAAAAAAAkIAhIFCgMBCAgAAAAAAAAAAQAAAAFpAQAAABFpc3N1ZUxlc3NvblRpY2tldAAAAAMAAAALaXNzdWVBbW91bnQAAAAKdGlja2V0TmFtZQAAAAt0aWNrZXRJbWFnZQQAAAAKY3VycmVudEtleQIAAAALYXNzZXROdW1iZXIEAAAADWN1cnJlbnROdW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdOdW1iZXIJAABkAAAAAgUAAAANY3VycmVudE51bWJlcgAAAAAAAAAAAQQAAAAJYXNzZXROYW1lCQABLAAAAAICAAAABVBBUjctCQABpAAAAAEFAAAACW5ld051bWJlcgQAAAAMYXNzZXROYW1lS2V5CQABLAAAAAIJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyAgAAAAVfbmFtZQQAAAAQYXNzZXREZXNjcmlwdGlvb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HgAAAAPc2VuZGVyUHVibGljS2V5jvcvUg==", "height": 1169441, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5e5pznoADcmEEcCGWcQ2Xsdwy9XSqwJPKUcAu6uSa7Co Next: 4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func issueLessonTicket (issueAmount,ticketName) = {
7+func issueLessonTicket (issueAmount,ticketName,ticketImage) = {
88 let currentKey = "assetNumber"
99 let currentNumber = match getInteger(this, currentKey) {
1010 case a: Int =>
1818 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
1919 let assetIssuer = toBase58String(i.caller.bytes)
2020 let assetIssuerKey = (("PAR7-" + toString(newNumber)) + "_issuer")
21- let issue = Issue(assetName, assetDescription, issueAmount, 2, true)
21+ let assetImageKey = (("PAR7-" + toString(newNumber)) + "_image")
22+ let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
2223 let id = calculateAssetId(issue)
23-[StringEntry(assetNameKey, ticketName), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
24+[StringEntry(assetNameKey, ticketName), StringEntry(assetImageKey, ticketImage), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2425 }
2526
2627
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func issueLessonTicket (issueAmount,ticketName) = {
7+func issueLessonTicket (issueAmount,ticketName,ticketImage) = {
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))
1717 let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name")
1818 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
1919 let assetIssuer = toBase58String(i.caller.bytes)
2020 let assetIssuerKey = (("PAR7-" + toString(newNumber)) + "_issuer")
21- let issue = Issue(assetName, assetDescription, issueAmount, 2, true)
21+ let assetImageKey = (("PAR7-" + toString(newNumber)) + "_image")
22+ let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
2223 let id = calculateAssetId(issue)
23-[StringEntry(assetNameKey, ticketName), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
24+[StringEntry(assetNameKey, ticketName), StringEntry(assetImageKey, ticketImage), StringEntry(assetIssuerKey, assetIssuer), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2425 }
2526
2627
2728 @Verifier(tx)
2829 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2930

github/deemru/w8io/169f3d6 
29.03 ms