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