tx · Aop13NoHnMMDE5vEgsgZeJBBs5ZKquUrtA9Jtn2mvFzX 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc: -0.01000000 Waves 2022.10.09 09:22 [2264415] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves
{ "type": 13, "id": "Aop13NoHnMMDE5vEgsgZeJBBs5ZKquUrtA9Jtn2mvFzX", "fee": 1000000, "feeAssetId": null, "timestamp": 1665296581851, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "v1NnMfSfxfgkDgzp19Fdu3udecCXne9jf52na6Xf6joTezyc8Q7N4c6rkga9ZR69DSfqPsjzXKWzvbx9yFbAoHk" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIFCgMICAESAwoBCAAAACQBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABFnZXRJbnRlZ2VyT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3BhcnNlQWRkcmVzc09yVGhyb3cAAAABAAAADG1he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b2tlbgUAAAAXdHJhbnNmZXJOZXdUb2tlblRvT3duZXIDCQAAAAAAAAIJAAPwAAAAAgUAAAAIbmV3T3duZXIFAAAAB3Rva2VuSWQAAAAAAAAAAAAJAAACAAAAAQIAAAAdWW91IGRvbid0IGhhdmUgYSBuYW1lZCB0b2tlbi4JAQAAAAlfc2V0T3duZXIAAAACBQAAAARuYW1lBQAAAA9uZXdPd25lckFkZHJlc3MAAAAA3mKe/A==", "height": 2264415, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CPccZRMsg6kJddMEQnAXbkb1krVvweFYotnnthjuWaSL Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b,c) = valueOrErrorMessage(getString(b, c), ((("Can't read '" + c) + "' at address ") + toString(b))) | |
5 | + | ||
6 | + | ||
7 | + | func d (b,c) = valueOrErrorMessage(getInteger(b, c), ((("Can't read '" + c) + "' at address ") + toString(b))) | |
8 | + | ||
9 | + | ||
10 | + | func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'")) | |
11 | + | ||
12 | + | ||
13 | + | func g (h,i,j) = ((((h + "_") + i) + "_") + j) | |
14 | + | ||
15 | + | ||
16 | + | func k (l) = g("Token", l, "name") | |
17 | + | ||
18 | + | ||
19 | + | func m (h) = g("Name", h, "token") | |
20 | + | ||
21 | + | ||
22 | + | func n (h) = g("Name", h, "owner") | |
23 | + | ||
24 | + | ||
25 | + | func o (h) = g("Name", h, "expiresAt") | |
26 | + | ||
27 | + | ||
28 | + | func p (h) = g("Name", h, "createdAt") | |
29 | + | ||
30 | + | ||
31 | + | let q = "rootAddress" | |
32 | + | ||
33 | + | let r = "nameTTL" | |
34 | + | ||
35 | + | let s = "controllers" | |
36 | + | ||
37 | + | let t = a(this, q) | |
38 | + | ||
39 | + | let u = e(t) | |
40 | + | ||
41 | + | let v = split(a(this, s), ",") | |
42 | + | ||
43 | + | let w = d(this, r) | |
44 | + | ||
45 | + | func x (h,y) = [StringEntry(n(h), y)] | |
46 | + | ||
47 | + | ||
48 | + | func z (h) = getString(this, n(h)) | |
49 | + | ||
50 | + | ||
51 | + | func A (h) = getString(this, m(h)) | |
52 | + | ||
53 | + | ||
54 | + | func B (h) = getInteger(this, p(h)) | |
55 | + | ||
56 | + | ||
57 | + | func C (h) = getInteger(this, o(h)) | |
58 | + | ||
59 | + | ||
60 | + | func D (h) = isDefined(getString(this, m(h))) | |
61 | + | ||
62 | + | ||
63 | + | func E (h) = isDefined(B(h)) | |
64 | + | ||
65 | + | ||
66 | + | func F (h) = { | |
67 | + | let G = C(h) | |
68 | + | if ($isInstanceOf(G, "Int")) | |
69 | + | then { | |
70 | + | let H = G | |
71 | + | (lastBlock.timestamp > H) | |
72 | + | } | |
73 | + | else false | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func I (h) = if (if (D(h)) | |
78 | + | then E(h) | |
79 | + | else false) | |
80 | + | then !(F(h)) | |
81 | + | else false | |
82 | + | ||
83 | + | ||
84 | + | func J (h) = { | |
85 | + | let K = "abcdefghijklmnopqrstuvwxyz1234567890-" | |
86 | + | func L (M,N) = if (M) | |
87 | + | then contains(K, N) | |
88 | + | else false | |
89 | + | ||
90 | + | let O = if (if (if (if ((size(h) > 0)) | |
91 | + | then (63 >= size(h)) | |
92 | + | else false) | |
93 | + | then (indexOf(h, "-") != 0) | |
94 | + | else false) | |
95 | + | then (lastIndexOf(h, "-") != (size(h) - 1)) | |
96 | + | else false) | |
97 | + | then { | |
98 | + | let P = split(h, "") | |
99 | + | let Q = size(P) | |
100 | + | let R = true | |
101 | + | func S (T,U) = if ((U >= Q)) | |
102 | + | then T | |
103 | + | else L(T, P[U]) | |
104 | + | ||
105 | + | func V (T,U) = if ((U >= Q)) | |
106 | + | then T | |
107 | + | else throw("List size exceeds 63") | |
108 | + | ||
109 | + | V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 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) | |
110 | + | } | |
111 | + | else false | |
112 | + | let W = if (D(h)) | |
113 | + | then !(F(h)) | |
114 | + | else false | |
115 | + | if (!(W)) | |
116 | + | then O | |
117 | + | else false | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func X (Y) = (Y.caller == this) | |
122 | + | ||
123 | + | ||
124 | + | func Z (Y,h) = (toString(Y.caller) == valueOrErrorMessage(z(h), (("Owner for `" + h) + "` is not found"))) | |
125 | + | ||
126 | + | ||
127 | + | func aa (b) = containsElement(v, b) | |
128 | + | ||
129 | + | ||
130 | + | func ab (h) = [Issue(if ((size(h) > 16)) | |
131 | + | then (take(h, 15) + "~") | |
132 | + | else take(h, 16), h, 1, 0, false)] | |
133 | + | ||
134 | + | ||
135 | + | func ac (h,l,ad) = [StringEntry(m(h), l), StringEntry(k(l), h), IntegerEntry(p(h), ad), IntegerEntry(o(h), (ad + w))] | |
136 | + | ||
137 | + | ||
138 | + | func ae (h,l) = [StringEntry(m(h), l), StringEntry(k(l), h)] | |
139 | + | ||
140 | + | ||
141 | + | func af (l,y) = [ScriptTransfer(e(y), 1, fromBase58String(l))] | |
142 | + | ||
143 | + | ||
144 | + | func ag (ah) = unit | |
145 | + | ||
146 | + | ||
147 | + | func ai (Y) = if (X(Y)) | |
148 | + | then unit | |
149 | + | else throw("Permission denied") | |
150 | + | ||
151 | + | ||
152 | + | func aj (Y) = if (if (X(Y)) | |
153 | + | then true | |
154 | + | else aa(toString(Y.caller))) | |
155 | + | then unit | |
156 | + | else throw("Permission denied") | |
157 | + | ||
158 | + | ||
159 | + | @Callable(Y) | |
160 | + | func init (t,ak) = valueOrElse(ag([ai(Y)]), [StringEntry(q, t), IntegerEntry(r, w)]) | |
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | @Callable(Y) | |
165 | + | func addController (b) = valueOrElse(ag([ai(Y), if (!(aa(b))) | |
166 | + | then unit | |
167 | + | else throw((("Controller `" + b) + "` is already registered"))]), [StringEntry(s, makeString((v :+ b), ","))]) | |
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | @Callable(Y) | |
172 | + | func removeController (b) = valueOrElse(ag([ai(Y), if (aa(b)) | |
173 | + | then unit | |
174 | + | else throw((("Controller `" + b) + "` is not registered"))]), { | |
175 | + | let al = value(indexOf(v, b)) | |
176 | + | [StringEntry(s, makeString(removeByIndex(v, al), ","))] | |
177 | + | }) | |
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | @Callable(Y) | |
182 | + | func available (h) = $Tuple2(nil, J(h)) | |
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | @Callable(Y) | |
187 | + | func register (h,y,ad) = valueOrElse(ag([aj(Y), if (J(h)) | |
188 | + | then unit | |
189 | + | else throw((("`" + h) + "` cannot be registered")), if ((lastBlock.timestamp >= ad)) | |
190 | + | then unit | |
191 | + | else throw("createdAt cannot be in the future")]), { | |
192 | + | let am = ab(h) | |
193 | + | let l = calculateAssetId(am[0]) | |
194 | + | let an = toBase58String(l) | |
195 | + | let ao = ac(h, an, ad) | |
196 | + | let ap = af(an, y) | |
197 | + | let aq = x(h, y) | |
198 | + | (((am ++ ao) ++ ap) ++ aq) | |
199 | + | }) | |
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | @Callable(Y) | |
204 | + | func reclaim (h) = valueOrElse(ag([if (I(h)) | |
205 | + | then unit | |
206 | + | else throw((("`" + h) + "` is not active"))]), { | |
207 | + | let ar = Y.caller | |
208 | + | let as = toString(ar) | |
209 | + | let an = valueOrErrorMessage(A(h), (("No token is issued for `" + h) + "`")) | |
210 | + | let l = fromBase58String(an) | |
211 | + | let at = assetInfo(l) | |
212 | + | if (Z(Y, h)) | |
213 | + | then if (isDefined(at)) | |
214 | + | then throw("You can only restore a burned token") | |
215 | + | else { | |
216 | + | let au = ab(h) | |
217 | + | let av = calculateAssetId(au[0]) | |
218 | + | let aw = toBase58String(av) | |
219 | + | let ax = ae(h, aw) | |
220 | + | let ay = af(aw, as) | |
221 | + | ((au ++ ax) ++ ay) | |
222 | + | } | |
223 | + | else if ((assetBalance(ar, l) == 0)) | |
224 | + | then throw("You don't have a named token.") | |
225 | + | else x(h, as) | |
226 | + | }) | |
227 | + | ||
228 | + |
github/deemru/w8io/026f985 21.60 ms ◑