tx · DNKsq9YSMbw8oKTkueroW2MBr9MtcSmb4xdGsJNjhtsM

3MzfWTz6oukwgSkLZZ1PaXJ5G4Hs1SbY1EL:  -0.01400000 Waves

2021.02.02 14:52 [1380504] smart account 3MzfWTz6oukwgSkLZZ1PaXJ5G4Hs1SbY1EL > SELF 0.00000000 Waves

{ "type": 13, "id": "DNKsq9YSMbw8oKTkueroW2MBr9MtcSmb4xdGsJNjhtsM", "fee": 1400000, "feeAssetId": null, "timestamp": 1612266806256, "version": 2, "chainId": 84, "sender": "3MzfWTz6oukwgSkLZZ1PaXJ5G4Hs1SbY1EL", "senderPublicKey": "BNd7hiKD3bj6sP3wADPJJW1tzLQ1UZeg1uDQC3HrELMF", "proofs": [ "2zt2nRTP2uDzdb7Kix9XEajn9HyiKqMX72zY8xiVfwmvc9uCjtQVghWRFMoJnBkSDmCXPexLUXQtqq1kp6eYDHW3" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAALAAAAAAROT05FAgAAAARub25lAAAAAAZBQ1RJVkUCAAAABmFjdGl2ZQAAAAAHZGFwcEtleQIAAAAEZGFwcAAAAAAIb3duZXJLZXkCAAAABW93bmVyAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAABFnZXRFeHROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQ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cga2V5IGlzc3VlcgMDCQEAAAACIT0AAAACBQAAAAlvd25lckFkZHIIBQAAAAFpAAAABmNhbGxlcgkBAAAAAiE9AAAAAgUAAAAIZGFwcEFkZHIIBQAAAAFpAAAABmNhbGxlcgcJAAACAAAAAQIAAAANTm90IHBlcm1pdHRlZAMJAQAAAAIhPQAAAAIJAQAAAAhuZnRWYWx1ZQAAAAEFAAAABWtleUlEBQAAAAROT05FCQAAAgAAAAECAAAAHFRoaXMga2V5IGlzIGFscmVhZHkgYXNzaWduZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAABm5mdEtleQAAAAEFAAAABWtleUlEBQAAAAZBQ1RJVkUFAAAAA25pbAAAAAFpAQAAAAlyZW1vdmVLZXkAAAABAAAABWtleUlEBAAAAAhkYXBwQWRkcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAC2dldFN0ckJ5S2V5AAAAAQUAAAAHZGFwcEtleQQAAAAJb3duZXJBZGRyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAALZ2V0U3RyQnlLZXkAAAABBQAAAAhvd25lcktleQMDCQEAAAACIT0AAAACBQAAAAlvd25lckFkZHIIBQAAAAFpAAAABmNhbGxlcgkBAAAAAiE9AAAAAgUAAAAIZGFwcEFkZHIIBQAAAAFpAAAABmNhbGxlcgcJAAACAAAAAQIAAAANTm90IHBlcm1pdHRlZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAGbmZ0S2V5AAAAAQUAAAAFa2V5SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56FLaHA==", "height": 1380504, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+let b = "active"
7+
8+let c = "dapp"
9+
10+let d = "owner"
11+
12+func e (f) = {
13+ let g = getInteger(this, f)
14+ if ($isInstanceOf(g, "Int"))
15+ then {
16+ let h = g
17+ h
18+ }
19+ else 0
20+ }
21+
22+
23+func i (f) = {
24+ let g = getString(this, f)
25+ if ($isInstanceOf(g, "String"))
26+ then {
27+ let h = g
28+ h
29+ }
30+ else a
31+ }
32+
33+
34+func j (f) = {
35+ let g = getInteger(this, f)
36+ if ($isInstanceOf(g, "Int"))
37+ then {
38+ let h = g
39+ h
40+ }
41+ else 0
42+ }
43+
44+
45+func k (l,f) = {
46+ let g = getString(l, f)
47+ if ($isInstanceOf(g, "String"))
48+ then {
49+ let h = g
50+ h
51+ }
52+ else a
53+ }
54+
55+
56+func m (n) = ("key_" + n)
57+
58+
59+func o (n) = i(m(n))
60+
61+
62+func p (q) = {
63+ let g = assetInfo(q)
64+ if ($isInstanceOf(g, "Asset"))
65+ then {
66+ let r = g
67+ r
68+ }
69+ else throw("Not a key")
70+ }
71+
72+
73+@Callable(s)
74+func addKey (t) = {
75+ let u = toBase58String(s.caller.bytes)
76+ let v = p(fromBase58String(t))
77+ let w = addressFromStringValue(i(c))
78+ let x = addressFromStringValue(i(d))
79+ if ((v.issuer != w))
80+ then throw("Wrong key issuer")
81+ else if (if ((x != s.caller))
82+ then (w != s.caller)
83+ else false)
84+ then throw("Not permitted")
85+ else if ((o(t) != a))
86+ then throw("This key is already assigned")
87+ else [StringEntry(m(t), b)]
88+ }
89+
90+
91+
92+@Callable(s)
93+func removeKey (t) = {
94+ let w = addressFromStringValue(i(c))
95+ let x = addressFromStringValue(i(d))
96+ if (if ((x != s.caller))
97+ then (w != s.caller)
98+ else false)
99+ then throw("Not permitted")
100+ else [DeleteEntry(m(t))]
101+ }
102+
103+
104+@Verifier(y)
105+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
106+

github/deemru/w8io/169f3d6 
47.56 ms