tx · MQZ6iNnQrGPVjN63PmjDaVJncTAMd2jRrhnHh8ej5rh 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01300000 Waves 2023.02.01 05:37 [2429952] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "MQZ6iNnQrGPVjN63PmjDaVJncTAMd2jRrhnHh8ej5rh", "fee": 1300000, "feeAssetId": null, "timestamp": 1675219030635, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "BKhZZ8bQQ3yZBVeaPZaX3zdxCW9tAQAWwLR23zi39WQW6Rht3xjQn4qhCpa69UUmR11nB2LsfHGfoKJfjhn4isn" ], "script": "base64:BgJRCAISBAoCCAgSBAoCBAgSAwoBBBIICgYICAgIAQgSCAoGCAgICAEIEgQKAggIEgoKCAgICAgBAQEBEgMKAQgSBgoECAgBARIECgIICBIDCgEIKwAHVkVSU0lPTgIDMS41AQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAQ9nZXRCb29sZWFuQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmwgCBQR0aGlzBQNrZXkHAQ9nZXRJbnRlZ2VyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZXkAAAAFY2hyaXMJAQ5nZXRTdHJpbmdCeUtleQECDGNvbmZfYWRtaW5fMQAOZGFwcFJ1bm5pbmdLZXkCFGNvbmZfZGFwcF9pc19ydW5uaW5nABFtYWludGVuYW5jZU1TR0tleQIUY29uZl9tYWludGVuYW5jZV9tc2cAEndoaXRlbGlzdGVkb25seUtleQIVY29uZl93aGl0ZWxpc3RlZF9vbmx5AAtkYXBwUnVubmluZwkBC3ZhbHVlT3J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ZwEJAJEDAggFA2ludgRhcmdzAAUDAwMDCQAAAggFA2ludghmdW5jdGlvbgIMc2V0RVJDMjBVc2VyCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAIJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmmVKMb", "height": 2429952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2JDTZvDqQHAfid7rfw6CL2yQgNsHJxabq3prHorYEW9m Next: 95cZ9HS3MyCatKeULv9dGckYC29t9Q3b6kAdnqkScGCt Diff:
Old | New | Differences | |
---|---|---|---|
191 | 191 | ||
192 | 192 | ||
193 | 193 | func ak (al,am) = if (true) | |
194 | - | then throw(("Pubkey: " + am)) | |
194 | + | then throw(((("Pubkey: " + am) + " Address from pubkey: ") + toString(addressFromPublicKey(fromBase58String(am))))) | |
195 | 195 | else { | |
196 | 196 | let an = if ((am != "")) | |
197 | 197 | then valueOrElse(O((toString(addressFromPublicKey(fromBase58String(am))) + "_free_txs")), 0) |
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) = if (true) | |
194 | - | then throw(("Pubkey: " + am)) | |
194 | + | then throw(((("Pubkey: " + am) + " Address from pubkey: ") + toString(addressFromPublicKey(fromBase58String(am))))) | |
195 | 195 | else { | |
196 | 196 | let an = if ((am != "")) | |
197 | 197 | then valueOrElse(O((toString(addressFromPublicKey(fromBase58String(am))) + "_free_txs")), 0) | |
198 | 198 | else 0 | |
199 | 199 | let x = if (if ((toBase58String(al.caller.bytes) == toString(this))) | |
200 | 200 | then (an > 0) | |
201 | 201 | else false) | |
202 | 202 | then toString(addressFromPublicKey(fromBase58String(am))) | |
203 | 203 | else toBase58String(al.caller.bytes) | |
204 | 204 | let ao = if ((am != "")) | |
205 | 205 | then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(am)))], nil) | |
206 | 206 | else unit | |
207 | 207 | if ((ao == ao)) | |
208 | 208 | then $Tuple2(x, (an > 0)) | |
209 | 209 | else throw("Strict value is not equal to itself.") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(ap) | |
214 | 214 | func setConf (c,aq) = { | |
215 | 215 | let x = toString(ap.caller) | |
216 | 216 | if (containsElement([f, toString(this)], x)) | |
217 | 217 | then [StringEntry(c, aq)] | |
218 | 218 | else throw("You are not allowed to change this") | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(ap) | |
224 | 224 | func appRunning (ar,as) = { | |
225 | 225 | let x = toString(ap.caller) | |
226 | 226 | if (containsElement([f, toString(this)], x)) | |
227 | 227 | then [BooleanEntry(g, ar), StringEntry(h, as)] | |
228 | 228 | else throw("You are not allowed to change this") | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(ap) | |
234 | 234 | func registrationMode (at) = { | |
235 | 235 | let x = toString(ap.caller) | |
236 | 236 | if (containsElement([f, toString(this)], x)) | |
237 | 237 | then [BooleanEntry(i, at)] | |
238 | 238 | else throw("You are not allowed to change this") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(ap) | |
244 | 244 | func registerUser (S,T,U,au,av,am) = if (!(j)) | |
245 | 245 | then throw(k) | |
246 | 246 | else { | |
247 | 247 | let aw = ak(ap, am) | |
248 | 248 | let x = aw._1 | |
249 | 249 | let an = aw._2 | |
250 | 250 | let ax = toBase58String(ap.transactionId) | |
251 | 251 | let ay = lastBlock.timestamp | |
252 | 252 | let az = b(G(x)) | |
253 | 253 | let aA = b(H(x)) | |
254 | 254 | if (!(R(x, S, T, U, false))) | |
255 | 255 | then throw("Something went wrong") | |
256 | 256 | else { | |
257 | 257 | let aB = ae(toBase64String(toBytes(S)), toBase64String(toBytes(U)), toString(ay)) | |
258 | 258 | if (if ((0 > av)) | |
259 | 259 | then true | |
260 | 260 | else (av > 1000)) | |
261 | 261 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
262 | 262 | else { | |
263 | 263 | let aC = if (an) | |
264 | 264 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
265 | 265 | else nil | |
266 | 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) | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(ap) | |
274 | 274 | func updateUser (S,T,U,au,av,am) = if (!(j)) | |
275 | 275 | then throw(k) | |
276 | 276 | else { | |
277 | 277 | let aD = ak(ap, am) | |
278 | 278 | let x = aD._1 | |
279 | 279 | let an = aD._2 | |
280 | 280 | let X = b(C(x)) | |
281 | 281 | if (!(R(x, S, T, U, true))) | |
282 | 282 | then throw("Something went wrong") | |
283 | 283 | else { | |
284 | 284 | let af = e(E(x)) | |
285 | 285 | let aB = ae(toBase64String(toBytes(S)), toBase64String(toBytes(U)), toString(af)) | |
286 | 286 | if (if ((0 > av)) | |
287 | 287 | then true | |
288 | 288 | else (av > 1000)) | |
289 | 289 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
290 | 290 | else { | |
291 | 291 | let aC = if (an) | |
292 | 292 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
293 | 293 | else nil | |
294 | 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) | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | 301 | @Callable(ap) | |
302 | 302 | func setERC20User (aE,am) = if (!(j)) | |
303 | 303 | then throw(k) | |
304 | 304 | else { | |
305 | 305 | let aF = ak(ap, am) | |
306 | 306 | let x = aF._1 | |
307 | 307 | let an = aF._2 | |
308 | 308 | let X = b(C(x)) | |
309 | 309 | if (if ((X != p)) | |
310 | 310 | then (X != q) | |
311 | 311 | else false) | |
312 | 312 | then throw("Not allowed to set ERC20 address") | |
313 | 313 | else { | |
314 | 314 | let aG = take(aE, 2) | |
315 | 315 | if (if ((aG != "0x")) | |
316 | 316 | then true | |
317 | 317 | else (size(aE) != 42)) | |
318 | 318 | then throw("This is not an erc20 address") | |
319 | 319 | else { | |
320 | 320 | let aC = if (an) | |
321 | 321 | then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)] | |
322 | 322 | else nil | |
323 | 323 | ([StringEntry(F(x), aE)] ++ aC) | |
324 | 324 | } | |
325 | 325 | } | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(ap) | |
331 | 331 | func changeUserStatus (Z,X,az,aA,aH,aI,aJ,aK) = { | |
332 | 332 | let x = toString(ap.caller) | |
333 | 333 | if ((size(Z) == 0)) | |
334 | 334 | then throw("Address cannot be empty") | |
335 | 335 | else { | |
336 | 336 | let aL = b(G(Z)) | |
337 | 337 | let aM = b(H(Z)) | |
338 | 338 | let aN = if ((size(az) != 0)) | |
339 | 339 | then az | |
340 | 340 | else aL | |
341 | 341 | let aO = if ((size(aA) != 0)) | |
342 | 342 | then aA | |
343 | 343 | else aM | |
344 | 344 | if (containsElement([f, toString(this)], x)) | |
345 | 345 | then { | |
346 | 346 | let aP = if ((aH != 0)) | |
347 | 347 | then invoke(n, "whitelistFreeCertifications", [Z, aH, true], nil) | |
348 | 348 | else nil | |
349 | 349 | if ((aP == aP)) | |
350 | 350 | then { | |
351 | 351 | let aQ = if ((aI != 0)) | |
352 | 352 | then invoke(m, "whitelistFreeTxs", [Z, aI, true], nil) | |
353 | 353 | else nil | |
354 | 354 | if ((aQ == aQ)) | |
355 | 355 | then { | |
356 | 356 | let aR = if ((aJ != 0)) | |
357 | 357 | then invoke(m, "whitelistFreeDrop", [Z, aJ, true], nil) | |
358 | 358 | else nil | |
359 | 359 | if ((aR == aR)) | |
360 | 360 | then { | |
361 | 361 | let aS = if ((aK != 0)) | |
362 | 362 | then invoke(m, "whitelist", [Z, aK], nil) | |
363 | 363 | else nil | |
364 | 364 | if ((aS == aS)) | |
365 | 365 | then { | |
366 | 366 | let aa = b(C(Z)) | |
367 | 367 | if ((size(X) == 0)) | |
368 | 368 | then if ((aa == "")) | |
369 | 369 | then throw("User have no status yet") | |
370 | 370 | else [StringEntry(G(Z), aN), StringEntry(H(Z), aO)] | |
371 | 371 | else { | |
372 | 372 | let ac = Y(X, Z, aa) | |
373 | 373 | let S = toBase64String(toBytes(b(y(Z)))) | |
374 | 374 | let U = toBase64String(toBytes(b(B(Z)))) | |
375 | 375 | let af = e(E(Z)) | |
376 | 376 | let aB = ae(S, U, toString(af)) | |
377 | 377 | [StringEntry(C(Z), ac), DeleteEntry(((aa + "_") + Z)), StringEntry(((ac + "_") + Z), aB), StringEntry(G(Z), aN), StringEntry(H(Z), aO)] | |
378 | 378 | } | |
379 | 379 | } | |
380 | 380 | else throw("Strict value is not equal to itself.") | |
381 | 381 | } | |
382 | 382 | else throw("Strict value is not equal to itself.") | |
383 | 383 | } | |
384 | 384 | else throw("Strict value is not equal to itself.") | |
385 | 385 | } | |
386 | 386 | else throw("Strict value is not equal to itself.") | |
387 | 387 | } | |
388 | 388 | else throw("Not allowed to change user status") | |
389 | 389 | } | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(ap) | |
395 | 395 | func deleteUser (Z) = { | |
396 | 396 | let x = toString(ap.caller) | |
397 | 397 | let aa = b(C(Z)) | |
398 | 398 | if (containsElement([f, toString(this)], x)) | |
399 | 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)] | |
400 | 400 | else throw("Not allowed") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(al) | |
406 | 406 | func setAgent (J,L,aT,aU) = if (!(j)) | |
407 | 407 | then throw(k) | |
408 | 408 | else { | |
409 | 409 | let x = toString(al.caller) | |
410 | 410 | if (containsElement([f, toString(this)], x)) | |
411 | 411 | then if (if ((size(J) != 35)) | |
412 | 412 | then true | |
413 | 413 | else (size(L) != 35)) | |
414 | 414 | then throw("Wrong address") | |
415 | 415 | else [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aT), IntegerEntry(N(J), aU)] | |
416 | 416 | else throw("You are not allowed") | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | ||
421 | 421 | @Callable(al) | |
422 | 422 | func unsetAgent (J,L) = if (!(j)) | |
423 | 423 | then throw(k) | |
424 | 424 | else { | |
425 | 425 | let x = toString(al.caller) | |
426 | 426 | if (containsElement([f, toString(this)], x)) | |
427 | 427 | then if (if ((size(J) != 35)) | |
428 | 428 | then true | |
429 | 429 | else (size(L) != 35)) | |
430 | 430 | then throw("Wrong address") | |
431 | 431 | else [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))] | |
432 | 432 | else throw("You are not allowed") | |
433 | 433 | } | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | ||
437 | 437 | @Callable(al) | |
438 | 438 | func deleteEntry (aV) = { | |
439 | 439 | let x = toString(al.caller) | |
440 | 440 | if ((x == f)) | |
441 | 441 | then [DeleteEntry(aV)] | |
442 | 442 | else throw("no") | |
443 | 443 | } | |
444 | 444 | ||
445 | 445 | ||
446 | 446 | @Verifier(aW) | |
447 | 447 | func aX () = { | |
448 | 448 | let ai = aW | |
449 | 449 | if ($isInstanceOf(ai, "InvokeScriptTransaction")) | |
450 | 450 | then { | |
451 | 451 | let aY = ai | |
452 | 452 | if (if (if (if ((aY.function == "registerUser")) | |
453 | 453 | then (aY.dApp == this) | |
454 | 454 | else false) | |
455 | 455 | then (aY.fee == 500000) | |
456 | 456 | else false) | |
457 | 457 | then (aY.feeAssetId == unit) | |
458 | 458 | else false) | |
459 | 459 | then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[5]))) | |
460 | 460 | else if (if (if (if ((aY.function == "updateUser")) | |
461 | 461 | then (aY.dApp == this) | |
462 | 462 | else false) | |
463 | 463 | then (aY.fee == 500000) | |
464 | 464 | else false) | |
465 | 465 | then (aY.feeAssetId == unit) | |
466 | 466 | else false) | |
467 | 467 | then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[5]))) | |
468 | 468 | else if (if (if (if ((aY.function == "setERC20User")) | |
469 | 469 | then (aY.dApp == this) | |
470 | 470 | else false) | |
471 | 471 | then (aY.fee == 500000) | |
472 | 472 | else false) | |
473 | 473 | then (aY.feeAssetId == unit) | |
474 | 474 | else false) | |
475 | 475 | then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[2]))) | |
476 | 476 | else sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey) | |
477 | 477 | } | |
478 | 478 | else sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey) | |
479 | 479 | } | |
480 | 480 |
github/deemru/w8io/169f3d6 79.41 ms ◑