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:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func issueLessonTicket (issueAmount,ticketName,ticketImage) = { |
---|
| 7 | + | func issueLessonTicket (issueAmount,data) = { |
---|
8 | 8 | | let currentKey = "assetNumber" |
---|
9 | 9 | | let currentNumber = match getInteger(this, currentKey) { |
---|
10 | 10 | | case a: Int => |
---|
|
14 | 14 | | } |
---|
15 | 15 | | let newNumber = (currentNumber + 1) |
---|
16 | 16 | | let assetName = ("PAR7-" + toString(newNumber)) |
---|
17 | | - | let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name") |
---|
18 | 17 | | 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") |
---|
22 | 18 | | let issue = Issue(assetName, assetDescription, issueAmount, 0, true) |
---|
23 | 19 | | 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)] |
---|
25 | 21 | | } |
---|
26 | 22 | | |
---|
27 | 23 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func issueLessonTicket (issueAmount,ticketName,ticketImage) = { |
---|
| 7 | + | func issueLessonTicket (issueAmount,data) = { |
---|
8 | 8 | | let currentKey = "assetNumber" |
---|
9 | 9 | | let currentNumber = match getInteger(this, currentKey) { |
---|
10 | 10 | | case a: Int => |
---|
11 | 11 | | a |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | 0 |
---|
14 | 14 | | } |
---|
15 | 15 | | let newNumber = (currentNumber + 1) |
---|
16 | 16 | | let assetName = ("PAR7-" + toString(newNumber)) |
---|
17 | | - | let assetNameKey = (("PAR7-" + toString(newNumber)) + "_name") |
---|
18 | 17 | | 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") |
---|
22 | 18 | | let issue = Issue(assetName, assetDescription, issueAmount, 0, true) |
---|
23 | 19 | | 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)] |
---|
25 | 21 | | } |
---|
26 | 22 | | |
---|
27 | 23 | | |
---|
28 | 24 | | @Verifier(tx) |
---|
29 | 25 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 26 | | |
---|