tx · EKSF1CPRMXgvASwhygcKrR3guqfAtmEULJL9M6Wh8cYN

3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve:  -0.01000000 Waves

2022.10.17 10:47 [2276086] smart account 3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve > SELF 0.00000000 Waves

{ "type": 13, "id": "EKSF1CPRMXgvASwhygcKrR3guqfAtmEULJL9M6Wh8cYN", "fee": 1000000, "feeAssetId": null, "timestamp": 1665992904046, "version": 2, "chainId": 84, "sender": "3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve", "senderPublicKey": "3H3TbYHdAJUPh9yFbybSbc1SGAgghXJ3kVJxDE8duuPJ", "proofs": [ "3LrvnwKeMVL6nGE4SAmG4Kyh6U79ijzWPVBeWYYstYZ4WU5RiN5Km5D1wqqCumMTuBaCBpLeWvSzpakr1d6m1RKy" ], "script": "base64:AAIFAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBCAAAAAkBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABNwYXJzZUFkZHJlc3NPclRocm93AAAAAQAAAAxtYXliZUFkZHJlc3MJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABBQAAAAxtYXliZUFkZHJlc3MJAAEsAAAAAgkAASwAAAACAgAAABpDYW4ndCBwYXJzZSBhZGRyZXNzIGZyb20gJwUAAAAMbWF5YmVBZGRyZXNzAgAAAAEnAAAAAAxrZXlfcmVnaXN0cnkCAAAACHJlZ2lzdHJ5AAAAAAhyZWdpc3RyeQkBAAAAE3BhcnNlQWRkcmVzc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AAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADGtleV9yZWdpc3RyeQUAAAAPcmVnaXN0cnlBZGRyZXNzBQAAAANuaWwAAAADaW52AQAAABFzdXBwb3J0c0ludGVyZmFjZQAAAAEAAAALaW50ZXJmYWNlSWQJAAUUAAAAAgUAAAADbmlsCQAAAAAAAAIFAAAAC2ludGVyZmFjZUlkAgAAAARhZGRyAAAAA2ludgEAAAAEYWRkcgAAAAEAAAAFbGFiZWwJAAUUAAAAAgUAAAADbmlsCQEAAAAFX2FkZHIAAAABBQAAAAVsYWJlbAAAAABp+orG", "height": 2276086, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9WES6x6Cjiv7ud3ZbYEiHUdYX77SRs5YdJLy1UvCcSkY Next: FAHbfQ8K2HaAEMKjn9RJMJCdZEJyW6S1sGo8GMYQbbuV Diff:
OldNewDifferences
4848
4949
5050 @Callable(i)
51-func addr (n) = $Tuple2(nil, m(n))
51+func supportsInterface (x) = $Tuple2(nil, (x == "addr"))
5252
5353
5454
5555 @Callable(i)
56-func resolve (r) = valueOrElse(j([if ((size(r) > 0))
57- then unit
58- else throw("Name cannot be empty")]), {
59- let u = q(r)._1
60- $Tuple2(nil, m(u))
61- })
62-
63-
64-
65-@Callable(i)
66-func whoIs (r) = valueOrElse(j([if ((size(r) > 0))
67- then unit
68- else throw("Name cannot be empty")]), {
69- let u = q(r)._1
70- let x = {
71- let o = invoke(g, "owner", [u], nil)
72- if ($isInstanceOf(o, "String"))
73- then {
74- let p = o
75- p
76- }
77- else unit
78- }
79- let y = unit
80- let z = {
81- let o = invoke(g, "nameCreated", [u], nil)
82- if ($isInstanceOf(o, "Int"))
83- then {
84- let A = o
85- A
86- }
87- else unit
88- }
89- let B = {
90- let o = invoke(g, "nameExpires", [u], nil)
91- if ($isInstanceOf(o, "Int"))
92- then {
93- let C = o
94- C
95- }
96- else unit
97- }
98- let D = {
99- let o = invoke(g, "nameStatus", [u], nil)
100- if ($isInstanceOf(o, "String"))
101- then {
102- let E = o
103- E
104- }
105- else unit
106- }
107- $Tuple2(nil, $Tuple5(x, y, z, B, D))
108- })
56+func addr (n) = $Tuple2(nil, m(n))
10957
11058
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = valueOrErrorMessage(getString(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
55
66
77 func d (e) = valueOrErrorMessage(addressFromString(e), (("Can't parse address from '" + e) + "'"))
88
99
1010 let f = "registry"
1111
1212 let g = d(a(this, f))
1313
1414 func h (i) = (i.caller == this)
1515
1616
1717 func j (k) = unit
1818
1919
2020 func l (i) = if (h(i))
2121 then unit
2222 else throw("Permission denied")
2323
2424
2525 func m (n) = {
2626 let o = invoke(g, "owner", [n], nil)
2727 if ($isInstanceOf(o, "String"))
2828 then {
2929 let p = o
3030 p
3131 }
3232 else unit
3333 }
3434
3535
3636 func q (r) = {
3737 let s = split(r, ".")
3838 let t = (size(s) - 1)
3939 let u = s[t]
4040 let v = makeString(removeByIndex(s, t), ".")
4141 $Tuple2(u, v)
4242 }
4343
4444
4545 @Callable(i)
4646 func init (w) = valueOrElse(j([l(i)]), [StringEntry(f, w)])
4747
4848
4949
5050 @Callable(i)
51-func addr (n) = $Tuple2(nil, m(n))
51+func supportsInterface (x) = $Tuple2(nil, (x == "addr"))
5252
5353
5454
5555 @Callable(i)
56-func resolve (r) = valueOrElse(j([if ((size(r) > 0))
57- then unit
58- else throw("Name cannot be empty")]), {
59- let u = q(r)._1
60- $Tuple2(nil, m(u))
61- })
62-
63-
64-
65-@Callable(i)
66-func whoIs (r) = valueOrElse(j([if ((size(r) > 0))
67- then unit
68- else throw("Name cannot be empty")]), {
69- let u = q(r)._1
70- let x = {
71- let o = invoke(g, "owner", [u], nil)
72- if ($isInstanceOf(o, "String"))
73- then {
74- let p = o
75- p
76- }
77- else unit
78- }
79- let y = unit
80- let z = {
81- let o = invoke(g, "nameCreated", [u], nil)
82- if ($isInstanceOf(o, "Int"))
83- then {
84- let A = o
85- A
86- }
87- else unit
88- }
89- let B = {
90- let o = invoke(g, "nameExpires", [u], nil)
91- if ($isInstanceOf(o, "Int"))
92- then {
93- let C = o
94- C
95- }
96- else unit
97- }
98- let D = {
99- let o = invoke(g, "nameStatus", [u], nil)
100- if ($isInstanceOf(o, "String"))
101- then {
102- let E = o
103- E
104- }
105- else unit
106- }
107- $Tuple2(nil, $Tuple5(x, y, z, B, D))
108- })
56+func addr (n) = $Tuple2(nil, m(n))
10957
11058

github/deemru/w8io/169f3d6 
209.11 ms