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