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:AAIEAAAAAAAAAAkIAhIFCgMBCAgAAAAAAAAAAQAAAAFpAQAAABFpc3N1ZUxlc3NvblRpY2tldAAAAAMAAAALaXNzdWVBbW91bnQAAAAKdGlja2V0TmFtZQAAAAt0aWNrZXRJbWFnZQQAAAAKY3VycmVudEtleQIAAAALYXNzZXROdW1iZXIEAAAADWN1cnJlbnROdW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdOdW1iZXIJAABkAAAAAgUAAAANY3VycmVudE51bWJlcgAAAAAAAAAAAQQAAAAJYXNzZXROYW1lCQABLAAAAAICAAAABVBBUjctCQABpAAAAAEFAAAACW5ld051bWJlcgQAAAAMYXNzZXROYW1lS2V5CQABLAAAAAIJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyAgAAAAVfbmFtZQQAAAAQYXNzZXREZXNj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AACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5jvcvUg==",
"height": 1169441,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5e5pznoADcmEEcCGWcQ2Xsdwy9XSqwJPKUcAu6uSa7Co
Next: 4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func issueLessonTicket (issueAmount,ticketName) = { |
---|
| 7 | + | func issueLessonTicket (issueAmount,ticketName,ticketImage) = { |
---|
8 | 8 | | let currentKey = "assetNumber" |
---|
9 | 9 | | let currentNumber = match getInteger(this, currentKey) { |
---|
10 | 10 | | case a: Int => |
---|
|
18 | 18 | | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) |
---|
19 | 19 | | let assetIssuer = toBase58String(i.caller.bytes) |
---|
20 | 20 | | 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) |
---|
22 | 23 | | 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)] |
---|
24 | 25 | | } |
---|
25 | 26 | | |
---|
26 | 27 | | |
---|
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) = { |
---|
| 7 | + | func issueLessonTicket (issueAmount,ticketName,ticketImage) = { |
---|
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 assetNameKey = (("PAR7-" + toString(newNumber)) + "_name") |
---|
18 | 18 | | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) |
---|
19 | 19 | | let assetIssuer = toBase58String(i.caller.bytes) |
---|
20 | 20 | | 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) |
---|
22 | 23 | | 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)] |
---|
24 | 25 | | } |
---|
25 | 26 | | |
---|
26 | 27 | | |
---|
27 | 28 | | @Verifier(tx) |
---|
28 | 29 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 30 | | |
---|