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