tx · J2sRsKPtaTerd4ZZvJNfVWPAriNNofdiZyiokrs4mmY1

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01100000 Waves

2023.01.22 04:21 [2415499] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "J2sRsKPtaTerd4ZZvJNfVWPAriNNofdiZyiokrs4mmY1", "fee": 1100000, "feeAssetId": null, "timestamp": 1674350511372, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "m8BrFf4iqpdawFHXHweF4TwVgPvyoiYPyHxBuUsPyuXMGFxnAZTaEt5exZVuHsZBbGtnCSQRemPW6LBKrv9ekFo" ], "script": "base64:BgJNCAISBAoCCAgSBAoCBAgSAwoBBBIICgYICAgIAQgSCAoGCAgICAEIEgQKAggIEgYKBAgICAgSAwoBCBIGCgQICAEBEgQKAggIEgMKAQgoAAdWRVJTSU9OAgMxLjUBDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgABD2dldEJvb2xlYW5CeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMFA2tleQcBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAA5kYXBwUnVubmluZ0tleQIUY29uZl9kYXBwX2lzX3J1bm5pbmcAEW1haW50ZW5hbmNlTVNHS2V5AhRjb25mX21haW50ZW5hbmNlX21zZwASd2hpdGVsaXN0ZWRvbmx5S2V5AhVjb25mX3doaXRlbGlzdGVkX29ubHkAC2RhcHBSdW5uaW5nCQELdmFsdWVPckVsc2UCCQCbCAIFB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cwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5NvwNRQ==", "height": 2415499, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CbYwjsTygDWathmSHVkbxufgAwsnpdCvxuVYH6pifXxQ Next: FDUT9vd8qBNgH7duTgnCmUECT2oCQ8fvdPLRnthikZYi Diff:
OldNewDifferences
316316
317317
318318 @Callable(am)
319-func changeUserStatus (W,U,aC) = {
319+func changeUserStatus (W,U,aC,aD) = {
320320 let w = toString(am.caller)
321321 let X = b(B(W))
322322 let Z = V(U, W, X)
325325 let ac = e(D(W))
326326 let aw = ab(P, R, toString(ac))
327327 if (containsElement([f, toString(this)], w))
328- then [StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC)]
328+ then [StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
329329 else throw("Not allowed to change user status")
330330 }
331331
343343
344344
345345 @Callable(ai)
346-func setAgent (G,I,aD,aE) = if (!(j))
346+func setAgent (G,I,aE,aF) = if (!(j))
347347 then throw(k)
348348 else {
349349 let w = toString(ai.caller)
352352 then true
353353 else (size(I) != 35))
354354 then throw("Wrong address")
355- else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aD), IntegerEntry(K(G), aE)]
355+ else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aE), IntegerEntry(K(G), aF)]
356356 else throw("You are not allowed")
357357 }
358358
375375
376376
377377 @Callable(ai)
378-func deleteEntry (aF) = {
378+func deleteEntry (aG) = {
379379 let w = toString(ai.caller)
380380 if ((w == f))
381- then [DeleteEntry(aF)]
381+ then [DeleteEntry(aG)]
382382 else throw("no")
383383 }
384384
385385
386-@Verifier(aG)
387-func aH () = {
388- let af = aG
386+@Verifier(aH)
387+func aI () = {
388+ let af = aH
389389 if ($isInstanceOf(af, "InvokeScriptTransaction"))
390390 then {
391- let aI = af
392- if (if (if (if ((aI.function == "registerUser"))
393- then (aI.dApp == this)
391+ let aJ = af
392+ if (if (if (if ((aJ.function == "registerUser"))
393+ then (aJ.dApp == this)
394394 else false)
395- then (aI.fee == 500000)
395+ then (aJ.fee == 500000)
396396 else false)
397- then (aI.feeAssetId == unit)
397+ then (aJ.feeAssetId == unit)
398398 else false)
399- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[5])))
400- else if (if (if (if ((aI.function == "updateUser"))
401- then (aI.dApp == this)
399+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
400+ else if (if (if (if ((aJ.function == "updateUser"))
401+ then (aJ.dApp == this)
402402 else false)
403- then (aI.fee == 500000)
403+ then (aJ.fee == 500000)
404404 else false)
405- then (aI.feeAssetId == unit)
405+ then (aJ.feeAssetId == unit)
406406 else false)
407- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[5])))
408- else if (if (if (if ((aI.function == "setERC20User"))
409- then (aI.dApp == this)
407+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
408+ else if (if (if (if ((aJ.function == "setERC20User"))
409+ then (aJ.dApp == this)
410410 else false)
411- then (aI.fee == 500000)
411+ then (aJ.fee == 500000)
412412 else false)
413- then (aI.feeAssetId == unit)
413+ then (aJ.feeAssetId == unit)
414414 else false)
415- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[2])))
416- else sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
415+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[2])))
416+ else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
417417 }
418- else sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
418+ else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
419419 }
420420
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
7474 func F (G) = ("artist_agent_" + G)
7575
7676
7777 func H (I,G) = ((("agent_" + I) + "_") + G)
7878
7979
8080 func J (G) = ("artist_agent_primary_" + G)
8181
8282
8383 func K (G) = ("artist_agent_secondary_" + G)
8484
8585
8686 func L (c) = valueOrElse(getInteger(m, c), 0)
8787
8888
8989 func M (N) = if (contains(N, "/"))
9090 then if (if ((76 > size(N)))
9191 then (size(split(N, "/")[0]) == 59)
9292 else false)
9393 then (16 > size(split(N, "/")[1]))
9494 else false
9595 else false
9696
9797
9898 func O (w,P,Q,R,S) = {
9999 let T = if ((size(R) != 0))
100100 then M(R)
101101 else true
102102 if (!(T))
103103 then throw("CID don't match requirement!")
104104 else if (if ((P == ""))
105105 then true
106106 else (Q == ""))
107107 then throw("Name and description cannot be empty")
108108 else if ((size(Q) > 600))
109109 then throw("600 Char. max description")
110110 else if ((size(P) > 45))
111111 then throw("45 Char. max name")
112112 else {
113113 let U = b(B(w))
114114 if (if ((U == q))
115115 then true
116116 else (U == r))
117117 then throw("Account suspended/ removed.")
118118 else if (if (!(S))
119119 then (U == o)
120120 else false)
121121 then throw("Already registered")
122122 else if (if (if (!(S))
123123 then (U == "")
124124 else false)
125125 then l
126126 else false)
127127 then throw("Can't register, get approved first.")
128128 else if (if (if (S)
129129 then (U == "")
130130 else false)
131131 then true
132132 else if (S)
133133 then (U == n)
134134 else false)
135135 then throw("Register first")
136136 else true
137137 }
138138 }
139139
140140
141141 func V (U,W,X) = {
142142 let Y = [p, o, q, r, n, s]
143143 let Z = if (containsElement(Y, U))
144144 then U
145145 else if (if ((U == u))
146146 then (X == n)
147147 else false)
148148 then ""
149149 else throw("Unknown status")
150150 let aa = e(D(W))
151151 if (if ((aa == 0))
152152 then (Z != n)
153153 else false)
154154 then throw("You cant set this status, user is not registered.")
155155 else if (if ((X == n))
156156 then (Z == n)
157157 else false)
158158 then throw("User already allowed")
159159 else if (if ((X == o))
160160 then (Z == n)
161161 else false)
162162 then throw("User already allowed & registered")
163163 else if (if ((X == p))
164164 then (Z == n)
165165 else false)
166166 then throw("User already allowed & verified")
167167 else Z
168168 }
169169
170170
171171 func ab (P,R,ac) = (((((("{\"user_name\": \"" + P) + "\", \"user_thumb\":\"") + R) + "\",\"user_date\":\"") + ac) + "\"}")
172172
173173
174174 func ad (ae) = {
175175 let af = ae
176176 if ($isInstanceOf(af, "String"))
177177 then {
178178 let ag = af
179179 ag
180180 }
181181 else throw("Sponsored Public Key String expected")
182182 }
183183
184184
185185 func ah (ai,aj) = {
186186 let ak = if ((aj != ""))
187187 then valueOrElse(L((toString(addressFromPublicKey(fromBase58String(aj))) + "_free_txs")), 0)
188188 else 0
189189 let w = if (if ((toBase58String(ai.caller.bytes) == toString(this)))
190190 then (ak > 0)
191191 else false)
192192 then toString(addressFromPublicKey(fromBase58String(aj)))
193193 else toBase58String(ai.caller.bytes)
194194 let al = if ((aj != ""))
195195 then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(aj)))], nil)
196196 else unit
197197 if ((al == al))
198198 then $Tuple2(w, (ak > 0))
199199 else throw("Strict value is not equal to itself.")
200200 }
201201
202202
203203 @Callable(am)
204204 func setConf (c,an) = {
205205 let w = toString(am.caller)
206206 if (containsElement([f, toString(this)], w))
207207 then [StringEntry(c, an)]
208208 else throw("You are not allowed to change this")
209209 }
210210
211211
212212
213213 @Callable(am)
214214 func appRunning (ao,ap) = {
215215 let w = toString(am.caller)
216216 if (containsElement([f, toString(this)], w))
217217 then [BooleanEntry(g, ao), StringEntry(h, ap)]
218218 else throw("You are not allowed to change this")
219219 }
220220
221221
222222
223223 @Callable(am)
224224 func registrationMode (aq) = {
225225 let w = toString(am.caller)
226226 if (containsElement([f, toString(this)], w))
227227 then [BooleanEntry(i, aq)]
228228 else throw("You are not allowed to change this")
229229 }
230230
231231
232232
233233 @Callable(am)
234234 func registerUser (P,Q,R,ar,as,aj) = if (!(j))
235235 then throw(k)
236236 else {
237237 let at = ah(am, aj)
238238 let w = at._1
239239 let ak = at._2
240240 let au = toBase58String(am.transactionId)
241241 let av = lastBlock.timestamp
242242 if (!(O(w, P, Q, R, false)))
243243 then throw("Something went wrong")
244244 else {
245245 let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(av))
246246 if (if ((0 > as))
247247 then true
248248 else (as > 1000))
249249 then throw("Royalties cannot be less than 0% or higher than 10%")
250250 else {
251251 let ax = if (ak)
252252 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
253253 else nil
254254 ([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)
255255 }
256256 }
257257 }
258258
259259
260260
261261 @Callable(am)
262262 func updateUser (P,Q,R,ar,as,aj) = if (!(j))
263263 then throw(k)
264264 else {
265265 let ay = ah(am, aj)
266266 let w = ay._1
267267 let ak = ay._2
268268 let U = b(B(w))
269269 if (!(O(w, P, Q, R, true)))
270270 then throw("Something went wrong")
271271 else {
272272 let ac = e(D(w))
273273 let aw = ab(toBase64String(toBytes(P)), toBase64String(toBytes(R)), toString(ac))
274274 if (if ((0 > as))
275275 then true
276276 else (as > 1000))
277277 then throw("Royalties cannot be less than 0% or higher than 10%")
278278 else {
279279 let ax = if (ak)
280280 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
281281 else nil
282282 ([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)
283283 }
284284 }
285285 }
286286
287287
288288
289289 @Callable(am)
290290 func setERC20User (az,aj) = if (!(j))
291291 then throw(k)
292292 else {
293293 let aA = ah(am, aj)
294294 let w = aA._1
295295 let ak = aA._2
296296 let U = b(B(w))
297297 if (if ((U != o))
298298 then (U != p)
299299 else false)
300300 then throw("Not allowed to set ERC20 address")
301301 else {
302302 let aB = take(az, 2)
303303 if (if ((aB != "0x"))
304304 then true
305305 else (size(az) != 42))
306306 then throw("This is not an erc20 address")
307307 else {
308308 let ax = if (ak)
309309 then [ScriptTransfer(Address(fromBase58String(w)), 0, unit)]
310310 else nil
311311 ([StringEntry(E(w), az)] ++ ax)
312312 }
313313 }
314314 }
315315
316316
317317
318318 @Callable(am)
319-func changeUserStatus (W,U,aC) = {
319+func changeUserStatus (W,U,aC,aD) = {
320320 let w = toString(am.caller)
321321 let X = b(B(W))
322322 let Z = V(U, W, X)
323323 let P = toBase64String(toBytes(b(x(W))))
324324 let R = toBase64String(toBytes(b(A(W))))
325325 let ac = e(D(W))
326326 let aw = ab(P, R, toString(ac))
327327 if (containsElement([f, toString(this)], w))
328- then [StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC)]
328+ then [StringEntry(B(W), Z), DeleteEntry(((X + "_") + W)), StringEntry(((Z + "_") + W), aw), StringEntry(("user_note_" + W), aC), StringEntry(("user_label_" + W), aD)]
329329 else throw("Not allowed to change user status")
330330 }
331331
332332
333333
334334 @Callable(am)
335335 func deleteUser (W) = {
336336 let w = toString(am.caller)
337337 let X = b(B(W))
338338 if (containsElement([f, toString(this)], w))
339339 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)]
340340 else throw("Not allowed")
341341 }
342342
343343
344344
345345 @Callable(ai)
346-func setAgent (G,I,aD,aE) = if (!(j))
346+func setAgent (G,I,aE,aF) = if (!(j))
347347 then throw(k)
348348 else {
349349 let w = toString(ai.caller)
350350 if (containsElement([f, toString(this)], w))
351351 then if (if ((size(G) != 35))
352352 then true
353353 else (size(I) != 35))
354354 then throw("Wrong address")
355- else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aD), IntegerEntry(K(G), aE)]
355+ else [StringEntry(F(G), I), StringEntry(H(I, G), G), IntegerEntry(J(G), aE), IntegerEntry(K(G), aF)]
356356 else throw("You are not allowed")
357357 }
358358
359359
360360
361361 @Callable(ai)
362362 func unsetAgent (G,I) = if (!(j))
363363 then throw(k)
364364 else {
365365 let w = toString(ai.caller)
366366 if (containsElement([f, toString(this)], w))
367367 then if (if ((size(G) != 35))
368368 then true
369369 else (size(I) != 35))
370370 then throw("Wrong address")
371371 else [DeleteEntry(F(G)), DeleteEntry(H(I, G)), DeleteEntry(J(G)), DeleteEntry(K(G))]
372372 else throw("You are not allowed")
373373 }
374374
375375
376376
377377 @Callable(ai)
378-func deleteEntry (aF) = {
378+func deleteEntry (aG) = {
379379 let w = toString(ai.caller)
380380 if ((w == f))
381- then [DeleteEntry(aF)]
381+ then [DeleteEntry(aG)]
382382 else throw("no")
383383 }
384384
385385
386-@Verifier(aG)
387-func aH () = {
388- let af = aG
386+@Verifier(aH)
387+func aI () = {
388+ let af = aH
389389 if ($isInstanceOf(af, "InvokeScriptTransaction"))
390390 then {
391- let aI = af
392- if (if (if (if ((aI.function == "registerUser"))
393- then (aI.dApp == this)
391+ let aJ = af
392+ if (if (if (if ((aJ.function == "registerUser"))
393+ then (aJ.dApp == this)
394394 else false)
395- then (aI.fee == 500000)
395+ then (aJ.fee == 500000)
396396 else false)
397- then (aI.feeAssetId == unit)
397+ then (aJ.feeAssetId == unit)
398398 else false)
399- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[5])))
400- else if (if (if (if ((aI.function == "updateUser"))
401- then (aI.dApp == this)
399+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
400+ else if (if (if (if ((aJ.function == "updateUser"))
401+ then (aJ.dApp == this)
402402 else false)
403- then (aI.fee == 500000)
403+ then (aJ.fee == 500000)
404404 else false)
405- then (aI.feeAssetId == unit)
405+ then (aJ.feeAssetId == unit)
406406 else false)
407- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[5])))
408- else if (if (if (if ((aI.function == "setERC20User"))
409- then (aI.dApp == this)
407+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[5])))
408+ else if (if (if (if ((aJ.function == "setERC20User"))
409+ then (aJ.dApp == this)
410410 else false)
411- then (aI.fee == 500000)
411+ then (aJ.fee == 500000)
412412 else false)
413- then (aI.feeAssetId == unit)
413+ then (aJ.feeAssetId == unit)
414414 else false)
415- then sigVerify(aG.bodyBytes, aG.proofs[0], fromBase58String(ad(aI.args[2])))
416- else sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
415+ then sigVerify(aH.bodyBytes, aH.proofs[0], fromBase58String(ad(aJ.args[2])))
416+ else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
417417 }
418- else sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
418+ else sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
419419 }
420420

github/deemru/w8io/026f985 
116.97 ms