tx · AxC6Eq7fsuYbjDZaAB9VXNwcdsP6SHQpGKPtsr1JBegJ

3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc:  -0.01000000 Waves

2022.10.09 17:16 [2264912] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves

{ "type": 13, "id": "AxC6Eq7fsuYbjDZaAB9VXNwcdsP6SHQpGKPtsr1JBegJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1665325011091, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "DSGubpRTU3oV3kesuMoLEKK5MNynFR8uC5Rj5V7BFLL6EXStnmhwjq4mxUhVS6Vm1yonyuKmjiYEFokvatpR5Ma" ], "script": "base64:AAIFAAAAAAAAACgIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgUKAwgIARIDCgEIAAAAJQEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAEWdldEludGVnZXJPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2VBZGRyZXNzT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AAAEJAAGRAAAAAgUAAAANaXNzdWVOZXdUb2tlbgAAAAAAAAAAAAQAAAALbmV3VG9rZW5TdHIJAAJYAAAAAQUAAAAKbmV3VG9rZW5JZAQAAAAXcmVzdG9yZU5hbWVXaXRoTmV3VG9rZW4JAQAAABVfcmVzdG9yZU5hbWVXaXRoVG9rZW4AAAACBQAAAARuYW1lBQAAAAtuZXdUb2tlblN0cgQAAAAXdHJhbnNmZXJOZXdUb2tlblRvT3duZXIJAQAAABVfdHJhbnNmZXJUb2tlblRvT3duZXIAAAACBQAAAAtuZXdUb2tlblN0cgUAAAAPbmV3T3duZXJBZGRyZXNzCQAETgAAAAIJAAROAAAAAgUAAAANaXNzdWVOZXdUb2tlbgUAAAAXcmVzdG9yZU5hbWVXaXRoTmV3VG9rZW4FAAAAF3RyYW5zZmVyTmV3VG9rZW5Ub093bmVyAwMFAAAADGlzVG9rZW5Pd25lcgUAAAAIaGFzVG9rZW4HCQAAAgAAAAECAAAAHFlvdSBhbHJlYWR5IG93biBhIG5hbWUgdG9rZW4DCQEAAAABIQAAAAEFAAAACGhhc1Rva2VuCQAAAgAAAAECAAAAG1lvdSBkb24ndCBoYXZlIGEgbmFtZSB0b2tlbgkBAAAACV9zZXRPd25lcgAAAAIFAAAABG5hbWUFAAAAD25ld093bmVyQWRkcmVzcwAAAADIQA2S", "height": 2264912, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GBBmbyvLp95rfLqWbqiw1SFEJwiWg1PiwpTQR7z6SPPE Next: 67CL4ykCEXAiVgq857v7a6AV5g4W4Ym2V6wrszbeH6hF Diff:
OldNewDifferences
195195
196196
197197 @Callable(aa)
198+func owner (h) = $Tuple2(nil, v(h))
199+
200+
201+
202+@Callable(aa)
198203 func register (h,u,af) = valueOrElse(ai([al(aa), if (L(h))
199204 then unit
200205 else throw((("`" + h) + "` cannot be registered")), if ((lastBlock.timestamp >= af))
219224 let at = toString(as)
220225 let ao = valueOrErrorMessage(w(h), (("No token is issued for `" + h) + "`"))
221226 let l = fromBase58String(ao)
222- let au = {
227+ let au = (assetBalance(as, l) == 1)
228+ let av = ab(aa, h)
229+ let aw = {
223230 let D = assetInfo(l)
224231 if ($isInstanceOf(D, "Asset"))
225232 then {
226- let av = D
227- (av.quantity == 1)
233+ let ax = D
234+ (ax.quantity == 1)
228235 }
229236 else false
230237 }
231- if (ab(aa, h))
232- then if (au)
233- then throw(if ((assetBalance(as, l) == 1))
234- then "You already own a name token"
235- else "Another user owns a name token")
236- else {
237- let aw = ad(h)
238- let ax = calculateAssetId(aw[0])
239- let ay = toBase58String(ax)
240- let az = ag(h, ay)
241- let aA = ah(ay, at)
242- ((aw ++ az) ++ aA)
243- }
244- else if ((assetBalance(as, l) == 0))
245- then throw("You don't have a name token")
246- else t(h, at)
238+ if (if (av)
239+ then !(aw)
240+ else false)
241+ then {
242+ let ay = ad(h)
243+ let az = calculateAssetId(ay[0])
244+ let aA = toBase58String(az)
245+ let aB = ag(h, aA)
246+ let aC = ah(aA, at)
247+ ((ay ++ aB) ++ aC)
248+ }
249+ else if (if (av)
250+ then au
251+ else false)
252+ then throw("You already own a name token")
253+ else if (!(au))
254+ then throw("You don't have a name token")
255+ else t(h, at)
247256 })
248257
249258
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("Token", l, "name")
1717
1818
1919 func m (h) = g("Name", h, "token")
2020
2121
2222 func n (h) = g("Name", h, "owner")
2323
2424
2525 func o (h) = g("Name", h, "expiresAt")
2626
2727
2828 func p (h) = g("Name", h, "createdAt")
2929
3030
3131 let q = "rootAddress"
3232
3333 let r = "nameTTL"
3434
3535 let s = "controllers"
3636
3737 func t (h,u) = [StringEntry(n(h), u)]
3838
3939
4040 func v (h) = getString(this, n(h))
4141
4242
4343 func w (h) = getString(this, m(h))
4444
4545
4646 func x (h) = getInteger(this, p(h))
4747
4848
4949 func y (h) = getInteger(this, o(h))
5050
5151
5252 func z () = getString(this, s)
5353
5454
5555 let A = a(this, q)
5656
5757 let B = e(A)
5858
5959 let C = {
6060 let D = z()
6161 if ($isInstanceOf(D, "String"))
6262 then {
6363 let E = D
6464 split(E, ",")
6565 }
6666 else nil
6767 }
6868
6969 let F = d(this, r)
7070
7171 func G (h) = isDefined(getString(this, m(h)))
7272
7373
7474 func H (h) = isDefined(x(h))
7575
7676
7777 func I (h) = {
7878 let D = y(h)
7979 if ($isInstanceOf(D, "Int"))
8080 then {
8181 let J = D
8282 (lastBlock.timestamp > J)
8383 }
8484 else false
8585 }
8686
8787
8888 func K (h) = if (if (G(h))
8989 then H(h)
9090 else false)
9191 then !(I(h))
9292 else false
9393
9494
9595 func L (h) = {
9696 let M = "abcdefghijklmnopqrstuvwxyz1234567890-"
9797 func N (O,P) = if (O)
9898 then contains(M, P)
9999 else false
100100
101101 let Q = if (if (if (if ((size(h) > 0))
102102 then (63 >= size(h))
103103 else false)
104104 then (indexOf(h, "-") != 0)
105105 else false)
106106 then (lastIndexOf(h, "-") != (size(h) - 1))
107107 else false)
108108 then {
109109 let R = split(h, "")
110110 let S = size(R)
111111 let T = true
112112 func U (V,W) = if ((W >= S))
113113 then V
114114 else N(V, R[W])
115115
116116 func X (V,W) = if ((W >= S))
117117 then V
118118 else throw("List size exceeds 63")
119119
120120 X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63)
121121 }
122122 else false
123123 let Y = if (G(h))
124124 then !(I(h))
125125 else false
126126 if (!(Y))
127127 then Q
128128 else false
129129 }
130130
131131
132132 func Z (aa) = (aa.caller == this)
133133
134134
135135 func ab (aa,h) = (toString(aa.caller) == valueOrErrorMessage(v(h), (("Owner for `" + h) + "` is not found")))
136136
137137
138138 func ac (b) = containsElement(C, b)
139139
140140
141141 func ad (h) = [Issue(if ((size(h) > 16))
142142 then (take(h, 15) + "~")
143143 else take(h, 16), h, 1, 0, false)]
144144
145145
146146 func ae (h,l,af) = [StringEntry(m(h), l), StringEntry(k(l), h), IntegerEntry(p(h), af), IntegerEntry(o(h), (af + F))]
147147
148148
149149 func ag (h,l) = [StringEntry(m(h), l), StringEntry(k(l), h)]
150150
151151
152152 func ah (l,u) = [ScriptTransfer(e(u), 1, fromBase58String(l))]
153153
154154
155155 func ai (aj) = unit
156156
157157
158158 func ak (aa) = if (Z(aa))
159159 then unit
160160 else throw("Permission denied")
161161
162162
163163 func al (aa) = if (if (Z(aa))
164164 then true
165165 else ac(toString(aa.caller)))
166166 then unit
167167 else throw("Permission denied")
168168
169169
170170 @Callable(aa)
171171 func init (A,F) = valueOrElse(ai([ak(aa)]), [StringEntry(q, A), IntegerEntry(r, F)])
172172
173173
174174
175175 @Callable(aa)
176176 func addController (b) = valueOrElse(ai([ak(aa), if (!(ac(b)))
177177 then unit
178178 else throw((("Controller `" + b) + "` is already registered"))]), [StringEntry(s, makeString((C :+ b), ","))])
179179
180180
181181
182182 @Callable(aa)
183183 func removeController (b) = valueOrElse(ai([ak(aa), if (ac(b))
184184 then unit
185185 else throw((("Controller `" + b) + "` is not registered"))]), {
186186 let am = value(indexOf(C, b))
187187 [StringEntry(s, makeString(removeByIndex(C, am), ","))]
188188 })
189189
190190
191191
192192 @Callable(aa)
193193 func available (h) = $Tuple2(nil, L(h))
194194
195195
196196
197197 @Callable(aa)
198+func owner (h) = $Tuple2(nil, v(h))
199+
200+
201+
202+@Callable(aa)
198203 func register (h,u,af) = valueOrElse(ai([al(aa), if (L(h))
199204 then unit
200205 else throw((("`" + h) + "` cannot be registered")), if ((lastBlock.timestamp >= af))
201206 then unit
202207 else throw("createdAt cannot be in the future")]), {
203208 let an = ad(h)
204209 let l = calculateAssetId(an[0])
205210 let ao = toBase58String(l)
206211 let ap = ae(h, ao, af)
207212 let aq = ah(ao, u)
208213 let ar = t(h, u)
209214 (((an ++ ap) ++ aq) ++ ar)
210215 })
211216
212217
213218
214219 @Callable(aa)
215220 func reclaim (h) = valueOrElse(ai([if (K(h))
216221 then unit
217222 else throw((("`" + h) + "` is not active"))]), {
218223 let as = aa.caller
219224 let at = toString(as)
220225 let ao = valueOrErrorMessage(w(h), (("No token is issued for `" + h) + "`"))
221226 let l = fromBase58String(ao)
222- let au = {
227+ let au = (assetBalance(as, l) == 1)
228+ let av = ab(aa, h)
229+ let aw = {
223230 let D = assetInfo(l)
224231 if ($isInstanceOf(D, "Asset"))
225232 then {
226- let av = D
227- (av.quantity == 1)
233+ let ax = D
234+ (ax.quantity == 1)
228235 }
229236 else false
230237 }
231- if (ab(aa, h))
232- then if (au)
233- then throw(if ((assetBalance(as, l) == 1))
234- then "You already own a name token"
235- else "Another user owns a name token")
236- else {
237- let aw = ad(h)
238- let ax = calculateAssetId(aw[0])
239- let ay = toBase58String(ax)
240- let az = ag(h, ay)
241- let aA = ah(ay, at)
242- ((aw ++ az) ++ aA)
243- }
244- else if ((assetBalance(as, l) == 0))
245- then throw("You don't have a name token")
246- else t(h, at)
238+ if (if (av)
239+ then !(aw)
240+ else false)
241+ then {
242+ let ay = ad(h)
243+ let az = calculateAssetId(ay[0])
244+ let aA = toBase58String(az)
245+ let aB = ag(h, aA)
246+ let aC = ah(aA, at)
247+ ((ay ++ aB) ++ aC)
248+ }
249+ else if (if (av)
250+ then au
251+ else false)
252+ then throw("You already own a name token")
253+ else if (!(au))
254+ then throw("You don't have a name token")
255+ else t(h, at)
247256 })
248257
249258

github/deemru/w8io/026f985 
47.94 ms