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:AAIFAAAAAAAAACgIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgUKAwgIARIDCgEIAAAAJQEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAEWdldEludGVnZXJPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2VBZGRyZXNzT3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AAEJAAGRAAAAAgUAAAANaXNzdWVOZXdUb2tlbgAAAAAAAAAAAAQAAAALbmV3VG9rZW5TdHIJAAJYAAAAAQUAAAAKbmV3VG9rZW5JZAQAAAAXcmVzdG9yZU5hbWVXaXRoTmV3VG9rZW4JAQAAABVfcmVzdG9yZU5hbWVXaXRoVG9rZW4AAAACBQAAAARuYW1lBQAAAAtuZXdUb2tlblN0cgQAAAAXdHJhbnNmZXJOZXdUb2tlblRvT3duZXIJAQAAABVfdHJhbnNmZXJUb2tlblRvT3duZXIAAAACBQAAAAtuZXdUb2tlblN0cgUAAAAPbmV3T3duZXJBZGRyZXNzCQAETgAAAAIJAAROAAAAAgUAAAANaXNzdWVOZXdUb2tlbgUAAAAXcmVzdG9yZU5hbWVXaXRoTmV3VG9rZW4FAAAAF3RyYW5zZmVyTmV3VG9rZW5Ub093bmVyAwMFAAAADGlzVG9rZW5Pd25lcgUAAAAIaGFzVG9rZW4HCQAAAgAAAAECAAAAHFlvdSBhbHJlYWR5IG93biBhIG5hbWUgdG9rZW4DCQEAAAABIQAAAAEFAAAACGhhc1Rva2VuCQAAAgAAAAECAAAAG1lvdSBkb24ndCBoYXZlIGEgbmFtZSB0b2tlbgkBAAAACV9zZXRPd25lcgAAAAIFAAAABG5hbWUFAAAAD25ld093bmVyQWRkcmVzcwAAAADIQA2S", "height": 2264912, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GBBmbyvLp95rfLqWbqiw1SFEJwiWg1PiwpTQR7z6SPPE Next: 67CL4ykCEXAiVgq857v7a6AV5g4W4Ym2V6wrszbeH6hF Diff:
Old | New | Differences | |
---|---|---|---|
195 | 195 | ||
196 | 196 | ||
197 | 197 | @Callable(aa) | |
198 | + | func owner (h) = $Tuple2(nil, v(h)) | |
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | @Callable(aa) | |
198 | 203 | func register (h,u,af) = valueOrElse(ai([al(aa), if (L(h)) | |
199 | 204 | then unit | |
200 | 205 | else throw((("`" + h) + "` cannot be registered")), if ((lastBlock.timestamp >= af)) | |
219 | 224 | let at = toString(as) | |
220 | 225 | let ao = valueOrErrorMessage(w(h), (("No token is issued for `" + h) + "`")) | |
221 | 226 | let l = fromBase58String(ao) | |
222 | - | let au = { | |
227 | + | let au = (assetBalance(as, l) == 1) | |
228 | + | let av = ab(aa, h) | |
229 | + | let aw = { | |
223 | 230 | let D = assetInfo(l) | |
224 | 231 | if ($isInstanceOf(D, "Asset")) | |
225 | 232 | then { | |
226 | - | let | |
227 | - | ( | |
233 | + | let ax = D | |
234 | + | (ax.quantity == 1) | |
228 | 235 | } | |
229 | 236 | else false | |
230 | 237 | } | |
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) | |
247 | 256 | }) | |
248 | 257 | ||
249 | 258 |
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 = "rootAddress" | |
32 | 32 | ||
33 | 33 | let r = "nameTTL" | |
34 | 34 | ||
35 | 35 | let s = "controllers" | |
36 | 36 | ||
37 | 37 | func t (h,u) = [StringEntry(n(h), u)] | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func v (h) = getString(this, n(h)) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func w (h) = getString(this, m(h)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func x (h) = getInteger(this, p(h)) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func y (h) = getInteger(this, o(h)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z () = getString(this, s) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | let A = a(this, q) | |
56 | 56 | ||
57 | 57 | let B = e(A) | |
58 | 58 | ||
59 | 59 | let C = { | |
60 | 60 | let D = z() | |
61 | 61 | if ($isInstanceOf(D, "String")) | |
62 | 62 | then { | |
63 | 63 | let E = D | |
64 | 64 | split(E, ",") | |
65 | 65 | } | |
66 | 66 | else nil | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | let F = d(this, r) | |
70 | 70 | ||
71 | 71 | func G (h) = isDefined(getString(this, m(h))) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (h) = isDefined(x(h)) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func I (h) = { | |
78 | 78 | let D = y(h) | |
79 | 79 | if ($isInstanceOf(D, "Int")) | |
80 | 80 | then { | |
81 | 81 | let J = D | |
82 | 82 | (lastBlock.timestamp > J) | |
83 | 83 | } | |
84 | 84 | else false | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func K (h) = if (if (G(h)) | |
89 | 89 | then H(h) | |
90 | 90 | else false) | |
91 | 91 | then !(I(h)) | |
92 | 92 | else false | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func L (h) = { | |
96 | 96 | let M = "abcdefghijklmnopqrstuvwxyz1234567890-" | |
97 | 97 | func N (O,P) = if (O) | |
98 | 98 | then contains(M, P) | |
99 | 99 | else false | |
100 | 100 | ||
101 | 101 | let Q = if (if (if (if ((size(h) > 0)) | |
102 | 102 | then (63 >= size(h)) | |
103 | 103 | else false) | |
104 | 104 | then (indexOf(h, "-") != 0) | |
105 | 105 | else false) | |
106 | 106 | then (lastIndexOf(h, "-") != (size(h) - 1)) | |
107 | 107 | else false) | |
108 | 108 | then { | |
109 | 109 | let R = split(h, "") | |
110 | 110 | let S = size(R) | |
111 | 111 | let T = true | |
112 | 112 | func U (V,W) = if ((W >= S)) | |
113 | 113 | then V | |
114 | 114 | else N(V, R[W]) | |
115 | 115 | ||
116 | 116 | func X (V,W) = if ((W >= S)) | |
117 | 117 | then V | |
118 | 118 | else throw("List size exceeds 63") | |
119 | 119 | ||
120 | 120 | 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) | |
121 | 121 | } | |
122 | 122 | else false | |
123 | 123 | let Y = if (G(h)) | |
124 | 124 | then !(I(h)) | |
125 | 125 | else false | |
126 | 126 | if (!(Y)) | |
127 | 127 | then Q | |
128 | 128 | else false | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func Z (aa) = (aa.caller == this) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ab (aa,h) = (toString(aa.caller) == valueOrErrorMessage(v(h), (("Owner for `" + h) + "` is not found"))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ac (b) = containsElement(C, b) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ad (h) = [Issue(if ((size(h) > 16)) | |
142 | 142 | then (take(h, 15) + "~") | |
143 | 143 | else take(h, 16), h, 1, 0, false)] | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ae (h,l,af) = [StringEntry(m(h), l), StringEntry(k(l), h), IntegerEntry(p(h), af), IntegerEntry(o(h), (af + F))] | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ag (h,l) = [StringEntry(m(h), l), StringEntry(k(l), h)] | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ah (l,u) = [ScriptTransfer(e(u), 1, fromBase58String(l))] | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ai (aj) = unit | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ak (aa) = if (Z(aa)) | |
159 | 159 | then unit | |
160 | 160 | else throw("Permission denied") | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func al (aa) = if (if (Z(aa)) | |
164 | 164 | then true | |
165 | 165 | else ac(toString(aa.caller))) | |
166 | 166 | then unit | |
167 | 167 | else throw("Permission denied") | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(aa) | |
171 | 171 | func init (A,F) = valueOrElse(ai([ak(aa)]), [StringEntry(q, A), IntegerEntry(r, F)]) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | ||
175 | 175 | @Callable(aa) | |
176 | 176 | func addController (b) = valueOrElse(ai([ak(aa), if (!(ac(b))) | |
177 | 177 | then unit | |
178 | 178 | else throw((("Controller `" + b) + "` is already registered"))]), [StringEntry(s, makeString((C :+ b), ","))]) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(aa) | |
183 | 183 | func removeController (b) = valueOrElse(ai([ak(aa), if (ac(b)) | |
184 | 184 | then unit | |
185 | 185 | else throw((("Controller `" + b) + "` is not registered"))]), { | |
186 | 186 | let am = value(indexOf(C, b)) | |
187 | 187 | [StringEntry(s, makeString(removeByIndex(C, am), ","))] | |
188 | 188 | }) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(aa) | |
193 | 193 | func available (h) = $Tuple2(nil, L(h)) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | ||
197 | 197 | @Callable(aa) | |
198 | + | func owner (h) = $Tuple2(nil, v(h)) | |
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | @Callable(aa) | |
198 | 203 | func register (h,u,af) = valueOrElse(ai([al(aa), if (L(h)) | |
199 | 204 | then unit | |
200 | 205 | else throw((("`" + h) + "` cannot be registered")), if ((lastBlock.timestamp >= af)) | |
201 | 206 | then unit | |
202 | 207 | else throw("createdAt cannot be in the future")]), { | |
203 | 208 | let an = ad(h) | |
204 | 209 | let l = calculateAssetId(an[0]) | |
205 | 210 | let ao = toBase58String(l) | |
206 | 211 | let ap = ae(h, ao, af) | |
207 | 212 | let aq = ah(ao, u) | |
208 | 213 | let ar = t(h, u) | |
209 | 214 | (((an ++ ap) ++ aq) ++ ar) | |
210 | 215 | }) | |
211 | 216 | ||
212 | 217 | ||
213 | 218 | ||
214 | 219 | @Callable(aa) | |
215 | 220 | func reclaim (h) = valueOrElse(ai([if (K(h)) | |
216 | 221 | then unit | |
217 | 222 | else throw((("`" + h) + "` is not active"))]), { | |
218 | 223 | let as = aa.caller | |
219 | 224 | let at = toString(as) | |
220 | 225 | let ao = valueOrErrorMessage(w(h), (("No token is issued for `" + h) + "`")) | |
221 | 226 | let l = fromBase58String(ao) | |
222 | - | let au = { | |
227 | + | let au = (assetBalance(as, l) == 1) | |
228 | + | let av = ab(aa, h) | |
229 | + | let aw = { | |
223 | 230 | let D = assetInfo(l) | |
224 | 231 | if ($isInstanceOf(D, "Asset")) | |
225 | 232 | then { | |
226 | - | let | |
227 | - | ( | |
233 | + | let ax = D | |
234 | + | (ax.quantity == 1) | |
228 | 235 | } | |
229 | 236 | else false | |
230 | 237 | } | |
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) | |
247 | 256 | }) | |
248 | 257 | ||
249 | 258 |
github/deemru/w8io/026f985 47.94 ms ◑