tx · 8QsaJyAMffrFVfu4kC3i4QH54XWK1XBzKSjakskBWwR9 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj: -0.01400000 Waves 2022.09.07 09:11 [2218312] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves
{ "type": 13, "id": "8QsaJyAMffrFVfu4kC3i4QH54XWK1XBzKSjakskBWwR9", "fee": 1400000, "feeAssetId": null, "timestamp": 1662531142207, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "519GVWiVPDcWoed3VFXXHNhjzjq1BEdmwBLiUt8gGa9AbatW8V99HWYAByVuXnD9DihUQ8puofwpUSaq1hqAm4Yn" ], "script": "base64:BgJHCAISBAoCCAgSBAoCBAgSAwoBBBIGCgQICAgIEgYKBAgICAgSAwoBCBIFCgMICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgkAAdWRVJTSU9OAgMxLjMBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEJvb2xlYW5CeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMFA2tleQcBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAARqb2VwCQEOZ2V0U3RyaW5nQnlLZXkBAgxjb25mX2FkbWluXzIADmRhcHBSdW5uaW5nS2V5AhRjb25mX2RhcHBfaXNfcnVubmluZwARbWFpbnRlbmFuY2VNU0dLZXkCFGNvbmZfbWFpbnRlbmFuY2VfbXNnABJ3aGl0ZWxpc3RlZG9ubHlLZXkCFWNvbmZfd2hpdGVsaXN0ZWRfb25se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bGVyAwkAAAIFBmNhbGxlcgUFY2hyaXMJAMwIAgkBC0RlbGV0ZUVudHJ5AQUFZW50cnkFA25pbAkAAgECAm5vAAO9hq0=", "height": 2218312, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BnUdtgFgP6iv4RKfv87Vc5gyPn2xYbeja2GpEVdMjcGm Next: GV7getPrLuueS3efSPTKdhq3khZLpj9mB4SsP1aosNEj Diff:
Old | New | Differences | |
---|---|---|---|
142 | 142 | then "" | |
143 | 143 | else throw("Unknown status") | |
144 | 144 | let Y = e(C(U)) | |
145 | - | if (if ((Y == 0)) | |
145 | + | if (if (if ((Y == 0)) | |
146 | 146 | then (X != n) | |
147 | + | else false) | |
148 | + | then (S != u) | |
147 | 149 | else false) | |
148 | 150 | then throw("You cant set this status, user is not registered.") | |
149 | 151 | else if (if ((V == n)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.3" | |
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 = b("conf_admin_2") | |
18 | 18 | ||
19 | 19 | let h = "conf_dapp_is_running" | |
20 | 20 | ||
21 | 21 | let i = "conf_maintenance_msg" | |
22 | 22 | ||
23 | 23 | let j = "conf_whitelisted_only" | |
24 | 24 | ||
25 | 25 | let k = valueOrElse(getBoolean(this, h), true) | |
26 | 26 | ||
27 | 27 | let l = valueOrElse(getString(this, i), "") | |
28 | 28 | ||
29 | 29 | let m = valueOrElse(getBoolean(this, j), true) | |
30 | 30 | ||
31 | 31 | let n = "ALLOWED" | |
32 | 32 | ||
33 | 33 | let o = "REGISTERED" | |
34 | 34 | ||
35 | 35 | let p = "VERIFIED" | |
36 | 36 | ||
37 | 37 | let q = "SUSPENDED" | |
38 | 38 | ||
39 | 39 | let r = "REMOVED" | |
40 | 40 | ||
41 | 41 | let s = "CHANGE_REQUIRED" | |
42 | 42 | ||
43 | 43 | let t = "UNREGISTERED" | |
44 | 44 | ||
45 | 45 | let u = "RESET" | |
46 | 46 | ||
47 | 47 | func v (w) = ("user_" + w) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (w) = ("user_name_" + w) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (w) = ("user_desc_" + w) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func z (w) = ("user_social_" + w) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func A (w) = ("user_thumb_" + w) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func B (w) = ("user_status_" + w) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func C (w) = ("user_date_" + w) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func D (w) = ("user_ERC20_" + w) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func E (F) = ("artist_agent_" + F) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func G (H,F) = ((("agent_" + H) + "_") + F) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func I (F) = ("artist_agent_primary_" + F) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func J (F) = ("artist_agent_secondary_" + F) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func K (L) = if (contains(L, "/")) | |
84 | 84 | then if (if ((76 > size(L))) | |
85 | 85 | then (size(split(L, "/")[0]) == 59) | |
86 | 86 | else false) | |
87 | 87 | then (16 > size(split(L, "/")[1])) | |
88 | 88 | else false | |
89 | 89 | else false | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func M (w,N,O,P,Q) = { | |
93 | 93 | let R = if ((size(P) != 0)) | |
94 | 94 | then K(P) | |
95 | 95 | else true | |
96 | 96 | if (!(R)) | |
97 | 97 | then throw("CID don't match requirement!") | |
98 | 98 | else if (if ((N == "")) | |
99 | 99 | then true | |
100 | 100 | else (O == "")) | |
101 | 101 | then throw("Name and description cannot be empty") | |
102 | 102 | else if ((size(O) > 600)) | |
103 | 103 | then throw("600 Char. max description") | |
104 | 104 | else if ((size(N) > 45)) | |
105 | 105 | then throw("45 Char. max name") | |
106 | 106 | else { | |
107 | 107 | let S = b(B(w)) | |
108 | 108 | if (if ((S == q)) | |
109 | 109 | then true | |
110 | 110 | else (S == r)) | |
111 | 111 | then throw("Account suspended/ removed.") | |
112 | 112 | else if (if (!(Q)) | |
113 | 113 | then (S == o) | |
114 | 114 | else false) | |
115 | 115 | then throw("Already registered") | |
116 | 116 | else if (if (if (!(Q)) | |
117 | 117 | then (S == "") | |
118 | 118 | else false) | |
119 | 119 | then m | |
120 | 120 | else false) | |
121 | 121 | then throw("Can't register, get approved first.") | |
122 | 122 | else if (if (if (Q) | |
123 | 123 | then (S == "") | |
124 | 124 | else false) | |
125 | 125 | then true | |
126 | 126 | else if (Q) | |
127 | 127 | then (S == n) | |
128 | 128 | else false) | |
129 | 129 | then throw("Register first") | |
130 | 130 | else true | |
131 | 131 | } | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func T (S,U,V) = { | |
136 | 136 | let W = [p, o, q, r, n, s] | |
137 | 137 | let X = if (containsElement(W, S)) | |
138 | 138 | then S | |
139 | 139 | else if (if ((S == u)) | |
140 | 140 | then (V == n) | |
141 | 141 | else false) | |
142 | 142 | then "" | |
143 | 143 | else throw("Unknown status") | |
144 | 144 | let Y = e(C(U)) | |
145 | - | if (if ((Y == 0)) | |
145 | + | if (if (if ((Y == 0)) | |
146 | 146 | then (X != n) | |
147 | + | else false) | |
148 | + | then (S != u) | |
147 | 149 | else false) | |
148 | 150 | then throw("You cant set this status, user is not registered.") | |
149 | 151 | else if (if ((V == n)) | |
150 | 152 | then (X == n) | |
151 | 153 | else false) | |
152 | 154 | then throw("User already allowed") | |
153 | 155 | else if (if ((V == o)) | |
154 | 156 | then (X == n) | |
155 | 157 | else false) | |
156 | 158 | then throw("User already allowed & registered") | |
157 | 159 | else if (if ((V == p)) | |
158 | 160 | then (X == n) | |
159 | 161 | else false) | |
160 | 162 | then throw("User already allowed & verified") | |
161 | 163 | else X | |
162 | 164 | } | |
163 | 165 | ||
164 | 166 | ||
165 | 167 | func Z (N,P,aa) = (((((("{\"user_name\": \"" + N) + "\", \"user_thumb\":\"") + P) + "\",\"user_date\":\"") + aa) + "\"}") | |
166 | 168 | ||
167 | 169 | ||
168 | 170 | @Callable(ab) | |
169 | 171 | func setConf (c,ac) = { | |
170 | 172 | let w = toString(ab.caller) | |
171 | 173 | if (containsElement([f, toString(this)], w)) | |
172 | 174 | then [StringEntry(c, ac)] | |
173 | 175 | else throw("You are not allowed to change this") | |
174 | 176 | } | |
175 | 177 | ||
176 | 178 | ||
177 | 179 | ||
178 | 180 | @Callable(ab) | |
179 | 181 | func appRunning (ad,ae) = { | |
180 | 182 | let w = toString(ab.caller) | |
181 | 183 | if (containsElement([f, g, toString(this)], w)) | |
182 | 184 | then [BooleanEntry(h, ad), StringEntry(i, ae)] | |
183 | 185 | else throw("You are not allowed to change this") | |
184 | 186 | } | |
185 | 187 | ||
186 | 188 | ||
187 | 189 | ||
188 | 190 | @Callable(ab) | |
189 | 191 | func registrationMode (af) = { | |
190 | 192 | let w = toString(ab.caller) | |
191 | 193 | if (containsElement([f, toString(this)], w)) | |
192 | 194 | then [BooleanEntry(j, af)] | |
193 | 195 | else throw("You are not allowed to change this") | |
194 | 196 | } | |
195 | 197 | ||
196 | 198 | ||
197 | 199 | ||
198 | 200 | @Callable(ab) | |
199 | 201 | func registerUser (N,O,P,ag) = if (!(k)) | |
200 | 202 | then throw(l) | |
201 | 203 | else { | |
202 | 204 | let w = toString(ab.caller) | |
203 | 205 | let ah = toBase58String(ab.transactionId) | |
204 | 206 | let ai = lastBlock.timestamp | |
205 | 207 | if (!(M(w, N, O, P, false))) | |
206 | 208 | then throw("Something went wrong") | |
207 | 209 | else { | |
208 | 210 | let aj = Z(toBase64String(toBytes(N)), toBase64String(toBytes(P)), toString(ai)) | |
209 | 211 | [IntegerEntry(C(w), ai), StringEntry(v(w), ((ah + "_") + toString(ai))), StringEntry(x(w), N), StringEntry(y(w), O), StringEntry(z(w), ag), StringEntry(A(w), P), StringEntry(B(w), o), DeleteEntry(("ALLOWED_" + w)), StringEntry(((o + "_") + w), aj)] | |
210 | 212 | } | |
211 | 213 | } | |
212 | 214 | ||
213 | 215 | ||
214 | 216 | ||
215 | 217 | @Callable(ab) | |
216 | 218 | func updateUser (N,O,P,ag) = if (!(k)) | |
217 | 219 | then throw(l) | |
218 | 220 | else { | |
219 | 221 | let w = toString(ab.caller) | |
220 | 222 | let S = b(B(w)) | |
221 | 223 | if (!(M(w, N, O, P, true))) | |
222 | 224 | then throw("Something went wrong") | |
223 | 225 | else { | |
224 | 226 | let aa = e(C(w)) | |
225 | 227 | let aj = Z(toBase64String(toBytes(N)), toBase64String(toBytes(P)), toString(aa)) | |
226 | 228 | [StringEntry(x(w), N), StringEntry(y(w), O), StringEntry(z(w), ag), StringEntry(A(w), P), StringEntry(((S + "_") + w), aj)] | |
227 | 229 | } | |
228 | 230 | } | |
229 | 231 | ||
230 | 232 | ||
231 | 233 | ||
232 | 234 | @Callable(ab) | |
233 | 235 | func setERC20User (ak) = if (!(k)) | |
234 | 236 | then throw(l) | |
235 | 237 | else { | |
236 | 238 | let w = toString(ab.caller) | |
237 | 239 | let S = b(B(w)) | |
238 | 240 | if (if ((S != o)) | |
239 | 241 | then (S != p) | |
240 | 242 | else false) | |
241 | 243 | then throw("Not allowed to set ERC20 address") | |
242 | 244 | else { | |
243 | 245 | let al = take(ak, 2) | |
244 | 246 | if (if ((al != "0x")) | |
245 | 247 | then true | |
246 | 248 | else (size(ak) != 42)) | |
247 | 249 | then throw("This is not an erc20 address") | |
248 | 250 | else [StringEntry(D(w), ak)] | |
249 | 251 | } | |
250 | 252 | } | |
251 | 253 | ||
252 | 254 | ||
253 | 255 | ||
254 | 256 | @Callable(ab) | |
255 | 257 | func changeUserStatus (U,S,am) = { | |
256 | 258 | let w = toString(ab.caller) | |
257 | 259 | let V = b(B(U)) | |
258 | 260 | let X = T(S, U, V) | |
259 | 261 | let N = toBase64String(toBytes(b(x(U)))) | |
260 | 262 | let P = toBase64String(toBytes(b(A(U)))) | |
261 | 263 | let aa = e(C(U)) | |
262 | 264 | let aj = Z(N, P, toString(aa)) | |
263 | 265 | if (containsElement([f, g, toString(this)], w)) | |
264 | 266 | then [StringEntry(B(U), X), DeleteEntry(((V + "_") + U)), StringEntry(((X + "_") + U), aj), StringEntry(("user_note_" + U), am)] | |
265 | 267 | else throw("Not allowed to change user status") | |
266 | 268 | } | |
267 | 269 | ||
268 | 270 | ||
269 | 271 | ||
270 | 272 | @Callable(ab) | |
271 | 273 | func deleteUser (U) = { | |
272 | 274 | let w = toString(ab.caller) | |
273 | 275 | let V = b(B(U)) | |
274 | 276 | if (containsElement([f, toString(this)], w)) | |
275 | 277 | then [DeleteEntry(C(U)), DeleteEntry(v(U)), DeleteEntry(x(U)), DeleteEntry(y(U)), DeleteEntry(z(U)), DeleteEntry(A(U)), DeleteEntry(("user_note_" + U)), DeleteEntry(((V + "_") + U)), StringEntry(B(U), r)] | |
276 | 278 | else throw("Not allowed") | |
277 | 279 | } | |
278 | 280 | ||
279 | 281 | ||
280 | 282 | ||
281 | 283 | @Callable(an) | |
282 | 284 | func setAgent (F,H,ao,ap) = if (!(k)) | |
283 | 285 | then throw(l) | |
284 | 286 | else { | |
285 | 287 | let w = toString(an.caller) | |
286 | 288 | if (containsElement([f, toString(this)], w)) | |
287 | 289 | then if (if ((size(F) != 35)) | |
288 | 290 | then true | |
289 | 291 | else (size(H) != 35)) | |
290 | 292 | then throw("Wrong address") | |
291 | 293 | else [StringEntry(E(F), H), StringEntry(G(H, F), F), IntegerEntry(I(F), ao), IntegerEntry(J(F), ap)] | |
292 | 294 | else throw("You are not allowed") | |
293 | 295 | } | |
294 | 296 | ||
295 | 297 | ||
296 | 298 | ||
297 | 299 | @Callable(an) | |
298 | 300 | func unsetAgent (F,H) = if (!(k)) | |
299 | 301 | then throw(l) | |
300 | 302 | else { | |
301 | 303 | let w = toString(an.caller) | |
302 | 304 | if (containsElement([f, toString(this)], w)) | |
303 | 305 | then if (if ((size(F) != 35)) | |
304 | 306 | then true | |
305 | 307 | else (size(H) != 35)) | |
306 | 308 | then throw("Wrong address") | |
307 | 309 | else [DeleteEntry(E(F)), DeleteEntry(G(H, F)), DeleteEntry(I(F)), DeleteEntry(J(F))] | |
308 | 310 | else throw("You are not allowed") | |
309 | 311 | } | |
310 | 312 | ||
311 | 313 | ||
312 | 314 | ||
313 | 315 | @Callable(an) | |
314 | 316 | func deleteEntry (aq) = { | |
315 | 317 | let w = toString(an.caller) | |
316 | 318 | if ((w == f)) | |
317 | 319 | then [DeleteEntry(aq)] | |
318 | 320 | else throw("no") | |
319 | 321 | } | |
320 | 322 | ||
321 | 323 |
github/deemru/w8io/026f985 48.48 ms ◑