tx · CPMAhrWJrvtNvhzcfrsLnPMbWgnQ1MwuWo4AunxW2oeY 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc: -0.01100000 Waves 2022.10.14 13:12 [2271881] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves
{ "type": 13, "id": "CPMAhrWJrvtNvhzcfrsLnPMbWgnQ1MwuWo4AunxW2oeY", "fee": 1100000, "feeAssetId": null, "timestamp": 1665742393717, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "3ojzhHTUvdZRyD4zaErDNTBfT51czj8592jePLkUYkH5ee5xiPH6wM1hdGZsin3fmiwNPXBjzPhHB578whWDtmRD" ], "script": "base64:AAIFAAAAAAAAADsIAhIDCgEBEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgBEgMKAQgSAwoBCAAAACQBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABFnZXRJbnRlZ2VyT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3Bh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25pbAkABRYAAAAEBQAAAApyZWdpc3RyYW50BQAAAAhyZXNvbHZlcgUAAAALbmFtZUNyZWF0ZWQFAAAAC25hbWVFeHBpcmVzAAAAAEDOSlc=", "height": 2271881, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 632aNsgstRdDpTr99wUrx2D8k5Lon7uwRnKrf5gan3Cm Next: 88N9etBM8frPBZgfv3L6mrYP6c8fm142DNj9H7fEw7Ad Diff:
Old | New | Differences | |
---|---|---|---|
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(X) | |
215 | + | func owner (h) = $Tuple2(nil, u(h)) | |
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | @Callable(X) | |
220 | + | func nameCreated (h) = $Tuple2(nil, w(h)) | |
221 | + | ||
222 | + | ||
223 | + | ||
224 | + | @Callable(X) | |
225 | + | func nameExpires (h) = $Tuple2(nil, x(h)) | |
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | @Callable(X) | |
215 | 230 | func register (h,t,ah) = valueOrElse(ak([an(X), if (I(h)) | |
216 | 231 | then unit | |
217 | 232 | else throw((("`" + h) + "` cannot be registered")), ao(t), if ((ah > 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = valueOrErrorMessage(getString(b, c), ((("Can't read '" + c) + "' at address ") + toString(b))) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (b,c) = valueOrErrorMessage(getInteger(b, c), ((("Can't read '" + c) + "' at address ") + toString(b))) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'")) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (h,i,j) = ((((h + "_") + i) + "_") + j) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func k (l) = g("Token", l, "name") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func m (h) = g("Name", h, "token") | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func n (h) = g("Name", h, "owner") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func o (h) = g("Name", h, "expiresAt") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func p (h) = g("Name", h, "createdAt") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let q = "nameTTL" | |
32 | 32 | ||
33 | 33 | let r = "controllers" | |
34 | 34 | ||
35 | 35 | func s (h,t) = [StringEntry(n(h), t)] | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func u (h) = getString(this, n(h)) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func v (h) = getString(this, m(h)) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func w (h) = getInteger(this, p(h)) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func x (h) = getInteger(this, o(h)) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func y () = getString(this, r) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let z = { | |
54 | 54 | let A = y() | |
55 | 55 | if ($isInstanceOf(A, "String")) | |
56 | 56 | then { | |
57 | 57 | let B = A | |
58 | 58 | split(B, ",") | |
59 | 59 | } | |
60 | 60 | else nil | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | let C = d(this, q) | |
64 | 64 | ||
65 | 65 | func D (h) = isDefined(getString(this, m(h))) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func E (h) = isDefined(w(h)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func F (h) = { | |
72 | 72 | let A = x(h) | |
73 | 73 | if ($isInstanceOf(A, "Int")) | |
74 | 74 | then { | |
75 | 75 | let G = A | |
76 | 76 | (lastBlock.timestamp > G) | |
77 | 77 | } | |
78 | 78 | else false | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func H (h) = if (if (D(h)) | |
83 | 83 | then E(h) | |
84 | 84 | else false) | |
85 | 85 | then !(F(h)) | |
86 | 86 | else false | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func I (h) = { | |
90 | 90 | let J = "abcdefghijklmnopqrstuvwxyz1234567890-" | |
91 | 91 | func K (L,M) = if (L) | |
92 | 92 | then contains(J, M) | |
93 | 93 | else false | |
94 | 94 | ||
95 | 95 | let N = if (if (if (if (if ((size(h) > 0)) | |
96 | 96 | then (63 >= size(h)) | |
97 | 97 | else false) | |
98 | 98 | then (indexOf(h, "--") != 2) | |
99 | 99 | else false) | |
100 | 100 | then (indexOf(h, "-") != 0) | |
101 | 101 | else false) | |
102 | 102 | then (lastIndexOf(h, "-") != (size(h) - 1)) | |
103 | 103 | else false) | |
104 | 104 | then { | |
105 | 105 | let O = split(h, "") | |
106 | 106 | let P = size(O) | |
107 | 107 | let Q = true | |
108 | 108 | func R (S,T) = if ((T >= P)) | |
109 | 109 | then S | |
110 | 110 | else K(S, O[T]) | |
111 | 111 | ||
112 | 112 | func U (S,T) = if ((T >= P)) | |
113 | 113 | then S | |
114 | 114 | else throw("List size exceeds 63") | |
115 | 115 | ||
116 | 116 | U(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(R(Q, 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) | |
117 | 117 | } | |
118 | 118 | else false | |
119 | 119 | let V = if (D(h)) | |
120 | 120 | then !(F(h)) | |
121 | 121 | else false | |
122 | 122 | if (!(V)) | |
123 | 123 | then N | |
124 | 124 | else false | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func W (X) = (X.caller == this) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func Y (X,h) = (toString(X.caller) == valueOrElse(u(h), "")) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func Z (b) = containsElement(z, b) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func aa (h) = { | |
138 | 138 | let ab = split(h, ".") | |
139 | 139 | let ac = (size(ab) - 1) | |
140 | 140 | let ad = ab[ac] | |
141 | 141 | let ae = makeString(removeByIndex(ab, ac), ".") | |
142 | 142 | $Tuple2(ad, ae) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func af (h) = [Issue(if ((size(h) > 16)) | |
147 | 147 | then (take(h, 15) + "~") | |
148 | 148 | else take(h, 16), (h + ".waves"), 1, 0, false)] | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ag (h,l,ah) = [StringEntry(m(h), l), StringEntry(k(l), h), IntegerEntry(p(h), ah), IntegerEntry(o(h), (ah + C))] | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ai (h,l) = [StringEntry(m(h), l), StringEntry(k(l), h)] | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aj (l,t) = [ScriptTransfer(e(t), 1, fromBase58String(l))] | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ak (al) = unit | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func am (X) = if (W(X)) | |
164 | 164 | then unit | |
165 | 165 | else throw("Permission denied") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func an (X) = if (if (W(X)) | |
169 | 169 | then true | |
170 | 170 | else Z(toString(X.caller))) | |
171 | 171 | then unit | |
172 | 172 | else throw("Permission denied") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ao (b) = if (isDefined(addressFromString(b))) | |
176 | 176 | then unit | |
177 | 177 | else throw("The address must be valid") | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(X) | |
181 | 181 | func init (C) = valueOrElse(ak([am(X), if ((C > 0)) | |
182 | 182 | then unit | |
183 | 183 | else throw("TTL cannot be negative")]), [IntegerEntry(q, C)]) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(X) | |
188 | 188 | func supportsInterface (ap) = $Tuple2(nil, (ap == "whoIs")) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(X) | |
193 | 193 | func addController (b) = valueOrElse(ak([am(X), ao(b), if (!(Z(b))) | |
194 | 194 | then unit | |
195 | 195 | else throw((("Controller `" + b) + "` is already registered"))]), [StringEntry(r, makeString((z :+ b), ","))]) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | 199 | @Callable(X) | |
200 | 200 | func removeController (b) = valueOrElse(ak([am(X), ao(b), if (Z(b)) | |
201 | 201 | then unit | |
202 | 202 | else throw((("Controller `" + b) + "` is not registered"))]), { | |
203 | 203 | let aq = value(indexOf(z, b)) | |
204 | 204 | [StringEntry(r, makeString(removeByIndex(z, aq), ","))] | |
205 | 205 | }) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | ||
209 | 209 | @Callable(X) | |
210 | 210 | func available (h) = $Tuple2(nil, I(h)) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(X) | |
215 | + | func owner (h) = $Tuple2(nil, u(h)) | |
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | @Callable(X) | |
220 | + | func nameCreated (h) = $Tuple2(nil, w(h)) | |
221 | + | ||
222 | + | ||
223 | + | ||
224 | + | @Callable(X) | |
225 | + | func nameExpires (h) = $Tuple2(nil, x(h)) | |
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | @Callable(X) | |
215 | 230 | func register (h,t,ah) = valueOrElse(ak([an(X), if (I(h)) | |
216 | 231 | then unit | |
217 | 232 | else throw((("`" + h) + "` cannot be registered")), ao(t), if ((ah > 0)) | |
218 | 233 | then unit | |
219 | 234 | else throw("CreatedAt cannot be negative"), if ((lastBlock.timestamp >= ah)) | |
220 | 235 | then unit | |
221 | 236 | else throw("CreatedAt cannot be in the future")]), { | |
222 | 237 | let ar = af(h) | |
223 | 238 | let l = calculateAssetId(ar[0]) | |
224 | 239 | let as = toBase58String(l) | |
225 | 240 | let at = ag(h, as, ah) | |
226 | 241 | let au = aj(as, t) | |
227 | 242 | let av = s(h, t) | |
228 | 243 | (((ar ++ at) ++ au) ++ av) | |
229 | 244 | }) | |
230 | 245 | ||
231 | 246 | ||
232 | 247 | ||
233 | 248 | @Callable(X) | |
234 | 249 | func reclaim (h) = valueOrElse(ak([if (H(h)) | |
235 | 250 | then unit | |
236 | 251 | else throw((("`" + h) + "` is not active"))]), { | |
237 | 252 | let aw = X.caller | |
238 | 253 | let ax = toString(aw) | |
239 | 254 | let as = valueOrErrorMessage(v(h), (("No token is issued for `" + h) + "`")) | |
240 | 255 | let l = fromBase58String(as) | |
241 | 256 | let ay = (assetBalance(aw, l) == 1) | |
242 | 257 | let az = Y(X, h) | |
243 | 258 | let aA = { | |
244 | 259 | let A = assetInfo(l) | |
245 | 260 | if ($isInstanceOf(A, "Asset")) | |
246 | 261 | then { | |
247 | 262 | let aB = A | |
248 | 263 | (aB.quantity == 1) | |
249 | 264 | } | |
250 | 265 | else false | |
251 | 266 | } | |
252 | 267 | if (if (az) | |
253 | 268 | then !(aA) | |
254 | 269 | else false) | |
255 | 270 | then { | |
256 | 271 | let aC = af(h) | |
257 | 272 | let aD = calculateAssetId(aC[0]) | |
258 | 273 | let aE = toBase58String(aD) | |
259 | 274 | let aF = ai(h, aE) | |
260 | 275 | let aG = aj(aE, ax) | |
261 | 276 | ((aC ++ aF) ++ aG) | |
262 | 277 | } | |
263 | 278 | else if (if (az) | |
264 | 279 | then ay | |
265 | 280 | else false) | |
266 | 281 | then throw("You already own a name token") | |
267 | 282 | else if (!(ay)) | |
268 | 283 | then throw("You don't have a name token") | |
269 | 284 | else s(h, ax) | |
270 | 285 | }) | |
271 | 286 | ||
272 | 287 | ||
273 | 288 | ||
274 | 289 | @Callable(X) | |
275 | 290 | func whoIs (h) = valueOrElse(ak([if ((size(h) > 0)) | |
276 | 291 | then unit | |
277 | 292 | else throw("Name cannot be empty")]), { | |
278 | 293 | let ad = aa(h)._1 | |
279 | 294 | let aH = u(ad) | |
280 | 295 | let aI = unit | |
281 | 296 | let aJ = w(ad) | |
282 | 297 | let aK = x(ad) | |
283 | 298 | $Tuple2(nil, $Tuple4(aH, aI, aJ, aK)) | |
284 | 299 | }) | |
285 | 300 | ||
286 | 301 |
github/deemru/w8io/026f985 47.43 ms ◑