tx · Hh6BCc1S1Y72pYq5gKdQhUmHc4do2WvDgX114V2GcUmb 3MrU31CUyjdemLKatmPPPWGHsBRCdr6hCbp: -0.01000000 Waves 2020.09.12 05:05 [1173465] smart account 3MrU31CUyjdemLKatmPPPWGHsBRCdr6hCbp > SELF 0.00000000 Waves
{ "type": 13, "id": "Hh6BCc1S1Y72pYq5gKdQhUmHc4do2WvDgX114V2GcUmb", "fee": 1000000, "feeAssetId": null, "timestamp": 1599876325035, "version": 2, "chainId": 84, "sender": "3MrU31CUyjdemLKatmPPPWGHsBRCdr6hCbp", "senderPublicKey": "G7BybYezmegscruMwVjDJVuRFshqmWNKBHmEctYr9Zjm", "proofs": [ "3BdaHrLuPJFDqZFW8YL5sPCS2etJjoooTFY9HmAUc2m33AJZkew6bGLUZEArQH5So8iLuuRKTEatWznJoFRh6r9D" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAEWlzc3VlTGVzc29uVGlja2V0AAAAAgAAAAtpc3N1ZUFtb3VudAAAAARkYXRhBAAAAApjdXJyZW50S2V5AgAAAAthc3NldE51bWJlcgQAAAANY3VycmVudE51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld051bWJlcgkAAGQAAAACBQAAAA1jdXJyZW50TnVtYmVyAAAAAAAAAAABBAAAAAlhc3NldE5hbWUJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAABBhc3NldERlc2NyaXB0aW9uCQABLAAAAAICAAAAGXNjb3JlR08gbGVzc29uIHRpY2tldCBOby4JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAVpc3N1ZQkABEIAAAAFBQAAAAlhc3NldE5hbWUFAAAAEGFzc2V0RGVzY3JpcHRpb24FAAAAC2lzc3VlQW1vdW50AAAAAAAAAAAABgQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUEAAAAB2Fzc2V0SWQJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAHYXNzZXRJZAUAAAAEZGF0YQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3TnVtYmVyCQAETAAAAAIFAAAABWlzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAABWlzc3VlAAAACHF1YW50aXR5BQAAAAJpZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnO8Rup", "height": 1173465, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7SDQTbtCmdJTASKbd7bXJXRjw9MCTS497ZTbtKGm8V7m Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func issueLessonTicket (issueAmount,data) = { | |
8 | + | let currentKey = "assetNumber" | |
9 | + | let currentNumber = match getInteger(this, currentKey) { | |
10 | + | case a: Int => | |
11 | + | a | |
12 | + | case _ => | |
13 | + | 0 | |
14 | + | } | |
15 | + | let newNumber = (currentNumber + 1) | |
16 | + | let assetName = ("PAR7-" + toString(newNumber)) | |
17 | + | let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber)) | |
18 | + | let issue = Issue(assetName, assetDescription, issueAmount, 0, true) | |
19 | + | let id = calculateAssetId(issue) | |
20 | + | let assetId = toBase58String(id) | |
21 | + | [StringEntry(assetId, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)] | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/169f3d6 17.77 ms ◑