tx · D47n1nueihuoq3SXpjJJnsDW8YTcFLtjpt2RNccbrj9u

3NBPqqjDH2eYmoHeXNPnHhLvA7D4UDQXQcx:  -0.01400000 Waves

2021.01.26 14:43 [1370427] smart account 3NBPqqjDH2eYmoHeXNPnHhLvA7D4UDQXQcx > SELF 0.00000000 Waves

{ "type": 13, "id": "D47n1nueihuoq3SXpjJJnsDW8YTcFLtjpt2RNccbrj9u", "fee": 1400000, "feeAssetId": null, "timestamp": 1611661386321, "version": 2, "chainId": 84, "sender": "3NBPqqjDH2eYmoHeXNPnHhLvA7D4UDQXQcx", "senderPublicKey": "2VJESL5o2hqRwaKdJGDXpzJ7jNDcZz5y4C6qWEaUn4yY", "proofs": [ "5efPGdFFA7YnFJApQv2KPH8V2opgQKjCS5zrnYGaWjj71jquUvBjt42dM2W6TmpN7huJVEAg1Hg1m7osGf8AMd2s" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQEAAAAJZGV2aWNlS2V5AAAAAQAAAAZkZXZpY2UJAAEsAAAAAgIAAAAHZGV2aWNlXwUAAAAGZGV2aWNlAAAAAQAAAAFpAQAAAAlhZGREZXZpY2UAAAABAAAABmRldmljZQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAACWRldmljZUtleQAAAAEFAAAABmRldmljZQYFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5WTlETA==", "height": 1370427, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9oRGuJi88MkzqNMxLV9oy3CbgicXBbjDheeuKsG8CLiM Next: 6jJJgk88C1284rBQUUp9HS7BZHfmmrwF1rT2Ese3xC3M Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b) = (b + "_counter")
4+func a (b) = ("device_" + b)
55
66
7-func c (b) = (b + "_status")
7+@Callable(c)
8+func addDevice (b) = [BooleanEntry(a(b), true)]
89
910
10-func d (b) = {
11- let e = getInteger(this, a(b))
12- let f = e
13- if ($isInstanceOf(f, "Int"))
14- then {
15- let g = f
16- true
17- }
18- else false
19- }
20-
21-
22-@Callable(h)
23-func interact (b,i) = if (if ((i != "open"))
24- then (i != "close")
25- else false)
26- then throw("Invalid action")
27- else if (!(d(b)))
28- then throw("Device does not exist")
29- else {
30- let j = getIntegerValue(this, a(b))
31-[StringEntry(c(b), i), IntegerEntry(a(b), (j + 1))]
32- }
33-
34-
35-
36-@Callable(h)
37-func addDevice (b) = [StringEntry((b + "_status"), "close"), IntegerEntry((b + "_counter"), 0)]
38-
39-
40-@Verifier(k)
41-func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
11+@Verifier(d)
12+func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
4213

github/deemru/w8io/169f3d6 
23.36 ms