tx · Ca8gHnSJX3xTwQZYG2Y7PPfRQTXA2bbVx4bz5yZWARzA

3MuDeVJtgnf32JCP1fx191gP6opExbcVKRD:  -0.01000000 Waves

2020.09.23 03:44 [1189246] smart account 3MuDeVJtgnf32JCP1fx191gP6opExbcVKRD > SELF 0.00000000 Waves

{ "type": 13, "id": "Ca8gHnSJX3xTwQZYG2Y7PPfRQTXA2bbVx4bz5yZWARzA", "fee": 1000000, "feeAssetId": null, "timestamp": 1600821895404, "version": 2, "chainId": 84, "sender": "3MuDeVJtgnf32JCP1fx191gP6opExbcVKRD", "senderPublicKey": "8JfsGbtUyoZCTL7z6ZM6Et5V6q227EzzkXcJ42FMN3fy", "proofs": [ "4Qf3HKfFbA29W5QQrUMLAovroLKCNN9XDgNwJXVR4aeYKfKyYVJDDcKbYqd6h2BRhoM4vqNwFSTFKovPLHe985wB" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAwAAAAAGTEVTU09OAQAAACDo50h8OI7Nb62zoWsqagYFDIe8iqPg4/7715QkgwDg6QAAAAAEUEFSNwEAAAAgzlhA/ZjitMWTd+McxVJoK0GcLLGrEdV8aco355LpR4wAAAAACHN3YXBSYXRlAAAAAAAAAAABAAAAAQAAAAFpAQAAABFpc3N1ZUxlc3NvblRpY2tldAAAAAEAAAAEanNvbgQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAARQQVI3CQAAAgAAAAECAAAAFHdvcmtzIHdpdGggUEFSNyBvbmx5BAAAAApzd2FwQW1vdW50CQAAaAAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAhzd2FwUmF0ZQQAAAANYXNzZXRJZFN0cmluZwkAAlgAAAABCQEAAAAFdmFsdWUAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAA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AAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk1XkJM", "height": 1189246, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EPF5UsyGWxuE1eAZ3KrAXBAfia3qRYdHxefunaU9jRey Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'GgA8mL3SEYvuhYoZFd418Li4bqXAasGbYCKJshTt2MGU'
5+
6+let b = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm'
7+
8+let c = 1
9+
10+@Callable(d)
11+func issueLessonTicket (e) = {
12+ let f = d.payments[0]
13+ if ((f.assetId != b))
14+ then throw("works with PAR7 only")
15+ else {
16+ let g = (f.amount * c)
17+ let h = toBase58String(value(f.assetId))
18+ let i = {
19+ let j = getInteger(this, h)
20+ if ($isInstanceOf(j, "Int"))
21+ then {
22+ let k = j
23+ k
24+ }
25+ else 0
26+ }
27+ let l = (i + f.amount)
28+ let m = "issueNumber"
29+ let n = {
30+ let j = getInteger(this, m)
31+ if ($isInstanceOf(j, "Int"))
32+ then {
33+ let k = j
34+ k
35+ }
36+ else 0
37+ }
38+ let o = (n + 1)
39+ let p = toString(o)
40+ let q = ("TICKET_" + p)
41+[IntegerEntry(h, l), IntegerEntry(m, o), StringEntry(q, e), ScriptTransfer(d.caller, g, a)]
42+ }
43+ }
44+
45+
46+@Verifier(r)
47+func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
48+

github/deemru/w8io/169f3d6 
19.29 ms