tx · DUyev2FfWN56XqEQErT2evC3nhwhE5SD6HpcpBTADopn

3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY:  -0.00300000 Waves

2022.10.11 08:23 [2267254] smart account 3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY > SELF 0.00000000 Waves

{ "type": 13, "id": "DUyev2FfWN56XqEQErT2evC3nhwhE5SD6HpcpBTADopn", "fee": 300000, "feeAssetId": null, "timestamp": 1665465778197, "version": 2, "chainId": 84, "sender": "3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY", "senderPublicKey": "BqGSAiYghM27RZ2Axx3bmTudq9koHT4575AeK31Wx2Pp", "proofs": [ "5dQkyG18EbkbueXhh58HKmpgizvZHaDwJeoPmR39KFbc6sNy9u3ArHWYhRzJbS3gmQKrdN3gsJSvDoAbYcPkWHW1" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIDCgEIEgQKAggIEgMKAQgSAwoBCBIFCgMICAgAAAASAQAAABBnZXRTdHJpbmdPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAARZ2V0SW50ZWdlck9yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQaAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABNwYXJzZUFkZHJlc3NPclRocm93AAAAAQAAAAxtYX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cgkBAAAADV9zZXRDcmVhdGVkQXQAAAACBQAAAARub2RlCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAAAAAA+BpmU", "height": 2267254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HDyUfaRxWPV3FKrdF6et8zv8SLf3T75DAJ9jedtmEdk5 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b,c) = valueOrErrorMessage(getString(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
5+
6+
7+func d (b,c) = valueOrErrorMessage(getInteger(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
8+
9+
10+func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'"))
11+
12+
13+func g (h,i,j) = ((((h + "_") + i) + "_") + j)
14+
15+
16+func k (l) = g("Name", l, "owner")
17+
18+
19+func m (l) = g("Name", l, "resolver")
20+
21+
22+func n (l) = g("Name", l, "createdAt")
23+
24+
25+func o (l) = getString(this, k(l))
26+
27+
28+func p (l,q) = [StringEntry(k(l), q)]
29+
30+
31+func r (l) = getString(this, m(l))
32+
33+
34+func s (l,t) = [StringEntry(m(l), t)]
35+
36+
37+func u (l) = getInteger(this, n(l))
38+
39+
40+func v (l,w) = [IntegerEntry(n(l), w)]
41+
42+
43+func x (y) = (y.caller == this)
44+
45+
46+func z (y,l) = (toString(y.caller) == valueOrErrorMessage(o(l), (("Owner for the `" + l) + "` was not found")))
47+
48+
49+func A (B) = unit
50+
51+
52+func C (y) = if (x(y))
53+ then unit
54+ else throw("Permission denied")
55+
56+
57+func D (y,l) = if (if (x(y))
58+ then true
59+ else z(y, l))
60+ then unit
61+ else throw("Permission denied")
62+
63+
64+@Callable(y)
65+func setOwner (l,q) = valueOrElse(A([D(y, l)]), p(l, q))
66+
67+
68+
69+@Callable(y)
70+func owner (l) = $Tuple2(nil, o(l))
71+
72+
73+
74+@Callable(y)
75+func setResolver (l,t) = valueOrElse(A([D(y, l)]), s(l, t))
76+
77+
78+
79+@Callable(y)
80+func resolver (l) = $Tuple2(nil, r(l))
81+
82+
83+
84+@Callable(y)
85+func nameCreated (l) = $Tuple2(nil, u(l))
86+
87+
88+
89+@Callable(y)
90+func setRecord (l,q,t) = valueOrElse(A([C(y)]), ((p(l, q) ++ s(l, t)) ++ v(l, lastBlock.timestamp)))
91+
92+

github/deemru/w8io/169f3d6 
25.13 ms