tx · JBJMyRWjnRbEaPJa3ofnRLhH22ivUFBS455VqMWzUbdQ 3N921y8NN6jCZGR2W5DtiwVhwWiR3vnaSxG: -0.01400000 Waves 2020.10.24 11:50 [1234445] smart account 3N921y8NN6jCZGR2W5DtiwVhwWiR3vnaSxG > SELF 0.00000000 Waves
{ "type": 13, "id": "JBJMyRWjnRbEaPJa3ofnRLhH22ivUFBS455VqMWzUbdQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1603529454914, "version": 2, "chainId": 84, "sender": "3N921y8NN6jCZGR2W5DtiwVhwWiR3vnaSxG", "senderPublicKey": "6akL3Zqwx3Vobjg8fuhirSqEtifvzupxczGTAp7caZUV", "proofs": [ "5EF3oTD1pvL5jp9kw2Nm3P2bWWqzG9oWiP9D6w79sJStziH2hvTM4bXRCjMy5Ya9q2xeAZbXZSeueFZp5V8KYtxD" ], "script": "base64:AAIEAAAAAAAAAFwIAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSAwoBCBIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSAwoBCAAAADkAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAALc2lnbkFzc2V0SWQBAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAt1c2RuQXNzZXRJZAEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAADHdhdmVzQXNzZXRJZAEAAA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AAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAALQ7dbU=", "height": 1234445, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HtNv4jnoVweyzB2neG4bcjrdqZvwgPSxm3jYauFqvTjN Next: FJWxY6NuF2jDfSSHT98duaAeykFbAFjuLcuwX7hmufCH Diff:
Old | New | Differences | |
---|---|---|---|
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(A) | |
246 | - | func deleteEntry (aG) = { | |
247 | - | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
248 | - | if ((L == j)) | |
249 | - | then [DeleteEntry(aG)] | |
250 | - | else throw("no") | |
251 | - | } | |
252 | - | ||
253 | - | ||
254 | - | ||
255 | - | @Callable(A) | |
256 | 246 | func updateUser (az,aA,aB,aC) = if (!(m)) | |
257 | 247 | then throw(n) | |
258 | 248 | else { | |
259 | 249 | let aE = toBase58String(A.transactionId) | |
260 | 250 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
261 | - | let | |
262 | - | if (if (( | |
251 | + | let aG = v(Q(L)) | |
252 | + | if (if ((aG == r)) | |
263 | 253 | then true | |
264 | - | else ( | |
254 | + | else (aG == s)) | |
265 | 255 | then throw("Account suspended/ removed.") | |
266 | - | else if (if (( | |
256 | + | else if (if ((aG == "")) | |
267 | 257 | then true | |
268 | - | else ( | |
258 | + | else (aG == o)) | |
269 | 259 | then throw("Register first") | |
270 | 260 | else if (if ((az == "")) | |
271 | 261 | then true | |
279 | 269 | ||
280 | 270 | ||
281 | 271 | @Callable(A) | |
282 | - | func changeUserStatus (aI | |
272 | + | func changeUserStatus (aH,aI) = if (!(m)) | |
283 | 273 | then throw(n) | |
284 | 274 | else { | |
285 | 275 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
286 | 276 | let aE = toBase58String(A.transactionId) | |
287 | - | let | |
288 | - | let | |
277 | + | let aJ = v(Q(aH)) | |
278 | + | let aK = if ((aI == q)) | |
289 | 279 | then q | |
290 | - | else if (( | |
280 | + | else if ((aI == p)) | |
291 | 281 | then p | |
292 | - | else if (( | |
282 | + | else if ((aI == r)) | |
293 | 283 | then r | |
294 | - | else if (( | |
284 | + | else if ((aI == s)) | |
295 | 285 | then s | |
296 | - | else if (( | |
286 | + | else if ((aI == o)) | |
297 | 287 | then o | |
298 | - | else if (if (( | |
299 | - | then ( | |
288 | + | else if (if ((aI == u)) | |
289 | + | then (aJ == o) | |
300 | 290 | else false) | |
301 | 291 | then "" | |
302 | 292 | else throw("Unknown status") | |
303 | - | if (if (( | |
304 | - | then ( | |
293 | + | if (if ((aJ == o)) | |
294 | + | then (aI == o) | |
305 | 295 | else false) | |
306 | 296 | then throw("User already allowed") | |
307 | - | else if (if (( | |
308 | - | then ( | |
297 | + | else if (if ((aJ == p)) | |
298 | + | then (aI == o) | |
309 | 299 | else false) | |
310 | 300 | then throw("User already allowed & registered") | |
311 | - | else if (if (( | |
312 | - | then ( | |
301 | + | else if (if ((aJ == q)) | |
302 | + | then (aI == o) | |
313 | 303 | else false) | |
314 | 304 | then throw("User already allowed & verified") | |
315 | 305 | else if (if ((L == j)) | |
316 | 306 | then true | |
317 | 307 | else (L == k)) | |
318 | - | then [StringEntry(Q( | |
308 | + | then [StringEntry(Q(aH), aK), StringEntry("last_invoke_id", aE)] | |
319 | 309 | else throw(((("Not allowed to change user status " + L) + " / ") + j)) | |
320 | 310 | } | |
321 | 311 | ||
322 | 312 | ||
323 | 313 | ||
324 | 314 | @Callable(A) | |
325 | - | func creditUser ( | |
315 | + | func creditUser (aH) = { | |
326 | 316 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
327 | 317 | let aE = toBase58String(A.transactionId) | |
328 | 318 | if (if ((L == j)) | |
329 | 319 | then true | |
330 | 320 | else (L == k)) | |
331 | - | then [ScriptTransfer(Address(fromBase58String( | |
321 | + | then [ScriptTransfer(Address(fromBase58String(aH)), 150000000000, d)] | |
332 | 322 | else throw("Not allowed") | |
333 | 323 | } | |
334 | 324 | ||
335 | 325 | ||
336 | 326 | ||
337 | - | @Callable( | |
338 | - | func addArtwork (F,D,az,aA,aN,aO | |
327 | + | @Callable(aL) | |
328 | + | func addArtwork (F,D,az,aA,aM,aN,aO,aq,au,ar,av,as) = if (!(m)) | |
339 | 329 | then throw(n) | |
340 | 330 | else { | |
341 | - | let T = toBase58String( | |
342 | - | let L = toBase58String( | |
331 | + | let T = toBase58String(aL.transactionId) | |
332 | + | let L = toBase58String(aL.caller.bytes) | |
343 | 333 | if (!(ap(aq, ar, as))) | |
344 | 334 | then throw("Problem with CID") | |
345 | 335 | else if (!(I(F))) | |
346 | 336 | then throw("Hash should be 64 characters maximum") | |
347 | 337 | else if (!(at(au, av))) | |
348 | 338 | then throw("Problem with Hashes") | |
349 | - | else if ((size( | |
339 | + | else if ((size(aL.payments) == 0)) | |
350 | 340 | then throw("No payment attached") | |
351 | 341 | else { | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | then ( | |
342 | + | let aP = value(aL.payments[0]) | |
343 | + | let aQ = value(aP.amount) | |
344 | + | let aR = if (if (isDefined(aP.assetId)) | |
345 | + | then (aP.assetId == d) | |
356 | 346 | else false) | |
357 | - | then | |
347 | + | then aP.assetId | |
358 | 348 | else throw("Only SIGN token accepted at the moment") | |
359 | - | let | |
349 | + | let aS = { | |
360 | 350 | let x = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
361 | 351 | if ($isInstanceOf(x, "Int")) | |
362 | 352 | then { | |
363 | - | let | |
364 | - | | |
353 | + | let aT = x | |
354 | + | aT | |
365 | 355 | } | |
366 | 356 | else throw("Price undefined in oracle") | |
367 | 357 | } | |
368 | - | if (( | |
369 | - | then throw(("Payment amount should be " + toString( | |
358 | + | if ((aQ != aS)) | |
359 | + | then throw(("Payment amount should be " + toString(aS))) | |
370 | 360 | else { | |
371 | - | let | |
372 | - | if (( | |
361 | + | let aU = v(ao(F, L)) | |
362 | + | if ((aU != "")) | |
373 | 363 | then throw("You already added it") | |
374 | 364 | else { | |
375 | - | let | |
376 | - | if (( | |
365 | + | let aV = v(al(F)) | |
366 | + | if ((aV != "")) | |
377 | 367 | then throw("Hash already registered") | |
378 | 368 | else { | |
379 | - | let | |
380 | - | if (!( | |
369 | + | let aW = C(D, L, F) | |
370 | + | if (!(aW)) | |
381 | 371 | then throw("Sign Certificate not found for this address.") | |
382 | 372 | else if ((size(aq) == 0)) | |
383 | 373 | then throw("Display CID cannot be empty") | |
385 | 375 | then throw("100 Char. max name") | |
386 | 376 | else if (!(aw(aA, 1000))) | |
387 | 377 | then throw("1000 Char. max description") | |
388 | - | else if ((size(split( | |
378 | + | else if ((size(split(aM, ",")) > 5)) | |
389 | 379 | then throw("5 tags max.") | |
390 | 380 | else { | |
391 | - | let | |
381 | + | let aX = { | |
392 | 382 | let x = getString(this, ("user_status_" + L)) | |
393 | 383 | if ($isInstanceOf(x, "String")) | |
394 | 384 | then { | |
395 | - | let | |
396 | - | | |
385 | + | let aY = x | |
386 | + | aY | |
397 | 387 | } | |
398 | 388 | else t | |
399 | 389 | } | |
400 | 390 | let aF = lastBlock.timestamp | |
401 | - | if (if (isDefined( | |
402 | - | then ( | |
391 | + | if (if (isDefined(aX)) | |
392 | + | then (aX == t) | |
403 | 393 | else false) | |
404 | 394 | then throw("Register this account first with \"User infos\" tab") | |
405 | - | else if (( | |
395 | + | else if ((aX == r)) | |
406 | 396 | then throw("Account suspended") | |
407 | - | else if (( | |
397 | + | else if ((aX == s)) | |
408 | 398 | then throw("Account removed") | |
409 | - | else if (( | |
399 | + | else if ((aO > 10)) | |
410 | 400 | then throw("10 editions max") | |
411 | 401 | else if ((size(F) != 64)) | |
412 | 402 | then throw("Hash 64 char. max") | |
413 | - | else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), | |
403 | + | else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), aN), StringEntry(af(L, T), aM), IntegerEntry(Z(L, T), aO), StringEntry(aa(L, T), D), IntegerEntry(ab(L, T), 0), BooleanEntry(ac(L, T), false), StringEntry(am(L, D), T), StringEntry("last_invoke_id", T), StringEntry(aj(L, T), F), ScriptTransfer(Address(fromBase58String(c)), aQ, aR)] | |
414 | 404 | } | |
415 | 405 | } | |
416 | 406 | } | |
420 | 410 | ||
421 | 411 | ||
422 | 412 | ||
423 | - | @Callable( | |
424 | - | func updateArtwork (ak,az,aA,aN,aO | |
413 | + | @Callable(aL) | |
414 | + | func updateArtwork (ak,az,aA,aM,aN,aO,aq,au,ar,av,as) = if (!(m)) | |
425 | 415 | then throw(n) | |
426 | 416 | else { | |
427 | - | let | |
428 | - | let L = toBase58String( | |
417 | + | let aZ = toBase58String(aL.transactionId) | |
418 | + | let L = toBase58String(aL.caller.bytes) | |
429 | 419 | if (!(ap(aq, ar, as))) | |
430 | 420 | then throw("Problem with CID") | |
431 | 421 | else if (!(at(au, av))) | |
432 | 422 | then throw("Problem with Hashes") | |
433 | 423 | else { | |
434 | - | let | |
435 | - | if (( | |
424 | + | let aU = v(U(L, ak)) | |
425 | + | if ((aU == "")) | |
436 | 426 | then throw("Entry not found") | |
437 | 427 | else if (!(aw(az, 100))) | |
438 | 428 | then throw("100 Char. max name") | |
439 | 429 | else if (!(aw(aA, 1000))) | |
440 | 430 | then throw("1000 Char. max description") | |
441 | 431 | else { | |
442 | - | let | |
432 | + | let ba = { | |
443 | 433 | let x = getInteger(this, ab(L, ak)) | |
444 | 434 | if ($isInstanceOf(x, "Int")) | |
445 | 435 | then { | |
446 | - | let | |
447 | - | if (( | |
436 | + | let bb = x | |
437 | + | if ((bb == 0)) | |
448 | 438 | then false | |
449 | 439 | else true | |
450 | 440 | } | |
451 | 441 | else false | |
452 | 442 | } | |
453 | - | if ((size(split( | |
443 | + | if ((size(split(aM, ",")) > 5)) | |
454 | 444 | then throw("5 tags max.") | |
455 | 445 | else { | |
456 | - | let | |
446 | + | let aX = { | |
457 | 447 | let x = getString(this, ("user_status_" + L)) | |
458 | 448 | if ($isInstanceOf(x, "String")) | |
459 | 449 | then { | |
460 | - | let | |
461 | - | | |
450 | + | let aY = x | |
451 | + | aY | |
462 | 452 | } | |
463 | 453 | else t | |
464 | 454 | } | |
465 | - | if (if (isDefined( | |
466 | - | then ( | |
455 | + | if (if (isDefined(aX)) | |
456 | + | then (aX == t) | |
467 | 457 | else false) | |
468 | 458 | then throw("Register first with \"User infos\"") | |
469 | - | else if (( | |
459 | + | else if ((aX == r)) | |
470 | 460 | then throw("Account suspended") | |
471 | - | else if (( | |
461 | + | else if ((aX == s)) | |
472 | 462 | then throw("Account removed") | |
473 | - | else if (( | |
463 | + | else if ((aO > 10)) | |
474 | 464 | then throw("10 editions max per artwork") | |
475 | - | else if (!( | |
476 | - | then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), | |
465 | + | else if (!(ba)) | |
466 | + | then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), aO), StringEntry(af(L, ak), aM), StringEntry(ag(L, ak), aN), StringEntry("last_invoke_id", aZ)] | |
477 | 467 | else throw("Already minted") | |
478 | 468 | } | |
479 | 469 | } | |
483 | 473 | ||
484 | 474 | ||
485 | 475 | @Callable(A) | |
486 | - | func flagArtwork (T,bd | |
476 | + | func flagArtwork (T,bc,bd) = { | |
487 | 477 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
488 | 478 | let aE = toBase58String(A.transactionId) | |
489 | 479 | if (if ((L == j)) | |
490 | 480 | then true | |
491 | 481 | else (L == k)) | |
492 | - | then if ((be == "CONSENT")) | |
493 | - | then [StringEntry(((("art_flag_" + T) + "_") + bd), be), StringEntry("last_invoke_id", aE)] | |
494 | - | else if ((be == "ILLEGAL")) | |
495 | - | then [StringEntry(((("art_flag_" + T) + "_") + bd), be), StringEntry(U(bd, T), "ILLEGAL CONTENT"), StringEntry(V(bd, T), "ILLEGAL CONTENT"), StringEntry(W(bd, T), ""), StringEntry(Y(bd, T), ""), StringEntry(ae(bd, T), ""), StringEntry("last_invoke_id", aE)] | |
496 | - | else throw(("Unknow status" + be)) | |
482 | + | then if ((bd == "CONSENT")) | |
483 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry("last_invoke_id", aE)] | |
484 | + | else if ((bd == "")) | |
485 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry("last_invoke_id", aE)] | |
486 | + | else if ((bd == "ILLEGAL")) | |
487 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry(U(bc, T), "ILLEGAL CONTENT"), StringEntry(V(bc, T), "ILLEGAL CONTENT"), StringEntry(W(bc, T), ""), StringEntry(Y(bc, T), ""), StringEntry(ae(bc, T), ""), StringEntry("last_invoke_id", aE)] | |
488 | + | else throw(("Unknow status" + bd)) | |
497 | 489 | else throw("no") | |
498 | 490 | } | |
499 | 491 | ||
500 | 492 | ||
501 | 493 | ||
502 | 494 | @Callable(A) | |
503 | - | func deleteArtwork (T, | |
495 | + | func deleteArtwork (T,bc) = { | |
504 | 496 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
505 | 497 | let aE = toBase58String(A.transactionId) | |
506 | - | let | |
498 | + | let be = if (if ((L == j)) | |
507 | 499 | then true | |
508 | 500 | else (L == k)) | |
509 | - | then | |
501 | + | then bc | |
510 | 502 | else L | |
511 | - | let | |
512 | - | let x = getString(this, U( | |
503 | + | let aU = { | |
504 | + | let x = getString(this, U(be, T)) | |
513 | 505 | if ($isInstanceOf(x, "String")) | |
514 | 506 | then { | |
515 | - | let | |
516 | - | | |
507 | + | let aY = x | |
508 | + | aY | |
517 | 509 | } | |
518 | 510 | else throw("No art matching") | |
519 | 511 | } | |
520 | - | let | |
521 | - | let x = getInteger(this, ab( | |
512 | + | let ba = { | |
513 | + | let x = getInteger(this, ab(be, T)) | |
522 | 514 | if ($isInstanceOf(x, "Int")) | |
523 | 515 | then { | |
524 | - | let | |
525 | - | if (( | |
516 | + | let bb = x | |
517 | + | if ((bb != 0)) | |
526 | 518 | then true | |
527 | 519 | else false | |
528 | 520 | } | |
529 | 521 | else false | |
530 | 522 | } | |
531 | - | let | |
523 | + | let bf = z(Z(be, T)) | |
532 | 524 | let F = { | |
533 | - | let x = getString(this, aj( | |
525 | + | let x = getString(this, aj(be, T)) | |
534 | 526 | if ($isInstanceOf(x, "String")) | |
535 | 527 | then { | |
536 | - | let | |
537 | - | | |
528 | + | let aY = x | |
529 | + | aY | |
538 | 530 | } | |
539 | 531 | else throw("No art hash matching") | |
540 | 532 | } | |
541 | 533 | let D = { | |
542 | - | let x = getString(this, aa( | |
534 | + | let x = getString(this, aa(be, T)) | |
543 | 535 | if ($isInstanceOf(x, "String")) | |
544 | 536 | then { | |
545 | - | let | |
546 | - | | |
537 | + | let aY = x | |
538 | + | aY | |
547 | 539 | } | |
548 | 540 | else throw("No SIGN ID matching") | |
549 | 541 | } | |
550 | - | let | |
551 | - | if (!( | |
542 | + | let bg = [DeleteEntry(S(be, T)), DeleteEntry(U(be, T)), DeleteEntry(V(be, T)), DeleteEntry(W(be, T)), DeleteEntry(Y(be, T)), DeleteEntry(X(be, T)), DeleteEntry(ad(be, T)), DeleteEntry(ae(be, T)), DeleteEntry(ag(be, T)), DeleteEntry(af(be, T)), DeleteEntry(Z(be, T)), DeleteEntry(aa(be, T)), DeleteEntry(ab(be, T)), DeleteEntry(ac(be, T)), StringEntry("last_invoke_id", aE), DeleteEntry(al(F)), DeleteEntry(am(be, D)), DeleteEntry(ao(F, be))] | |
543 | + | if (!(ba)) | |
552 | 544 | then if (!(m)) | |
553 | 545 | then throw(n) | |
554 | - | else | |
546 | + | else bg | |
555 | 547 | else throw("Art already minted, cannot delete") | |
556 | 548 | } | |
557 | 549 | ||
558 | 550 | ||
559 | 551 | ||
560 | 552 | @Callable(A) | |
561 | - | func sellArtwork (T, | |
553 | + | func sellArtwork (T,aT,bf,aR) = if (!(m)) | |
562 | 554 | then throw(n) | |
563 | 555 | else { | |
564 | 556 | let aE = toBase58String(A.transactionId) | |
565 | 557 | let L = toBase58String(A.caller.bytes) | |
566 | - | let | |
567 | - | let | |
568 | - | if ((size(split( | |
558 | + | let bh = lastBlock.timestamp | |
559 | + | let bi = v(Y(L, T)) | |
560 | + | if ((size(split(bi, "/")[0]) != 59)) | |
569 | 561 | then throw("You cannot sell art with no export file") | |
570 | 562 | else { | |
571 | - | let | |
572 | - | if ((size( | |
563 | + | let bj = v(X(L, T)) | |
564 | + | if ((size(bj) != 64)) | |
573 | 565 | then throw("You cannot sell art with no export hash") | |
574 | - | else if (if (if (( | |
575 | - | then ( | |
566 | + | else if (if (if ((aR != toBase58String(d))) | |
567 | + | then (aR != toBase58String(f)) | |
576 | 568 | else false) | |
577 | - | then ( | |
569 | + | then (aR != toBase58String(e)) | |
578 | 570 | else false) | |
579 | 571 | then throw("Only SIGN, USDN or WAVES accepted") | |
580 | 572 | else { | |
581 | - | let | |
573 | + | let bk = { | |
582 | 574 | let x = getString(this, U(L, T)) | |
583 | 575 | if ($isInstanceOf(x, "String")) | |
584 | 576 | then { | |
585 | - | let | |
586 | - | | |
577 | + | let aY = x | |
578 | + | aY | |
587 | 579 | } | |
588 | 580 | else throw("This art doesn't match") | |
589 | 581 | } | |
590 | - | let | |
582 | + | let aX = { | |
591 | 583 | let x = getString(this, Q(L)) | |
592 | 584 | if ($isInstanceOf(x, "String")) | |
593 | 585 | then { | |
594 | - | let | |
595 | - | | |
586 | + | let aY = x | |
587 | + | aY | |
596 | 588 | } | |
597 | 589 | else throw("Register this account first") | |
598 | 590 | } | |
599 | - | let | |
600 | - | let | |
601 | - | if (if (( | |
602 | - | then ( | |
591 | + | let bl = z(ab(L, T)) | |
592 | + | let bm = z(Z(L, T)) | |
593 | + | if (if ((bl != 0)) | |
594 | + | then (bl == bm) | |
603 | 595 | else false) | |
604 | 596 | then throw("Max edition reached.") | |
605 | - | else if (if (( | |
606 | - | then ( | |
597 | + | else if (if ((bl > 0)) | |
598 | + | then (bm != bf) | |
607 | 599 | else false) | |
608 | 600 | then throw("Cannot change maximum issuable anymore") | |
609 | - | else if (( | |
601 | + | else if ((aX == r)) | |
610 | 602 | then throw("Account suspended") | |
611 | - | else if (( | |
603 | + | else if ((aX == s)) | |
612 | 604 | then throw("Account deleted") | |
613 | 605 | else { | |
614 | - | let | |
606 | + | let bn = if ((aT > 0)) | |
615 | 607 | then true | |
616 | 608 | else false | |
617 | - | [BooleanEntry(ac(L, T), | |
609 | + | [BooleanEntry(ac(L, T), bn), IntegerEntry(ah(L, T), aT), IntegerEntry(Z(L, T), bf), StringEntry(ai(L, T), aR), StringEntry("last_invoke_id", aE)] | |
618 | 610 | } | |
619 | 611 | } | |
620 | 612 | } | |
623 | 615 | ||
624 | 616 | ||
625 | 617 | @Callable(A) | |
626 | - | func buyArtwork (T, | |
618 | + | func buyArtwork (T,bo) = if (!(m)) | |
627 | 619 | then throw(n) | |
628 | 620 | else { | |
629 | 621 | let aE = toBase58String(A.transactionId) | |
630 | 622 | let L = toBase58String(A.caller.bytes) | |
631 | - | let | |
632 | - | let D = v(aa( | |
633 | - | let | |
634 | - | let x = getString(this, U( | |
623 | + | let bp = z("total_nft_issued") | |
624 | + | let D = v(aa(bo, T)) | |
625 | + | let bk = { | |
626 | + | let x = getString(this, U(bo, T)) | |
635 | 627 | if ($isInstanceOf(x, "String")) | |
636 | 628 | then { | |
637 | - | let | |
638 | - | | |
629 | + | let aY = x | |
630 | + | aY | |
639 | 631 | } | |
640 | 632 | else throw("Art doesn't exist") | |
641 | 633 | } | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let aA = take(v(V( | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | if (( | |
634 | + | let bq = v(W(bo, T)) | |
635 | + | let bi = v(Y(bo, T)) | |
636 | + | let bj = v(X(bo, T)) | |
637 | + | let br = v(ae(bo, T)) | |
638 | + | let bs = v(ad(bo, T)) | |
639 | + | let aA = take(v(V(bo, T)), 50) | |
640 | + | let bl = z(ab(bo, T)) | |
641 | + | let bt = z(ah(bo, T)) | |
642 | + | let bu = B(ac(bo, T)) | |
643 | + | let bv = v(ai(bo, T)) | |
644 | + | let bw = v(aj(bo, T)) | |
645 | + | if ((bt == 0)) | |
654 | 646 | then throw("Art not for sell") | |
655 | - | else if (!( | |
647 | + | else if (!(bu)) | |
656 | 648 | then throw("Art not for sale") | |
657 | 649 | else { | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | then (size(fromBase58String( | |
650 | + | let bm = z(Z(bo, T)) | |
651 | + | let aP = value(A.payments[0]) | |
652 | + | let aQ = value(aP.amount) | |
653 | + | let aR = if (if (if (isDefined(aP.assetId)) | |
654 | + | then (size(fromBase58String(bv)) > 0) | |
663 | 655 | else false) | |
664 | - | then ( | |
656 | + | then (aP.assetId == fromBase58String(bv)) | |
665 | 657 | else false) | |
666 | - | then | |
658 | + | then aP.assetId | |
667 | 659 | else unit | |
668 | - | let | |
660 | + | let bx = if ((bv == toBase58String(d))) | |
669 | 661 | then 8 | |
670 | 662 | else 10 | |
671 | - | let | |
672 | - | let | |
673 | - | if (( | |
663 | + | let by = ((aQ / 100) * bx) | |
664 | + | let bz = (aQ - by) | |
665 | + | if ((bl == bm)) | |
674 | 666 | then throw("Art sold out") | |
675 | - | else if (( | |
667 | + | else if ((bt != aQ)) | |
676 | 668 | then throw("Payment don't match") | |
677 | 669 | else { | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | \"creator\": \"" + | |
670 | + | let bA = (bl + 1) | |
671 | + | let bB = lastBlock.timestamp | |
672 | + | let bC = (((((((((((((((((((((((((((("{\"version\": 1, | |
673 | + | \"creator\": \"" + bo) + "\", | |
682 | 674 | \"artID\": \"") + T) + "\", | |
683 | 675 | \"signID\": \"") + D) + "\", | |
684 | - | \"artwork_name\": \"") + | |
676 | + | \"artwork_name\": \"") + bk) + "\", | |
685 | 677 | \"artwork_desc\": \"") + aA) + "\", | |
686 | - | \"issue\": \"") + toString( | |
687 | - | \"maxIssuable\": \"") + toString( | |
688 | - | \"source_hash\": \"") + | |
689 | - | \"display_cid\": \"") + | |
690 | - | \"export_cid\": \"") + | |
691 | - | \"export_hash\": \"") + | |
692 | - | \"licence_cid\": \"") + | |
693 | - | \"licence_hash\": \"") + | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
678 | + | \"issue\": \"") + toString(bA)) + "/") + toString(bm)) + "\", | |
679 | + | \"maxIssuable\": \"") + toString(bm)) + "\", | |
680 | + | \"source_hash\": \"") + bw) + "\", | |
681 | + | \"display_cid\": \"") + bq) + "\", | |
682 | + | \"export_cid\": \"") + bi) + "\", | |
683 | + | \"export_hash\": \"") + bj) + "\", | |
684 | + | \"licence_cid\": \"") + br) + "\", | |
685 | + | \"licence_hash\": \"") + bs) + "\"}") | |
686 | + | let bD = Issue(("SA_" + toString((bp + 1))), bC, 1, 0, false) | |
687 | + | let bE = calculateAssetId(bD) | |
688 | + | let bn = if ((bA == bm)) | |
697 | 689 | then false | |
698 | 690 | else true | |
699 | - | [IntegerEntry(ab( | |
691 | + | [IntegerEntry(ab(bo, T), bA), StringEntry(((((((("art_sold_" + toString(bA)) + "_of_") + toString(bm)) + "_") + T) + "_") + bo), ((((((((L + "_") + toString(bB)) + "_") + aE) + "_") + toString(bt)) + "_") + bv)), IntegerEntry("total_nft_issued", (bp + 1)), BooleanEntry(ac(bo, T), bn), StringEntry("last_invoke_id", aE), bD, ScriptTransfer(Address(fromBase58String(bo)), bz, aR), ScriptTransfer(Address(fromBase58String(c)), by, aR), ScriptTransfer(A.caller, 1, bE)] | |
700 | 692 | } | |
701 | 693 | } | |
702 | 694 | } | |
704 | 696 | ||
705 | 697 | ||
706 | 698 | @Callable(A) | |
707 | - | func deleteUser ( | |
699 | + | func deleteUser (aH) = { | |
708 | 700 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
709 | 701 | let aE = toBase58String(A.transactionId) | |
710 | 702 | if (if ((L == j)) | |
711 | 703 | then true | |
712 | 704 | else (L == k)) | |
713 | - | then [DeleteEntry(R( | |
705 | + | then [DeleteEntry(R(aH)), DeleteEntry(K(aH)), DeleteEntry(M(aH)), DeleteEntry(N(aH)), DeleteEntry(O(aH)), DeleteEntry(P(aH)), StringEntry(Q(aH), s), StringEntry("last_invoke_id", aE)] | |
714 | 706 | else throw("Not allowed") | |
715 | 707 | } | |
716 | 708 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let e = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let f = base58'' | |
15 | 15 | ||
16 | 16 | let g = 8 | |
17 | 17 | ||
18 | 18 | let h = 10 | |
19 | 19 | ||
20 | 20 | let i = 10 | |
21 | 21 | ||
22 | 22 | let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
23 | 23 | ||
24 | 24 | let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
25 | 25 | ||
26 | 26 | let l = true | |
27 | 27 | ||
28 | 28 | let m = true | |
29 | 29 | ||
30 | 30 | let n = "SIGN Art is under maintenance" | |
31 | 31 | ||
32 | 32 | let o = "ALLOWED" | |
33 | 33 | ||
34 | 34 | let p = "REGISTERED" | |
35 | 35 | ||
36 | 36 | let q = "VERIFIED" | |
37 | 37 | ||
38 | 38 | let r = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let s = "REMOVED" | |
41 | 41 | ||
42 | 42 | let t = "UNREGISTERED" | |
43 | 43 | ||
44 | 44 | let u = "RESET" | |
45 | 45 | ||
46 | 46 | func v (w) = { | |
47 | 47 | let x = getString(this, w) | |
48 | 48 | if ($isInstanceOf(x, "String")) | |
49 | 49 | then { | |
50 | 50 | let y = x | |
51 | 51 | y | |
52 | 52 | } | |
53 | 53 | else "" | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func z (w) = { | |
58 | 58 | let x = getInteger(this, w) | |
59 | 59 | if ($isInstanceOf(x, "Int")) | |
60 | 60 | then { | |
61 | 61 | let A = x | |
62 | 62 | A | |
63 | 63 | } | |
64 | 64 | else 0 | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func B (w) = { | |
69 | 69 | let x = getBoolean(this, w) | |
70 | 70 | if ($isInstanceOf(x, "Boolean")) | |
71 | 71 | then { | |
72 | 72 | let A = x | |
73 | 73 | A | |
74 | 74 | } | |
75 | 75 | else false | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func C (D,E,F) = { | |
80 | 80 | let x = getString(b, ((("data_fc_" + D) + "_") + E)) | |
81 | 81 | if ($isInstanceOf(x, "String")) | |
82 | 82 | then { | |
83 | 83 | let y = x | |
84 | 84 | if (contains(y, F)) | |
85 | 85 | then true | |
86 | 86 | else false | |
87 | 87 | } | |
88 | 88 | else false | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func G (H) = if (if ((75 > size(H))) | |
93 | 93 | then (60 > size(split(H, "/")[0])) | |
94 | 94 | else false) | |
95 | 95 | then (16 > size(split(H, "/")[1])) | |
96 | 96 | else false | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func I (J) = (65 > size(J)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func K (L) = ("user_" + L) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func M (L) = ("user_name_" + L) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func N (L) = ("user_desc_" + L) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func O (L) = ("user_social_" + L) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func P (L) = ("user_thumb_" + L) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Q (L) = ("user_status_" + L) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func R (L) = ("user_date_" + L) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func S (L,T) = ((("art_date_" + T) + "_") + L) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func U (L,T) = ((("art_name_" + T) + "_") + L) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func V (L,T) = ((("art_desc_" + T) + "_") + L) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func W (L,T) = ((("art_display_cid_" + T) + "_") + L) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func X (L,T) = ((("art_export_hash_" + T) + "_") + L) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func Y (L,T) = ((("art_export_cid_" + T) + "_") + L) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func Z (L,T) = ((("art_maxmint_" + T) + "_") + L) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aa (L,T) = ((("art_signid_" + T) + "_") + L) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ab (L,T) = ((("art_issued_" + T) + "_") + L) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ac (L,T) = ((("art_onsale_" + T) + "_") + L) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ad (L,T) = ((("art_licence_hash_" + T) + "_") + L) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ae (L,T) = ((("art_licence_cid_" + T) + "_") + L) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func af (L,T) = ((("art_tags_" + T) + "_") + L) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ag (L,T) = ((("art_type_" + T) + "_") + L) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ah (L,T) = ((("art_price_" + T) + "_") + L) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ai (L,T) = ((("art_assetAccepted_" + T) + "_") + L) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aj (L,ak) = ((("get_hashbytxidaddr_" + ak) + "_") + L) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func al (F) = ("get_owner_by_hash_" + F) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func am (L,an) = ((("get_artidbysignid_" + an) + "_") + L) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func ao (F,L) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + L))))) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ap (aq,ar,as) = if (if ((aq != "")) | |
184 | 184 | then !(G(aq)) | |
185 | 185 | else false) | |
186 | 186 | then throw("Wrong Display CID") | |
187 | 187 | else if (if ((ar != "")) | |
188 | 188 | then !(G(ar)) | |
189 | 189 | else false) | |
190 | 190 | then throw("Wrong Export CID") | |
191 | 191 | else if (if ((as != "")) | |
192 | 192 | then !(G(as)) | |
193 | 193 | else false) | |
194 | 194 | then throw("Wrong Licence CID") | |
195 | 195 | else true | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func at (au,av) = if (if ((au != "")) | |
199 | 199 | then !(I(au)) | |
200 | 200 | else false) | |
201 | 201 | then throw("Export Hash 64 char. max") | |
202 | 202 | else if (if ((av != "")) | |
203 | 203 | then !(I(av)) | |
204 | 204 | else false) | |
205 | 205 | then throw("Licence Hash 64 char. max") | |
206 | 206 | else true | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aw (ax,ay) = if ((size(ax) == 0)) | |
210 | 210 | then throw("Field cannot be is empty") | |
211 | 211 | else if ((size(ax) > ay)) | |
212 | 212 | then throw((ax + " is too long")) | |
213 | 213 | else true | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Callable(A) | |
217 | 217 | func registerUser (az,aA,aB,aC) = if (!(m)) | |
218 | 218 | then throw(n) | |
219 | 219 | else { | |
220 | 220 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
221 | 221 | let aD = v(Q(L)) | |
222 | 222 | let aE = toBase58String(A.transactionId) | |
223 | 223 | let aF = lastBlock.timestamp | |
224 | 224 | if (if ((aD == r)) | |
225 | 225 | then true | |
226 | 226 | else (aD == s)) | |
227 | 227 | then throw("Account suspended/ removed.") | |
228 | 228 | else if ((aD == p)) | |
229 | 229 | then throw("Already registered") | |
230 | 230 | else if (if ((aD == "")) | |
231 | 231 | then l | |
232 | 232 | else false) | |
233 | 233 | then throw("Can't register, get approved first.") | |
234 | 234 | else if (if ((az == "")) | |
235 | 235 | then true | |
236 | 236 | else (aA == "")) | |
237 | 237 | then throw("Name and description cannot be empty") | |
238 | 238 | else if ((size(aA) > 600)) | |
239 | 239 | then throw("600 Char. max description") | |
240 | 240 | else [IntegerEntry(R(L), aF), StringEntry(K(L), ((aE + "_") + toString(lastBlock.timestamp))), StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry(Q(L), p), StringEntry("last_invoke_id", aE)] | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(A) | |
246 | - | func deleteEntry (aG) = { | |
247 | - | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
248 | - | if ((L == j)) | |
249 | - | then [DeleteEntry(aG)] | |
250 | - | else throw("no") | |
251 | - | } | |
252 | - | ||
253 | - | ||
254 | - | ||
255 | - | @Callable(A) | |
256 | 246 | func updateUser (az,aA,aB,aC) = if (!(m)) | |
257 | 247 | then throw(n) | |
258 | 248 | else { | |
259 | 249 | let aE = toBase58String(A.transactionId) | |
260 | 250 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
261 | - | let | |
262 | - | if (if (( | |
251 | + | let aG = v(Q(L)) | |
252 | + | if (if ((aG == r)) | |
263 | 253 | then true | |
264 | - | else ( | |
254 | + | else (aG == s)) | |
265 | 255 | then throw("Account suspended/ removed.") | |
266 | - | else if (if (( | |
256 | + | else if (if ((aG == "")) | |
267 | 257 | then true | |
268 | - | else ( | |
258 | + | else (aG == o)) | |
269 | 259 | then throw("Register first") | |
270 | 260 | else if (if ((az == "")) | |
271 | 261 | then true | |
272 | 262 | else (aA == "")) | |
273 | 263 | then throw("Name & description cannot be empty") | |
274 | 264 | else if ((size(aA) > 600)) | |
275 | 265 | then throw("600 Char. max for description") | |
276 | 266 | else [StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry("last_invoke_id", aE)] | |
277 | 267 | } | |
278 | 268 | ||
279 | 269 | ||
280 | 270 | ||
281 | 271 | @Callable(A) | |
282 | - | func changeUserStatus (aI | |
272 | + | func changeUserStatus (aH,aI) = if (!(m)) | |
283 | 273 | then throw(n) | |
284 | 274 | else { | |
285 | 275 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
286 | 276 | let aE = toBase58String(A.transactionId) | |
287 | - | let | |
288 | - | let | |
277 | + | let aJ = v(Q(aH)) | |
278 | + | let aK = if ((aI == q)) | |
289 | 279 | then q | |
290 | - | else if (( | |
280 | + | else if ((aI == p)) | |
291 | 281 | then p | |
292 | - | else if (( | |
282 | + | else if ((aI == r)) | |
293 | 283 | then r | |
294 | - | else if (( | |
284 | + | else if ((aI == s)) | |
295 | 285 | then s | |
296 | - | else if (( | |
286 | + | else if ((aI == o)) | |
297 | 287 | then o | |
298 | - | else if (if (( | |
299 | - | then ( | |
288 | + | else if (if ((aI == u)) | |
289 | + | then (aJ == o) | |
300 | 290 | else false) | |
301 | 291 | then "" | |
302 | 292 | else throw("Unknown status") | |
303 | - | if (if (( | |
304 | - | then ( | |
293 | + | if (if ((aJ == o)) | |
294 | + | then (aI == o) | |
305 | 295 | else false) | |
306 | 296 | then throw("User already allowed") | |
307 | - | else if (if (( | |
308 | - | then ( | |
297 | + | else if (if ((aJ == p)) | |
298 | + | then (aI == o) | |
309 | 299 | else false) | |
310 | 300 | then throw("User already allowed & registered") | |
311 | - | else if (if (( | |
312 | - | then ( | |
301 | + | else if (if ((aJ == q)) | |
302 | + | then (aI == o) | |
313 | 303 | else false) | |
314 | 304 | then throw("User already allowed & verified") | |
315 | 305 | else if (if ((L == j)) | |
316 | 306 | then true | |
317 | 307 | else (L == k)) | |
318 | - | then [StringEntry(Q( | |
308 | + | then [StringEntry(Q(aH), aK), StringEntry("last_invoke_id", aE)] | |
319 | 309 | else throw(((("Not allowed to change user status " + L) + " / ") + j)) | |
320 | 310 | } | |
321 | 311 | ||
322 | 312 | ||
323 | 313 | ||
324 | 314 | @Callable(A) | |
325 | - | func creditUser ( | |
315 | + | func creditUser (aH) = { | |
326 | 316 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
327 | 317 | let aE = toBase58String(A.transactionId) | |
328 | 318 | if (if ((L == j)) | |
329 | 319 | then true | |
330 | 320 | else (L == k)) | |
331 | - | then [ScriptTransfer(Address(fromBase58String( | |
321 | + | then [ScriptTransfer(Address(fromBase58String(aH)), 150000000000, d)] | |
332 | 322 | else throw("Not allowed") | |
333 | 323 | } | |
334 | 324 | ||
335 | 325 | ||
336 | 326 | ||
337 | - | @Callable( | |
338 | - | func addArtwork (F,D,az,aA,aN,aO | |
327 | + | @Callable(aL) | |
328 | + | func addArtwork (F,D,az,aA,aM,aN,aO,aq,au,ar,av,as) = if (!(m)) | |
339 | 329 | then throw(n) | |
340 | 330 | else { | |
341 | - | let T = toBase58String( | |
342 | - | let L = toBase58String( | |
331 | + | let T = toBase58String(aL.transactionId) | |
332 | + | let L = toBase58String(aL.caller.bytes) | |
343 | 333 | if (!(ap(aq, ar, as))) | |
344 | 334 | then throw("Problem with CID") | |
345 | 335 | else if (!(I(F))) | |
346 | 336 | then throw("Hash should be 64 characters maximum") | |
347 | 337 | else if (!(at(au, av))) | |
348 | 338 | then throw("Problem with Hashes") | |
349 | - | else if ((size( | |
339 | + | else if ((size(aL.payments) == 0)) | |
350 | 340 | then throw("No payment attached") | |
351 | 341 | else { | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | then ( | |
342 | + | let aP = value(aL.payments[0]) | |
343 | + | let aQ = value(aP.amount) | |
344 | + | let aR = if (if (isDefined(aP.assetId)) | |
345 | + | then (aP.assetId == d) | |
356 | 346 | else false) | |
357 | - | then | |
347 | + | then aP.assetId | |
358 | 348 | else throw("Only SIGN token accepted at the moment") | |
359 | - | let | |
349 | + | let aS = { | |
360 | 350 | let x = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
361 | 351 | if ($isInstanceOf(x, "Int")) | |
362 | 352 | then { | |
363 | - | let | |
364 | - | | |
353 | + | let aT = x | |
354 | + | aT | |
365 | 355 | } | |
366 | 356 | else throw("Price undefined in oracle") | |
367 | 357 | } | |
368 | - | if (( | |
369 | - | then throw(("Payment amount should be " + toString( | |
358 | + | if ((aQ != aS)) | |
359 | + | then throw(("Payment amount should be " + toString(aS))) | |
370 | 360 | else { | |
371 | - | let | |
372 | - | if (( | |
361 | + | let aU = v(ao(F, L)) | |
362 | + | if ((aU != "")) | |
373 | 363 | then throw("You already added it") | |
374 | 364 | else { | |
375 | - | let | |
376 | - | if (( | |
365 | + | let aV = v(al(F)) | |
366 | + | if ((aV != "")) | |
377 | 367 | then throw("Hash already registered") | |
378 | 368 | else { | |
379 | - | let | |
380 | - | if (!( | |
369 | + | let aW = C(D, L, F) | |
370 | + | if (!(aW)) | |
381 | 371 | then throw("Sign Certificate not found for this address.") | |
382 | 372 | else if ((size(aq) == 0)) | |
383 | 373 | then throw("Display CID cannot be empty") | |
384 | 374 | else if (!(aw(az, 100))) | |
385 | 375 | then throw("100 Char. max name") | |
386 | 376 | else if (!(aw(aA, 1000))) | |
387 | 377 | then throw("1000 Char. max description") | |
388 | - | else if ((size(split( | |
378 | + | else if ((size(split(aM, ",")) > 5)) | |
389 | 379 | then throw("5 tags max.") | |
390 | 380 | else { | |
391 | - | let | |
381 | + | let aX = { | |
392 | 382 | let x = getString(this, ("user_status_" + L)) | |
393 | 383 | if ($isInstanceOf(x, "String")) | |
394 | 384 | then { | |
395 | - | let | |
396 | - | | |
385 | + | let aY = x | |
386 | + | aY | |
397 | 387 | } | |
398 | 388 | else t | |
399 | 389 | } | |
400 | 390 | let aF = lastBlock.timestamp | |
401 | - | if (if (isDefined( | |
402 | - | then ( | |
391 | + | if (if (isDefined(aX)) | |
392 | + | then (aX == t) | |
403 | 393 | else false) | |
404 | 394 | then throw("Register this account first with \"User infos\" tab") | |
405 | - | else if (( | |
395 | + | else if ((aX == r)) | |
406 | 396 | then throw("Account suspended") | |
407 | - | else if (( | |
397 | + | else if ((aX == s)) | |
408 | 398 | then throw("Account removed") | |
409 | - | else if (( | |
399 | + | else if ((aO > 10)) | |
410 | 400 | then throw("10 editions max") | |
411 | 401 | else if ((size(F) != 64)) | |
412 | 402 | then throw("Hash 64 char. max") | |
413 | - | else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), | |
403 | + | else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), aN), StringEntry(af(L, T), aM), IntegerEntry(Z(L, T), aO), StringEntry(aa(L, T), D), IntegerEntry(ab(L, T), 0), BooleanEntry(ac(L, T), false), StringEntry(am(L, D), T), StringEntry("last_invoke_id", T), StringEntry(aj(L, T), F), ScriptTransfer(Address(fromBase58String(c)), aQ, aR)] | |
414 | 404 | } | |
415 | 405 | } | |
416 | 406 | } | |
417 | 407 | } | |
418 | 408 | } | |
419 | 409 | } | |
420 | 410 | ||
421 | 411 | ||
422 | 412 | ||
423 | - | @Callable( | |
424 | - | func updateArtwork (ak,az,aA,aN,aO | |
413 | + | @Callable(aL) | |
414 | + | func updateArtwork (ak,az,aA,aM,aN,aO,aq,au,ar,av,as) = if (!(m)) | |
425 | 415 | then throw(n) | |
426 | 416 | else { | |
427 | - | let | |
428 | - | let L = toBase58String( | |
417 | + | let aZ = toBase58String(aL.transactionId) | |
418 | + | let L = toBase58String(aL.caller.bytes) | |
429 | 419 | if (!(ap(aq, ar, as))) | |
430 | 420 | then throw("Problem with CID") | |
431 | 421 | else if (!(at(au, av))) | |
432 | 422 | then throw("Problem with Hashes") | |
433 | 423 | else { | |
434 | - | let | |
435 | - | if (( | |
424 | + | let aU = v(U(L, ak)) | |
425 | + | if ((aU == "")) | |
436 | 426 | then throw("Entry not found") | |
437 | 427 | else if (!(aw(az, 100))) | |
438 | 428 | then throw("100 Char. max name") | |
439 | 429 | else if (!(aw(aA, 1000))) | |
440 | 430 | then throw("1000 Char. max description") | |
441 | 431 | else { | |
442 | - | let | |
432 | + | let ba = { | |
443 | 433 | let x = getInteger(this, ab(L, ak)) | |
444 | 434 | if ($isInstanceOf(x, "Int")) | |
445 | 435 | then { | |
446 | - | let | |
447 | - | if (( | |
436 | + | let bb = x | |
437 | + | if ((bb == 0)) | |
448 | 438 | then false | |
449 | 439 | else true | |
450 | 440 | } | |
451 | 441 | else false | |
452 | 442 | } | |
453 | - | if ((size(split( | |
443 | + | if ((size(split(aM, ",")) > 5)) | |
454 | 444 | then throw("5 tags max.") | |
455 | 445 | else { | |
456 | - | let | |
446 | + | let aX = { | |
457 | 447 | let x = getString(this, ("user_status_" + L)) | |
458 | 448 | if ($isInstanceOf(x, "String")) | |
459 | 449 | then { | |
460 | - | let | |
461 | - | | |
450 | + | let aY = x | |
451 | + | aY | |
462 | 452 | } | |
463 | 453 | else t | |
464 | 454 | } | |
465 | - | if (if (isDefined( | |
466 | - | then ( | |
455 | + | if (if (isDefined(aX)) | |
456 | + | then (aX == t) | |
467 | 457 | else false) | |
468 | 458 | then throw("Register first with \"User infos\"") | |
469 | - | else if (( | |
459 | + | else if ((aX == r)) | |
470 | 460 | then throw("Account suspended") | |
471 | - | else if (( | |
461 | + | else if ((aX == s)) | |
472 | 462 | then throw("Account removed") | |
473 | - | else if (( | |
463 | + | else if ((aO > 10)) | |
474 | 464 | then throw("10 editions max per artwork") | |
475 | - | else if (!( | |
476 | - | then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), | |
465 | + | else if (!(ba)) | |
466 | + | then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), aO), StringEntry(af(L, ak), aM), StringEntry(ag(L, ak), aN), StringEntry("last_invoke_id", aZ)] | |
477 | 467 | else throw("Already minted") | |
478 | 468 | } | |
479 | 469 | } | |
480 | 470 | } | |
481 | 471 | } | |
482 | 472 | ||
483 | 473 | ||
484 | 474 | ||
485 | 475 | @Callable(A) | |
486 | - | func flagArtwork (T,bd | |
476 | + | func flagArtwork (T,bc,bd) = { | |
487 | 477 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
488 | 478 | let aE = toBase58String(A.transactionId) | |
489 | 479 | if (if ((L == j)) | |
490 | 480 | then true | |
491 | 481 | else (L == k)) | |
492 | - | then if ((be == "CONSENT")) | |
493 | - | then [StringEntry(((("art_flag_" + T) + "_") + bd), be), StringEntry("last_invoke_id", aE)] | |
494 | - | else if ((be == "ILLEGAL")) | |
495 | - | then [StringEntry(((("art_flag_" + T) + "_") + bd), be), StringEntry(U(bd, T), "ILLEGAL CONTENT"), StringEntry(V(bd, T), "ILLEGAL CONTENT"), StringEntry(W(bd, T), ""), StringEntry(Y(bd, T), ""), StringEntry(ae(bd, T), ""), StringEntry("last_invoke_id", aE)] | |
496 | - | else throw(("Unknow status" + be)) | |
482 | + | then if ((bd == "CONSENT")) | |
483 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry("last_invoke_id", aE)] | |
484 | + | else if ((bd == "")) | |
485 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry("last_invoke_id", aE)] | |
486 | + | else if ((bd == "ILLEGAL")) | |
487 | + | then [StringEntry(((("art_flag_" + T) + "_") + bc), bd), StringEntry(U(bc, T), "ILLEGAL CONTENT"), StringEntry(V(bc, T), "ILLEGAL CONTENT"), StringEntry(W(bc, T), ""), StringEntry(Y(bc, T), ""), StringEntry(ae(bc, T), ""), StringEntry("last_invoke_id", aE)] | |
488 | + | else throw(("Unknow status" + bd)) | |
497 | 489 | else throw("no") | |
498 | 490 | } | |
499 | 491 | ||
500 | 492 | ||
501 | 493 | ||
502 | 494 | @Callable(A) | |
503 | - | func deleteArtwork (T, | |
495 | + | func deleteArtwork (T,bc) = { | |
504 | 496 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
505 | 497 | let aE = toBase58String(A.transactionId) | |
506 | - | let | |
498 | + | let be = if (if ((L == j)) | |
507 | 499 | then true | |
508 | 500 | else (L == k)) | |
509 | - | then | |
501 | + | then bc | |
510 | 502 | else L | |
511 | - | let | |
512 | - | let x = getString(this, U( | |
503 | + | let aU = { | |
504 | + | let x = getString(this, U(be, T)) | |
513 | 505 | if ($isInstanceOf(x, "String")) | |
514 | 506 | then { | |
515 | - | let | |
516 | - | | |
507 | + | let aY = x | |
508 | + | aY | |
517 | 509 | } | |
518 | 510 | else throw("No art matching") | |
519 | 511 | } | |
520 | - | let | |
521 | - | let x = getInteger(this, ab( | |
512 | + | let ba = { | |
513 | + | let x = getInteger(this, ab(be, T)) | |
522 | 514 | if ($isInstanceOf(x, "Int")) | |
523 | 515 | then { | |
524 | - | let | |
525 | - | if (( | |
516 | + | let bb = x | |
517 | + | if ((bb != 0)) | |
526 | 518 | then true | |
527 | 519 | else false | |
528 | 520 | } | |
529 | 521 | else false | |
530 | 522 | } | |
531 | - | let | |
523 | + | let bf = z(Z(be, T)) | |
532 | 524 | let F = { | |
533 | - | let x = getString(this, aj( | |
525 | + | let x = getString(this, aj(be, T)) | |
534 | 526 | if ($isInstanceOf(x, "String")) | |
535 | 527 | then { | |
536 | - | let | |
537 | - | | |
528 | + | let aY = x | |
529 | + | aY | |
538 | 530 | } | |
539 | 531 | else throw("No art hash matching") | |
540 | 532 | } | |
541 | 533 | let D = { | |
542 | - | let x = getString(this, aa( | |
534 | + | let x = getString(this, aa(be, T)) | |
543 | 535 | if ($isInstanceOf(x, "String")) | |
544 | 536 | then { | |
545 | - | let | |
546 | - | | |
537 | + | let aY = x | |
538 | + | aY | |
547 | 539 | } | |
548 | 540 | else throw("No SIGN ID matching") | |
549 | 541 | } | |
550 | - | let | |
551 | - | if (!( | |
542 | + | let bg = [DeleteEntry(S(be, T)), DeleteEntry(U(be, T)), DeleteEntry(V(be, T)), DeleteEntry(W(be, T)), DeleteEntry(Y(be, T)), DeleteEntry(X(be, T)), DeleteEntry(ad(be, T)), DeleteEntry(ae(be, T)), DeleteEntry(ag(be, T)), DeleteEntry(af(be, T)), DeleteEntry(Z(be, T)), DeleteEntry(aa(be, T)), DeleteEntry(ab(be, T)), DeleteEntry(ac(be, T)), StringEntry("last_invoke_id", aE), DeleteEntry(al(F)), DeleteEntry(am(be, D)), DeleteEntry(ao(F, be))] | |
543 | + | if (!(ba)) | |
552 | 544 | then if (!(m)) | |
553 | 545 | then throw(n) | |
554 | - | else | |
546 | + | else bg | |
555 | 547 | else throw("Art already minted, cannot delete") | |
556 | 548 | } | |
557 | 549 | ||
558 | 550 | ||
559 | 551 | ||
560 | 552 | @Callable(A) | |
561 | - | func sellArtwork (T, | |
553 | + | func sellArtwork (T,aT,bf,aR) = if (!(m)) | |
562 | 554 | then throw(n) | |
563 | 555 | else { | |
564 | 556 | let aE = toBase58String(A.transactionId) | |
565 | 557 | let L = toBase58String(A.caller.bytes) | |
566 | - | let | |
567 | - | let | |
568 | - | if ((size(split( | |
558 | + | let bh = lastBlock.timestamp | |
559 | + | let bi = v(Y(L, T)) | |
560 | + | if ((size(split(bi, "/")[0]) != 59)) | |
569 | 561 | then throw("You cannot sell art with no export file") | |
570 | 562 | else { | |
571 | - | let | |
572 | - | if ((size( | |
563 | + | let bj = v(X(L, T)) | |
564 | + | if ((size(bj) != 64)) | |
573 | 565 | then throw("You cannot sell art with no export hash") | |
574 | - | else if (if (if (( | |
575 | - | then ( | |
566 | + | else if (if (if ((aR != toBase58String(d))) | |
567 | + | then (aR != toBase58String(f)) | |
576 | 568 | else false) | |
577 | - | then ( | |
569 | + | then (aR != toBase58String(e)) | |
578 | 570 | else false) | |
579 | 571 | then throw("Only SIGN, USDN or WAVES accepted") | |
580 | 572 | else { | |
581 | - | let | |
573 | + | let bk = { | |
582 | 574 | let x = getString(this, U(L, T)) | |
583 | 575 | if ($isInstanceOf(x, "String")) | |
584 | 576 | then { | |
585 | - | let | |
586 | - | | |
577 | + | let aY = x | |
578 | + | aY | |
587 | 579 | } | |
588 | 580 | else throw("This art doesn't match") | |
589 | 581 | } | |
590 | - | let | |
582 | + | let aX = { | |
591 | 583 | let x = getString(this, Q(L)) | |
592 | 584 | if ($isInstanceOf(x, "String")) | |
593 | 585 | then { | |
594 | - | let | |
595 | - | | |
586 | + | let aY = x | |
587 | + | aY | |
596 | 588 | } | |
597 | 589 | else throw("Register this account first") | |
598 | 590 | } | |
599 | - | let | |
600 | - | let | |
601 | - | if (if (( | |
602 | - | then ( | |
591 | + | let bl = z(ab(L, T)) | |
592 | + | let bm = z(Z(L, T)) | |
593 | + | if (if ((bl != 0)) | |
594 | + | then (bl == bm) | |
603 | 595 | else false) | |
604 | 596 | then throw("Max edition reached.") | |
605 | - | else if (if (( | |
606 | - | then ( | |
597 | + | else if (if ((bl > 0)) | |
598 | + | then (bm != bf) | |
607 | 599 | else false) | |
608 | 600 | then throw("Cannot change maximum issuable anymore") | |
609 | - | else if (( | |
601 | + | else if ((aX == r)) | |
610 | 602 | then throw("Account suspended") | |
611 | - | else if (( | |
603 | + | else if ((aX == s)) | |
612 | 604 | then throw("Account deleted") | |
613 | 605 | else { | |
614 | - | let | |
606 | + | let bn = if ((aT > 0)) | |
615 | 607 | then true | |
616 | 608 | else false | |
617 | - | [BooleanEntry(ac(L, T), | |
609 | + | [BooleanEntry(ac(L, T), bn), IntegerEntry(ah(L, T), aT), IntegerEntry(Z(L, T), bf), StringEntry(ai(L, T), aR), StringEntry("last_invoke_id", aE)] | |
618 | 610 | } | |
619 | 611 | } | |
620 | 612 | } | |
621 | 613 | } | |
622 | 614 | ||
623 | 615 | ||
624 | 616 | ||
625 | 617 | @Callable(A) | |
626 | - | func buyArtwork (T, | |
618 | + | func buyArtwork (T,bo) = if (!(m)) | |
627 | 619 | then throw(n) | |
628 | 620 | else { | |
629 | 621 | let aE = toBase58String(A.transactionId) | |
630 | 622 | let L = toBase58String(A.caller.bytes) | |
631 | - | let | |
632 | - | let D = v(aa( | |
633 | - | let | |
634 | - | let x = getString(this, U( | |
623 | + | let bp = z("total_nft_issued") | |
624 | + | let D = v(aa(bo, T)) | |
625 | + | let bk = { | |
626 | + | let x = getString(this, U(bo, T)) | |
635 | 627 | if ($isInstanceOf(x, "String")) | |
636 | 628 | then { | |
637 | - | let | |
638 | - | | |
629 | + | let aY = x | |
630 | + | aY | |
639 | 631 | } | |
640 | 632 | else throw("Art doesn't exist") | |
641 | 633 | } | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let aA = take(v(V( | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | if (( | |
634 | + | let bq = v(W(bo, T)) | |
635 | + | let bi = v(Y(bo, T)) | |
636 | + | let bj = v(X(bo, T)) | |
637 | + | let br = v(ae(bo, T)) | |
638 | + | let bs = v(ad(bo, T)) | |
639 | + | let aA = take(v(V(bo, T)), 50) | |
640 | + | let bl = z(ab(bo, T)) | |
641 | + | let bt = z(ah(bo, T)) | |
642 | + | let bu = B(ac(bo, T)) | |
643 | + | let bv = v(ai(bo, T)) | |
644 | + | let bw = v(aj(bo, T)) | |
645 | + | if ((bt == 0)) | |
654 | 646 | then throw("Art not for sell") | |
655 | - | else if (!( | |
647 | + | else if (!(bu)) | |
656 | 648 | then throw("Art not for sale") | |
657 | 649 | else { | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | then (size(fromBase58String( | |
650 | + | let bm = z(Z(bo, T)) | |
651 | + | let aP = value(A.payments[0]) | |
652 | + | let aQ = value(aP.amount) | |
653 | + | let aR = if (if (if (isDefined(aP.assetId)) | |
654 | + | then (size(fromBase58String(bv)) > 0) | |
663 | 655 | else false) | |
664 | - | then ( | |
656 | + | then (aP.assetId == fromBase58String(bv)) | |
665 | 657 | else false) | |
666 | - | then | |
658 | + | then aP.assetId | |
667 | 659 | else unit | |
668 | - | let | |
660 | + | let bx = if ((bv == toBase58String(d))) | |
669 | 661 | then 8 | |
670 | 662 | else 10 | |
671 | - | let | |
672 | - | let | |
673 | - | if (( | |
663 | + | let by = ((aQ / 100) * bx) | |
664 | + | let bz = (aQ - by) | |
665 | + | if ((bl == bm)) | |
674 | 666 | then throw("Art sold out") | |
675 | - | else if (( | |
667 | + | else if ((bt != aQ)) | |
676 | 668 | then throw("Payment don't match") | |
677 | 669 | else { | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | \"creator\": \"" + | |
670 | + | let bA = (bl + 1) | |
671 | + | let bB = lastBlock.timestamp | |
672 | + | let bC = (((((((((((((((((((((((((((("{\"version\": 1, | |
673 | + | \"creator\": \"" + bo) + "\", | |
682 | 674 | \"artID\": \"") + T) + "\", | |
683 | 675 | \"signID\": \"") + D) + "\", | |
684 | - | \"artwork_name\": \"") + | |
676 | + | \"artwork_name\": \"") + bk) + "\", | |
685 | 677 | \"artwork_desc\": \"") + aA) + "\", | |
686 | - | \"issue\": \"") + toString( | |
687 | - | \"maxIssuable\": \"") + toString( | |
688 | - | \"source_hash\": \"") + | |
689 | - | \"display_cid\": \"") + | |
690 | - | \"export_cid\": \"") + | |
691 | - | \"export_hash\": \"") + | |
692 | - | \"licence_cid\": \"") + | |
693 | - | \"licence_hash\": \"") + | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
678 | + | \"issue\": \"") + toString(bA)) + "/") + toString(bm)) + "\", | |
679 | + | \"maxIssuable\": \"") + toString(bm)) + "\", | |
680 | + | \"source_hash\": \"") + bw) + "\", | |
681 | + | \"display_cid\": \"") + bq) + "\", | |
682 | + | \"export_cid\": \"") + bi) + "\", | |
683 | + | \"export_hash\": \"") + bj) + "\", | |
684 | + | \"licence_cid\": \"") + br) + "\", | |
685 | + | \"licence_hash\": \"") + bs) + "\"}") | |
686 | + | let bD = Issue(("SA_" + toString((bp + 1))), bC, 1, 0, false) | |
687 | + | let bE = calculateAssetId(bD) | |
688 | + | let bn = if ((bA == bm)) | |
697 | 689 | then false | |
698 | 690 | else true | |
699 | - | [IntegerEntry(ab( | |
691 | + | [IntegerEntry(ab(bo, T), bA), StringEntry(((((((("art_sold_" + toString(bA)) + "_of_") + toString(bm)) + "_") + T) + "_") + bo), ((((((((L + "_") + toString(bB)) + "_") + aE) + "_") + toString(bt)) + "_") + bv)), IntegerEntry("total_nft_issued", (bp + 1)), BooleanEntry(ac(bo, T), bn), StringEntry("last_invoke_id", aE), bD, ScriptTransfer(Address(fromBase58String(bo)), bz, aR), ScriptTransfer(Address(fromBase58String(c)), by, aR), ScriptTransfer(A.caller, 1, bE)] | |
700 | 692 | } | |
701 | 693 | } | |
702 | 694 | } | |
703 | 695 | ||
704 | 696 | ||
705 | 697 | ||
706 | 698 | @Callable(A) | |
707 | - | func deleteUser ( | |
699 | + | func deleteUser (aH) = { | |
708 | 700 | let L = toString(addressFromPublicKey(A.callerPublicKey)) | |
709 | 701 | let aE = toBase58String(A.transactionId) | |
710 | 702 | if (if ((L == j)) | |
711 | 703 | then true | |
712 | 704 | else (L == k)) | |
713 | - | then [DeleteEntry(R( | |
705 | + | then [DeleteEntry(R(aH)), DeleteEntry(K(aH)), DeleteEntry(M(aH)), DeleteEntry(N(aH)), DeleteEntry(O(aH)), DeleteEntry(P(aH)), StringEntry(Q(aH), s), StringEntry("last_invoke_id", aE)] | |
714 | 706 | else throw("Not allowed") | |
715 | 707 | } | |
716 | 708 | ||
717 | 709 |
github/deemru/w8io/026f985 289.66 ms ◑