tx · CubxapEMht9f4PyDms3kDsPdQP2bwXBHUJEWDkKJEAuw 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01400000 Waves 2023.02.03 05:55 [2432865] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "CubxapEMht9f4PyDms3kDsPdQP2bwXBHUJEWDkKJEAuw", "fee": 1400000, "feeAssetId": null, "timestamp": 1675391724731, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "bskDqWijnxNnnfB8pk7cqZRBhSk3wVjUR6TZf3N5WaB7cpadp1vFumwqhay1XARuXex9y7NzKmUny56S2fpLW3Y" ], "script": "base64:BgJTCAISBAoCCAgSBAoCBAgSAwoBBBIICgYICAgIAQgSCAoGCAgICAEIEgQKAggIEgoKCAgICAgBAQEBEgMKAQgSBwoFCAgBAQQSBQoDCAgEEgMKAQgvAAdWRVJTSU9OAgMxLjUBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEJvb2xlYW5CeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMFA2tleQcBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAA5kYXBwUnVubmluZ0tleQIUY29uZl9kYXBwX2lzX3J1bm5pbmcAEW1haW50ZW5hbmNlTVNHS2V5AhRjb25mX21haW50ZW5hbmNlX21zZwASd2hpdGVsaXN0ZWRvbmx5S2V5AhVjb25mX3doaXRlbGlzdGVkX29ubHkAC2RhcHBSdW5uaW5nCQELdmFsdWVPckVsc2UCCQCbCA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FwcAUEdGhpcwcJAAACCAUDaW52A2ZlZQCgwh4HCQAAAggFA2ludgpmZWVBc3NldElkBQR1bml0BwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQEIYXNTdHJpbmcBCQCRAwIIBQNpbnYEYXJncwAFAwMDAwkAAAIIBQNpbnYIZnVuY3Rpb24CDHNldEVSQzIwVXNlcgkAAAIIBQNpbnYEZEFwcAUEdGhpcwcJAAACCAUDaW52A2ZlZQCgwh4HCQAAAggFA2ludgpmZWVBc3NldElkBQR1bml0BwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQEIYXNTdHJpbmcBCQCRAwIIBQNpbnYEYXJncwACCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Iyuj3A==", "height": 2432865, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qpa6Z1fZL6AfRGDrVtccBhFGKXEFqAeqbe9YxAg5j1g Next: Apvtbw5GPfTKxPqhdHdkc13vmJCKLF3KNEn9ZKKDqGZB Diff:
Old | New | Differences | |
---|---|---|---|
91 | 91 | func N (J) = ("artist_agent_secondary_" + J) | |
92 | 92 | ||
93 | 93 | ||
94 | - | func O ( | |
94 | + | func O (J) = ("artist_public_agent_" + J) | |
95 | 95 | ||
96 | 96 | ||
97 | - | func P (Q) = if (contains(Q, "/")) | |
98 | - | then if (if ((76 > size(Q))) | |
99 | - | then (size(split(Q, "/")[0]) == 59) | |
97 | + | func P (L,J) = ((("public_agent_" + L) + "_") + J) | |
98 | + | ||
99 | + | ||
100 | + | func Q (J) = ("artist_public_agent_primary_" + J) | |
101 | + | ||
102 | + | ||
103 | + | func R (J) = ("artist_public_agent_secondary_" + J) | |
104 | + | ||
105 | + | ||
106 | + | func S (c) = valueOrElse(getInteger(m, c), 0) | |
107 | + | ||
108 | + | ||
109 | + | func T (U) = if (contains(U, "/")) | |
110 | + | then if (if ((76 > size(U))) | |
111 | + | then (size(split(U, "/")[0]) == 59) | |
100 | 112 | else false) | |
101 | - | then (16 > size(split( | |
113 | + | then (16 > size(split(U, "/")[1])) | |
102 | 114 | else false | |
103 | 115 | else false | |
104 | 116 | ||
105 | 117 | ||
106 | - | func | |
107 | - | let | |
108 | - | then | |
118 | + | func V (x,W,X,Y,Z) = { | |
119 | + | let aa = if ((size(Y) != 0)) | |
120 | + | then T(Y) | |
109 | 121 | else true | |
110 | - | if (!( | |
122 | + | if (!(aa)) | |
111 | 123 | then throw("CID don't match requirement!") | |
112 | - | else if (if (( | |
124 | + | else if (if ((W == "")) | |
113 | 125 | then true | |
114 | - | else ( | |
126 | + | else (X == "")) | |
115 | 127 | then throw("Name and description cannot be empty") | |
116 | - | else if ((size( | |
128 | + | else if ((size(X) > 600)) | |
117 | 129 | then throw("600 Char. max description") | |
118 | - | else if ((size( | |
130 | + | else if ((size(W) > 45)) | |
119 | 131 | then throw("45 Char. max name") | |
120 | 132 | else { | |
121 | - | let | |
122 | - | if (if (( | |
133 | + | let ab = b(C(x)) | |
134 | + | if (if ((ab == r)) | |
123 | 135 | then true | |
124 | - | else ( | |
136 | + | else (ab == s)) | |
125 | 137 | then throw("Account suspended/ removed.") | |
126 | - | else if (if (!( | |
127 | - | then ( | |
138 | + | else if (if (!(Z)) | |
139 | + | then (ab == p) | |
128 | 140 | else false) | |
129 | 141 | then throw("Already registered") | |
130 | - | else if (if (if (!( | |
131 | - | then ( | |
142 | + | else if (if (if (!(Z)) | |
143 | + | then (ab == "") | |
132 | 144 | else false) | |
133 | 145 | then l | |
134 | 146 | else false) | |
135 | 147 | then throw("Can't register, get approved first.") | |
136 | - | else if (if (if ( | |
137 | - | then ( | |
148 | + | else if (if (if (Z) | |
149 | + | then (ab == "") | |
138 | 150 | else false) | |
139 | 151 | then true | |
140 | - | else if ( | |
141 | - | then ( | |
152 | + | else if (Z) | |
153 | + | then (ab == o) | |
142 | 154 | else false) | |
143 | 155 | then throw("Register first") | |
144 | 156 | else true | |
146 | 158 | } | |
147 | 159 | ||
148 | 160 | ||
149 | - | func | |
150 | - | let | |
151 | - | let | |
152 | - | then | |
153 | - | else if (if (( | |
154 | - | then ( | |
161 | + | func ac (ab,ad,ae) = { | |
162 | + | let af = [q, p, r, s, o, t] | |
163 | + | let ag = if (containsElement(af, ab)) | |
164 | + | then ab | |
165 | + | else if (if ((ab == v)) | |
166 | + | then (ae == o) | |
155 | 167 | else false) | |
156 | 168 | then "" | |
157 | 169 | else throw("Unknown status") | |
158 | - | let | |
159 | - | if (if (( | |
160 | - | then ( | |
170 | + | let ah = e(E(ad)) | |
171 | + | if (if ((ah == 0)) | |
172 | + | then (ag != o) | |
161 | 173 | else false) | |
162 | 174 | then throw("You cant set this status, user is not registered.") | |
163 | - | else if (if (( | |
164 | - | then ( | |
175 | + | else if (if ((ae == o)) | |
176 | + | then (ag == o) | |
165 | 177 | else false) | |
166 | 178 | then throw("User already allowed") | |
167 | - | else if (if (( | |
168 | - | then ( | |
179 | + | else if (if ((ae == p)) | |
180 | + | then (ag == o) | |
169 | 181 | else false) | |
170 | 182 | then throw("User already allowed & registered") | |
171 | - | else if (if (( | |
172 | - | then ( | |
183 | + | else if (if ((ae == q)) | |
184 | + | then (ag == o) | |
173 | 185 | else false) | |
174 | 186 | then throw("User already allowed & verified") | |
175 | - | else | |
187 | + | else ag | |
176 | 188 | } | |
177 | 189 | ||
178 | 190 | ||
179 | - | func | |
191 | + | func ai (W,Y,aj) = (((((("{\"user_name\": \"" + W) + "\", \"user_thumb\":\"") + Y) + "\",\"user_date\":\"") + aj) + "\"}") | |
180 | 192 | ||
181 | 193 | ||
182 | - | func | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
194 | + | func ak (al) = { | |
195 | + | let am = al | |
196 | + | if ($isInstanceOf(am, "String")) | |
185 | 197 | then { | |
186 | - | let | |
187 | - | | |
198 | + | let an = am | |
199 | + | an | |
188 | 200 | } | |
189 | 201 | else throw("Sponsored Public Key String expected") | |
190 | 202 | } | |
191 | 203 | ||
192 | 204 | ||
193 | - | func | |
194 | - | let | |
195 | - | then valueOrElse( | |
205 | + | func ao (ap,aq) = { | |
206 | + | let ar = if ((aq != "")) | |
207 | + | then valueOrElse(S((toString(addressFromPublicKey(fromBase58String(aq))) + "_free_txs")), 0) | |
196 | 208 | else 0 | |
197 | - | let x = if (if ((toBase58String( | |
198 | - | then ( | |
209 | + | let x = if (if ((toBase58String(ap.caller.bytes) == toString(this))) | |
210 | + | then (ar > 0) | |
199 | 211 | else false) | |
200 | - | then toString(addressFromPublicKey(fromBase58String( | |
201 | - | else toBase58String( | |
202 | - | let | |
203 | - | then ( | |
212 | + | then toString(addressFromPublicKey(fromBase58String(aq))) | |
213 | + | else toBase58String(ap.caller.bytes) | |
214 | + | let as = if (if ((aq != "")) | |
215 | + | then (ar > 0) | |
204 | 216 | else false) | |
205 | - | then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String( | |
217 | + | then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(aq)))], nil) | |
206 | 218 | else unit | |
207 | - | if (( | |
208 | - | then $Tuple2(x, ( | |
219 | + | if ((as == as)) | |
220 | + | then $Tuple2(x, (ar > 0)) | |
209 | 221 | else throw("Strict value is not equal to itself.") | |
210 | 222 | } | |
211 | 223 | ||
212 | 224 | ||
213 | - | @Callable( | |
214 | - | func setConf (c, | |
215 | - | let x = toString( | |
225 | + | @Callable(at) | |
226 | + | func setConf (c,au) = { | |
227 | + | let x = toString(at.caller) | |
216 | 228 | if (containsElement([f, toString(this)], x)) | |
217 | - | then [StringEntry(c, | |
229 | + | then [StringEntry(c, au)] | |
218 | 230 | else throw("You are not allowed to change this") | |
219 | 231 | } | |
220 | 232 | ||
221 | 233 | ||
222 | 234 | ||
223 | - | @Callable( | |
224 | - | func appRunning ( | |
225 | - | let x = toString( | |
235 | + | @Callable(at) | |
236 | + | func appRunning (av,aw) = { | |
237 | + | let x = toString(at.caller) | |
226 | 238 | if (containsElement([f, toString(this)], x)) | |
227 | - | then [BooleanEntry(g, | |
239 | + | then [BooleanEntry(g, av), StringEntry(h, aw)] | |
228 | 240 | else throw("You are not allowed to change this") | |
229 | 241 | } | |
230 | 242 | ||
231 | 243 | ||
232 | 244 | ||
233 | - | @Callable( | |
234 | - | func registrationMode ( | |
235 | - | let x = toString( | |
245 | + | @Callable(at) | |
246 | + | func registrationMode (ax) = { | |
247 | + | let x = toString(at.caller) | |
236 | 248 | if (containsElement([f, toString(this)], x)) | |
237 | - | then [BooleanEntry(i, | |
249 | + | then [BooleanEntry(i, ax)] | |
238 | 250 | else throw("You are not allowed to change this") | |
239 | 251 | } | |
240 | 252 | ||
241 | 253 | ||
242 | 254 | ||
243 | - | @Callable( | |
244 | - | func registerUser ( | |
255 | + | @Callable(at) | |
256 | + | func registerUser (W,X,Y,ay,az,aq) = if (!(j)) | |
245 | 257 | then throw(k) | |
246 | 258 | else { | |
247 | - | let | |
248 | - | let x = | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | if (!( | |
259 | + | let aA = ao(at, aq) | |
260 | + | let x = aA._1 | |
261 | + | let ar = aA._2 | |
262 | + | let aB = toBase58String(at.transactionId) | |
263 | + | let aC = lastBlock.timestamp | |
264 | + | let aD = b(G(x)) | |
265 | + | let aE = b(H(x)) | |
266 | + | if (!(V(x, W, X, Y, false))) | |
255 | 267 | then throw("Something went wrong") | |
256 | 268 | else { | |
257 | - | let | |
258 | - | if (if ((0 > | |
269 | + | let aF = ai(toBase64String(toBytes(W)), toBase64String(toBytes(Y)), toString(aC)) | |
270 | + | if (if ((0 > az)) | |
259 | 271 | then true | |
260 | - | else ( | |
272 | + | else (az > 1000)) | |
261 | 273 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
262 | 274 | else { | |
263 | - | let | |
275 | + | let aG = if (ar) | |
264 | 276 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
265 | 277 | else nil | |
266 | - | ([IntegerEntry(E(x), | |
278 | + | ([IntegerEntry(E(x), aC), StringEntry(w(x), ((aB + "_") + toString(aC))), StringEntry(y(x), W), StringEntry(z(x), X), StringEntry(A(x), ay), StringEntry(B(x), Y), StringEntry(C(x), p), IntegerEntry(D(x), az), DeleteEntry(("ALLOWED_" + x)), StringEntry(((p + "_") + x), aF), StringEntry(G(x), aD), StringEntry(H(x), aE)] ++ aG) | |
267 | 279 | } | |
268 | 280 | } | |
269 | 281 | } | |
270 | 282 | ||
271 | 283 | ||
272 | 284 | ||
273 | - | @Callable( | |
274 | - | func updateUser ( | |
285 | + | @Callable(at) | |
286 | + | func updateUser (W,X,Y,ay,az,aq) = if (!(j)) | |
275 | 287 | then throw(k) | |
276 | 288 | else { | |
277 | - | let | |
278 | - | let x = | |
279 | - | let | |
280 | - | let | |
281 | - | if (!( | |
289 | + | let aH = ao(at, aq) | |
290 | + | let x = aH._1 | |
291 | + | let ar = aH._2 | |
292 | + | let ab = b(C(x)) | |
293 | + | if (!(V(x, W, X, Y, true))) | |
282 | 294 | then throw("Something went wrong") | |
283 | 295 | else { | |
284 | - | let | |
285 | - | let | |
286 | - | if (if ((0 > | |
296 | + | let aj = e(E(x)) | |
297 | + | let aF = ai(toBase64String(toBytes(W)), toBase64String(toBytes(Y)), toString(aj)) | |
298 | + | if (if ((0 > az)) | |
287 | 299 | then true | |
288 | - | else ( | |
300 | + | else (az > 1000)) | |
289 | 301 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
290 | 302 | else { | |
291 | - | let | |
303 | + | let aG = if (ar) | |
292 | 304 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
293 | 305 | else nil | |
294 | - | ([StringEntry(y(x), | |
306 | + | ([StringEntry(y(x), W), StringEntry(z(x), X), StringEntry(A(x), ay), StringEntry(B(x), Y), IntegerEntry(D(x), az), StringEntry(((ab + "_") + x), aF)] ++ aG) | |
295 | 307 | } | |
296 | 308 | } | |
297 | 309 | } | |
298 | 310 | ||
299 | 311 | ||
300 | 312 | ||
301 | - | @Callable( | |
302 | - | func setERC20User ( | |
313 | + | @Callable(at) | |
314 | + | func setERC20User (aI,aq) = if (!(j)) | |
303 | 315 | then throw(k) | |
304 | 316 | else { | |
305 | - | let | |
306 | - | let x = | |
307 | - | let | |
308 | - | let | |
309 | - | if (if (( | |
310 | - | then ( | |
317 | + | let aJ = ao(at, aq) | |
318 | + | let x = aJ._1 | |
319 | + | let ar = aJ._2 | |
320 | + | let ab = b(C(x)) | |
321 | + | if (if ((ab != p)) | |
322 | + | then (ab != q) | |
311 | 323 | else false) | |
312 | 324 | then throw("Not allowed to set ERC20 address") | |
313 | 325 | else { | |
314 | - | let | |
315 | - | if (if (( | |
326 | + | let aK = take(aI, 2) | |
327 | + | if (if ((aK != "0x")) | |
316 | 328 | then true | |
317 | - | else (size( | |
329 | + | else (size(aI) != 42)) | |
318 | 330 | then throw("This is not an erc20 address") | |
319 | 331 | else { | |
320 | - | let | |
332 | + | let aG = if (ar) | |
321 | 333 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
322 | 334 | else nil | |
323 | - | ([StringEntry(F(x), | |
335 | + | ([StringEntry(F(x), aI)] ++ aG) | |
324 | 336 | } | |
325 | 337 | } | |
326 | 338 | } | |
327 | 339 | ||
328 | 340 | ||
329 | 341 | ||
330 | - | @Callable( | |
331 | - | func changeUserStatus ( | |
332 | - | let x = toString( | |
333 | - | if ((size( | |
342 | + | @Callable(at) | |
343 | + | func changeUserStatus (ad,ab,aD,aE,aL,aM,aN,aO) = { | |
344 | + | let x = toString(at.caller) | |
345 | + | if ((size(ad) == 0)) | |
334 | 346 | then throw("Address cannot be empty") | |
335 | 347 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | then | |
340 | - | else | |
341 | - | let | |
342 | - | then | |
343 | - | else | |
348 | + | let aP = b(G(ad)) | |
349 | + | let aQ = b(H(ad)) | |
350 | + | let aR = if ((size(aD) != 0)) | |
351 | + | then aD | |
352 | + | else aP | |
353 | + | let aS = if ((size(aE) != 0)) | |
354 | + | then aE | |
355 | + | else aQ | |
344 | 356 | if (containsElement([f, toString(this)], x)) | |
345 | 357 | then { | |
346 | - | let | |
347 | - | then invoke(n, "whitelistFreeCertifications", [ | |
358 | + | let aT = if ((aL != 0)) | |
359 | + | then invoke(n, "whitelistFreeCertifications", [ad, aL, true], nil) | |
348 | 360 | else nil | |
349 | - | if (( | |
361 | + | if ((aT == aT)) | |
350 | 362 | then { | |
351 | - | let | |
352 | - | then invoke(m, "whitelistFreeTxs", [ | |
363 | + | let aU = if ((aM != 0)) | |
364 | + | then invoke(m, "whitelistFreeTxs", [ad, aM, true], nil) | |
353 | 365 | else nil | |
354 | - | if (( | |
366 | + | if ((aU == aU)) | |
355 | 367 | then { | |
356 | - | let | |
357 | - | then invoke(m, "whitelistFreeDrop", [ | |
368 | + | let aV = if ((aN != 0)) | |
369 | + | then invoke(m, "whitelistFreeDrop", [ad, aN, true], nil) | |
358 | 370 | else nil | |
359 | - | if (( | |
371 | + | if ((aV == aV)) | |
360 | 372 | then { | |
361 | - | let | |
362 | - | then invoke(m, "whitelist", [ | |
373 | + | let aW = if ((aO != 0)) | |
374 | + | then invoke(m, "whitelist", [ad, aO], nil) | |
363 | 375 | else nil | |
364 | - | if (( | |
376 | + | if ((aW == aW)) | |
365 | 377 | then { | |
366 | - | let | |
367 | - | if ((size( | |
368 | - | then if (( | |
378 | + | let ae = b(C(ad)) | |
379 | + | if ((size(ab) == 0)) | |
380 | + | then if ((ae == "")) | |
369 | 381 | then throw("User have no status yet") | |
370 | - | else [StringEntry(G( | |
382 | + | else [StringEntry(G(ad), aR), StringEntry(H(ad), aS)] | |
371 | 383 | else { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | [StringEntry(C( | |
384 | + | let ag = ac(ab, ad, ae) | |
385 | + | let W = toBase64String(toBytes(b(y(ad)))) | |
386 | + | let Y = toBase64String(toBytes(b(B(ad)))) | |
387 | + | let aj = e(E(ad)) | |
388 | + | let aF = ai(W, Y, toString(aj)) | |
389 | + | [StringEntry(C(ad), ag), DeleteEntry(((ae + "_") + ad)), StringEntry(((ag + "_") + ad), aF), StringEntry(G(ad), aR), StringEntry(H(ad), aS)] | |
378 | 390 | } | |
379 | 391 | } | |
380 | 392 | else throw("Strict value is not equal to itself.") | |
391 | 403 | ||
392 | 404 | ||
393 | 405 | ||
394 | - | @Callable( | |
395 | - | func deleteUser ( | |
396 | - | let x = toString( | |
397 | - | let | |
406 | + | @Callable(at) | |
407 | + | func deleteUser (ad) = { | |
408 | + | let x = toString(at.caller) | |
409 | + | let ae = b(C(ad)) | |
398 | 410 | if (containsElement([f, toString(this)], x)) | |
399 | - | then [DeleteEntry(E( | |
411 | + | then [DeleteEntry(E(ad)), DeleteEntry(w(ad)), DeleteEntry(y(ad)), DeleteEntry(z(ad)), DeleteEntry(A(ad)), DeleteEntry(B(ad)), DeleteEntry(("user_note_" + ad)), DeleteEntry(((ae + "_") + ad)), DeleteEntry(D(ad)), StringEntry(C(ad), s)] | |
400 | 412 | else throw("Not allowed") | |
401 | 413 | } | |
402 | 414 | ||
403 | 415 | ||
404 | 416 | ||
405 | - | @Callable( | |
406 | - | func setAgent (J,L, | |
417 | + | @Callable(ap) | |
418 | + | func setAgent (J,L,aX,aY,aZ) = if (!(j)) | |
407 | 419 | then throw(k) | |
408 | 420 | else { | |
409 | - | let x = toString( | |
421 | + | let x = toString(ap.caller) | |
410 | 422 | if (containsElement([f, toString(this)], x)) | |
411 | 423 | then if (if ((size(J) != 35)) | |
412 | 424 | then true | |
413 | 425 | else (size(L) != 35)) | |
414 | 426 | then throw("Wrong address") | |
415 | - | else [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aT), IntegerEntry(N(J), aU)] | |
427 | + | else if (aZ) | |
428 | + | then [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aX), IntegerEntry(N(J), aY)] | |
429 | + | else [StringEntry(O(J), L), StringEntry(P(L, J), J), IntegerEntry(Q(J), aX), IntegerEntry(R(J), aY)] | |
416 | 430 | else throw("You are not allowed") | |
417 | 431 | } | |
418 | 432 | ||
419 | 433 | ||
420 | 434 | ||
421 | - | @Callable( | |
422 | - | func unsetAgent (J,L) = if (!(j)) | |
435 | + | @Callable(ap) | |
436 | + | func unsetAgent (J,L,aZ) = if (!(j)) | |
423 | 437 | then throw(k) | |
424 | 438 | else { | |
425 | - | let x = toString( | |
439 | + | let x = toString(ap.caller) | |
426 | 440 | if (containsElement([f, toString(this)], x)) | |
427 | 441 | then if (if ((size(J) != 35)) | |
428 | 442 | then true | |
429 | 443 | else (size(L) != 35)) | |
430 | 444 | then throw("Wrong address") | |
431 | - | else [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))] | |
445 | + | else if (aZ) | |
446 | + | then [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))] | |
447 | + | else [DeleteEntry(O(J)), DeleteEntry(P(L, J)), DeleteEntry(Q(J)), DeleteEntry(R(J))] | |
432 | 448 | else throw("You are not allowed") | |
433 | 449 | } | |
434 | 450 | ||
435 | 451 | ||
436 | 452 | ||
437 | - | @Callable( | |
438 | - | func deleteEntry ( | |
439 | - | let x = toString( | |
453 | + | @Callable(ap) | |
454 | + | func deleteEntry (ba) = { | |
455 | + | let x = toString(ap.caller) | |
440 | 456 | if ((x == f)) | |
441 | - | then [DeleteEntry( | |
457 | + | then [DeleteEntry(ba)] | |
442 | 458 | else throw("no") | |
443 | 459 | } | |
444 | 460 | ||
445 | 461 | ||
446 | - | @Verifier( | |
447 | - | func | |
448 | - | let | |
449 | - | if ($isInstanceOf( | |
462 | + | @Verifier(bb) | |
463 | + | func bc () = { | |
464 | + | let am = bb | |
465 | + | if ($isInstanceOf(am, "InvokeScriptTransaction")) | |
450 | 466 | then { | |
451 | - | let | |
452 | - | if (if (if (if (( | |
453 | - | then ( | |
467 | + | let bd = am | |
468 | + | if (if (if (if ((bd.function == "registerUser")) | |
469 | + | then (bd.dApp == this) | |
454 | 470 | else false) | |
455 | - | then ( | |
471 | + | then (bd.fee == 500000) | |
456 | 472 | else false) | |
457 | - | then ( | |
473 | + | then (bd.feeAssetId == unit) | |
458 | 474 | else false) | |
459 | - | then sigVerify( | |
460 | - | else if (if (if (if (( | |
461 | - | then ( | |
475 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[5]))) | |
476 | + | else if (if (if (if ((bd.function == "updateUser")) | |
477 | + | then (bd.dApp == this) | |
462 | 478 | else false) | |
463 | - | then ( | |
479 | + | then (bd.fee == 500000) | |
464 | 480 | else false) | |
465 | - | then ( | |
481 | + | then (bd.feeAssetId == unit) | |
466 | 482 | else false) | |
467 | - | then sigVerify( | |
468 | - | else if (if (if (if (( | |
469 | - | then ( | |
483 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[5]))) | |
484 | + | else if (if (if (if ((bd.function == "setERC20User")) | |
485 | + | then (bd.dApp == this) | |
470 | 486 | else false) | |
471 | - | then ( | |
487 | + | then (bd.fee == 500000) | |
472 | 488 | else false) | |
473 | - | then ( | |
489 | + | then (bd.feeAssetId == unit) | |
474 | 490 | else false) | |
475 | - | then sigVerify( | |
476 | - | else sigVerify( | |
491 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[2]))) | |
492 | + | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
477 | 493 | } | |
478 | - | else sigVerify( | |
494 | + | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
479 | 495 | } | |
480 | 496 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.5" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func d (c) = valueOrElse(getBoolean(this, c), false) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func e (c) = valueOrElse(getInteger(this, c), 0) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | let f = b("conf_admin_1") | |
16 | 16 | ||
17 | 17 | let g = "conf_dapp_is_running" | |
18 | 18 | ||
19 | 19 | let h = "conf_maintenance_msg" | |
20 | 20 | ||
21 | 21 | let i = "conf_whitelisted_only" | |
22 | 22 | ||
23 | 23 | let j = valueOrElse(getBoolean(this, g), true) | |
24 | 24 | ||
25 | 25 | let k = valueOrElse(getString(this, h), "") | |
26 | 26 | ||
27 | 27 | let l = valueOrElse(getBoolean(this, i), true) | |
28 | 28 | ||
29 | 29 | let m = value(addressFromString(b("conf_whitelist_dapp"))) | |
30 | 30 | ||
31 | 31 | let n = value(addressFromString(b("conf_signweb_dapp"))) | |
32 | 32 | ||
33 | 33 | let o = "ALLOWED" | |
34 | 34 | ||
35 | 35 | let p = "REGISTERED" | |
36 | 36 | ||
37 | 37 | let q = "VERIFIED" | |
38 | 38 | ||
39 | 39 | let r = "SUSPENDED" | |
40 | 40 | ||
41 | 41 | let s = "REMOVED" | |
42 | 42 | ||
43 | 43 | let t = "CHANGE_REQUIRED" | |
44 | 44 | ||
45 | 45 | let u = "UNREGISTERED" | |
46 | 46 | ||
47 | 47 | let v = "RESET" | |
48 | 48 | ||
49 | 49 | func w (x) = ("user_" + x) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func y (x) = ("user_name_" + x) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z (x) = ("user_desc_" + x) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func A (x) = ("user_social_" + x) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (x) = ("user_thumb_" + x) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func C (x) = ("user_status_" + x) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func D (x) = ("user_royalties_" + x) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func E (x) = ("user_date_" + x) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func F (x) = ("user_ERC20_" + x) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func G (x) = ("user_note_" + x) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func H (x) = ("user_label_" + x) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func I (J) = ("artist_agent_" + J) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func K (L,J) = ((("agent_" + L) + "_") + J) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func M (J) = ("artist_agent_primary_" + J) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func N (J) = ("artist_agent_secondary_" + J) | |
92 | 92 | ||
93 | 93 | ||
94 | - | func O ( | |
94 | + | func O (J) = ("artist_public_agent_" + J) | |
95 | 95 | ||
96 | 96 | ||
97 | - | func P (Q) = if (contains(Q, "/")) | |
98 | - | then if (if ((76 > size(Q))) | |
99 | - | then (size(split(Q, "/")[0]) == 59) | |
97 | + | func P (L,J) = ((("public_agent_" + L) + "_") + J) | |
98 | + | ||
99 | + | ||
100 | + | func Q (J) = ("artist_public_agent_primary_" + J) | |
101 | + | ||
102 | + | ||
103 | + | func R (J) = ("artist_public_agent_secondary_" + J) | |
104 | + | ||
105 | + | ||
106 | + | func S (c) = valueOrElse(getInteger(m, c), 0) | |
107 | + | ||
108 | + | ||
109 | + | func T (U) = if (contains(U, "/")) | |
110 | + | then if (if ((76 > size(U))) | |
111 | + | then (size(split(U, "/")[0]) == 59) | |
100 | 112 | else false) | |
101 | - | then (16 > size(split( | |
113 | + | then (16 > size(split(U, "/")[1])) | |
102 | 114 | else false | |
103 | 115 | else false | |
104 | 116 | ||
105 | 117 | ||
106 | - | func | |
107 | - | let | |
108 | - | then | |
118 | + | func V (x,W,X,Y,Z) = { | |
119 | + | let aa = if ((size(Y) != 0)) | |
120 | + | then T(Y) | |
109 | 121 | else true | |
110 | - | if (!( | |
122 | + | if (!(aa)) | |
111 | 123 | then throw("CID don't match requirement!") | |
112 | - | else if (if (( | |
124 | + | else if (if ((W == "")) | |
113 | 125 | then true | |
114 | - | else ( | |
126 | + | else (X == "")) | |
115 | 127 | then throw("Name and description cannot be empty") | |
116 | - | else if ((size( | |
128 | + | else if ((size(X) > 600)) | |
117 | 129 | then throw("600 Char. max description") | |
118 | - | else if ((size( | |
130 | + | else if ((size(W) > 45)) | |
119 | 131 | then throw("45 Char. max name") | |
120 | 132 | else { | |
121 | - | let | |
122 | - | if (if (( | |
133 | + | let ab = b(C(x)) | |
134 | + | if (if ((ab == r)) | |
123 | 135 | then true | |
124 | - | else ( | |
136 | + | else (ab == s)) | |
125 | 137 | then throw("Account suspended/ removed.") | |
126 | - | else if (if (!( | |
127 | - | then ( | |
138 | + | else if (if (!(Z)) | |
139 | + | then (ab == p) | |
128 | 140 | else false) | |
129 | 141 | then throw("Already registered") | |
130 | - | else if (if (if (!( | |
131 | - | then ( | |
142 | + | else if (if (if (!(Z)) | |
143 | + | then (ab == "") | |
132 | 144 | else false) | |
133 | 145 | then l | |
134 | 146 | else false) | |
135 | 147 | then throw("Can't register, get approved first.") | |
136 | - | else if (if (if ( | |
137 | - | then ( | |
148 | + | else if (if (if (Z) | |
149 | + | then (ab == "") | |
138 | 150 | else false) | |
139 | 151 | then true | |
140 | - | else if ( | |
141 | - | then ( | |
152 | + | else if (Z) | |
153 | + | then (ab == o) | |
142 | 154 | else false) | |
143 | 155 | then throw("Register first") | |
144 | 156 | else true | |
145 | 157 | } | |
146 | 158 | } | |
147 | 159 | ||
148 | 160 | ||
149 | - | func | |
150 | - | let | |
151 | - | let | |
152 | - | then | |
153 | - | else if (if (( | |
154 | - | then ( | |
161 | + | func ac (ab,ad,ae) = { | |
162 | + | let af = [q, p, r, s, o, t] | |
163 | + | let ag = if (containsElement(af, ab)) | |
164 | + | then ab | |
165 | + | else if (if ((ab == v)) | |
166 | + | then (ae == o) | |
155 | 167 | else false) | |
156 | 168 | then "" | |
157 | 169 | else throw("Unknown status") | |
158 | - | let | |
159 | - | if (if (( | |
160 | - | then ( | |
170 | + | let ah = e(E(ad)) | |
171 | + | if (if ((ah == 0)) | |
172 | + | then (ag != o) | |
161 | 173 | else false) | |
162 | 174 | then throw("You cant set this status, user is not registered.") | |
163 | - | else if (if (( | |
164 | - | then ( | |
175 | + | else if (if ((ae == o)) | |
176 | + | then (ag == o) | |
165 | 177 | else false) | |
166 | 178 | then throw("User already allowed") | |
167 | - | else if (if (( | |
168 | - | then ( | |
179 | + | else if (if ((ae == p)) | |
180 | + | then (ag == o) | |
169 | 181 | else false) | |
170 | 182 | then throw("User already allowed & registered") | |
171 | - | else if (if (( | |
172 | - | then ( | |
183 | + | else if (if ((ae == q)) | |
184 | + | then (ag == o) | |
173 | 185 | else false) | |
174 | 186 | then throw("User already allowed & verified") | |
175 | - | else | |
187 | + | else ag | |
176 | 188 | } | |
177 | 189 | ||
178 | 190 | ||
179 | - | func | |
191 | + | func ai (W,Y,aj) = (((((("{\"user_name\": \"" + W) + "\", \"user_thumb\":\"") + Y) + "\",\"user_date\":\"") + aj) + "\"}") | |
180 | 192 | ||
181 | 193 | ||
182 | - | func | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
194 | + | func ak (al) = { | |
195 | + | let am = al | |
196 | + | if ($isInstanceOf(am, "String")) | |
185 | 197 | then { | |
186 | - | let | |
187 | - | | |
198 | + | let an = am | |
199 | + | an | |
188 | 200 | } | |
189 | 201 | else throw("Sponsored Public Key String expected") | |
190 | 202 | } | |
191 | 203 | ||
192 | 204 | ||
193 | - | func | |
194 | - | let | |
195 | - | then valueOrElse( | |
205 | + | func ao (ap,aq) = { | |
206 | + | let ar = if ((aq != "")) | |
207 | + | then valueOrElse(S((toString(addressFromPublicKey(fromBase58String(aq))) + "_free_txs")), 0) | |
196 | 208 | else 0 | |
197 | - | let x = if (if ((toBase58String( | |
198 | - | then ( | |
209 | + | let x = if (if ((toBase58String(ap.caller.bytes) == toString(this))) | |
210 | + | then (ar > 0) | |
199 | 211 | else false) | |
200 | - | then toString(addressFromPublicKey(fromBase58String( | |
201 | - | else toBase58String( | |
202 | - | let | |
203 | - | then ( | |
212 | + | then toString(addressFromPublicKey(fromBase58String(aq))) | |
213 | + | else toBase58String(ap.caller.bytes) | |
214 | + | let as = if (if ((aq != "")) | |
215 | + | then (ar > 0) | |
204 | 216 | else false) | |
205 | - | then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String( | |
217 | + | then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(aq)))], nil) | |
206 | 218 | else unit | |
207 | - | if (( | |
208 | - | then $Tuple2(x, ( | |
219 | + | if ((as == as)) | |
220 | + | then $Tuple2(x, (ar > 0)) | |
209 | 221 | else throw("Strict value is not equal to itself.") | |
210 | 222 | } | |
211 | 223 | ||
212 | 224 | ||
213 | - | @Callable( | |
214 | - | func setConf (c, | |
215 | - | let x = toString( | |
225 | + | @Callable(at) | |
226 | + | func setConf (c,au) = { | |
227 | + | let x = toString(at.caller) | |
216 | 228 | if (containsElement([f, toString(this)], x)) | |
217 | - | then [StringEntry(c, | |
229 | + | then [StringEntry(c, au)] | |
218 | 230 | else throw("You are not allowed to change this") | |
219 | 231 | } | |
220 | 232 | ||
221 | 233 | ||
222 | 234 | ||
223 | - | @Callable( | |
224 | - | func appRunning ( | |
225 | - | let x = toString( | |
235 | + | @Callable(at) | |
236 | + | func appRunning (av,aw) = { | |
237 | + | let x = toString(at.caller) | |
226 | 238 | if (containsElement([f, toString(this)], x)) | |
227 | - | then [BooleanEntry(g, | |
239 | + | then [BooleanEntry(g, av), StringEntry(h, aw)] | |
228 | 240 | else throw("You are not allowed to change this") | |
229 | 241 | } | |
230 | 242 | ||
231 | 243 | ||
232 | 244 | ||
233 | - | @Callable( | |
234 | - | func registrationMode ( | |
235 | - | let x = toString( | |
245 | + | @Callable(at) | |
246 | + | func registrationMode (ax) = { | |
247 | + | let x = toString(at.caller) | |
236 | 248 | if (containsElement([f, toString(this)], x)) | |
237 | - | then [BooleanEntry(i, | |
249 | + | then [BooleanEntry(i, ax)] | |
238 | 250 | else throw("You are not allowed to change this") | |
239 | 251 | } | |
240 | 252 | ||
241 | 253 | ||
242 | 254 | ||
243 | - | @Callable( | |
244 | - | func registerUser ( | |
255 | + | @Callable(at) | |
256 | + | func registerUser (W,X,Y,ay,az,aq) = if (!(j)) | |
245 | 257 | then throw(k) | |
246 | 258 | else { | |
247 | - | let | |
248 | - | let x = | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | if (!( | |
259 | + | let aA = ao(at, aq) | |
260 | + | let x = aA._1 | |
261 | + | let ar = aA._2 | |
262 | + | let aB = toBase58String(at.transactionId) | |
263 | + | let aC = lastBlock.timestamp | |
264 | + | let aD = b(G(x)) | |
265 | + | let aE = b(H(x)) | |
266 | + | if (!(V(x, W, X, Y, false))) | |
255 | 267 | then throw("Something went wrong") | |
256 | 268 | else { | |
257 | - | let | |
258 | - | if (if ((0 > | |
269 | + | let aF = ai(toBase64String(toBytes(W)), toBase64String(toBytes(Y)), toString(aC)) | |
270 | + | if (if ((0 > az)) | |
259 | 271 | then true | |
260 | - | else ( | |
272 | + | else (az > 1000)) | |
261 | 273 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
262 | 274 | else { | |
263 | - | let | |
275 | + | let aG = if (ar) | |
264 | 276 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
265 | 277 | else nil | |
266 | - | ([IntegerEntry(E(x), | |
278 | + | ([IntegerEntry(E(x), aC), StringEntry(w(x), ((aB + "_") + toString(aC))), StringEntry(y(x), W), StringEntry(z(x), X), StringEntry(A(x), ay), StringEntry(B(x), Y), StringEntry(C(x), p), IntegerEntry(D(x), az), DeleteEntry(("ALLOWED_" + x)), StringEntry(((p + "_") + x), aF), StringEntry(G(x), aD), StringEntry(H(x), aE)] ++ aG) | |
267 | 279 | } | |
268 | 280 | } | |
269 | 281 | } | |
270 | 282 | ||
271 | 283 | ||
272 | 284 | ||
273 | - | @Callable( | |
274 | - | func updateUser ( | |
285 | + | @Callable(at) | |
286 | + | func updateUser (W,X,Y,ay,az,aq) = if (!(j)) | |
275 | 287 | then throw(k) | |
276 | 288 | else { | |
277 | - | let | |
278 | - | let x = | |
279 | - | let | |
280 | - | let | |
281 | - | if (!( | |
289 | + | let aH = ao(at, aq) | |
290 | + | let x = aH._1 | |
291 | + | let ar = aH._2 | |
292 | + | let ab = b(C(x)) | |
293 | + | if (!(V(x, W, X, Y, true))) | |
282 | 294 | then throw("Something went wrong") | |
283 | 295 | else { | |
284 | - | let | |
285 | - | let | |
286 | - | if (if ((0 > | |
296 | + | let aj = e(E(x)) | |
297 | + | let aF = ai(toBase64String(toBytes(W)), toBase64String(toBytes(Y)), toString(aj)) | |
298 | + | if (if ((0 > az)) | |
287 | 299 | then true | |
288 | - | else ( | |
300 | + | else (az > 1000)) | |
289 | 301 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
290 | 302 | else { | |
291 | - | let | |
303 | + | let aG = if (ar) | |
292 | 304 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
293 | 305 | else nil | |
294 | - | ([StringEntry(y(x), | |
306 | + | ([StringEntry(y(x), W), StringEntry(z(x), X), StringEntry(A(x), ay), StringEntry(B(x), Y), IntegerEntry(D(x), az), StringEntry(((ab + "_") + x), aF)] ++ aG) | |
295 | 307 | } | |
296 | 308 | } | |
297 | 309 | } | |
298 | 310 | ||
299 | 311 | ||
300 | 312 | ||
301 | - | @Callable( | |
302 | - | func setERC20User ( | |
313 | + | @Callable(at) | |
314 | + | func setERC20User (aI,aq) = if (!(j)) | |
303 | 315 | then throw(k) | |
304 | 316 | else { | |
305 | - | let | |
306 | - | let x = | |
307 | - | let | |
308 | - | let | |
309 | - | if (if (( | |
310 | - | then ( | |
317 | + | let aJ = ao(at, aq) | |
318 | + | let x = aJ._1 | |
319 | + | let ar = aJ._2 | |
320 | + | let ab = b(C(x)) | |
321 | + | if (if ((ab != p)) | |
322 | + | then (ab != q) | |
311 | 323 | else false) | |
312 | 324 | then throw("Not allowed to set ERC20 address") | |
313 | 325 | else { | |
314 | - | let | |
315 | - | if (if (( | |
326 | + | let aK = take(aI, 2) | |
327 | + | if (if ((aK != "0x")) | |
316 | 328 | then true | |
317 | - | else (size( | |
329 | + | else (size(aI) != 42)) | |
318 | 330 | then throw("This is not an erc20 address") | |
319 | 331 | else { | |
320 | - | let | |
332 | + | let aG = if (ar) | |
321 | 333 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
322 | 334 | else nil | |
323 | - | ([StringEntry(F(x), | |
335 | + | ([StringEntry(F(x), aI)] ++ aG) | |
324 | 336 | } | |
325 | 337 | } | |
326 | 338 | } | |
327 | 339 | ||
328 | 340 | ||
329 | 341 | ||
330 | - | @Callable( | |
331 | - | func changeUserStatus ( | |
332 | - | let x = toString( | |
333 | - | if ((size( | |
342 | + | @Callable(at) | |
343 | + | func changeUserStatus (ad,ab,aD,aE,aL,aM,aN,aO) = { | |
344 | + | let x = toString(at.caller) | |
345 | + | if ((size(ad) == 0)) | |
334 | 346 | then throw("Address cannot be empty") | |
335 | 347 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | then | |
340 | - | else | |
341 | - | let | |
342 | - | then | |
343 | - | else | |
348 | + | let aP = b(G(ad)) | |
349 | + | let aQ = b(H(ad)) | |
350 | + | let aR = if ((size(aD) != 0)) | |
351 | + | then aD | |
352 | + | else aP | |
353 | + | let aS = if ((size(aE) != 0)) | |
354 | + | then aE | |
355 | + | else aQ | |
344 | 356 | if (containsElement([f, toString(this)], x)) | |
345 | 357 | then { | |
346 | - | let | |
347 | - | then invoke(n, "whitelistFreeCertifications", [ | |
358 | + | let aT = if ((aL != 0)) | |
359 | + | then invoke(n, "whitelistFreeCertifications", [ad, aL, true], nil) | |
348 | 360 | else nil | |
349 | - | if (( | |
361 | + | if ((aT == aT)) | |
350 | 362 | then { | |
351 | - | let | |
352 | - | then invoke(m, "whitelistFreeTxs", [ | |
363 | + | let aU = if ((aM != 0)) | |
364 | + | then invoke(m, "whitelistFreeTxs", [ad, aM, true], nil) | |
353 | 365 | else nil | |
354 | - | if (( | |
366 | + | if ((aU == aU)) | |
355 | 367 | then { | |
356 | - | let | |
357 | - | then invoke(m, "whitelistFreeDrop", [ | |
368 | + | let aV = if ((aN != 0)) | |
369 | + | then invoke(m, "whitelistFreeDrop", [ad, aN, true], nil) | |
358 | 370 | else nil | |
359 | - | if (( | |
371 | + | if ((aV == aV)) | |
360 | 372 | then { | |
361 | - | let | |
362 | - | then invoke(m, "whitelist", [ | |
373 | + | let aW = if ((aO != 0)) | |
374 | + | then invoke(m, "whitelist", [ad, aO], nil) | |
363 | 375 | else nil | |
364 | - | if (( | |
376 | + | if ((aW == aW)) | |
365 | 377 | then { | |
366 | - | let | |
367 | - | if ((size( | |
368 | - | then if (( | |
378 | + | let ae = b(C(ad)) | |
379 | + | if ((size(ab) == 0)) | |
380 | + | then if ((ae == "")) | |
369 | 381 | then throw("User have no status yet") | |
370 | - | else [StringEntry(G( | |
382 | + | else [StringEntry(G(ad), aR), StringEntry(H(ad), aS)] | |
371 | 383 | else { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | [StringEntry(C( | |
384 | + | let ag = ac(ab, ad, ae) | |
385 | + | let W = toBase64String(toBytes(b(y(ad)))) | |
386 | + | let Y = toBase64String(toBytes(b(B(ad)))) | |
387 | + | let aj = e(E(ad)) | |
388 | + | let aF = ai(W, Y, toString(aj)) | |
389 | + | [StringEntry(C(ad), ag), DeleteEntry(((ae + "_") + ad)), StringEntry(((ag + "_") + ad), aF), StringEntry(G(ad), aR), StringEntry(H(ad), aS)] | |
378 | 390 | } | |
379 | 391 | } | |
380 | 392 | else throw("Strict value is not equal to itself.") | |
381 | 393 | } | |
382 | 394 | else throw("Strict value is not equal to itself.") | |
383 | 395 | } | |
384 | 396 | else throw("Strict value is not equal to itself.") | |
385 | 397 | } | |
386 | 398 | else throw("Strict value is not equal to itself.") | |
387 | 399 | } | |
388 | 400 | else throw("Not allowed to change user status") | |
389 | 401 | } | |
390 | 402 | } | |
391 | 403 | ||
392 | 404 | ||
393 | 405 | ||
394 | - | @Callable( | |
395 | - | func deleteUser ( | |
396 | - | let x = toString( | |
397 | - | let | |
406 | + | @Callable(at) | |
407 | + | func deleteUser (ad) = { | |
408 | + | let x = toString(at.caller) | |
409 | + | let ae = b(C(ad)) | |
398 | 410 | if (containsElement([f, toString(this)], x)) | |
399 | - | then [DeleteEntry(E( | |
411 | + | then [DeleteEntry(E(ad)), DeleteEntry(w(ad)), DeleteEntry(y(ad)), DeleteEntry(z(ad)), DeleteEntry(A(ad)), DeleteEntry(B(ad)), DeleteEntry(("user_note_" + ad)), DeleteEntry(((ae + "_") + ad)), DeleteEntry(D(ad)), StringEntry(C(ad), s)] | |
400 | 412 | else throw("Not allowed") | |
401 | 413 | } | |
402 | 414 | ||
403 | 415 | ||
404 | 416 | ||
405 | - | @Callable( | |
406 | - | func setAgent (J,L, | |
417 | + | @Callable(ap) | |
418 | + | func setAgent (J,L,aX,aY,aZ) = if (!(j)) | |
407 | 419 | then throw(k) | |
408 | 420 | else { | |
409 | - | let x = toString( | |
421 | + | let x = toString(ap.caller) | |
410 | 422 | if (containsElement([f, toString(this)], x)) | |
411 | 423 | then if (if ((size(J) != 35)) | |
412 | 424 | then true | |
413 | 425 | else (size(L) != 35)) | |
414 | 426 | then throw("Wrong address") | |
415 | - | else [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aT), IntegerEntry(N(J), aU)] | |
427 | + | else if (aZ) | |
428 | + | then [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aX), IntegerEntry(N(J), aY)] | |
429 | + | else [StringEntry(O(J), L), StringEntry(P(L, J), J), IntegerEntry(Q(J), aX), IntegerEntry(R(J), aY)] | |
416 | 430 | else throw("You are not allowed") | |
417 | 431 | } | |
418 | 432 | ||
419 | 433 | ||
420 | 434 | ||
421 | - | @Callable( | |
422 | - | func unsetAgent (J,L) = if (!(j)) | |
435 | + | @Callable(ap) | |
436 | + | func unsetAgent (J,L,aZ) = if (!(j)) | |
423 | 437 | then throw(k) | |
424 | 438 | else { | |
425 | - | let x = toString( | |
439 | + | let x = toString(ap.caller) | |
426 | 440 | if (containsElement([f, toString(this)], x)) | |
427 | 441 | then if (if ((size(J) != 35)) | |
428 | 442 | then true | |
429 | 443 | else (size(L) != 35)) | |
430 | 444 | then throw("Wrong address") | |
431 | - | else [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))] | |
445 | + | else if (aZ) | |
446 | + | then [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))] | |
447 | + | else [DeleteEntry(O(J)), DeleteEntry(P(L, J)), DeleteEntry(Q(J)), DeleteEntry(R(J))] | |
432 | 448 | else throw("You are not allowed") | |
433 | 449 | } | |
434 | 450 | ||
435 | 451 | ||
436 | 452 | ||
437 | - | @Callable( | |
438 | - | func deleteEntry ( | |
439 | - | let x = toString( | |
453 | + | @Callable(ap) | |
454 | + | func deleteEntry (ba) = { | |
455 | + | let x = toString(ap.caller) | |
440 | 456 | if ((x == f)) | |
441 | - | then [DeleteEntry( | |
457 | + | then [DeleteEntry(ba)] | |
442 | 458 | else throw("no") | |
443 | 459 | } | |
444 | 460 | ||
445 | 461 | ||
446 | - | @Verifier( | |
447 | - | func | |
448 | - | let | |
449 | - | if ($isInstanceOf( | |
462 | + | @Verifier(bb) | |
463 | + | func bc () = { | |
464 | + | let am = bb | |
465 | + | if ($isInstanceOf(am, "InvokeScriptTransaction")) | |
450 | 466 | then { | |
451 | - | let | |
452 | - | if (if (if (if (( | |
453 | - | then ( | |
467 | + | let bd = am | |
468 | + | if (if (if (if ((bd.function == "registerUser")) | |
469 | + | then (bd.dApp == this) | |
454 | 470 | else false) | |
455 | - | then ( | |
471 | + | then (bd.fee == 500000) | |
456 | 472 | else false) | |
457 | - | then ( | |
473 | + | then (bd.feeAssetId == unit) | |
458 | 474 | else false) | |
459 | - | then sigVerify( | |
460 | - | else if (if (if (if (( | |
461 | - | then ( | |
475 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[5]))) | |
476 | + | else if (if (if (if ((bd.function == "updateUser")) | |
477 | + | then (bd.dApp == this) | |
462 | 478 | else false) | |
463 | - | then ( | |
479 | + | then (bd.fee == 500000) | |
464 | 480 | else false) | |
465 | - | then ( | |
481 | + | then (bd.feeAssetId == unit) | |
466 | 482 | else false) | |
467 | - | then sigVerify( | |
468 | - | else if (if (if (if (( | |
469 | - | then ( | |
483 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[5]))) | |
484 | + | else if (if (if (if ((bd.function == "setERC20User")) | |
485 | + | then (bd.dApp == this) | |
470 | 486 | else false) | |
471 | - | then ( | |
487 | + | then (bd.fee == 500000) | |
472 | 488 | else false) | |
473 | - | then ( | |
489 | + | then (bd.feeAssetId == unit) | |
474 | 490 | else false) | |
475 | - | then sigVerify( | |
476 | - | else sigVerify( | |
491 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], fromBase58String(ak(bd.args[2]))) | |
492 | + | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
477 | 493 | } | |
478 | - | else sigVerify( | |
494 | + | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
479 | 495 | } | |
480 | 496 |
github/deemru/w8io/026f985 168.27 ms ◑