tx · HJs69bGWLZoxDjkYVFWb8CtmkRXR3TQnB3348YFQSrXm

3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY:  -0.01000000 Waves

2022.10.25 12:39 [2287750] smart account 3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY > SELF 0.00000000 Waves

{ "type": 13, "id": "HJs69bGWLZoxDjkYVFWb8CtmkRXR3TQnB3348YFQSrXm", "fee": 1000000, "feeAssetId": null, "timestamp": 1666690815608, "version": 2, "chainId": 84, "sender": "3MvCgypmBZFTRqL5HuRwCgS7maC7Fkv7pZY", "senderPublicKey": "BqGSAiYghM27RZ2Axx3bmTudq9koHT4575AeK31Wx2Pp", "proofs": [ "564tJsxG5iAYDEoKevyAjpBmipKPXTyQMcazqzmmTLyziaruZ2pqZsyEZk15z1ZhwjWiguNo3R97qgm1ddN9Ambb" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgQKAggIEgMKAQgSBAoCCAgSAwoBCBIFCgMICAgSAwoBCAAAABUBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABFnZXRJbnRlZ2VyT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3BhcnNlQWRkcmVzc09yVGhyb3cA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l0aW1lc3RhbXAFAAAAC25hbWVDcmVhdGVkBwUAAAALbmFtZUNyZWF0ZWQFAAAABHVuaXQFAAAABHVuaXQEAAAAC25hbWVFeHBpcmVzBAAAAAckbWF0Y2gwCQEAAAAXX2NhbGxTdXBwb3J0ZWRJbnRlcmZhY2UAAAADBQAAAApyZWdpc3RyYW50AgAAAA5nZXROYW1lRXhwaXJlcwUAAAAKcmVzdExhYmVscwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAtuYW1lRXhwaXJlcwUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAALbmFtZUV4cGlyZXMAAAAAAAAAAAAFAAAAC25hbWVFeHBpcmVzBQAAAAR1bml0BQAAAAR1bml0BAAAAAppc1Jvb3ROYW1lAwkAAGYAAAACCQABMQAAAAEFAAAACWxhc3RMYWJlbAAAAAAAAAAAAAkAAAAAAAACCQABMQAAAAEFAAAACnJlc3RMYWJlbHMAAAAAAAAAAAAHAwMFAAAACmlzUm9vdE5hbWUGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAA9tYXliZVJlZ2lzdHJhbnQJAAUUAAAAAgUAAAADbmlsCQAFFgAAAAQFAAAAEXJlZ2lzdHJhbnRBZGRyZXNzBQAAAA5wYXJlbnRSZXNvbHZlcgUAAAANcGFyZW50Q3JlYXRlZAUAAAAEdW5pdAkABRQAAAACBQAAAANuaWwJAAUWAAAABAUAAAAFb3duZXIFAAAACHJlc29sdmVyBQAAAAtuYW1lQ3JlYXRlZAUAAAALbmFtZUV4cGlyZXMAAAAAck3qBw==", "height": 2287750, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HQKJNcgRN3YhsZ2sAG5HFQ6LGi9FbojNaB2yCrm51qis Next: 9KvWEzhLVMZZ5EzZdcz6cpoG6P1KyXzJh34posmuipBP Diff:
OldNewDifferences
100100
101101
102102 @Callable(y)
103+func getOwner (l) = $Tuple2(nil, o(l))
104+
105+
106+
107+@Callable(y)
103108 func setOwner (l,q) = valueOrElse(O([R(y, l), if (A(q))
104109 then unit
105110 else throw("Owner must be a valid address")]), p(l, q))
107112
108113
109114 @Callable(y)
110-func owner (l) = $Tuple2(nil, o(l))
111-
112-
113-
114-@Callable(y)
115-func resolver (l) = $Tuple2(nil, r(l))
115+func getResolver (l) = $Tuple2(nil, r(l))
116116
117117
118118
124124
125125
126126 @Callable(y)
127-func nameCreated (l) = $Tuple2(nil, u(l))
127+func getNameCreated (l) = $Tuple2(nil, u(l))
128128
129129
130130
154154 let V = r(E)
155155 let W = u(E)
156156 let q = {
157- let J = G(H, "owner", F)
157+ let J = G(H, "getOwner", F)
158158 if ($isInstanceOf(J, "String"))
159159 then {
160160 let q = J
165165 else unit
166166 }
167167 let t = {
168- let J = G(H, "resolver", F)
168+ let J = G(H, "getResolver", F)
169169 if ($isInstanceOf(J, "String"))
170170 then {
171171 let t = J
176176 else unit
177177 }
178178 let X = {
179- let J = G(H, "nameCreated", F)
179+ let J = G(H, "getNameCreated", F)
180180 if ($isInstanceOf(J, "Int"))
181181 then {
182182 let X = J
189189 else unit
190190 }
191191 let Y = {
192- let J = G(H, "nameExpires", F)
192+ let J = G(H, "getNameExpires", F)
193193 if ($isInstanceOf(J, "Int"))
194194 then {
195195 let Y = J
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 (b,c) = valueOrErrorMessage(getInteger(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
88
99
1010 func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'"))
1111
1212
1313 func g (h,i,j) = ((((h + "_") + i) + "_") + j)
1414
1515
1616 func k (l) = g("Name", l, "owner")
1717
1818
1919 func m (l) = g("Name", l, "resolver")
2020
2121
2222 func n (l) = g("Name", l, "createdAt")
2323
2424
2525 func o (l) = getString(this, k(l))
2626
2727
2828 func p (l,q) = [StringEntry(k(l), q)]
2929
3030
3131 func r (l) = getString(this, m(l))
3232
3333
3434 func s (l,t) = [StringEntry(m(l), t)]
3535
3636
3737 func u (l) = getInteger(this, n(l))
3838
3939
4040 func v (l,w) = [IntegerEntry(n(l), w)]
4141
4242
4343 func x (y) = (y.caller == this)
4444
4545
4646 func z (y,l) = (toString(y.caller) == valueOrElse(o(l), ""))
4747
4848
4949 func A (f) = isDefined(addressFromString(f))
5050
5151
5252 func B (h) = {
5353 let C = split(h, ".")
5454 let D = (size(C) - 1)
5555 let E = C[D]
5656 let F = makeString(removeByIndex(C, D), ".")
5757 $Tuple2(E, F)
5858 }
5959
6060
6161 func G (H,I,F) = {
6262 let J = invoke(H, "supportsInterface", [I], nil)
6363 if ($isInstanceOf(J, "Boolean"))
6464 then {
6565 let K = J
6666 if (!(K))
6767 then unit
6868 else {
6969 let L = invoke(value(H), I, [F], nil)
7070 if ($isInstanceOf(L, "String"))
7171 then {
7272 let M = L
7373 M
7474 }
7575 else if ($isInstanceOf(L, "Int"))
7676 then {
7777 let N = L
7878 N
7979 }
8080 else unit
8181 }
8282 }
8383 else unit
8484 }
8585
8686
8787 func O (P) = unit
8888
8989
9090 func Q (y) = if (x(y))
9191 then unit
9292 else throw("Permission denied")
9393
9494
9595 func R (y,l) = if (if (x(y))
9696 then true
9797 else z(y, l))
9898 then unit
9999 else throw("Permission denied")
100100
101101
102102 @Callable(y)
103+func getOwner (l) = $Tuple2(nil, o(l))
104+
105+
106+
107+@Callable(y)
103108 func setOwner (l,q) = valueOrElse(O([R(y, l), if (A(q))
104109 then unit
105110 else throw("Owner must be a valid address")]), p(l, q))
106111
107112
108113
109114 @Callable(y)
110-func owner (l) = $Tuple2(nil, o(l))
111-
112-
113-
114-@Callable(y)
115-func resolver (l) = $Tuple2(nil, r(l))
115+func getResolver (l) = $Tuple2(nil, r(l))
116116
117117
118118
119119 @Callable(y)
120120 func setResolver (l,t) = valueOrElse(O([R(y, l), if (A(t))
121121 then unit
122122 else throw("Resolver must be a valid contract address")]), s(l, t))
123123
124124
125125
126126 @Callable(y)
127-func nameCreated (l) = $Tuple2(nil, u(l))
127+func getNameCreated (l) = $Tuple2(nil, u(l))
128128
129129
130130
131131 @Callable(y)
132132 func setRecord (l,q,t) = valueOrElse(O([Q(y)]), ((p(l, q) ++ s(l, t)) ++ v(l, lastBlock.timestamp)))
133133
134134
135135
136136 @Callable(y)
137137 func whoIs (h) = valueOrElse(O([if ((size(h) > 0))
138138 then unit
139139 else throw("Name cannot be empty")]), {
140140 let S = B(h)
141141 let E = S._1
142142 let F = S._2
143143 let T = o(E)
144144 let U = {
145145 let J = T
146146 if ($isInstanceOf(J, "String"))
147147 then {
148148 let q = J
149149 addressFromString(q)
150150 }
151151 else unit
152152 }
153153 let H = value(U)
154154 let V = r(E)
155155 let W = u(E)
156156 let q = {
157- let J = G(H, "owner", F)
157+ let J = G(H, "getOwner", F)
158158 if ($isInstanceOf(J, "String"))
159159 then {
160160 let q = J
161161 if (A(q))
162162 then q
163163 else unit
164164 }
165165 else unit
166166 }
167167 let t = {
168- let J = G(H, "resolver", F)
168+ let J = G(H, "getResolver", F)
169169 if ($isInstanceOf(J, "String"))
170170 then {
171171 let t = J
172172 if (A(t))
173173 then t
174174 else unit
175175 }
176176 else unit
177177 }
178178 let X = {
179- let J = G(H, "nameCreated", F)
179+ let J = G(H, "getNameCreated", F)
180180 if ($isInstanceOf(J, "Int"))
181181 then {
182182 let X = J
183183 if (if ((X > 0))
184184 then (lastBlock.timestamp > X)
185185 else false)
186186 then X
187187 else unit
188188 }
189189 else unit
190190 }
191191 let Y = {
192- let J = G(H, "nameExpires", F)
192+ let J = G(H, "getNameExpires", F)
193193 if ($isInstanceOf(J, "Int"))
194194 then {
195195 let Y = J
196196 if ((Y > 0))
197197 then Y
198198 else unit
199199 }
200200 else unit
201201 }
202202 let Z = if ((size(E) > 0))
203203 then (size(F) == 0)
204204 else false
205205 if (if (Z)
206206 then true
207207 else !(isDefined(U)))
208208 then $Tuple2(nil, $Tuple4(T, V, W, unit))
209209 else $Tuple2(nil, $Tuple4(q, t, X, Y))
210210 })
211211
212212

github/deemru/w8io/169f3d6 
53.13 ms