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