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