tx · BqT1mMvxXNdNpjCsKqKENytH33fPqM7kRVNFYL4qWkoX

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01300000 Waves

2023.01.30 14:44 [2427659] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "BqT1mMvxXNdNpjCsKqKENytH33fPqM7kRVNFYL4qWkoX", "fee": 1300000, "feeAssetId": null, "timestamp": 1675079095441, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "5CYeet6y3wiFY3hc6j84dp5fg52duCmNZKp7KP3eSC9hDpJtWAbHFqCPQY7kahwXoirUA8L1kEph8isMb9LGnAqD" ], "script": "base64:BgJRCAISBAoCCAgSBAoCBAgSAwoBBBIICgYICAgIAQgSCAoGCAgICAEIEgQKAggIEgoKCAgICAgBAQEBEgMKAQgSBgoECAgBARIECgIICBIDCgEIKwAHVkVSU0lPTgIDMS41AQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAQ9nZXRCb29sZWFuQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmwgCBQR0aGlzBQNrZXkHAQ9nZXRJbnRlZ2VyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZXkAAAAFY2hyaXMJAQ5nZXRTdHJpbmdCeUtleQECDGNvbmZfYWRtaW5fMQAOZGFwcFJ1bm5pbmdLZXkCFGNvbmZfZGFwcF9pc19ydW5uaW5nABFtYWludGVuYW5jZU1TR0tleQIUY29uZl9tYWludGVuYW5jZV9tc2cAEndoaXRlbGlzdGVkb25seUtleQIVY29uZl93aGl0ZWxpc3RlZF9vbmx5AAtkYXBwUnVubmluZwkBC3ZhbHVlT3JFbHNl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wkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQEIYXNTdHJpbmcBCQCRAwIIBQNpbnYEYXJncwACCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AhrIDg==", "height": 2427659, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Cmwdk9yHVTM44W42ZThcWCs9NWpGgHqPJ3WewfqK6AA Next: 2JDTZvDqQHAfid7rfw6CL2yQgNsHJxabq3prHorYEW9m Diff:
OldNewDifferences
360360 then invoke(m, "whitelist", [Z, aK], nil)
361361 else nil
362362 if ((aS == aS))
363- then if ((size(X) == 0))
364- then {
365- let aa = b(C(Z))
366- if ((aa == ""))
363+ then {
364+ let aa = b(C(Z))
365+ if ((size(X) == 0))
366+ then if ((aa == ""))
367367 then throw("User have no status yet")
368368 else [StringEntry(G(Z), aN), StringEntry(H(Z), aO)]
369- }
370- else {
371- let aa = b(C(Z))
372- let ac = Y(X, Z, aa)
373- let S = toBase64String(toBytes(b(y(Z))))
374- let U = toBase64String(toBytes(b(B(Z))))
375- let af = e(E(Z))
376- let aB = ae(S, U, toString(af))
369+ else {
370+ let ac = Y(X, Z, aa)
371+ let S = toBase64String(toBytes(b(y(Z))))
372+ let U = toBase64String(toBytes(b(B(Z))))
373+ let af = e(E(Z))
374+ let aB = ae(S, U, toString(af))
377375 [StringEntry(C(Z), ac), DeleteEntry(((aa + "_") + Z)), StringEntry(((ac + "_") + Z), aB), StringEntry(G(Z), aN), StringEntry(H(Z), aO)]
378- }
376+ }
377+ }
379378 else throw("Strict value is not equal to itself.")
380379 }
381380 else throw("Strict value is not equal to itself.")
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 = value(addressFromString(b("conf_signweb_dapp")))
3232
3333 let o = "ALLOWED"
3434
3535 let p = "REGISTERED"
3636
3737 let q = "VERIFIED"
3838
3939 let r = "SUSPENDED"
4040
4141 let s = "REMOVED"
4242
4343 let t = "CHANGE_REQUIRED"
4444
4545 let u = "UNREGISTERED"
4646
4747 let v = "RESET"
4848
4949 func w (x) = ("user_" + x)
5050
5151
5252 func y (x) = ("user_name_" + x)
5353
5454
5555 func z (x) = ("user_desc_" + x)
5656
5757
5858 func A (x) = ("user_social_" + x)
5959
6060
6161 func B (x) = ("user_thumb_" + x)
6262
6363
6464 func C (x) = ("user_status_" + x)
6565
6666
6767 func D (x) = ("user_royalties_" + x)
6868
6969
7070 func E (x) = ("user_date_" + x)
7171
7272
7373 func F (x) = ("user_ERC20_" + x)
7474
7575
7676 func G (x) = ("user_note_" + x)
7777
7878
7979 func H (x) = ("user_label_" + x)
8080
8181
8282 func I (J) = ("artist_agent_" + J)
8383
8484
8585 func K (L,J) = ((("agent_" + L) + "_") + J)
8686
8787
8888 func M (J) = ("artist_agent_primary_" + J)
8989
9090
9191 func N (J) = ("artist_agent_secondary_" + J)
9292
9393
9494 func O (c) = valueOrElse(getInteger(m, c), 0)
9595
9696
9797 func P (Q) = if (contains(Q, "/"))
9898 then if (if ((76 > size(Q)))
9999 then (size(split(Q, "/")[0]) == 59)
100100 else false)
101101 then (16 > size(split(Q, "/")[1]))
102102 else false
103103 else false
104104
105105
106106 func R (x,S,T,U,V) = {
107107 let W = if ((size(U) != 0))
108108 then P(U)
109109 else true
110110 if (!(W))
111111 then throw("CID don't match requirement!")
112112 else if (if ((S == ""))
113113 then true
114114 else (T == ""))
115115 then throw("Name and description cannot be empty")
116116 else if ((size(T) > 600))
117117 then throw("600 Char. max description")
118118 else if ((size(S) > 45))
119119 then throw("45 Char. max name")
120120 else {
121121 let X = b(C(x))
122122 if (if ((X == r))
123123 then true
124124 else (X == s))
125125 then throw("Account suspended/ removed.")
126126 else if (if (!(V))
127127 then (X == p)
128128 else false)
129129 then throw("Already registered")
130130 else if (if (if (!(V))
131131 then (X == "")
132132 else false)
133133 then l
134134 else false)
135135 then throw("Can't register, get approved first.")
136136 else if (if (if (V)
137137 then (X == "")
138138 else false)
139139 then true
140140 else if (V)
141141 then (X == o)
142142 else false)
143143 then throw("Register first")
144144 else true
145145 }
146146 }
147147
148148
149149 func Y (X,Z,aa) = {
150150 let ab = [q, p, r, s, o, t]
151151 let ac = if (containsElement(ab, X))
152152 then X
153153 else if (if ((X == v))
154154 then (aa == o)
155155 else false)
156156 then ""
157157 else throw("Unknown status")
158158 let ad = e(E(Z))
159159 if (if ((ad == 0))
160160 then (ac != o)
161161 else false)
162162 then throw("You cant set this status, user is not registered.")
163163 else if (if ((aa == o))
164164 then (ac == o)
165165 else false)
166166 then throw("User already allowed")
167167 else if (if ((aa == p))
168168 then (ac == o)
169169 else false)
170170 then throw("User already allowed & registered")
171171 else if (if ((aa == q))
172172 then (ac == o)
173173 else false)
174174 then throw("User already allowed & verified")
175175 else ac
176176 }
177177
178178
179179 func ae (S,U,af) = (((((("{\"user_name\": \"" + S) + "\", \"user_thumb\":\"") + U) + "\",\"user_date\":\"") + af) + "\"}")
180180
181181
182182 func ag (ah) = {
183183 let ai = ah
184184 if ($isInstanceOf(ai, "String"))
185185 then {
186186 let aj = ai
187187 aj
188188 }
189189 else throw("Sponsored Public Key String expected")
190190 }
191191
192192
193193 func ak (al,am) = {
194194 let an = if ((am != ""))
195195 then valueOrElse(O((toString(addressFromPublicKey(fromBase58String(am))) + "_free_txs")), 0)
196196 else 0
197197 let x = if (if ((toBase58String(al.caller.bytes) == toString(this)))
198198 then (an > 0)
199199 else false)
200200 then toString(addressFromPublicKey(fromBase58String(am)))
201201 else toBase58String(al.caller.bytes)
202202 let ao = if ((am != ""))
203203 then invoke(m, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(am)))], nil)
204204 else unit
205205 if ((ao == ao))
206206 then $Tuple2(x, (an > 0))
207207 else throw("Strict value is not equal to itself.")
208208 }
209209
210210
211211 @Callable(ap)
212212 func setConf (c,aq) = {
213213 let x = toString(ap.caller)
214214 if (containsElement([f, toString(this)], x))
215215 then [StringEntry(c, aq)]
216216 else throw("You are not allowed to change this")
217217 }
218218
219219
220220
221221 @Callable(ap)
222222 func appRunning (ar,as) = {
223223 let x = toString(ap.caller)
224224 if (containsElement([f, toString(this)], x))
225225 then [BooleanEntry(g, ar), StringEntry(h, as)]
226226 else throw("You are not allowed to change this")
227227 }
228228
229229
230230
231231 @Callable(ap)
232232 func registrationMode (at) = {
233233 let x = toString(ap.caller)
234234 if (containsElement([f, toString(this)], x))
235235 then [BooleanEntry(i, at)]
236236 else throw("You are not allowed to change this")
237237 }
238238
239239
240240
241241 @Callable(ap)
242242 func registerUser (S,T,U,au,av,am) = if (!(j))
243243 then throw(k)
244244 else {
245245 let aw = ak(ap, am)
246246 let x = aw._1
247247 let an = aw._2
248248 let ax = toBase58String(ap.transactionId)
249249 let ay = lastBlock.timestamp
250250 let az = b(G(x))
251251 let aA = b(H(x))
252252 if (!(R(x, S, T, U, false)))
253253 then throw("Something went wrong")
254254 else {
255255 let aB = ae(toBase64String(toBytes(S)), toBase64String(toBytes(U)), toString(ay))
256256 if (if ((0 > av))
257257 then true
258258 else (av > 1000))
259259 then throw("Royalties cannot be less than 0% or higher than 10%")
260260 else {
261261 let aC = if (an)
262262 then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)]
263263 else nil
264264 ([IntegerEntry(E(x), ay), StringEntry(w(x), ((ax + "_") + toString(ay))), StringEntry(y(x), S), StringEntry(z(x), T), StringEntry(A(x), au), StringEntry(B(x), U), StringEntry(C(x), p), IntegerEntry(D(x), av), DeleteEntry(("ALLOWED_" + x)), StringEntry(((p + "_") + x), aB), StringEntry(G(x), az), StringEntry(H(x), aA)] ++ aC)
265265 }
266266 }
267267 }
268268
269269
270270
271271 @Callable(ap)
272272 func updateUser (S,T,U,au,av,am) = if (!(j))
273273 then throw(k)
274274 else {
275275 let aD = ak(ap, am)
276276 let x = aD._1
277277 let an = aD._2
278278 let X = b(C(x))
279279 if (!(R(x, S, T, U, true)))
280280 then throw("Something went wrong")
281281 else {
282282 let af = e(E(x))
283283 let aB = ae(toBase64String(toBytes(S)), toBase64String(toBytes(U)), toString(af))
284284 if (if ((0 > av))
285285 then true
286286 else (av > 1000))
287287 then throw("Royalties cannot be less than 0% or higher than 10%")
288288 else {
289289 let aC = if (an)
290290 then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)]
291291 else nil
292292 ([StringEntry(y(x), S), StringEntry(z(x), T), StringEntry(A(x), au), StringEntry(B(x), U), IntegerEntry(D(x), av), StringEntry(((X + "_") + x), aB)] ++ aC)
293293 }
294294 }
295295 }
296296
297297
298298
299299 @Callable(ap)
300300 func setERC20User (aE,am) = if (!(j))
301301 then throw(k)
302302 else {
303303 let aF = ak(ap, am)
304304 let x = aF._1
305305 let an = aF._2
306306 let X = b(C(x))
307307 if (if ((X != p))
308308 then (X != q)
309309 else false)
310310 then throw("Not allowed to set ERC20 address")
311311 else {
312312 let aG = take(aE, 2)
313313 if (if ((aG != "0x"))
314314 then true
315315 else (size(aE) != 42))
316316 then throw("This is not an erc20 address")
317317 else {
318318 let aC = if (an)
319319 then [ScriptTransfer(Address(fromBase58String(x)), 0, unit)]
320320 else nil
321321 ([StringEntry(F(x), aE)] ++ aC)
322322 }
323323 }
324324 }
325325
326326
327327
328328 @Callable(ap)
329329 func changeUserStatus (Z,X,az,aA,aH,aI,aJ,aK) = {
330330 let x = toString(ap.caller)
331331 if ((size(Z) == 0))
332332 then throw("Address cannot be empty")
333333 else {
334334 let aL = b(G(Z))
335335 let aM = b(H(Z))
336336 let aN = if ((size(az) != 0))
337337 then az
338338 else aL
339339 let aO = if ((size(aA) != 0))
340340 then aA
341341 else aM
342342 if (containsElement([f, toString(this)], x))
343343 then {
344344 let aP = if ((aH != 0))
345345 then invoke(n, "whitelistFreeCertifications", [Z, aH, true], nil)
346346 else nil
347347 if ((aP == aP))
348348 then {
349349 let aQ = if ((aI != 0))
350350 then invoke(m, "whitelistFreeTxs", [Z, aI, true], nil)
351351 else nil
352352 if ((aQ == aQ))
353353 then {
354354 let aR = if ((aJ != 0))
355355 then invoke(m, "whitelistFreeDrop", [Z, aJ, true], nil)
356356 else nil
357357 if ((aR == aR))
358358 then {
359359 let aS = if ((aK != 0))
360360 then invoke(m, "whitelist", [Z, aK], nil)
361361 else nil
362362 if ((aS == aS))
363- then if ((size(X) == 0))
364- then {
365- let aa = b(C(Z))
366- if ((aa == ""))
363+ then {
364+ let aa = b(C(Z))
365+ if ((size(X) == 0))
366+ then if ((aa == ""))
367367 then throw("User have no status yet")
368368 else [StringEntry(G(Z), aN), StringEntry(H(Z), aO)]
369- }
370- else {
371- let aa = b(C(Z))
372- let ac = Y(X, Z, aa)
373- let S = toBase64String(toBytes(b(y(Z))))
374- let U = toBase64String(toBytes(b(B(Z))))
375- let af = e(E(Z))
376- let aB = ae(S, U, toString(af))
369+ else {
370+ let ac = Y(X, Z, aa)
371+ let S = toBase64String(toBytes(b(y(Z))))
372+ let U = toBase64String(toBytes(b(B(Z))))
373+ let af = e(E(Z))
374+ let aB = ae(S, U, toString(af))
377375 [StringEntry(C(Z), ac), DeleteEntry(((aa + "_") + Z)), StringEntry(((ac + "_") + Z), aB), StringEntry(G(Z), aN), StringEntry(H(Z), aO)]
378- }
376+ }
377+ }
379378 else throw("Strict value is not equal to itself.")
380379 }
381380 else throw("Strict value is not equal to itself.")
382381 }
383382 else throw("Strict value is not equal to itself.")
384383 }
385384 else throw("Strict value is not equal to itself.")
386385 }
387386 else throw("Not allowed to change user status")
388387 }
389388 }
390389
391390
392391
393392 @Callable(ap)
394393 func deleteUser (Z) = {
395394 let x = toString(ap.caller)
396395 let aa = b(C(Z))
397396 if (containsElement([f, toString(this)], x))
398397 then [DeleteEntry(E(Z)), DeleteEntry(w(Z)), DeleteEntry(y(Z)), DeleteEntry(z(Z)), DeleteEntry(A(Z)), DeleteEntry(B(Z)), DeleteEntry(("user_note_" + Z)), DeleteEntry(((aa + "_") + Z)), DeleteEntry(D(Z)), StringEntry(C(Z), s)]
399398 else throw("Not allowed")
400399 }
401400
402401
403402
404403 @Callable(al)
405404 func setAgent (J,L,aT,aU) = if (!(j))
406405 then throw(k)
407406 else {
408407 let x = toString(al.caller)
409408 if (containsElement([f, toString(this)], x))
410409 then if (if ((size(J) != 35))
411410 then true
412411 else (size(L) != 35))
413412 then throw("Wrong address")
414413 else [StringEntry(I(J), L), StringEntry(K(L, J), J), IntegerEntry(M(J), aT), IntegerEntry(N(J), aU)]
415414 else throw("You are not allowed")
416415 }
417416
418417
419418
420419 @Callable(al)
421420 func unsetAgent (J,L) = if (!(j))
422421 then throw(k)
423422 else {
424423 let x = toString(al.caller)
425424 if (containsElement([f, toString(this)], x))
426425 then if (if ((size(J) != 35))
427426 then true
428427 else (size(L) != 35))
429428 then throw("Wrong address")
430429 else [DeleteEntry(I(J)), DeleteEntry(K(L, J)), DeleteEntry(M(J)), DeleteEntry(N(J))]
431430 else throw("You are not allowed")
432431 }
433432
434433
435434
436435 @Callable(al)
437436 func deleteEntry (aV) = {
438437 let x = toString(al.caller)
439438 if ((x == f))
440439 then [DeleteEntry(aV)]
441440 else throw("no")
442441 }
443442
444443
445444 @Verifier(aW)
446445 func aX () = {
447446 let ai = aW
448447 if ($isInstanceOf(ai, "InvokeScriptTransaction"))
449448 then {
450449 let aY = ai
451450 if (if (if (if ((aY.function == "registerUser"))
452451 then (aY.dApp == this)
453452 else false)
454453 then (aY.fee == 500000)
455454 else false)
456455 then (aY.feeAssetId == unit)
457456 else false)
458457 then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[5])))
459458 else if (if (if (if ((aY.function == "updateUser"))
460459 then (aY.dApp == this)
461460 else false)
462461 then (aY.fee == 500000)
463462 else false)
464463 then (aY.feeAssetId == unit)
465464 else false)
466465 then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[5])))
467466 else if (if (if (if ((aY.function == "setERC20User"))
468467 then (aY.dApp == this)
469468 else false)
470469 then (aY.fee == 500000)
471470 else false)
472471 then (aY.feeAssetId == unit)
473472 else false)
474473 then sigVerify(aW.bodyBytes, aW.proofs[0], fromBase58String(ag(aY.args[2])))
475474 else sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
476475 }
477476 else sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
478477 }
479478

github/deemru/w8io/026f985 
67.58 ms