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:BgJHCAISBAoCCAgSBAoCBAgSAwoBBBIGCgQICAgIEgYKBAgICAgSAwoBCBIFCgMICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgkAAdWRVJTSU9OAgMxLjMBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEJvb2xlYW5CeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMFA2tleQcBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAARqb2VwCQEOZ2V0U3RyaW5nQnlLZXkBAgxjb25mX2FkbWluXzIADmRhcHBSdW5uaW5nS2V5AhRjb25mX2RhcHBfaXNfcnVubmluZwARbWFpbnRlbmFuY2VNU0dLZXkCFGNvbmZfbWFpbnRlbmFuY2VfbXNnABJ3aGl0ZWxpc3RlZG9ubHlLZXkCFWNvbmZfd2hpdGVsaXN0ZWRfb25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sbGVyAwkAAAIFBmNhbGxlcgUFY2hyaXMJAMwIAgkBC0RlbGV0ZUVudHJ5AQUFZW50cnkFA25pbAkAAgECAm5vAAO9hq0=", "height": 2218312, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BnUdtgFgP6iv4RKfv87Vc5gyPn2xYbeja2GpEVdMjcGm Next: GV7getPrLuueS3efSPTKdhq3khZLpj9mB4SsP1aosNEj Diff:
OldNewDifferences
142142 then ""
143143 else throw("Unknown status")
144144 let Y = e(C(U))
145- if (if ((Y == 0))
145+ if (if (if ((Y == 0))
146146 then (X != n)
147+ else false)
148+ then (S != u)
147149 else false)
148150 then throw("You cant set this status, user is not registered.")
149151 else if (if ((V == n))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.3"
55
66 func b (c) = valueOrElse(getString(this, c), "")
77
88
99 func d (c) = valueOrElse(getBoolean(this, c), false)
1010
1111
1212 func e (c) = valueOrElse(getInteger(this, c), 0)
1313
1414
1515 let f = b("conf_admin_1")
1616
1717 let g = b("conf_admin_2")
1818
1919 let h = "conf_dapp_is_running"
2020
2121 let i = "conf_maintenance_msg"
2222
2323 let j = "conf_whitelisted_only"
2424
2525 let k = valueOrElse(getBoolean(this, h), true)
2626
2727 let l = valueOrElse(getString(this, i), "")
2828
2929 let m = valueOrElse(getBoolean(this, j), true)
3030
3131 let n = "ALLOWED"
3232
3333 let o = "REGISTERED"
3434
3535 let p = "VERIFIED"
3636
3737 let q = "SUSPENDED"
3838
3939 let r = "REMOVED"
4040
4141 let s = "CHANGE_REQUIRED"
4242
4343 let t = "UNREGISTERED"
4444
4545 let u = "RESET"
4646
4747 func v (w) = ("user_" + w)
4848
4949
5050 func x (w) = ("user_name_" + w)
5151
5252
5353 func y (w) = ("user_desc_" + w)
5454
5555
5656 func z (w) = ("user_social_" + w)
5757
5858
5959 func A (w) = ("user_thumb_" + w)
6060
6161
6262 func B (w) = ("user_status_" + w)
6363
6464
6565 func C (w) = ("user_date_" + w)
6666
6767
6868 func D (w) = ("user_ERC20_" + w)
6969
7070
7171 func E (F) = ("artist_agent_" + F)
7272
7373
7474 func G (H,F) = ((("agent_" + H) + "_") + F)
7575
7676
7777 func I (F) = ("artist_agent_primary_" + F)
7878
7979
8080 func J (F) = ("artist_agent_secondary_" + F)
8181
8282
8383 func K (L) = if (contains(L, "/"))
8484 then if (if ((76 > size(L)))
8585 then (size(split(L, "/")[0]) == 59)
8686 else false)
8787 then (16 > size(split(L, "/")[1]))
8888 else false
8989 else false
9090
9191
9292 func M (w,N,O,P,Q) = {
9393 let R = if ((size(P) != 0))
9494 then K(P)
9595 else true
9696 if (!(R))
9797 then throw("CID don't match requirement!")
9898 else if (if ((N == ""))
9999 then true
100100 else (O == ""))
101101 then throw("Name and description cannot be empty")
102102 else if ((size(O) > 600))
103103 then throw("600 Char. max description")
104104 else if ((size(N) > 45))
105105 then throw("45 Char. max name")
106106 else {
107107 let S = b(B(w))
108108 if (if ((S == q))
109109 then true
110110 else (S == r))
111111 then throw("Account suspended/ removed.")
112112 else if (if (!(Q))
113113 then (S == o)
114114 else false)
115115 then throw("Already registered")
116116 else if (if (if (!(Q))
117117 then (S == "")
118118 else false)
119119 then m
120120 else false)
121121 then throw("Can't register, get approved first.")
122122 else if (if (if (Q)
123123 then (S == "")
124124 else false)
125125 then true
126126 else if (Q)
127127 then (S == n)
128128 else false)
129129 then throw("Register first")
130130 else true
131131 }
132132 }
133133
134134
135135 func T (S,U,V) = {
136136 let W = [p, o, q, r, n, s]
137137 let X = if (containsElement(W, S))
138138 then S
139139 else if (if ((S == u))
140140 then (V == n)
141141 else false)
142142 then ""
143143 else throw("Unknown status")
144144 let Y = e(C(U))
145- if (if ((Y == 0))
145+ if (if (if ((Y == 0))
146146 then (X != n)
147+ else false)
148+ then (S != u)
147149 else false)
148150 then throw("You cant set this status, user is not registered.")
149151 else if (if ((V == n))
150152 then (X == n)
151153 else false)
152154 then throw("User already allowed")
153155 else if (if ((V == o))
154156 then (X == n)
155157 else false)
156158 then throw("User already allowed & registered")
157159 else if (if ((V == p))
158160 then (X == n)
159161 else false)
160162 then throw("User already allowed & verified")
161163 else X
162164 }
163165
164166
165167 func Z (N,P,aa) = (((((("{\"user_name\": \"" + N) + "\", \"user_thumb\":\"") + P) + "\",\"user_date\":\"") + aa) + "\"}")
166168
167169
168170 @Callable(ab)
169171 func setConf (c,ac) = {
170172 let w = toString(ab.caller)
171173 if (containsElement([f, toString(this)], w))
172174 then [StringEntry(c, ac)]
173175 else throw("You are not allowed to change this")
174176 }
175177
176178
177179
178180 @Callable(ab)
179181 func appRunning (ad,ae) = {
180182 let w = toString(ab.caller)
181183 if (containsElement([f, g, toString(this)], w))
182184 then [BooleanEntry(h, ad), StringEntry(i, ae)]
183185 else throw("You are not allowed to change this")
184186 }
185187
186188
187189
188190 @Callable(ab)
189191 func registrationMode (af) = {
190192 let w = toString(ab.caller)
191193 if (containsElement([f, toString(this)], w))
192194 then [BooleanEntry(j, af)]
193195 else throw("You are not allowed to change this")
194196 }
195197
196198
197199
198200 @Callable(ab)
199201 func registerUser (N,O,P,ag) = if (!(k))
200202 then throw(l)
201203 else {
202204 let w = toString(ab.caller)
203205 let ah = toBase58String(ab.transactionId)
204206 let ai = lastBlock.timestamp
205207 if (!(M(w, N, O, P, false)))
206208 then throw("Something went wrong")
207209 else {
208210 let aj = Z(toBase64String(toBytes(N)), toBase64String(toBytes(P)), toString(ai))
209211 [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)]
210212 }
211213 }
212214
213215
214216
215217 @Callable(ab)
216218 func updateUser (N,O,P,ag) = if (!(k))
217219 then throw(l)
218220 else {
219221 let w = toString(ab.caller)
220222 let S = b(B(w))
221223 if (!(M(w, N, O, P, true)))
222224 then throw("Something went wrong")
223225 else {
224226 let aa = e(C(w))
225227 let aj = Z(toBase64String(toBytes(N)), toBase64String(toBytes(P)), toString(aa))
226228 [StringEntry(x(w), N), StringEntry(y(w), O), StringEntry(z(w), ag), StringEntry(A(w), P), StringEntry(((S + "_") + w), aj)]
227229 }
228230 }
229231
230232
231233
232234 @Callable(ab)
233235 func setERC20User (ak) = if (!(k))
234236 then throw(l)
235237 else {
236238 let w = toString(ab.caller)
237239 let S = b(B(w))
238240 if (if ((S != o))
239241 then (S != p)
240242 else false)
241243 then throw("Not allowed to set ERC20 address")
242244 else {
243245 let al = take(ak, 2)
244246 if (if ((al != "0x"))
245247 then true
246248 else (size(ak) != 42))
247249 then throw("This is not an erc20 address")
248250 else [StringEntry(D(w), ak)]
249251 }
250252 }
251253
252254
253255
254256 @Callable(ab)
255257 func changeUserStatus (U,S,am) = {
256258 let w = toString(ab.caller)
257259 let V = b(B(U))
258260 let X = T(S, U, V)
259261 let N = toBase64String(toBytes(b(x(U))))
260262 let P = toBase64String(toBytes(b(A(U))))
261263 let aa = e(C(U))
262264 let aj = Z(N, P, toString(aa))
263265 if (containsElement([f, g, toString(this)], w))
264266 then [StringEntry(B(U), X), DeleteEntry(((V + "_") + U)), StringEntry(((X + "_") + U), aj), StringEntry(("user_note_" + U), am)]
265267 else throw("Not allowed to change user status")
266268 }
267269
268270
269271
270272 @Callable(ab)
271273 func deleteUser (U) = {
272274 let w = toString(ab.caller)
273275 let V = b(B(U))
274276 if (containsElement([f, toString(this)], w))
275277 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)]
276278 else throw("Not allowed")
277279 }
278280
279281
280282
281283 @Callable(an)
282284 func setAgent (F,H,ao,ap) = if (!(k))
283285 then throw(l)
284286 else {
285287 let w = toString(an.caller)
286288 if (containsElement([f, toString(this)], w))
287289 then if (if ((size(F) != 35))
288290 then true
289291 else (size(H) != 35))
290292 then throw("Wrong address")
291293 else [StringEntry(E(F), H), StringEntry(G(H, F), F), IntegerEntry(I(F), ao), IntegerEntry(J(F), ap)]
292294 else throw("You are not allowed")
293295 }
294296
295297
296298
297299 @Callable(an)
298300 func unsetAgent (F,H) = if (!(k))
299301 then throw(l)
300302 else {
301303 let w = toString(an.caller)
302304 if (containsElement([f, toString(this)], w))
303305 then if (if ((size(F) != 35))
304306 then true
305307 else (size(H) != 35))
306308 then throw("Wrong address")
307309 else [DeleteEntry(E(F)), DeleteEntry(G(H, F)), DeleteEntry(I(F)), DeleteEntry(J(F))]
308310 else throw("You are not allowed")
309311 }
310312
311313
312314
313315 @Callable(an)
314316 func deleteEntry (aq) = {
315317 let w = toString(an.caller)
316318 if ((w == f))
317319 then [DeleteEntry(aq)]
318320 else throw("no")
319321 }
320322
321323

github/deemru/w8io/026f985 
48.48 ms