tx · FqLWGMt8tdDw1xzW4MzwEmtaqyt1VJMpmDsHNy8yUr8C

3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw:  -0.01000000 Waves

2022.10.17 13:49 [2276271] smart account 3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw > SELF 0.00000000 Waves

{ "type": 13, "id": "FqLWGMt8tdDw1xzW4MzwEmtaqyt1VJMpmDsHNy8yUr8C", "fee": 1000000, "feeAssetId": null, "timestamp": 1666003800545, "version": 2, "chainId": 84, "sender": "3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw", "senderPublicKey": "6NSakbUsm1WyESQ8yj3qpc1kQUfHWNd5C6CHVpbs4X7c", "proofs": [ "47t4BMUGo7Qw7FDEe45zhPhFxNJKNY8skRoXSAUvhuTRCHFoRytRAhmGF57tzUiPV7tmXZrRvMe6DTwrpvTQtnuB" ], "script": "base64:AAIFAAAAAAAAABcIAhIDCgEIEgMKAQgSAwoBCBIECgIICAAAABEBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABNwYXJzZUFkZHJlc3NPclRocm93AAAAAQAAAAxtYXliZUFkZHJlc3MJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABBQAAAAxtYXliZUFkZHJlc3MJAAEsAAAAAgkAASwAAAACAgAAABpDYW4ndCBwYXJzZSBhZGRyZXNzIGZyb20gJwUAAAAMbWF5YmVBZGRyZXNzAgAAAAEnAQAAAA1rZXlfTmFtZV9hZGRyAAAAAQAAAARuYW1lCQABLAAAAAIJAAEsAAAAAgIAAAAFT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AAAAAABQAAAAR1bml0CQAAAgAAAAECAAAAFE5hbWUgY2Fubm90IGJlIGVtcHR5BQAAAANuaWwJAAUUAAAAAgUAAAADbmlsCQEAAAAIX3Jlc29sdmUAAAACBQAAAARuYW1lAgAAAARhZGRyAAAAA2ludgEAAAAHc2V0QWRkcgAAAAIAAAAEbmFtZQAAAAdhZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAAJbW9kaWZpZXJzAAAAAQkABEwAAAACAwkAAGYAAAACCQABMQAAAAEFAAAABG5hbWUAAAAAAAAAAAAFAAAABHVuaXQJAAACAAAAAQIAAAAUTmFtZSBjYW5ub3QgYmUgZW1wdHkJAARMAAAAAgkBAAAACW9ubHlPd25lcgAAAAIFAAAAA2ludgUAAAAEbmFtZQkABEwAAAACAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQmAAAAAQUAAAAHYWRkcmVzcwUAAAAEdW5pdAkAAAIAAAABAgAAABVBZGRyZXNzIG11c3QgYmUgdmFsaWQFAAAAA25pbAkBAAAACF9zZXRBZGRyAAAAAgUAAAAEbmFtZQUAAAAHYWRkcmVzcwAAAADsCN+Y", "height": 2276271, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CyYLz38JrK3Q6PzpxbkjXqST3fqc6tyYkzVp52qe5tun Next: Gdsc7XwZzoKPRENzieaFGcczf27XDvtadgU4W9XM9vm Diff:
OldNewDifferences
8989 let I = {
9090 let p = F
9191 if (("addr" == p))
92- then $Tuple3("addr", [value(n)], r(g))
93- else $Tuple3(unit, unit, unit)
92+ then $Tuple2("addr", [value(n)])
93+ else $Tuple2(unit, unit)
9494 }
9595 let J = I._1
9696 let K = I._2
97- let L = I._3
98- let M = {
97+ let L = {
9998 let p = invoke(value(H), "supportsInterface", [F], nil)
10099 if ($isInstanceOf(p, "Boolean"))
101100 then {
102- let M = p
103- M
101+ let L = p
102+ L
104103 }
105104 else false
106105 }
107106 if (if (!(isDefined(H)))
108107 then true
109108 else (size(n) == 0))
110- then L
111- else if (!(M))
109+ then unit
110+ else if (!(L))
112111 then unit
113112 else {
114113 let p = invoke(value(H), value(J), value(K), nil)
115114 if ($isInstanceOf(p, "String"))
116115 then {
117- let N = p
118- if (w(N))
119- then N
116+ let M = p
117+ if (w(M))
118+ then M
120119 else unit
121120 }
122121 else unit
125124
126125
127126 @Callable(u)
128-func init (O) = valueOrElse(x([z(u)]), [StringEntry(h, O)])
127+func init (N) = valueOrElse(x([z(u)]), [StringEntry(h, N)])
129128
130129
131130
132131 @Callable(u)
133-func supportsInterface (P) = $Tuple2(nil, (P == "addr"))
132+func supportsInterface (O) = $Tuple2(nil, (O == "addr"))
134133
135134
136135
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 func f (g) = (("Name_" + g) + "_addr")
1111
1212
1313 let h = "registry"
1414
1515 let i = d(a(this, h))
1616
1717 func j (g) = {
1818 let k = split(g, ".")
1919 let l = (size(k) - 1)
2020 let m = k[l]
2121 let n = makeString(removeByIndex(k, l), ".")
2222 $Tuple2(m, n)
2323 }
2424
2525
2626 func o (g) = {
2727 let p = invoke(i, "owner", [g], nil)
2828 if ($isInstanceOf(p, "String"))
2929 then {
3030 let q = p
3131 q
3232 }
3333 else unit
3434 }
3535
3636
3737 func r (g) = valueOrElse(getString(this, f(g)), o(j(g)._1))
3838
3939
4040 func s (g,b) = [StringEntry(f(g), b)]
4141
4242
4343 func t (u) = (u.caller == this)
4444
4545
4646 func v (u,g) = (toString(u.caller) == valueOrElse(o(g), ""))
4747
4848
4949 func w (e) = isDefined(addressFromString(e))
5050
5151
5252 func x (y) = unit
5353
5454
5555 func z (u) = if (t(u))
5656 then unit
5757 else throw("Permission denied")
5858
5959
6060 func A (u,g) = if (if (t(u))
6161 then true
6262 else v(u, g))
6363 then unit
6464 else throw("Permission denied")
6565
6666
6767 func B (g) = {
6868 let C = j(g)
6969 let m = C._1
7070 let n = C._2
7171 if ((size(n) == 0))
7272 then $Tuple2(unit, g)
7373 else {
7474 let p = invoke(i, "resolver", [m], nil)
7575 if ($isInstanceOf(p, "String"))
7676 then {
7777 let D = p
7878 $Tuple2(addressFromString(D), n)
7979 }
8080 else $Tuple2(unit, g)
8181 }
8282 }
8383
8484
8585 func E (g,F) = {
8686 let G = B(g)
8787 let H = G._1
8888 let n = G._2
8989 let I = {
9090 let p = F
9191 if (("addr" == p))
92- then $Tuple3("addr", [value(n)], r(g))
93- else $Tuple3(unit, unit, unit)
92+ then $Tuple2("addr", [value(n)])
93+ else $Tuple2(unit, unit)
9494 }
9595 let J = I._1
9696 let K = I._2
97- let L = I._3
98- let M = {
97+ let L = {
9998 let p = invoke(value(H), "supportsInterface", [F], nil)
10099 if ($isInstanceOf(p, "Boolean"))
101100 then {
102- let M = p
103- M
101+ let L = p
102+ L
104103 }
105104 else false
106105 }
107106 if (if (!(isDefined(H)))
108107 then true
109108 else (size(n) == 0))
110- then L
111- else if (!(M))
109+ then unit
110+ else if (!(L))
112111 then unit
113112 else {
114113 let p = invoke(value(H), value(J), value(K), nil)
115114 if ($isInstanceOf(p, "String"))
116115 then {
117- let N = p
118- if (w(N))
119- then N
116+ let M = p
117+ if (w(M))
118+ then M
120119 else unit
121120 }
122121 else unit
123122 }
124123 }
125124
126125
127126 @Callable(u)
128-func init (O) = valueOrElse(x([z(u)]), [StringEntry(h, O)])
127+func init (N) = valueOrElse(x([z(u)]), [StringEntry(h, N)])
129128
130129
131130
132131 @Callable(u)
133-func supportsInterface (P) = $Tuple2(nil, (P == "addr"))
132+func supportsInterface (O) = $Tuple2(nil, (O == "addr"))
134133
135134
136135
137136 @Callable(u)
138137 func addr (g) = valueOrElse(x([if ((size(g) > 0))
139138 then unit
140139 else throw("Name cannot be empty")]), $Tuple2(nil, E(g, "addr")))
141140
142141
143142
144143 @Callable(u)
145144 func setAddr (g,b) = valueOrElse(x([if ((size(g) > 0))
146145 then unit
147146 else throw("Name cannot be empty"), A(u, g), if (isDefined(addressFromString(b)))
148147 then unit
149148 else throw("Address must be valid")]), s(g, b))
150149
151150

github/deemru/w8io/169f3d6 
38.02 ms