tx · 6JFcVEWo1PbA3P5YrPgfZgsSM9LtjLBdu3JJHDTdALoD

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.11000000 Waves

2023.01.22 04:50 [2415524] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "6JFcVEWo1PbA3P5YrPgfZgsSM9LtjLBdu3JJHDTdALoD", "fee": 11000000, "feeAssetId": null, "timestamp": 1674352202810, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "251uR4bfRP33QetaGyXtEd8biaM18Pq7VLr2KAp2jv2ZfV6pxGHdtUKqih2VNzETApfwnmDqfjQ4WHc4rtWV3Tc6" ], "script": "base64:BgJNCAISBAoCCAgSBAoCBAgSAwoBBBIICgYICAgIAQgSCAoGCAgICAEIEgQKAggIEgYKBAgICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgqAAdWRVJTSU9OAgMxLjUBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEJvb2xlYW5CeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMFA2tleQcBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAA5kYXBwUnVubmluZ0tleQIUY29uZl9kYXBwX2lzX3J1bm5pbmcAEW1haW50ZW5hbmNlTVNHS2V5AhRjb25mX21haW50ZW5hbmNlX21zZwASd2hpdGVsaXN0ZWRvbmx5S2V5AhVjb25mX3doaXRlbGlzdGVkX29ubHkAC2RhcHBSdW5uaW5nCQELdmFsdWVPckVsc2UCCQCb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HgGcHJvb2ZzAAAJANkEAQkBCGFzU3RyaW5nAQkAkQMCCAUDaW52BGFyZ3MABQMDAwMJAAACCAUDaW52CGZ1bmN0aW9uAgp1cGRhdGVVc2VyCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAUDAwMDCQAAAggFA2ludghmdW5jdGlvbgIMc2V0RVJDMjBVc2VyCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAIJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlUqqmP", "height": 2415524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C8q679QND49iekVWNm7eeEXnLKhZiZrapBQeP4GKzGvh Next: 7MNNQHXVM5mXEWKoFQTJGZ2egQFhsWnE2yYTqUaFECxq Diff:
OldNewDifferences
7171 func E (w) = ("user_ERC20_" + w)
7272
7373
74-func F (G) = ("artist_agent_" + G)
74+func F (w) = ("user_note_" + w)
7575
7676
77-func H (I,G) = ((("agent_" + I) + "_") + G)
77+func G (w) = ("user_label_" + w)
7878
7979
80-func J (G) = ("artist_agent_primary_" + G)
80+func H (I) = ("artist_agent_" + I)
8181
8282
83-func K (G) = ("artist_agent_secondary_" + G)
83+func J (K,I) = ((("agent_" + K) + "_") + I)
8484
8585
86-func L (c) = valueOrElse(getInteger(m, c), 0)
86+func L (I) = ("artist_agent_primary_" + I)
8787
8888
89-func M (N) = if (contains(N, "/"))
90- then if (if ((76 > size(N)))
91- then (size(split(N, "/")[0]) == 59)
89+func M (I) = ("artist_agent_secondary_" + I)
90+
91+
92+func N (c) = valueOrElse(getInteger(m, c), 0)
93+
94+
95+func O (P) = if (contains(P, "/"))
96+ then if (if ((76 > size(P)))
97+ then (size(split(P, "/")[0]) == 59)
9298 else false)
93- then (16 > size(split(N, "/")[1]))
99+ then (16 > size(split(P, "/")[1]))
94100 else false
95101 else false
96102
97103
98-func O (w,P,Q,R,S) = {
99- let T = if ((size(R) != 0))
100- then M(R)
104+func Q (w,R,S,T,U) = {
105+ let V = if ((size(T) != 0))
106+ then O(T)
101107 else true
102- if (!(T))
108+ if (!(V))
103109 then throw("CID don't match requirement!")
104- else if (if ((P == ""))
110+ else if (if ((R == ""))
105111 then true
106- else (Q == ""))
112+ else (S == ""))
107113 then throw("Name and description cannot be empty")
108- else if ((size(Q) > 600))
114+ else if ((size(S) > 600))
109115 then throw("600 Char. max description")
110- else if ((size(P) > 45))
116+ else if ((size(R) > 45))
111117 then throw("45 Char. max name")
112118 else {
113- let U = b(B(w))
114- if (if ((U == q))
119+ let W = b(B(w))
120+ if (if ((W == q))
115121 then true
116- else (U == r))
122+ else (W == r))
117123 then throw("Account suspended/ removed.")
118- else if (if (!(S))
119- then (U == o)
124+ else if (if (!(U))
125+ then (W == o)
120126 else false)
121127 then throw("Already registered")
122- else if (if (if (!(S))
123- then (U == "")
128+ else if (if (if (!(U))
129+ then (W == "")
124130 else false)
125131 then l
126132 else false)
127133 then throw("Can't register, get approved first.")
128- else if (if (if (S)
129- then (U == "")
134+ else if (if (if (U)
135+ then (W == "")
130136 else false)
131137 then true
132- else if (S)
133- then (U == n)
138+ else if (U)
139+ then (W == n)
134140 else false)
135141 then throw("Register first")
136142 else true
138144 }
139145
140146
141-func V (U,W,X) = {
142- let Y = [p, o, q, r, n, s]
143- let Z = if (containsElement(Y, U))
144- then U
145- else if (if ((U == u))
146- then (X == n)
147+func X (W,Y,Z) = {
148+ let aa = [p, o, q, r, n, s]
149+ let ab = if (containsElement(aa, W))
150+ then W
151+ else if (if ((W == u))
152+ then (Z == n)
147153 else false)
148154 then ""
149155 else throw("Unknown status")
150- let aa = e(D(W))
151- if (if ((aa == 0))
152- then (Z != n)
156+ let ac = e(D(Y))
157+ if (if ((ac == 0))
158+ then (ab != n)
153159 else false)
154160 then throw("You cant set this status, user is not registered.")
155- else if (if ((X == n))
156- then (Z == n)
161+ else if (if ((Z == n))
162+ then (ab == n)
157163 else false)
158164 then throw("User already allowed")
159- else if (if ((X == o))
160- then (Z == n)
165+ else if (if ((Z == o))
166+ then (ab == n)
161167 else false)
162168 then throw("User already allowed & registered")
163- else if (if ((X == p))
164- then (Z == n)
169+ else if (if ((Z == p))
170+ then (ab == n)
165171 else false)
166172 then throw("User already allowed & verified")
167- else Z
173+ else ab
168174 }
169175
170176
171-func ab (P,R,ac) = (((((("{\"user_name\": \"" + P) + "\", \"user_thumb\":\"") + R) + "\",\"user_date\":\"") + ac) + "\"}")
177+func ad (R,T,ae) = (((((("{\"user_name\": \"" + R) + "\", \"user_thumb\":\"") + T) + "\",\"user_date\":\"") + ae) + "\"}")
172178
173179
174-func ad (ae) = {
175- let af = ae
176- if ($isInstanceOf(af, "String"))
180+func af (ag) = {
181+ let ah = ag
182+ if ($isInstanceOf(ah, "String"))
177183 then {
178- let ag = af
179- ag
184+ let ai = ah
185+ ai
180186 }
181187 else throw("Sponsored Public Key String expected")
182188 }
183189
184190
185-func ah (ai,aj) = {
186- let ak = if ((aj != ""))
187- then valueOrElse(L((toString(addressFromPublicKey(fromBase58String(aj))) + "_free_txs")), 0)
191+func aj (ak,al) = {
192+ let am = if ((al != ""))
193+ then valueOrElse(N((toString(addressFromPublicKey(fromBase58String(al))) + "_free_txs")), 0)
188194 else 0
189- let w = if (if ((toBase58String(ai.caller.bytes) == toString(this)))
190- then (ak > 0)
195+ let w = if (if ((toBase58String(ak.caller.bytes) == toString(this)))
196+ then (am > 0)
191197 else false)
192- then toString(addressFromPublicKey(fromBase58String(aj)))
193- else toBase58String(ai.caller.bytes)
194- let al = if ((aj != ""))
195- then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(aj)))], nil)
198+ then toString(addressFromPublicKey(fromBase58String(al)))
199+ else toBase58String(ak.caller.bytes)
200+ let an = if ((al != ""))
201+ then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(al)))], nil)
196202 else unit
197- if ((al == al))
198- then $Tuple2(w, (ak > 0))
203+ if ((an == an))
204+ then $Tuple2(w, (am > 0))
199205 else throw("Strict value is not equal to itself.")
200206 }
201207
202208
203-@Callable(am)
204-func setConf (c,an) = {
205- let w = toString(am.caller)
209+@Callable(ao)
210+func setConf (c,ap) = {
211+ let w = toString(ao.caller)
206212 if (containsElement([f, toString(this)], w))
207- then [StringEntry(c, an)]
213+ then [StringEntry(c, ap)]
208214 else throw("You are not allowed to change this")
209215 }
210216
211217
212218
213-@Callable(am)
214-func appRunning (ao,ap) = {
215- let w = toString(am.caller)
219+@Callable(ao)
220+func appRunning (aq,ar) = {
221+ let w = toString(ao.caller)
216222 if (containsElement([f, toString(this)], w))
217- then [BooleanEntry(g, ao), StringEntry(h, ap)]
223+ then [BooleanEntry(g, aq), StringEntry(h, ar)]
218224 else throw("You are not allowed to change this")
219225 }
220226
221227
222228
223-@Callable(am)
224-func registrationMode (aq) = {
225- let w = toString(am.caller)
229+@Callable(ao)
230+func registrationMode (as) = {
231+ let w = toString(ao.caller)
226232 if (containsElement([f, toString(this)], w))
227- then [BooleanEntry(i, aq)]
233+ then [BooleanEntry(i, as)]
228234 else throw("You are not allowed to change this")
229235 }
230236
231237
232238
233-@Callable(am)
234-func registerUser (P,Q,R,ar,as,aj) = if (!(j))
239+@Callable(ao)
240+func registerUser (R,S,T,at,au,al) = if (!(j))
235241 then throw(k)
236242 else {
237- let at = ah(am, aj)
238- let w = at._1
239- let ak = at._2
240- let au = toBase58String(am.transactionId)
241- let av = lastBlock.timestamp
242- if (!(O(w, P, Q, R, false)))
243+ let av = aj(ao, al)
244+ let w = av._1
245+ let am = av._2
246+ let aw = toBase58String(ao.transactionId)
247+ let ax = lastBlock.timestamp
248+ let ay = b(F(w))
249+ let az = b(G(w))
250+ if (!(Q(w, R, S, T, false)))
243251 then throw("Something went wrong")
244252 else {
245- let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(av))
246- if (if ((0 > as))
253+ let aA = ad(toBase64String(toBytes(R)), toBase64String(toBytes(T)), toString(ax))
254+ if (if ((0 > au))
247255 then true
248- else (as > 1000))
256+ else (au > 1000))
249257 then throw("Royalties cannot be less than 0% or higher than 10%")
250258 else {
251- let ax = if (ak)
259+ let aB = if (am)
252260 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
253261 else nil
254- ([IntegerEntry(D(w), av), StringEntry(v(w), ((au + "_") + toString(av))), StringEntry(x(w), P), StringEntry(y(w), Q), StringEntry(z(w), ar), StringEntry(A(w), R), StringEntry(B(w), o), IntegerEntry(C(w), as), DeleteEntry(("ALLOWED_" + w)), StringEntry(((o + "_") + w), aw)] ++ ax)
262+ ([IntegerEntry(D(w), ax), StringEntry(v(w), ((aw + "_") + toString(ax))), StringEntry(x(w), R), StringEntry(y(w), S), StringEntry(z(w), at), StringEntry(A(w), T), StringEntry(B(w), o), IntegerEntry(C(w), au), DeleteEntry(("ALLOWED_" + w)), StringEntry(((o + "_") + w), aA), StringEntry(F(w), ay), StringEntry(G(w), az)] ++ aB)
255263 }
256264 }
257265 }
258266
259267
260268
261-@Callable(am)
262-func updateUser (P,Q,R,ar,as,aj) = if (!(j))
269+@Callable(ao)
270+func updateUser (R,S,T,at,au,al) = if (!(j))
263271 then throw(k)
264272 else {
265- let ay = ah(am, aj)
266- let w = ay._1
267- let ak = ay._2
268- let U = b(B(w))
269- if (!(O(w, P, Q, R, true)))
273+ let aC = aj(ao, al)
274+ let w = aC._1
275+ let am = aC._2
276+ let W = b(B(w))
277+ if (!(Q(w, R, S, T, true)))
270278 then throw("Something went wrong")
271279 else {
272- let ac = e(D(w))
273- let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(ac))
274- if (if ((0 > as))
280+ let ae = e(D(w))
281+ let aA = ad(toBase64String(toBytes(R)), toBase64String(toBytes(T)), toString(ae))
282+ if (if ((0 > au))
275283 then true
276- else (as > 1000))
284+ else (au > 1000))
277285 then throw("Royalties cannot be less than 0% or higher than 10%")
278286 else {
279- let ax = if (ak)
287+ let aB = if (am)
280288 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
281289 else nil
282- ([StringEntry(x(w), P), StringEntry(y(w), Q), StringEntry(z(w), ar), StringEntry(A(w), R), IntegerEntry(C(w), as), StringEntry(((U + "_") + w), aw)] ++ ax)
290+ ([StringEntry(x(w), R), StringEntry(y(w), S), StringEntry(z(w), at), StringEntry(A(w), T), IntegerEntry(C(w), au), StringEntry(((W + "_") + w), aA)] ++ aB)
283291 }
284292 }
285293 }
286294
287295
288296
289-@Callable(am)
290-func setERC20User (az,aj) = if (!(j))
297+@Callable(ao)
298+func setERC20User (aD,al) = if (!(j))
291299 then throw(k)
292300 else {
293- let aA = ah(am, aj)
294- let w = aA._1
295- let ak = aA._2
296- let U = b(B(w))
297- if (if ((U != o))
298- then (U != p)
301+ let aE = aj(ao, al)
302+ let w = aE._1
303+ let am = aE._2
304+ let W = b(B(w))
305+ if (if ((W != o))
306+ then (W != p)
299307 else false)
300308 then throw("Not allowed to set ERC20 address")
301309 else {
302- let aB = take(az, 2)
303- if (if ((aB != "0x"))
310+ let aF = take(aD, 2)
311+ if (if ((aF != "0x"))
304312 then true
305- else (size(az) != 42))
313+ else (size(aD) != 42))
306314 then throw("This is not an erc20 address")
307315 else {
308- let ax = if (ak)
316+ let aB = if (am)
309317 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
310318 else nil
311- ([StringEntry(E(w), az)] ++ ax)
319+ ([StringEntry(E(w), aD)] ++ aB)
312320 }
313321 }
314322 }
315323
316324
317325
318-@Callable(am)
319-func changeUserStatus (W,U,aC,aD) = {
320- let w = toString(am.caller)
326+@Callable(ao)
327+func changeUserStatus (Y,W,ay,az) = {
328+ let w = toString(ao.caller)
321329 if (containsElement([f, toString(this)], w))
322- then if ((size(U) == 0))
323- then [StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
330+ then if ((size(W) == 0))
331+ then [StringEntry(F(Y), ay), StringEntry(G(Y), az)]
324332 else {
325- let X = b(B(W))
326- let Z = V(U, W, X)
327- let P = toBase64String(toBytes(b(x(W))))
328- let R = toBase64String(toBytes(b(A(W))))
329- let ac = e(D(W))
330- let aw = ab(P, R, toString(ac))
331-[StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
333+ let Z = b(B(Y))
334+ let ab = X(W, Y, Z)
335+ let R = toBase64String(toBytes(b(x(Y))))
336+ let T = toBase64String(toBytes(b(A(Y))))
337+ let ae = e(D(Y))
338+ let aA = ad(R, T, toString(ae))
339+[StringEntry(B(Y), ab), DeleteEntry(((Z + "_") + Y)), StringEntry(((ab + "_") + Y), aA), StringEntry(F(Y), ay), StringEntry(G(Y), az)]
332340 }
333341 else throw("Not allowed to change user status")
334342 }
335343
336344
337345
338-@Callable(am)
339-func deleteUser (W) = {
340- let w = toString(am.caller)
341- let X = b(B(W))
346+@Callable(ao)
347+func deleteUser (Y) = {
348+ let w = toString(ao.caller)
349+ let Z = b(B(Y))
342350 if (containsElement([f, toString(this)], w))
343- then [DeleteEntry(D(W)), DeleteEntry(v(W)), DeleteEntry(x(W)), DeleteEntry(y(W)), DeleteEntry(z(W)), DeleteEntry(A(W)), DeleteEntry(("user_note_" + W)), DeleteEntry(((X + "_") + W)), DeleteEntry(C(W)), StringEntry(B(W), r)]
351+ then [DeleteEntry(D(Y)), DeleteEntry(v(Y)), DeleteEntry(x(Y)), DeleteEntry(y(Y)), DeleteEntry(z(Y)), DeleteEntry(A(Y)), DeleteEntry(("user_note_" + Y)), DeleteEntry(((Z + "_") + Y)), DeleteEntry(C(Y)), StringEntry(B(Y), r)]
344352 else throw("Not allowed")
345353 }
346354
347355
348356
349-@Callable(ai)
350-func setAgent (G,I,aE,aF) = if (!(j))
357+@Callable(ak)
358+func setAgent (I,K,aG,aH) = if (!(j))
351359 then throw(k)
352360 else {
353- let w = toString(ai.caller)
361+ let w = toString(ak.caller)
354362 if (containsElement([f, toString(this)], w))
355- then if (if ((size(G) != 35))
363+ then if (if ((size(I) != 35))
356364 then true
357- else (size(I) != 35))
365+ else (size(K) != 35))
358366 then throw("Wrong address")
359- else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aE), IntegerEntry(K(G), aF)]
367+ else [StringEntry(H(I), K), StringEntry(J(K, I), I), IntegerEntry(L(I), aG), IntegerEntry(M(I), aH)]
360368 else throw("You are not allowed")
361369 }
362370
363371
364372
365-@Callable(ai)
366-func unsetAgent (G,I) = if (!(j))
373+@Callable(ak)
374+func unsetAgent (I,K) = if (!(j))
367375 then throw(k)
368376 else {
369- let w = toString(ai.caller)
377+ let w = toString(ak.caller)
370378 if (containsElement([f, toString(this)], w))
371- then if (if ((size(G) != 35))
379+ then if (if ((size(I) != 35))
372380 then true
373- else (size(I) != 35))
381+ else (size(K) != 35))
374382 then throw("Wrong address")
375- else [DeleteEntry(F(G)), DeleteEntry(H(I, G)), DeleteEntry(J(G)), DeleteEntry(K(G))]
383+ else [DeleteEntry(H(I)), DeleteEntry(J(K, I)), DeleteEntry(L(I)), DeleteEntry(M(I))]
376384 else throw("You are not allowed")
377385 }
378386
379387
380388
381-@Callable(ai)
382-func deleteEntry (aG) = {
383- let w = toString(ai.caller)
389+@Callable(ak)
390+func deleteEntry (aI) = {
391+ let w = toString(ak.caller)
384392 if ((w == f))
385- then [DeleteEntry(aG)]
393+ then [DeleteEntry(aI)]
386394 else throw("no")
387395 }
388396
389397
390-@Verifier(aH)
391-func aI () = {
392- let af = aH
393- if ($isInstanceOf(af, "InvokeScriptTransaction"))
398+@Verifier(aJ)
399+func aK () = {
400+ let ah = aJ
401+ if ($isInstanceOf(ah, "InvokeScriptTransaction"))
394402 then {
395- let aJ = af
396- if (if (if (if ((aJ.function == "registerUser"))
397- then (aJ.dApp == this)
403+ let aL = ah
404+ if (if (if (if ((aL.function == "registerUser"))
405+ then (aL.dApp == this)
398406 else false)
399- then (aJ.fee == 500000)
407+ then (aL.fee == 500000)
400408 else false)
401- then (aJ.feeAssetId == unit)
409+ then (aL.feeAssetId == unit)
402410 else false)
403- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
404- else if (if (if (if ((aJ.function == "updateUser"))
405- then (aJ.dApp == this)
411+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[5])))
412+ else if (if (if (if ((aL.function == "updateUser"))
413+ then (aL.dApp == this)
406414 else false)
407- then (aJ.fee == 500000)
415+ then (aL.fee == 500000)
408416 else false)
409- then (aJ.feeAssetId == unit)
417+ then (aL.feeAssetId == unit)
410418 else false)
411- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
412- else if (if (if (if ((aJ.function == "setERC20User"))
413- then (aJ.dApp == this)
419+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[5])))
420+ else if (if (if (if ((aL.function == "setERC20User"))
421+ then (aL.dApp == this)
414422 else false)
415- then (aJ.fee == 500000)
423+ then (aL.fee == 500000)
416424 else false)
417- then (aJ.feeAssetId == unit)
425+ then (aL.feeAssetId == unit)
418426 else false)
419- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[2])))
420- else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
427+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[2])))
428+ else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey)
421429 }
422- else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
430+ else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey)
423431 }
424432
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.5"
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 = "conf_dapp_is_running"
1818
1919 let h = "conf_maintenance_msg"
2020
2121 let i = "conf_whitelisted_only"
2222
2323 let j = valueOrElse(getBoolean(this, g), true)
2424
2525 let k = valueOrElse(getString(this, h), "")
2626
2727 let l = valueOrElse(getBoolean(this, i), true)
2828
2929 let m = value(addressFromString(b("conf_whitelist_dapp")))
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_royalties_" + w)
6666
6767
6868 func D (w) = ("user_date_" + w)
6969
7070
7171 func E (w) = ("user_ERC20_" + w)
7272
7373
74-func F (G) = ("artist_agent_" + G)
74+func F (w) = ("user_note_" + w)
7575
7676
77-func H (I,G) = ((("agent_" + I) + "_") + G)
77+func G (w) = ("user_label_" + w)
7878
7979
80-func J (G) = ("artist_agent_primary_" + G)
80+func H (I) = ("artist_agent_" + I)
8181
8282
83-func K (G) = ("artist_agent_secondary_" + G)
83+func J (K,I) = ((("agent_" + K) + "_") + I)
8484
8585
86-func L (c) = valueOrElse(getInteger(m, c), 0)
86+func L (I) = ("artist_agent_primary_" + I)
8787
8888
89-func M (N) = if (contains(N, "/"))
90- then if (if ((76 > size(N)))
91- then (size(split(N, "/")[0]) == 59)
89+func M (I) = ("artist_agent_secondary_" + I)
90+
91+
92+func N (c) = valueOrElse(getInteger(m, c), 0)
93+
94+
95+func O (P) = if (contains(P, "/"))
96+ then if (if ((76 > size(P)))
97+ then (size(split(P, "/")[0]) == 59)
9298 else false)
93- then (16 > size(split(N, "/")[1]))
99+ then (16 > size(split(P, "/")[1]))
94100 else false
95101 else false
96102
97103
98-func O (w,P,Q,R,S) = {
99- let T = if ((size(R) != 0))
100- then M(R)
104+func Q (w,R,S,T,U) = {
105+ let V = if ((size(T) != 0))
106+ then O(T)
101107 else true
102- if (!(T))
108+ if (!(V))
103109 then throw("CID don't match requirement!")
104- else if (if ((P == ""))
110+ else if (if ((R == ""))
105111 then true
106- else (Q == ""))
112+ else (S == ""))
107113 then throw("Name and description cannot be empty")
108- else if ((size(Q) > 600))
114+ else if ((size(S) > 600))
109115 then throw("600 Char. max description")
110- else if ((size(P) > 45))
116+ else if ((size(R) > 45))
111117 then throw("45 Char. max name")
112118 else {
113- let U = b(B(w))
114- if (if ((U == q))
119+ let W = b(B(w))
120+ if (if ((W == q))
115121 then true
116- else (U == r))
122+ else (W == r))
117123 then throw("Account suspended/ removed.")
118- else if (if (!(S))
119- then (U == o)
124+ else if (if (!(U))
125+ then (W == o)
120126 else false)
121127 then throw("Already registered")
122- else if (if (if (!(S))
123- then (U == "")
128+ else if (if (if (!(U))
129+ then (W == "")
124130 else false)
125131 then l
126132 else false)
127133 then throw("Can't register, get approved first.")
128- else if (if (if (S)
129- then (U == "")
134+ else if (if (if (U)
135+ then (W == "")
130136 else false)
131137 then true
132- else if (S)
133- then (U == n)
138+ else if (U)
139+ then (W == n)
134140 else false)
135141 then throw("Register first")
136142 else true
137143 }
138144 }
139145
140146
141-func V (U,W,X) = {
142- let Y = [p, o, q, r, n, s]
143- let Z = if (containsElement(Y, U))
144- then U
145- else if (if ((U == u))
146- then (X == n)
147+func X (W,Y,Z) = {
148+ let aa = [p, o, q, r, n, s]
149+ let ab = if (containsElement(aa, W))
150+ then W
151+ else if (if ((W == u))
152+ then (Z == n)
147153 else false)
148154 then ""
149155 else throw("Unknown status")
150- let aa = e(D(W))
151- if (if ((aa == 0))
152- then (Z != n)
156+ let ac = e(D(Y))
157+ if (if ((ac == 0))
158+ then (ab != n)
153159 else false)
154160 then throw("You cant set this status, user is not registered.")
155- else if (if ((X == n))
156- then (Z == n)
161+ else if (if ((Z == n))
162+ then (ab == n)
157163 else false)
158164 then throw("User already allowed")
159- else if (if ((X == o))
160- then (Z == n)
165+ else if (if ((Z == o))
166+ then (ab == n)
161167 else false)
162168 then throw("User already allowed & registered")
163- else if (if ((X == p))
164- then (Z == n)
169+ else if (if ((Z == p))
170+ then (ab == n)
165171 else false)
166172 then throw("User already allowed & verified")
167- else Z
173+ else ab
168174 }
169175
170176
171-func ab (P,R,ac) = (((((("{\"user_name\": \"" + P) + "\", \"user_thumb\":\"") + R) + "\",\"user_date\":\"") + ac) + "\"}")
177+func ad (R,T,ae) = (((((("{\"user_name\": \"" + R) + "\", \"user_thumb\":\"") + T) + "\",\"user_date\":\"") + ae) + "\"}")
172178
173179
174-func ad (ae) = {
175- let af = ae
176- if ($isInstanceOf(af, "String"))
180+func af (ag) = {
181+ let ah = ag
182+ if ($isInstanceOf(ah, "String"))
177183 then {
178- let ag = af
179- ag
184+ let ai = ah
185+ ai
180186 }
181187 else throw("Sponsored Public Key String expected")
182188 }
183189
184190
185-func ah (ai,aj) = {
186- let ak = if ((aj != ""))
187- then valueOrElse(L((toString(addressFromPublicKey(fromBase58String(aj))) + "_free_txs")), 0)
191+func aj (ak,al) = {
192+ let am = if ((al != ""))
193+ then valueOrElse(N((toString(addressFromPublicKey(fromBase58String(al))) + "_free_txs")), 0)
188194 else 0
189- let w = if (if ((toBase58String(ai.caller.bytes) == toString(this)))
190- then (ak > 0)
195+ let w = if (if ((toBase58String(ak.caller.bytes) == toString(this)))
196+ then (am > 0)
191197 else false)
192- then toString(addressFromPublicKey(fromBase58String(aj)))
193- else toBase58String(ai.caller.bytes)
194- let al = if ((aj != ""))
195- then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(aj)))], nil)
198+ then toString(addressFromPublicKey(fromBase58String(al)))
199+ else toBase58String(ak.caller.bytes)
200+ let an = if ((al != ""))
201+ then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(al)))], nil)
196202 else unit
197- if ((al == al))
198- then $Tuple2(w, (ak > 0))
203+ if ((an == an))
204+ then $Tuple2(w, (am > 0))
199205 else throw("Strict value is not equal to itself.")
200206 }
201207
202208
203-@Callable(am)
204-func setConf (c,an) = {
205- let w = toString(am.caller)
209+@Callable(ao)
210+func setConf (c,ap) = {
211+ let w = toString(ao.caller)
206212 if (containsElement([f, toString(this)], w))
207- then [StringEntry(c, an)]
213+ then [StringEntry(c, ap)]
208214 else throw("You are not allowed to change this")
209215 }
210216
211217
212218
213-@Callable(am)
214-func appRunning (ao,ap) = {
215- let w = toString(am.caller)
219+@Callable(ao)
220+func appRunning (aq,ar) = {
221+ let w = toString(ao.caller)
216222 if (containsElement([f, toString(this)], w))
217- then [BooleanEntry(g, ao), StringEntry(h, ap)]
223+ then [BooleanEntry(g, aq), StringEntry(h, ar)]
218224 else throw("You are not allowed to change this")
219225 }
220226
221227
222228
223-@Callable(am)
224-func registrationMode (aq) = {
225- let w = toString(am.caller)
229+@Callable(ao)
230+func registrationMode (as) = {
231+ let w = toString(ao.caller)
226232 if (containsElement([f, toString(this)], w))
227- then [BooleanEntry(i, aq)]
233+ then [BooleanEntry(i, as)]
228234 else throw("You are not allowed to change this")
229235 }
230236
231237
232238
233-@Callable(am)
234-func registerUser (P,Q,R,ar,as,aj) = if (!(j))
239+@Callable(ao)
240+func registerUser (R,S,T,at,au,al) = if (!(j))
235241 then throw(k)
236242 else {
237- let at = ah(am, aj)
238- let w = at._1
239- let ak = at._2
240- let au = toBase58String(am.transactionId)
241- let av = lastBlock.timestamp
242- if (!(O(w, P, Q, R, false)))
243+ let av = aj(ao, al)
244+ let w = av._1
245+ let am = av._2
246+ let aw = toBase58String(ao.transactionId)
247+ let ax = lastBlock.timestamp
248+ let ay = b(F(w))
249+ let az = b(G(w))
250+ if (!(Q(w, R, S, T, false)))
243251 then throw("Something went wrong")
244252 else {
245- let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(av))
246- if (if ((0 > as))
253+ let aA = ad(toBase64String(toBytes(R)), toBase64String(toBytes(T)), toString(ax))
254+ if (if ((0 > au))
247255 then true
248- else (as > 1000))
256+ else (au > 1000))
249257 then throw("Royalties cannot be less than 0% or higher than 10%")
250258 else {
251- let ax = if (ak)
259+ let aB = if (am)
252260 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
253261 else nil
254- ([IntegerEntry(D(w), av), StringEntry(v(w), ((au + "_") + toString(av))), StringEntry(x(w), P), StringEntry(y(w), Q), StringEntry(z(w), ar), StringEntry(A(w), R), StringEntry(B(w), o), IntegerEntry(C(w), as), DeleteEntry(("ALLOWED_" + w)), StringEntry(((o + "_") + w), aw)] ++ ax)
262+ ([IntegerEntry(D(w), ax), StringEntry(v(w), ((aw + "_") + toString(ax))), StringEntry(x(w), R), StringEntry(y(w), S), StringEntry(z(w), at), StringEntry(A(w), T), StringEntry(B(w), o), IntegerEntry(C(w), au), DeleteEntry(("ALLOWED_" + w)), StringEntry(((o + "_") + w), aA), StringEntry(F(w), ay), StringEntry(G(w), az)] ++ aB)
255263 }
256264 }
257265 }
258266
259267
260268
261-@Callable(am)
262-func updateUser (P,Q,R,ar,as,aj) = if (!(j))
269+@Callable(ao)
270+func updateUser (R,S,T,at,au,al) = if (!(j))
263271 then throw(k)
264272 else {
265- let ay = ah(am, aj)
266- let w = ay._1
267- let ak = ay._2
268- let U = b(B(w))
269- if (!(O(w, P, Q, R, true)))
273+ let aC = aj(ao, al)
274+ let w = aC._1
275+ let am = aC._2
276+ let W = b(B(w))
277+ if (!(Q(w, R, S, T, true)))
270278 then throw("Something went wrong")
271279 else {
272- let ac = e(D(w))
273- let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(ac))
274- if (if ((0 > as))
280+ let ae = e(D(w))
281+ let aA = ad(toBase64String(toBytes(R)), toBase64String(toBytes(T)), toString(ae))
282+ if (if ((0 > au))
275283 then true
276- else (as > 1000))
284+ else (au > 1000))
277285 then throw("Royalties cannot be less than 0% or higher than 10%")
278286 else {
279- let ax = if (ak)
287+ let aB = if (am)
280288 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
281289 else nil
282- ([StringEntry(x(w), P), StringEntry(y(w), Q), StringEntry(z(w), ar), StringEntry(A(w), R), IntegerEntry(C(w), as), StringEntry(((U + "_") + w), aw)] ++ ax)
290+ ([StringEntry(x(w), R), StringEntry(y(w), S), StringEntry(z(w), at), StringEntry(A(w), T), IntegerEntry(C(w), au), StringEntry(((W + "_") + w), aA)] ++ aB)
283291 }
284292 }
285293 }
286294
287295
288296
289-@Callable(am)
290-func setERC20User (az,aj) = if (!(j))
297+@Callable(ao)
298+func setERC20User (aD,al) = if (!(j))
291299 then throw(k)
292300 else {
293- let aA = ah(am, aj)
294- let w = aA._1
295- let ak = aA._2
296- let U = b(B(w))
297- if (if ((U != o))
298- then (U != p)
301+ let aE = aj(ao, al)
302+ let w = aE._1
303+ let am = aE._2
304+ let W = b(B(w))
305+ if (if ((W != o))
306+ then (W != p)
299307 else false)
300308 then throw("Not allowed to set ERC20 address")
301309 else {
302- let aB = take(az, 2)
303- if (if ((aB != "0x"))
310+ let aF = take(aD, 2)
311+ if (if ((aF != "0x"))
304312 then true
305- else (size(az) != 42))
313+ else (size(aD) != 42))
306314 then throw("This is not an erc20 address")
307315 else {
308- let ax = if (ak)
316+ let aB = if (am)
309317 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
310318 else nil
311- ([StringEntry(E(w), az)] ++ ax)
319+ ([StringEntry(E(w), aD)] ++ aB)
312320 }
313321 }
314322 }
315323
316324
317325
318-@Callable(am)
319-func changeUserStatus (W,U,aC,aD) = {
320- let w = toString(am.caller)
326+@Callable(ao)
327+func changeUserStatus (Y,W,ay,az) = {
328+ let w = toString(ao.caller)
321329 if (containsElement([f, toString(this)], w))
322- then if ((size(U) == 0))
323- then [StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
330+ then if ((size(W) == 0))
331+ then [StringEntry(F(Y), ay), StringEntry(G(Y), az)]
324332 else {
325- let X = b(B(W))
326- let Z = V(U, W, X)
327- let P = toBase64String(toBytes(b(x(W))))
328- let R = toBase64String(toBytes(b(A(W))))
329- let ac = e(D(W))
330- let aw = ab(P, R, toString(ac))
331-[StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
333+ let Z = b(B(Y))
334+ let ab = X(W, Y, Z)
335+ let R = toBase64String(toBytes(b(x(Y))))
336+ let T = toBase64String(toBytes(b(A(Y))))
337+ let ae = e(D(Y))
338+ let aA = ad(R, T, toString(ae))
339+[StringEntry(B(Y), ab), DeleteEntry(((Z + "_") + Y)), StringEntry(((ab + "_") + Y), aA), StringEntry(F(Y), ay), StringEntry(G(Y), az)]
332340 }
333341 else throw("Not allowed to change user status")
334342 }
335343
336344
337345
338-@Callable(am)
339-func deleteUser (W) = {
340- let w = toString(am.caller)
341- let X = b(B(W))
346+@Callable(ao)
347+func deleteUser (Y) = {
348+ let w = toString(ao.caller)
349+ let Z = b(B(Y))
342350 if (containsElement([f, toString(this)], w))
343- then [DeleteEntry(D(W)), DeleteEntry(v(W)), DeleteEntry(x(W)), DeleteEntry(y(W)), DeleteEntry(z(W)), DeleteEntry(A(W)), DeleteEntry(("user_note_" + W)), DeleteEntry(((X + "_") + W)), DeleteEntry(C(W)), StringEntry(B(W), r)]
351+ then [DeleteEntry(D(Y)), DeleteEntry(v(Y)), DeleteEntry(x(Y)), DeleteEntry(y(Y)), DeleteEntry(z(Y)), DeleteEntry(A(Y)), DeleteEntry(("user_note_" + Y)), DeleteEntry(((Z + "_") + Y)), DeleteEntry(C(Y)), StringEntry(B(Y), r)]
344352 else throw("Not allowed")
345353 }
346354
347355
348356
349-@Callable(ai)
350-func setAgent (G,I,aE,aF) = if (!(j))
357+@Callable(ak)
358+func setAgent (I,K,aG,aH) = if (!(j))
351359 then throw(k)
352360 else {
353- let w = toString(ai.caller)
361+ let w = toString(ak.caller)
354362 if (containsElement([f, toString(this)], w))
355- then if (if ((size(G) != 35))
363+ then if (if ((size(I) != 35))
356364 then true
357- else (size(I) != 35))
365+ else (size(K) != 35))
358366 then throw("Wrong address")
359- else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aE), IntegerEntry(K(G), aF)]
367+ else [StringEntry(H(I), K), StringEntry(J(K, I), I), IntegerEntry(L(I), aG), IntegerEntry(M(I), aH)]
360368 else throw("You are not allowed")
361369 }
362370
363371
364372
365-@Callable(ai)
366-func unsetAgent (G,I) = if (!(j))
373+@Callable(ak)
374+func unsetAgent (I,K) = if (!(j))
367375 then throw(k)
368376 else {
369- let w = toString(ai.caller)
377+ let w = toString(ak.caller)
370378 if (containsElement([f, toString(this)], w))
371- then if (if ((size(G) != 35))
379+ then if (if ((size(I) != 35))
372380 then true
373- else (size(I) != 35))
381+ else (size(K) != 35))
374382 then throw("Wrong address")
375- else [DeleteEntry(F(G)), DeleteEntry(H(I, G)), DeleteEntry(J(G)), DeleteEntry(K(G))]
383+ else [DeleteEntry(H(I)), DeleteEntry(J(K, I)), DeleteEntry(L(I)), DeleteEntry(M(I))]
376384 else throw("You are not allowed")
377385 }
378386
379387
380388
381-@Callable(ai)
382-func deleteEntry (aG) = {
383- let w = toString(ai.caller)
389+@Callable(ak)
390+func deleteEntry (aI) = {
391+ let w = toString(ak.caller)
384392 if ((w == f))
385- then [DeleteEntry(aG)]
393+ then [DeleteEntry(aI)]
386394 else throw("no")
387395 }
388396
389397
390-@Verifier(aH)
391-func aI () = {
392- let af = aH
393- if ($isInstanceOf(af, "InvokeScriptTransaction"))
398+@Verifier(aJ)
399+func aK () = {
400+ let ah = aJ
401+ if ($isInstanceOf(ah, "InvokeScriptTransaction"))
394402 then {
395- let aJ = af
396- if (if (if (if ((aJ.function == "registerUser"))
397- then (aJ.dApp == this)
403+ let aL = ah
404+ if (if (if (if ((aL.function == "registerUser"))
405+ then (aL.dApp == this)
398406 else false)
399- then (aJ.fee == 500000)
407+ then (aL.fee == 500000)
400408 else false)
401- then (aJ.feeAssetId == unit)
409+ then (aL.feeAssetId == unit)
402410 else false)
403- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
404- else if (if (if (if ((aJ.function == "updateUser"))
405- then (aJ.dApp == this)
411+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[5])))
412+ else if (if (if (if ((aL.function == "updateUser"))
413+ then (aL.dApp == this)
406414 else false)
407- then (aJ.fee == 500000)
415+ then (aL.fee == 500000)
408416 else false)
409- then (aJ.feeAssetId == unit)
417+ then (aL.feeAssetId == unit)
410418 else false)
411- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
412- else if (if (if (if ((aJ.function == "setERC20User"))
413- then (aJ.dApp == this)
419+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[5])))
420+ else if (if (if (if ((aL.function == "setERC20User"))
421+ then (aL.dApp == this)
414422 else false)
415- then (aJ.fee == 500000)
423+ then (aL.fee == 500000)
416424 else false)
417- then (aJ.feeAssetId == unit)
425+ then (aL.feeAssetId == unit)
418426 else false)
419- then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[2])))
420- else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
427+ then sigVerify(aJ.bodyBytes, aJ.proofs[0], fromBase58String(af(aL.args[2])))
428+ else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey)
421429 }
422- else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
430+ else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey)
423431 }
424432

github/deemru/w8io/026f985 
124.70 ms