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