tx · FapjUHz5b8Wq9tbnDNuAXNtY8i1YmbQsXSdsfS5PCKsE
3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb: -0.01400000 Waves
2020.09.12 04:46 [1173447] smart account 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb > SELF 0.00000000 Waves
{
"type": 13,
"id": "FapjUHz5b8Wq9tbnDNuAXNtY8i1YmbQsXSdsfS5PCKsE",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1599875200195,
"version": 2,
"chainId": 84,
"sender": "3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb",
"senderPublicKey": "DSRgh8Vqq8hiEKiYADV17zJViM4LbxicW6dAa6rHydE5",
"proofs": [
"9Yn17e9863EAg2dmGPhpCVqoNYUyJSV94vzpofRJUr8Xf95SnDbjq9RFK9HqFF253Wo4fH9s7L9f8EWxgB9cuQC"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAEWlzc3VlTGVzc29uVGlja2V0AAAAAgAAAAtpc3N1ZUFtb3VudAAAAARkYXRhBAAAAApjdXJyZW50S2V5AgAAAAthc3NldE51bWJlcgQAAAANY3VycmVudE51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld051bWJlcgkAAGQAAAACBQAAAA1jdXJyZW50TnVtYmVyAAAAAAAAAAABBAAAAAlhc3NldE5hbWUJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAABBhc3NldERlc2NyaXB0aW9uCQABLAAAAAICAAAAGXNjb3JlR08gbGVzc29uIHRpY2tldCBOby4JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAVpc3N1ZQkABEIAAAAFBQAAAAlhc3NldE5hbWUFAAAAEGFzc2V0RGVzY3JpcHRpb24FAAAAC2lzc3VlQW1vdW50AAAAAAAAAAAABgQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUEAAAAB2Fzc2V0SWQJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAHYXNzZXRJZAUAAAAEZGF0YQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3TnVtYmVyCQAETAAAAAIFAAAABWlzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAABWlzc3VlAAAACHF1YW50aXR5BQAAAAJpZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnO8Rup",
"height": 1173447,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK
Next: none
Diff:
Old | New | | Differences |
---|
17 | 17 | | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) |
---|
18 | 18 | | let issue = Issue(assetName, assetDescription, issueAmount, 0, true) |
---|
19 | 19 | | let id = calculateAssetId(issue) |
---|
20 | | - | [StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
| 20 | + | let assetId = toBase58String(id) |
---|
| 21 | + | [StringEntry(assetId, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
21 | 22 | | } |
---|
22 | 23 | | |
---|
23 | 24 | | |
---|
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 | 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 | 17 | | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) |
---|
18 | 18 | | let issue = Issue(assetName, assetDescription, issueAmount, 0, true) |
---|
19 | 19 | | let id = calculateAssetId(issue) |
---|
20 | | - | [StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
| 20 | + | let assetId = toBase58String(id) |
---|
| 21 | + | [StringEntry(assetId, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
21 | 22 | | } |
---|
22 | 23 | | |
---|
23 | 24 | | |
---|
24 | 25 | | @Verifier(tx) |
---|
25 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
26 | 27 | | |
---|