tx · DhPV23pWXM8vnz9PnysqScoETuxGN33m2zMmZbPEsujm 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02500000 Waves 2023.01.20 07:07 [2412765] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "DhPV23pWXM8vnz9PnysqScoETuxGN33m2zMmZbPEsujm", "fee": 2500000, "feeAssetId": null, "timestamp": 1674187671172, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "3xxo2YFM9g57NWFfiouZNJ9VdD5hL3UvRPZapFUMhoVanmaqyhvJMogoZaWTB8WByRM13WjCxzFQDQ3uJqY7H3v3" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgYxLjEuMTABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVuaXRUZXN0BwAJb3JhY2xlRmVlCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfb3JhY2xlX2ZlZQAIc2lnbkRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgAIdXNlckRhcHADBQh1bml0VGVzdAkBBXZhbHVlAQkApggBAiMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAg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wdFRyYW5zZmVyAwkBB0FkZHJlc3MBCQDZBAEFDXJldHVybk1vbmV5VG8JAQ1wYXJzZUludFZhbHVlAQkAkQMCBQpiaWREYXRhQXJyAAEFB2Fzc2V0SWQFA25pbAECdHgBCHZlcmlmaWVyAAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EA2ludgUHJG1hdGNoMAMDCQAAAggFA2ludghmdW5jdGlvbgIKYWRkQXJ0d29yawkAAAIIBQNpbnYEZEFwcAUEdGhpcwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJANkEAQkBCGFzU3RyaW5nAQkAkQMCCAUDaW52BGFyZ3MADQMDCQAAAggFA2ludghmdW5jdGlvbgINdXBkYXRlQXJ0d29yawkAAAIIBQNpbnYEZEFwcAUEdGhpcwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJANkEAQkBCGFzU3RyaW5nAQkAkQMCCAUDaW52BGFyZ3MADAMDCQAAAggFA2ludghmdW5jdGlvbgILc2VsbEFydHdvcmsJAAACCAUDaW52BGRBcHAFBHRoaXMHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAUJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnwqcQv", "height": 2412765, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dw3epfj3UtjN3hBWEinN9MYFAH22qgFxMge6fhh7fUMw Next: BR6iYctGAvENpofigfsQev1TPf7j3Hk4A3CfuXKirwim Diff:
Old | New | Differences | |
---|---|---|---|
600 | 600 | then invoke(i, "useFreeDrop", [P], nil) | |
601 | 601 | else unit | |
602 | 602 | if ((cw == cw)) | |
603 | - | then [StringEntry(ar(H), P), StringEntry(au(H, P), R), IntegerEntry(Q(P, R), bC), StringEntry(S(P, R), aL), StringEntry(T(P, R), aM), StringEntry(U(P, R), aw), StringEntry(W(P, R), ax), StringEntry(V(P, R), aA), StringEntry(ab(P, R), aK), StringEntry(ac(P, R), aJ), StringEntry(ae(P, R), cm), StringEntry(ad(P, R), aN), IntegerEntry(X(P, R), 0), StringEntry(Y(P, R), F), IntegerEntry(Z(P, R), 0), BooleanEntry(aa(P, R), false), StringEntry(as(P, F), R), StringEntry(ap(P, R), H), StringEntry(ag(P, R), cn), IntegerEntry(ah(P, R), aO), ScriptTransfer(Address(fromBase58String(g)), aT, j)] | |
603 | + | then { | |
604 | + | let cx = if (bt) | |
605 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
606 | + | else nil | |
607 | + | ([StringEntry(ar(H), P), StringEntry(au(H, P), R), IntegerEntry(Q(P, R), bC), StringEntry(S(P, R), aL), StringEntry(T(P, R), aM), StringEntry(U(P, R), aw), StringEntry(W(P, R), ax), StringEntry(V(P, R), aA), StringEntry(ab(P, R), aK), StringEntry(ac(P, R), aJ), StringEntry(ae(P, R), cm), StringEntry(ad(P, R), aN), IntegerEntry(X(P, R), 0), StringEntry(Y(P, R), F), IntegerEntry(Z(P, R), 0), BooleanEntry(aa(P, R), false), StringEntry(as(P, F), R), StringEntry(ap(P, R), H), StringEntry(ag(P, R), cn), IntegerEntry(ah(P, R), aO), ScriptTransfer(Address(fromBase58String(g)), aT, j)] ++ cx) | |
608 | + | } | |
604 | 609 | else throw("Strict value is not equal to itself.") | |
605 | 610 | } | |
606 | 611 | } | |
616 | 621 | func updateArtwork (aq,aL,aM,aN,cm,aw,aA,ax,aB,ay,cn,aO,bs) = if (!(w)) | |
617 | 622 | then throw(x) | |
618 | 623 | else { | |
619 | - | let | |
620 | - | let bB = | |
621 | - | let P = | |
622 | - | let bC = | |
623 | - | let bt = | |
624 | - | let | |
625 | - | let aJ = | |
626 | - | let aK = | |
624 | + | let cy = br(aR, bs) | |
625 | + | let bB = cy._1 | |
626 | + | let P = cy._2 | |
627 | + | let bC = cy._3 | |
628 | + | let bt = cy._4 | |
629 | + | let cz = aH(ay, aB) | |
630 | + | let aJ = cz._1 | |
631 | + | let aK = cz._2 | |
627 | 632 | let cq = aI(P, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
628 | 633 | if ((cq != "")) | |
629 | 634 | then throw("Something went wrong!") | |
632 | 637 | if ((ct == "")) | |
633 | 638 | then throw("Entry not found") | |
634 | 639 | else { | |
635 | - | let | |
636 | - | if (( | |
640 | + | let cA = b(al(P, aq)) | |
641 | + | if ((cA == "ILLEGAL")) | |
637 | 642 | then throw("Cannot update ILLEGAL artwork") | |
638 | 643 | else if (!(aX(P, aq))) | |
639 | - | then [StringEntry(S(P, aq), aL), StringEntry(T(P, aq), aM), StringEntry(U(P, aq), aw), StringEntry(W(P, aq), ax), StringEntry(V(P, aq), aA), StringEntry(ac(P, aq), aJ), StringEntry(ab(P, aq), aK), StringEntry(ad(P, aq), aN), StringEntry(ae(P, aq), cm), StringEntry(ag(P, aq), cn), IntegerEntry(ah(P, aq), aO)] | |
644 | + | then { | |
645 | + | let cx = if (bt) | |
646 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
647 | + | else nil | |
648 | + | ([StringEntry(S(P, aq), aL), StringEntry(T(P, aq), aM), StringEntry(U(P, aq), aw), StringEntry(W(P, aq), ax), StringEntry(V(P, aq), aA), StringEntry(ac(P, aq), aJ), StringEntry(ab(P, aq), aK), StringEntry(ad(P, aq), aN), StringEntry(ae(P, aq), cm), StringEntry(ag(P, aq), cn), IntegerEntry(ah(P, aq), aO)] ++ cx) | |
649 | + | } | |
640 | 650 | else throw("Already minted") | |
641 | 651 | } | |
642 | 652 | } | |
645 | 655 | ||
646 | 656 | ||
647 | 657 | @Callable(aR) | |
648 | - | func flagArtwork (R,cA, | |
649 | - | let | |
650 | - | let bB = | |
651 | - | let P = | |
658 | + | func flagArtwork (R,cB,cA,cC) = { | |
659 | + | let cD = bv(aR) | |
660 | + | let bB = cD._1 | |
661 | + | let P = cD._2 | |
652 | 662 | if (containsElement([n, toString(this)], P)) | |
653 | - | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], | |
654 | - | then [StringEntry(al( | |
655 | - | else throw(("Unknow status " + | |
663 | + | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cA)) | |
664 | + | then [StringEntry(al(cB, R), cA), StringEntry(af(cB, R), cC)] | |
665 | + | else throw(("Unknow status " + cA)) | |
656 | 666 | else throw("You are not allowed") | |
657 | 667 | } | |
658 | 668 | ||
659 | 669 | ||
660 | 670 | ||
661 | 671 | @Callable(aR) | |
662 | - | func deleteArtwork (R, | |
663 | - | let | |
664 | - | let bB = | |
665 | - | let P = | |
672 | + | func deleteArtwork (R,cB) = { | |
673 | + | let cE = bv(aR) | |
674 | + | let bB = cE._1 | |
675 | + | let P = cE._2 | |
666 | 676 | let aY = if (containsElement([n, toString(this)], P)) | |
667 | - | then | |
677 | + | then cB | |
668 | 678 | else P | |
669 | 679 | let ct = valueOrErrorMessage(b(S(aY, R)), "No art matching for this address") | |
670 | 680 | if ((ct == "")) | |
678 | 688 | if ((F == "")) | |
679 | 689 | then throw("No SIGN ID matching") | |
680 | 690 | else { | |
681 | - | let | |
691 | + | let cF = [DeleteEntry(Q(aY, R)), DeleteEntry(S(aY, R)), DeleteEntry(T(aY, R)), DeleteEntry(U(aY, R)), DeleteEntry(W(aY, R)), DeleteEntry(V(aY, R)), DeleteEntry(ab(aY, R)), DeleteEntry(ac(aY, R)), DeleteEntry(ae(aY, R)), DeleteEntry(ad(aY, R)), DeleteEntry(X(aY, R)), DeleteEntry(Y(aY, R)), DeleteEntry(Z(aY, R)), DeleteEntry(aa(aY, R)), DeleteEntry(al(aY, R)), DeleteEntry(ai(aY, R)), DeleteEntry(ak(aY, R)), DeleteEntry(ar(H)), DeleteEntry(as(aY, F)), DeleteEntry(au(H, aY)), DeleteEntry(aj(aY, R)), DeleteEntry(af(aY, R)), DeleteEntry(ag(aY, R)), DeleteEntry(ah(aY, R))] | |
682 | 692 | if (!(aX(aY, R))) | |
683 | 693 | then if (!(w)) | |
684 | 694 | then throw(x) | |
685 | - | else | |
695 | + | else cF | |
686 | 696 | else if (containsElement([n, toString(this)], P)) | |
687 | - | then | |
697 | + | then cF | |
688 | 698 | else throw("Art already minted, you cannot delete it") | |
689 | 699 | } | |
690 | 700 | } | |
694 | 704 | ||
695 | 705 | ||
696 | 706 | @Callable(aR) | |
697 | - | func sellArtwork (R,bg,cF,aW,bE,bs) = { | |
698 | - | let cG = br(aR, bs) | |
699 | - | let bB = cG._1 | |
700 | - | let P = cG._2 | |
701 | - | let bt = cG._3 | |
707 | + | func sellArtwork (R,bg,cG,aW,bE,bs) = { | |
708 | + | let cH = br(aR, bs) | |
709 | + | let bB = cH._1 | |
710 | + | let P = cH._2 | |
711 | + | let bC = cH._3 | |
712 | + | let bt = cH._4 | |
702 | 713 | let bH = b(S(P, R)) | |
703 | 714 | if ((bH == "")) | |
704 | 715 | then throw("This art doesn't match your account") | |
705 | 716 | else { | |
706 | - | let | |
707 | - | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], | |
717 | + | let cA = b(al(P, R)) | |
718 | + | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cA)) | |
708 | 719 | then throw("Flagged artwork") | |
709 | 720 | else { | |
710 | - | let | |
721 | + | let cI = p(("current_bidamount_" + R)) | |
711 | 722 | if ((0 > bE)) | |
712 | 723 | then throw("Negative end") | |
713 | 724 | else if (if ((bE > 0)) | |
714 | - | then if (( | |
725 | + | then if ((cG != 1)) | |
715 | 726 | then true | |
716 | 727 | else (bg != 0) | |
717 | 728 | else false) | |
718 | 729 | then throw("Timed offer only allowed for unique edition and offer only") | |
719 | 730 | else { | |
720 | - | let | |
731 | + | let cJ = if ((bE == 0)) | |
721 | 732 | then 0 | |
722 | 733 | else height | |
723 | 734 | if (!(be(aW))) | |
731 | 742 | else { | |
732 | 743 | let bJ = p(Z(P, R)) | |
733 | 744 | let bK = p(X(P, R)) | |
734 | - | if (( | |
745 | + | if ((cG > 100)) | |
735 | 746 | then throw("100 editions max per artwork") | |
736 | 747 | else if (if ((bJ != 0)) | |
737 | 748 | then (bJ == bK) | |
738 | 749 | else false) | |
739 | 750 | then throw("Max edition reached.") | |
740 | 751 | else if (if ((bJ > 0)) | |
741 | - | then (bK != | |
752 | + | then (bK != cG) | |
742 | 753 | else false) | |
743 | 754 | then throw("Cannot change maximum issuable anymore") | |
744 | - | else if (if (( | |
745 | - | then (bK != | |
755 | + | else if (if ((cI > 0)) | |
756 | + | then (bK != cG) | |
746 | 757 | else false) | |
747 | 758 | then throw("Cannot change maximum issuable with active orders") | |
748 | 759 | else { | |
749 | 760 | let bX = if (if ((bg > 0)) | |
750 | - | then ( | |
761 | + | then (cG > 0) | |
751 | 762 | else false) | |
752 | 763 | then true | |
753 | 764 | else false | |
754 | - | [BooleanEntry(aa(P, R), bX), IntegerEntry(ai(P, R), bg), IntegerEntry(X(P, R), cF), StringEntry(ak(P, R), aW), IntegerEntry(aj(P, R), (cI + bE))] | |
765 | + | let cx = if (bt) | |
766 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
767 | + | else nil | |
768 | + | ([BooleanEntry(aa(P, R), bX), IntegerEntry(ai(P, R), bg), IntegerEntry(X(P, R), cG), StringEntry(ak(P, R), aW), IntegerEntry(aj(P, R), (cJ + bE))] ++ cx) | |
755 | 769 | } | |
756 | 770 | } | |
757 | 771 | } | |
769 | 783 | ||
770 | 784 | @Callable(aR) | |
771 | 785 | func setBid (R,bx) = { | |
772 | - | let | |
773 | - | let bB = | |
774 | - | let P = | |
775 | - | let bC = | |
776 | - | let | |
777 | - | let aS = | |
778 | - | let aT = | |
786 | + | let cK = bv(aR) | |
787 | + | let bB = cK._1 | |
788 | + | let P = cK._2 | |
789 | + | let bC = cK._3 | |
790 | + | let cL = aQ(aR) | |
791 | + | let aS = cL._1 | |
792 | + | let aT = cL._2 | |
779 | 793 | let aW = if (!(isDefined(aS.assetId))) | |
780 | 794 | then "WAVES" | |
781 | 795 | else toBase58String(value(aS.assetId)) | |
785 | 799 | else false) | |
786 | 800 | then throw("Sale ended.") | |
787 | 801 | else { | |
788 | - | let | |
802 | + | let cI = p(("current_bidamount_" + R)) | |
789 | 803 | if (!(be(aW))) | |
790 | 804 | then throw("asset not accepted") | |
791 | 805 | else if (!(bf(aW, aT))) | |
797 | 811 | then throw("No max edition set for this artwork") | |
798 | 812 | else if ((bJ >= bK)) | |
799 | 813 | then throw("Sold out, you cannot bid") | |
800 | - | else [StringEntry((((((((("bid_" + R) + "_") + bx) + "_") + P) + "_") + bB) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), ( | |
814 | + | else [StringEntry((((((((("bid_" + R) + "_") + bx) + "_") + P) + "_") + bB) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), (cI + 1))] | |
801 | 815 | } | |
802 | 816 | } | |
803 | 817 | } | |
806 | 820 | ||
807 | 821 | @Callable(aR) | |
808 | 822 | func acceptBid (R,bx,by,bz) = { | |
809 | - | let | |
810 | - | let bB = | |
811 | - | let P = | |
812 | - | let bC = | |
823 | + | let cM = bv(aR) | |
824 | + | let bB = cM._1 | |
825 | + | let P = cM._2 | |
826 | + | let bC = cM._3 | |
813 | 827 | if ((P != bx)) | |
814 | 828 | then throw("You cannot do this action") | |
815 | 829 | else bw(aR, R, bx, by, bz) | |
819 | 833 | ||
820 | 834 | @Callable(aR) | |
821 | 835 | func cancelBid (R,bx,by,bz) = { | |
822 | - | let | |
823 | - | let bB = | |
824 | - | let P = | |
825 | - | let bC = | |
836 | + | let cN = bv(aR) | |
837 | + | let bB = cN._1 | |
838 | + | let P = cN._2 | |
839 | + | let bC = cN._3 | |
826 | 840 | if (if ((P != bz)) | |
827 | 841 | then (P != bx) | |
828 | 842 | else false) | |
829 | 843 | then throw("You cannot do this action") | |
830 | 844 | else { | |
831 | - | let | |
845 | + | let cO = if ((P == bx)) | |
832 | 846 | then bz | |
833 | 847 | else P | |
834 | - | let | |
848 | + | let cI = p(("current_bidamount_" + R)) | |
835 | 849 | let bm = ((((((("bid_" + R) + "_") + bx) + "_") + bz) + "_") + by) | |
836 | 850 | let bn = b((bm + "_OPEN")) | |
837 | 851 | if ((bn == "")) | |
839 | 853 | else { | |
840 | 854 | let bo = split(bn, "_") | |
841 | 855 | let aW = bk(bo[0]) | |
842 | - | let | |
843 | - | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + | |
856 | + | let cP = "CANCELED" | |
857 | + | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + cP), ((bn + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), (cI - 1)), ScriptTransfer(Address(fromBase58String(cO)), parseIntValue(bo[1]), aW)] | |
844 | 858 | } | |
845 | 859 | } | |
846 | 860 | } | |
847 | 861 | ||
848 | 862 | ||
849 | - | @Verifier( | |
850 | - | func | |
851 | - | let I = | |
863 | + | @Verifier(cQ) | |
864 | + | func cR () = { | |
865 | + | let I = cQ | |
852 | 866 | if ($isInstanceOf(I, "InvokeScriptTransaction")) | |
853 | 867 | then { | |
854 | - | let | |
855 | - | if (if (( | |
856 | - | then ( | |
868 | + | let cS = I | |
869 | + | if (if ((cS.function == "addArtwork")) | |
870 | + | then (cS.dApp == this) | |
857 | 871 | else false) | |
858 | - | then sigVerify( | |
859 | - | else if (if (( | |
860 | - | then ( | |
872 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[13]))) | |
873 | + | else if (if ((cS.function == "updateArtwork")) | |
874 | + | then (cS.dApp == this) | |
861 | 875 | else false) | |
862 | - | then sigVerify( | |
863 | - | else if (if (( | |
864 | - | then ( | |
876 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[12]))) | |
877 | + | else if (if ((cS.function == "sellArtwork")) | |
878 | + | then (cS.dApp == this) | |
865 | 879 | else false) | |
866 | - | then sigVerify( | |
867 | - | else sigVerify( | |
880 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[5]))) | |
881 | + | else sigVerify(cQ.bodyBytes, cQ.proofs[0], cQ.senderPublicKey) | |
868 | 882 | } | |
869 | - | else sigVerify( | |
883 | + | else sigVerify(cQ.bodyBytes, cQ.proofs[0], cQ.senderPublicKey) | |
870 | 884 | } | |
871 | 885 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.1.10" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = false | |
10 | 10 | ||
11 | 11 | let e = value(addressFromString(b("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let f = value(addressFromString(b("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let g = b("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let h = if (d) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(b("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let i = value(addressFromString(b("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | 23 | let j = fromBase58String(b("conf_accepted_asset_SIGN")) | |
24 | 24 | ||
25 | 25 | let k = fromBase58String(b("conf_accepted_asset_USDN")) | |
26 | 26 | ||
27 | 27 | let l = fromBase58String(b("conf_accepted_asset_USDT")) | |
28 | 28 | ||
29 | 29 | let m = base58'' | |
30 | 30 | ||
31 | 31 | let n = b("conf_admin_1") | |
32 | 32 | ||
33 | 33 | func o (c) = valueOrErrorMessage(getInteger(e, c), "Integer undefine or 0 in oracle") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func p (c) = valueOrElse(getInteger(this, c), 0) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (c) = valueOrElse(getInteger(i, c), 0) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func r (c) = valueOrElse(getBoolean(this, c), false) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let s = 7 | |
46 | 46 | ||
47 | 47 | let t = 10 | |
48 | 48 | ||
49 | 49 | let u = b("conf_default_licence") | |
50 | 50 | ||
51 | 51 | let v = b("conf_default_licence_hash") | |
52 | 52 | ||
53 | 53 | let w = valueOrElse(getBoolean(h, "conf_dapp_is_running"), true) | |
54 | 54 | ||
55 | 55 | let x = valueOrElse(getString(h, "conf_maintenance_msg"), "") | |
56 | 56 | ||
57 | 57 | let y = "SUSPENDED" | |
58 | 58 | ||
59 | 59 | let z = "REMOVED" | |
60 | 60 | ||
61 | 61 | let A = "UNREGISTERED" | |
62 | 62 | ||
63 | 63 | let B = "ALLOWED" | |
64 | 64 | ||
65 | 65 | let C = o(("certification_fee_" + toBase58String(j))) | |
66 | 66 | ||
67 | 67 | func D (c) = valueOrElse(getInteger(this, c), 1000) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func E (F,G,H) = { | |
71 | 71 | let I = getString(f, ((("data_fc_" + F) + "_") + G)) | |
72 | 72 | if ($isInstanceOf(I, "String")) | |
73 | 73 | then { | |
74 | 74 | let J = I | |
75 | 75 | if (contains(J, H)) | |
76 | 76 | then true | |
77 | 77 | else false | |
78 | 78 | } | |
79 | 79 | else false | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func K (L) = if (contains(L, "/")) | |
84 | 84 | then if (if ((76 > size(L))) | |
85 | 85 | then (size(split(L, "/")[0]) == 59) | |
86 | 86 | else false) | |
87 | 87 | then (16 > size(split(L, "/")[1])) | |
88 | 88 | else false | |
89 | 89 | else false | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func M (N) = (size(N) == 64) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func O (P) = ("user_status_" + P) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func Q (P,R) = ((("art_date_" + R) + "_") + P) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func S (P,R) = ((("art_name_" + R) + "_") + P) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func T (P,R) = ((("art_desc_" + R) + "_") + P) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func U (P,R) = ((("art_display_cid_" + R) + "_") + P) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func V (P,R) = ((("art_export_hash_" + R) + "_") + P) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func W (P,R) = ((("art_export_cid_" + R) + "_") + P) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func X (P,R) = ((("art_maxmint_" + R) + "_") + P) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Y (P,R) = ((("art_signid_" + R) + "_") + P) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Z (P,R) = ((("art_issued_" + R) + "_") + P) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func aa (P,R) = ((("art_onsale_" + R) + "_") + P) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func ab (P,R) = ((("art_licence_hash_" + R) + "_") + P) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func ac (P,R) = ((("art_licence_cid_" + R) + "_") + P) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ad (P,R) = ((("art_tags_" + R) + "_") + P) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ae (P,R) = ((("art_type_" + R) + "_") + P) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func af (P,R) = ((("art_note_" + R) + "_") + P) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ag (P,R) = ((("art_crawler_cid_" + R) + "_") + P) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ah (P,R) = ((("art_royalties_" + R) + "_") + P) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ai (P,R) = ((("art_price_" + R) + "_") + P) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func aj (P,R) = ((("art_endsale_" + R) + "_") + P) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ak (P,R) = ((("art_assetAccepted_" + R) + "_") + P) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func al (P,R) = ((("art_flag_" + R) + "_") + P) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func am (an) = ("artist_agent_" + an) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ao (an) = ("artist_agent_primary_" + an) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ap (P,aq) = ((("get_hashbytxidaddr_" + aq) + "_") + P) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ar (H) = ("get_owner_by_hash_" + H) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func as (P,at) = ((("get_artidbysignid_" + at) + "_") + P) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func au (H,P) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((H + P))))) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func av (aw,ax,ay) = if (!(K(aw))) | |
180 | 180 | then throw("Wrong Display CID") | |
181 | 181 | else if (!(K(ax))) | |
182 | 182 | then throw("Wrong Export CID") | |
183 | 183 | else if (if ((ay != "")) | |
184 | 184 | then !(K(ay)) | |
185 | 185 | else false) | |
186 | 186 | then throw("Wrong Licence CID") | |
187 | 187 | else true | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func az (aA,aB) = if (!(M(aA))) | |
191 | 191 | then throw("Export Hash 64 char. max") | |
192 | 192 | else if (!(M(aB))) | |
193 | 193 | then throw("Licence Hash 64 char. max") | |
194 | 194 | else true | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func aC (aD,aE) = if ((size(aD) == 0)) | |
198 | 198 | then throw("Field cannot be is empty") | |
199 | 199 | else if ((size(aD) > aE)) | |
200 | 200 | then throw((aD + " is too long")) | |
201 | 201 | else true | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aF (P) = { | |
205 | 205 | let aG = valueOrElse(getString(h, O(P)), A) | |
206 | 206 | if (if ((aG == A)) | |
207 | 207 | then true | |
208 | 208 | else (aG == B)) | |
209 | 209 | then "Register this account first with \"Account\" tab" | |
210 | 210 | else if ((aG == y)) | |
211 | 211 | then "Account suspended" | |
212 | 212 | else if ((aG == z)) | |
213 | 213 | then "Account removed" | |
214 | 214 | else "" | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aH (ay,aB) = { | |
219 | 219 | let L = if ((size(ay) == 0)) | |
220 | 220 | then u | |
221 | 221 | else ay | |
222 | 222 | let N = if ((size(aB) == 0)) | |
223 | 223 | then v | |
224 | 224 | else aB | |
225 | 225 | $Tuple2(L, N) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aI (P,aw,ax,aJ,aA,aK,aL,aM,aN,aO) = { | |
230 | 230 | let aP = aF(P) | |
231 | 231 | if ((aP != "")) | |
232 | 232 | then throw(aP) | |
233 | 233 | else if ((size(aw) == 0)) | |
234 | 234 | then throw("Display CID cannot be empty") | |
235 | 235 | else if (!(av(aw, ax, aJ))) | |
236 | 236 | then throw("Problem with CID") | |
237 | 237 | else if (!(az(aA, aK))) | |
238 | 238 | then throw("Problem with Hashes") | |
239 | 239 | else if (!(aC(aL, 100))) | |
240 | 240 | then throw("100 Char. max name") | |
241 | 241 | else if (!(aC(aM, 1000))) | |
242 | 242 | then throw("1000 Char. max description") | |
243 | 243 | else if (if ((0 > aO)) | |
244 | 244 | then true | |
245 | 245 | else (aO > 1000)) | |
246 | 246 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
247 | 247 | else if ((size(split(aN, ",")) > 5)) | |
248 | 248 | then throw("5 tags max.") | |
249 | 249 | else "" | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func aQ (aR) = if ((size(aR.payments) == 0)) | |
254 | 254 | then throw("No payment attached") | |
255 | 255 | else { | |
256 | 256 | let aS = value(aR.payments[0]) | |
257 | 257 | let aT = value(aS.amount) | |
258 | 258 | $Tuple2(aS, aT) | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func aU (aR) = { | |
263 | 263 | let aV = aQ(aR) | |
264 | 264 | let aS = aV._1 | |
265 | 265 | let aT = aV._2 | |
266 | 266 | let aW = if (if (isDefined(aS.assetId)) | |
267 | 267 | then (aS.assetId == j) | |
268 | 268 | else false) | |
269 | 269 | then aS.assetId | |
270 | 270 | else throw("Only SIGN token accepted as transaction fee") | |
271 | 271 | if ((aT != C)) | |
272 | 272 | then throw(("Payment amount should be " + toString(C))) | |
273 | 273 | else $Tuple2(aT, aW) | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func aX (aY,R) = { | |
278 | 278 | let I = getInteger(this, Z(aY, R)) | |
279 | 279 | if ($isInstanceOf(I, "Int")) | |
280 | 280 | then { | |
281 | 281 | let aZ = I | |
282 | 282 | if ((aZ != 0)) | |
283 | 283 | then true | |
284 | 284 | else false | |
285 | 285 | } | |
286 | 286 | else false | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func ba (aR,bb,bc) = { | |
291 | 291 | let bd = aQ(aR) | |
292 | 292 | let aS = bd._1 | |
293 | 293 | let aT = bd._2 | |
294 | 294 | let aW = if (!(isDefined(aS.assetId))) | |
295 | 295 | then unit | |
296 | 296 | else if (if ((size(bb) > 0)) | |
297 | 297 | then (toBase58String(value(aS.assetId)) == bb) | |
298 | 298 | else false) | |
299 | 299 | then aS.assetId | |
300 | 300 | else throw("Wrong asset id") | |
301 | 301 | if (if ((aW == unit)) | |
302 | 302 | then (bb != "") | |
303 | 303 | else false) | |
304 | 304 | then throw("Wrong asset id") | |
305 | 305 | else if ((bc != aT)) | |
306 | 306 | then throw("Payment don't match") | |
307 | 307 | else $Tuple2(aT, aW) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func be (aW) = if (if (if (if (if ((aW != toBase58String(j))) | |
312 | 312 | then (aW != toBase58String(m)) | |
313 | 313 | else false) | |
314 | 314 | then (aW != "WAVES") | |
315 | 315 | else false) | |
316 | 316 | then (aW != toBase58String(k)) | |
317 | 317 | else false) | |
318 | 318 | then (aW != toBase58String(l)) | |
319 | 319 | else false) | |
320 | 320 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
321 | 321 | else true | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func bf (aW,bg) = { | |
325 | 325 | let bh = if (d) | |
326 | 326 | then 10 | |
327 | 327 | else o("waves_min_sell") | |
328 | 328 | let bi = 1000000 | |
329 | 329 | let bj = if (d) | |
330 | 330 | then 1 | |
331 | 331 | else (C * 2) | |
332 | 332 | if (if (if (if (if (if ((aW == toBase58String(k))) | |
333 | 333 | then (bi > bg) | |
334 | 334 | else false) | |
335 | 335 | then (bg != 0) | |
336 | 336 | else false) | |
337 | 337 | then true | |
338 | 338 | else if (if ((aW == toBase58String(l))) | |
339 | 339 | then (bi > bg) | |
340 | 340 | else false) | |
341 | 341 | then (bg != 0) | |
342 | 342 | else false) | |
343 | 343 | then true | |
344 | 344 | else if (if ((aW == toBase58String(j))) | |
345 | 345 | then (bj > bg) | |
346 | 346 | else false) | |
347 | 347 | then (bg != 0) | |
348 | 348 | else false) | |
349 | 349 | then true | |
350 | 350 | else if (if (if ((aW == toBase58String(m))) | |
351 | 351 | then true | |
352 | 352 | else (aW == "WAVES")) | |
353 | 353 | then (bh > bg) | |
354 | 354 | else false) | |
355 | 355 | then (bg != 0) | |
356 | 356 | else false) | |
357 | 357 | then throw("Wrong minimum sell price") | |
358 | 358 | else true | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func bk (aW) = if ((aW == "WAVES")) | |
363 | 363 | then unit | |
364 | 364 | else fromBase58String(aW) | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func bl (bm) = { | |
368 | 368 | let bn = b((bm + "_OPEN")) | |
369 | 369 | if ((bn == "")) | |
370 | 370 | then throw("Bid not found") | |
371 | 371 | else { | |
372 | 372 | let bo = split(bn, "_") | |
373 | 373 | let bp = parseIntValue(bo[1]) | |
374 | 374 | let bq = bk(bo[0]) | |
375 | 375 | if ((0 >= bp)) | |
376 | 376 | then throw("Wrong amount") | |
377 | 377 | else $Tuple2(bp, bq) | |
378 | 378 | } | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func br (aR,bs) = if (!(w)) | |
383 | 383 | then throw(x) | |
384 | 384 | else { | |
385 | 385 | let bt = valueOrElse(q((toString(addressFromPublicKey(fromBase58String(bs))) + "_free_txs")), 0) | |
386 | 386 | let P = if (if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
387 | 387 | then (size(aR.payments) == 0) | |
388 | 388 | else false) | |
389 | 389 | then (bt > 0) | |
390 | 390 | else false) | |
391 | 391 | then toString(addressFromPublicKey(fromBase58String(bs))) | |
392 | 392 | else toBase58String(aR.caller.bytes) | |
393 | 393 | let bu = if ((bs != "")) | |
394 | 394 | then invoke(i, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(bs)))], nil) | |
395 | 395 | else unit | |
396 | 396 | if ((bu == bu)) | |
397 | 397 | then $Tuple4(toBase58String(aR.transactionId), P, lastBlock.timestamp, (bt > 0)) | |
398 | 398 | else throw("Strict value is not equal to itself.") | |
399 | 399 | } | |
400 | 400 | ||
401 | 401 | ||
402 | 402 | func bv (aR) = if (!(w)) | |
403 | 403 | then throw(x) | |
404 | 404 | else $Tuple3(toBase58String(aR.transactionId), toBase58String(aR.caller.bytes), lastBlock.timestamp) | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | func bw (aR,R,bx,by,bz) = { | |
408 | 408 | let bA = bv(aR) | |
409 | 409 | let bB = bA._1 | |
410 | 410 | let P = bA._2 | |
411 | 411 | let bC = bA._3 | |
412 | 412 | let bD = if (if (if ((P == bx)) | |
413 | 413 | then (bz != "") | |
414 | 414 | else false) | |
415 | 415 | then (by != "") | |
416 | 416 | else false) | |
417 | 417 | then true | |
418 | 418 | else false | |
419 | 419 | let bE = p(aj(P, R)) | |
420 | 420 | if (if (if ((bE != 0)) | |
421 | 421 | then (height >= bE) | |
422 | 422 | else false) | |
423 | 423 | then !(bD) | |
424 | 424 | else false) | |
425 | 425 | then throw("Sale ended.") | |
426 | 426 | else { | |
427 | 427 | let bF = (P == bx) | |
428 | 428 | let bG = p("total_nft_issued") | |
429 | 429 | let F = b(Y(bx, R)) | |
430 | 430 | let bH = b(S(bx, R)) | |
431 | 431 | if ((bH == "")) | |
432 | 432 | then throw("Art doesn't exist") | |
433 | 433 | else { | |
434 | 434 | let bI = r(aa(bx, R)) | |
435 | 435 | let bJ = p(Z(bx, R)) | |
436 | 436 | let bc = if (bF) | |
437 | 437 | then (C * 2) | |
438 | 438 | else p(ai(bx, R)) | |
439 | 439 | let bb = if (bF) | |
440 | 440 | then toBase58String(j) | |
441 | 441 | else b(ak(bx, R)) | |
442 | 442 | let bK = p(X(bx, R)) | |
443 | 443 | if (if (if (!(bD)) | |
444 | 444 | then !(bF) | |
445 | 445 | else false) | |
446 | 446 | then if (if ((0 >= bc)) | |
447 | 447 | then true | |
448 | 448 | else !(bI)) | |
449 | 449 | then true | |
450 | 450 | else (0 >= bK) | |
451 | 451 | else false) | |
452 | 452 | then throw("Art not for sale") | |
453 | 453 | else if (if (if (!(bD)) | |
454 | 454 | then bF | |
455 | 455 | else false) | |
456 | 456 | then (0 >= bK) | |
457 | 457 | else false) | |
458 | 458 | then throw("Max issuable not set") | |
459 | 459 | else { | |
460 | 460 | let aP = aF(bx) | |
461 | 461 | if (if (bD) | |
462 | 462 | then (aP != "") | |
463 | 463 | else false) | |
464 | 464 | then throw(aP) | |
465 | 465 | else { | |
466 | 466 | let bm = ((((((("bid_" + R) + "_") + bx) + "_") + bz) + "_") + by) | |
467 | 467 | let bL = if (bD) | |
468 | 468 | then bl(bm) | |
469 | 469 | else ba(aR, bb, bc) | |
470 | 470 | let aT = bL._1 | |
471 | 471 | let aW = bL._2 | |
472 | 472 | let bM = valueOrElse(getString(h, am(bx)), g) | |
473 | 473 | let bN = valueOrElse(getInteger(h, ao(bx)), 0) | |
474 | 474 | let bO = q(bx) | |
475 | 475 | let bP = if ((bO > height)) | |
476 | 476 | then 0 | |
477 | 477 | else if ((aW == j)) | |
478 | 478 | then s | |
479 | 479 | else t | |
480 | 480 | let bQ = fraction(aT, bP, 100) | |
481 | 481 | let bR = if (if (if ((bM != g)) | |
482 | 482 | then (bN > 0) | |
483 | 483 | else false) | |
484 | 484 | then (height > bO) | |
485 | 485 | else false) | |
486 | 486 | then fraction(aT, bN, 100) | |
487 | 487 | else 0 | |
488 | 488 | let bS = (aT - bQ) | |
489 | 489 | if ((bJ == bK)) | |
490 | 490 | then throw("Art sold out") | |
491 | 491 | else { | |
492 | 492 | let bT = (bJ + 1) | |
493 | 493 | let bU = ((((((((((("Creator: " + bx) + ", | |
494 | 494 | ArtID: ") + R) + ", | |
495 | 495 | SignID: ") + F) + ", | |
496 | 496 | Artwork name: ") + bH) + ", | |
497 | 497 | Issue: ") + toString(bT)) + "/") + toString(bK)) | |
498 | 498 | let bV = Issue(("SA_" + toString((bG + 1))), bU, 1, 0, false) | |
499 | 499 | let bW = calculateAssetId(bV) | |
500 | 500 | let bX = if (if ((bT == bK)) | |
501 | 501 | then true | |
502 | 502 | else !(bI)) | |
503 | 503 | then false | |
504 | 504 | else true | |
505 | 505 | let bY = if (if (if ((P == bx)) | |
506 | 506 | then (bz != "") | |
507 | 507 | else false) | |
508 | 508 | then (by != "") | |
509 | 509 | else false) | |
510 | 510 | then addressFromStringValue(bz) | |
511 | 511 | else aR.caller | |
512 | 512 | let bZ = if (!(isDefined(aW))) | |
513 | 513 | then "WAVES" | |
514 | 514 | else toBase58String(value(aW)) | |
515 | 515 | let bn = b((bm + "_OPEN")) | |
516 | 516 | let ca = DeleteEntry((bm + "_OPEN")) | |
517 | 517 | let cb = StringEntry((bm + "_CLOSED"), ((bn + "_") + toString(bC))) | |
518 | 518 | let cc = ((((((("art_sold_" + toString(bT)) + "_of_") + toString(bK)) + "_") + R) + "_") + bx) | |
519 | 519 | let cd = if (!(bD)) | |
520 | 520 | then ((((((((((P + "_") + toString(bC)) + "_") + bB) + "_") + toString(bc)) + "_") + bb) + "_") + toBase58String(bW)) | |
521 | 521 | else ((((((((((toString(bY) + "_") + toString(bC)) + "_") + bB) + "_") + toString(aT)) + "_") + bZ) + "_") + toBase58String(bW)) | |
522 | 522 | let ce = StringEntry(cc, cd) | |
523 | 523 | let cf = if ((bR != 0)) | |
524 | 524 | then [ScriptTransfer(Address(fromBase58String(g)), (bQ - bR), aW), ScriptTransfer(Address(fromBase58String(bM)), bR, aW)] | |
525 | 525 | else [ScriptTransfer(Address(fromBase58String(g)), bQ, aW)] | |
526 | 526 | let cg = ([IntegerEntry(Z(bx, R), bT), StringEntry(("nft_" + toBase58String(bW)), cc), IntegerEntry("total_nft_issued", (bG + 1)), IntegerEntry(aj(bx, R), 0), BooleanEntry(aa(bx, R), bX), bV, ScriptTransfer(Address(fromBase58String(bx)), bS, aW), ScriptTransfer(bY, 1, bW)] ++ cf) | |
527 | 527 | if (bD) | |
528 | 528 | then [ce, cb, ca] :: cg | |
529 | 529 | else ce :: cg | |
530 | 530 | } | |
531 | 531 | } | |
532 | 532 | } | |
533 | 533 | } | |
534 | 534 | } | |
535 | 535 | } | |
536 | 536 | ||
537 | 537 | ||
538 | 538 | func ch (ci) = { | |
539 | 539 | let I = ci | |
540 | 540 | if ($isInstanceOf(I, "String")) | |
541 | 541 | then { | |
542 | 542 | let cj = I | |
543 | 543 | cj | |
544 | 544 | } | |
545 | 545 | else throw("Sponsored Public Key String expected") | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 | ||
549 | 549 | @Callable(ck) | |
550 | 550 | func setConf (c,cl) = { | |
551 | 551 | let P = toString(ck.caller) | |
552 | 552 | if (containsElement([n, toString(this)], P)) | |
553 | 553 | then if (contains(c, "conf_")) | |
554 | 554 | then [StringEntry(c, cl)] | |
555 | 555 | else throw("Entries starting with conf_ only") | |
556 | 556 | else throw("You are not allowed to change this") | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | ||
561 | 561 | @Callable(aR) | |
562 | 562 | func addArtwork (H,F,aL,aM,aN,cm,aw,aA,ax,aB,ay,cn,aO,bs) = { | |
563 | 563 | let co = br(aR, bs) | |
564 | 564 | let R = co._1 | |
565 | 565 | let P = co._2 | |
566 | 566 | let bC = co._3 | |
567 | 567 | let bt = co._4 | |
568 | 568 | if (!(M(H))) | |
569 | 569 | then throw("Hash should be 64 characters maximum") | |
570 | 570 | else { | |
571 | 571 | let cp = aH(ay, aB) | |
572 | 572 | let aJ = cp._1 | |
573 | 573 | let aK = cp._2 | |
574 | 574 | let cq = aI(P, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
575 | 575 | if ((cq != "")) | |
576 | 576 | then throw("Something went wrong!") | |
577 | 577 | else { | |
578 | 578 | let cr = (q((P + "_free_drops")) > 0) | |
579 | 579 | let cs = if (cr) | |
580 | 580 | then $Tuple2(0, F) | |
581 | 581 | else aU(aR) | |
582 | 582 | let aT = cs._1 | |
583 | 583 | let aW = cs._2 | |
584 | 584 | if (!(isDefined(aT))) | |
585 | 585 | then throw("Something went wrong") | |
586 | 586 | else { | |
587 | 587 | let ct = b(au(H, P)) | |
588 | 588 | if ((ct != "")) | |
589 | 589 | then throw("You already added it") | |
590 | 590 | else { | |
591 | 591 | let cu = b(ar(H)) | |
592 | 592 | if ((cu != "")) | |
593 | 593 | then throw("Hash already registered") | |
594 | 594 | else { | |
595 | 595 | let cv = E(F, P, H) | |
596 | 596 | if (!(cv)) | |
597 | 597 | then throw("Sign Certificate not found for this address.") | |
598 | 598 | else { | |
599 | 599 | let cw = if (cr) | |
600 | 600 | then invoke(i, "useFreeDrop", [P], nil) | |
601 | 601 | else unit | |
602 | 602 | if ((cw == cw)) | |
603 | - | then [StringEntry(ar(H), P), StringEntry(au(H, P), R), IntegerEntry(Q(P, R), bC), StringEntry(S(P, R), aL), StringEntry(T(P, R), aM), StringEntry(U(P, R), aw), StringEntry(W(P, R), ax), StringEntry(V(P, R), aA), StringEntry(ab(P, R), aK), StringEntry(ac(P, R), aJ), StringEntry(ae(P, R), cm), StringEntry(ad(P, R), aN), IntegerEntry(X(P, R), 0), StringEntry(Y(P, R), F), IntegerEntry(Z(P, R), 0), BooleanEntry(aa(P, R), false), StringEntry(as(P, F), R), StringEntry(ap(P, R), H), StringEntry(ag(P, R), cn), IntegerEntry(ah(P, R), aO), ScriptTransfer(Address(fromBase58String(g)), aT, j)] | |
603 | + | then { | |
604 | + | let cx = if (bt) | |
605 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
606 | + | else nil | |
607 | + | ([StringEntry(ar(H), P), StringEntry(au(H, P), R), IntegerEntry(Q(P, R), bC), StringEntry(S(P, R), aL), StringEntry(T(P, R), aM), StringEntry(U(P, R), aw), StringEntry(W(P, R), ax), StringEntry(V(P, R), aA), StringEntry(ab(P, R), aK), StringEntry(ac(P, R), aJ), StringEntry(ae(P, R), cm), StringEntry(ad(P, R), aN), IntegerEntry(X(P, R), 0), StringEntry(Y(P, R), F), IntegerEntry(Z(P, R), 0), BooleanEntry(aa(P, R), false), StringEntry(as(P, F), R), StringEntry(ap(P, R), H), StringEntry(ag(P, R), cn), IntegerEntry(ah(P, R), aO), ScriptTransfer(Address(fromBase58String(g)), aT, j)] ++ cx) | |
608 | + | } | |
604 | 609 | else throw("Strict value is not equal to itself.") | |
605 | 610 | } | |
606 | 611 | } | |
607 | 612 | } | |
608 | 613 | } | |
609 | 614 | } | |
610 | 615 | } | |
611 | 616 | } | |
612 | 617 | ||
613 | 618 | ||
614 | 619 | ||
615 | 620 | @Callable(aR) | |
616 | 621 | func updateArtwork (aq,aL,aM,aN,cm,aw,aA,ax,aB,ay,cn,aO,bs) = if (!(w)) | |
617 | 622 | then throw(x) | |
618 | 623 | else { | |
619 | - | let | |
620 | - | let bB = | |
621 | - | let P = | |
622 | - | let bC = | |
623 | - | let bt = | |
624 | - | let | |
625 | - | let aJ = | |
626 | - | let aK = | |
624 | + | let cy = br(aR, bs) | |
625 | + | let bB = cy._1 | |
626 | + | let P = cy._2 | |
627 | + | let bC = cy._3 | |
628 | + | let bt = cy._4 | |
629 | + | let cz = aH(ay, aB) | |
630 | + | let aJ = cz._1 | |
631 | + | let aK = cz._2 | |
627 | 632 | let cq = aI(P, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
628 | 633 | if ((cq != "")) | |
629 | 634 | then throw("Something went wrong!") | |
630 | 635 | else { | |
631 | 636 | let ct = b(S(P, aq)) | |
632 | 637 | if ((ct == "")) | |
633 | 638 | then throw("Entry not found") | |
634 | 639 | else { | |
635 | - | let | |
636 | - | if (( | |
640 | + | let cA = b(al(P, aq)) | |
641 | + | if ((cA == "ILLEGAL")) | |
637 | 642 | then throw("Cannot update ILLEGAL artwork") | |
638 | 643 | else if (!(aX(P, aq))) | |
639 | - | then [StringEntry(S(P, aq), aL), StringEntry(T(P, aq), aM), StringEntry(U(P, aq), aw), StringEntry(W(P, aq), ax), StringEntry(V(P, aq), aA), StringEntry(ac(P, aq), aJ), StringEntry(ab(P, aq), aK), StringEntry(ad(P, aq), aN), StringEntry(ae(P, aq), cm), StringEntry(ag(P, aq), cn), IntegerEntry(ah(P, aq), aO)] | |
644 | + | then { | |
645 | + | let cx = if (bt) | |
646 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
647 | + | else nil | |
648 | + | ([StringEntry(S(P, aq), aL), StringEntry(T(P, aq), aM), StringEntry(U(P, aq), aw), StringEntry(W(P, aq), ax), StringEntry(V(P, aq), aA), StringEntry(ac(P, aq), aJ), StringEntry(ab(P, aq), aK), StringEntry(ad(P, aq), aN), StringEntry(ae(P, aq), cm), StringEntry(ag(P, aq), cn), IntegerEntry(ah(P, aq), aO)] ++ cx) | |
649 | + | } | |
640 | 650 | else throw("Already minted") | |
641 | 651 | } | |
642 | 652 | } | |
643 | 653 | } | |
644 | 654 | ||
645 | 655 | ||
646 | 656 | ||
647 | 657 | @Callable(aR) | |
648 | - | func flagArtwork (R,cA, | |
649 | - | let | |
650 | - | let bB = | |
651 | - | let P = | |
658 | + | func flagArtwork (R,cB,cA,cC) = { | |
659 | + | let cD = bv(aR) | |
660 | + | let bB = cD._1 | |
661 | + | let P = cD._2 | |
652 | 662 | if (containsElement([n, toString(this)], P)) | |
653 | - | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], | |
654 | - | then [StringEntry(al( | |
655 | - | else throw(("Unknow status " + | |
663 | + | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cA)) | |
664 | + | then [StringEntry(al(cB, R), cA), StringEntry(af(cB, R), cC)] | |
665 | + | else throw(("Unknow status " + cA)) | |
656 | 666 | else throw("You are not allowed") | |
657 | 667 | } | |
658 | 668 | ||
659 | 669 | ||
660 | 670 | ||
661 | 671 | @Callable(aR) | |
662 | - | func deleteArtwork (R, | |
663 | - | let | |
664 | - | let bB = | |
665 | - | let P = | |
672 | + | func deleteArtwork (R,cB) = { | |
673 | + | let cE = bv(aR) | |
674 | + | let bB = cE._1 | |
675 | + | let P = cE._2 | |
666 | 676 | let aY = if (containsElement([n, toString(this)], P)) | |
667 | - | then | |
677 | + | then cB | |
668 | 678 | else P | |
669 | 679 | let ct = valueOrErrorMessage(b(S(aY, R)), "No art matching for this address") | |
670 | 680 | if ((ct == "")) | |
671 | 681 | then throw("No art matching for this address") | |
672 | 682 | else { | |
673 | 683 | let H = b(ap(aY, R)) | |
674 | 684 | if ((H == "")) | |
675 | 685 | then throw("No art hash matching for this address") | |
676 | 686 | else { | |
677 | 687 | let F = b(Y(aY, R)) | |
678 | 688 | if ((F == "")) | |
679 | 689 | then throw("No SIGN ID matching") | |
680 | 690 | else { | |
681 | - | let | |
691 | + | let cF = [DeleteEntry(Q(aY, R)), DeleteEntry(S(aY, R)), DeleteEntry(T(aY, R)), DeleteEntry(U(aY, R)), DeleteEntry(W(aY, R)), DeleteEntry(V(aY, R)), DeleteEntry(ab(aY, R)), DeleteEntry(ac(aY, R)), DeleteEntry(ae(aY, R)), DeleteEntry(ad(aY, R)), DeleteEntry(X(aY, R)), DeleteEntry(Y(aY, R)), DeleteEntry(Z(aY, R)), DeleteEntry(aa(aY, R)), DeleteEntry(al(aY, R)), DeleteEntry(ai(aY, R)), DeleteEntry(ak(aY, R)), DeleteEntry(ar(H)), DeleteEntry(as(aY, F)), DeleteEntry(au(H, aY)), DeleteEntry(aj(aY, R)), DeleteEntry(af(aY, R)), DeleteEntry(ag(aY, R)), DeleteEntry(ah(aY, R))] | |
682 | 692 | if (!(aX(aY, R))) | |
683 | 693 | then if (!(w)) | |
684 | 694 | then throw(x) | |
685 | - | else | |
695 | + | else cF | |
686 | 696 | else if (containsElement([n, toString(this)], P)) | |
687 | - | then | |
697 | + | then cF | |
688 | 698 | else throw("Art already minted, you cannot delete it") | |
689 | 699 | } | |
690 | 700 | } | |
691 | 701 | } | |
692 | 702 | } | |
693 | 703 | ||
694 | 704 | ||
695 | 705 | ||
696 | 706 | @Callable(aR) | |
697 | - | func sellArtwork (R,bg,cF,aW,bE,bs) = { | |
698 | - | let cG = br(aR, bs) | |
699 | - | let bB = cG._1 | |
700 | - | let P = cG._2 | |
701 | - | let bt = cG._3 | |
707 | + | func sellArtwork (R,bg,cG,aW,bE,bs) = { | |
708 | + | let cH = br(aR, bs) | |
709 | + | let bB = cH._1 | |
710 | + | let P = cH._2 | |
711 | + | let bC = cH._3 | |
712 | + | let bt = cH._4 | |
702 | 713 | let bH = b(S(P, R)) | |
703 | 714 | if ((bH == "")) | |
704 | 715 | then throw("This art doesn't match your account") | |
705 | 716 | else { | |
706 | - | let | |
707 | - | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], | |
717 | + | let cA = b(al(P, R)) | |
718 | + | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cA)) | |
708 | 719 | then throw("Flagged artwork") | |
709 | 720 | else { | |
710 | - | let | |
721 | + | let cI = p(("current_bidamount_" + R)) | |
711 | 722 | if ((0 > bE)) | |
712 | 723 | then throw("Negative end") | |
713 | 724 | else if (if ((bE > 0)) | |
714 | - | then if (( | |
725 | + | then if ((cG != 1)) | |
715 | 726 | then true | |
716 | 727 | else (bg != 0) | |
717 | 728 | else false) | |
718 | 729 | then throw("Timed offer only allowed for unique edition and offer only") | |
719 | 730 | else { | |
720 | - | let | |
731 | + | let cJ = if ((bE == 0)) | |
721 | 732 | then 0 | |
722 | 733 | else height | |
723 | 734 | if (!(be(aW))) | |
724 | 735 | then throw("Something went wrong!") | |
725 | 736 | else if (!(bf(aW, bg))) | |
726 | 737 | then throw("Something went wrong!") | |
727 | 738 | else { | |
728 | 739 | let aP = aF(P) | |
729 | 740 | if ((aP != "")) | |
730 | 741 | then throw(aP) | |
731 | 742 | else { | |
732 | 743 | let bJ = p(Z(P, R)) | |
733 | 744 | let bK = p(X(P, R)) | |
734 | - | if (( | |
745 | + | if ((cG > 100)) | |
735 | 746 | then throw("100 editions max per artwork") | |
736 | 747 | else if (if ((bJ != 0)) | |
737 | 748 | then (bJ == bK) | |
738 | 749 | else false) | |
739 | 750 | then throw("Max edition reached.") | |
740 | 751 | else if (if ((bJ > 0)) | |
741 | - | then (bK != | |
752 | + | then (bK != cG) | |
742 | 753 | else false) | |
743 | 754 | then throw("Cannot change maximum issuable anymore") | |
744 | - | else if (if (( | |
745 | - | then (bK != | |
755 | + | else if (if ((cI > 0)) | |
756 | + | then (bK != cG) | |
746 | 757 | else false) | |
747 | 758 | then throw("Cannot change maximum issuable with active orders") | |
748 | 759 | else { | |
749 | 760 | let bX = if (if ((bg > 0)) | |
750 | - | then ( | |
761 | + | then (cG > 0) | |
751 | 762 | else false) | |
752 | 763 | then true | |
753 | 764 | else false | |
754 | - | [BooleanEntry(aa(P, R), bX), IntegerEntry(ai(P, R), bg), IntegerEntry(X(P, R), cF), StringEntry(ak(P, R), aW), IntegerEntry(aj(P, R), (cI + bE))] | |
765 | + | let cx = if (bt) | |
766 | + | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
767 | + | else nil | |
768 | + | ([BooleanEntry(aa(P, R), bX), IntegerEntry(ai(P, R), bg), IntegerEntry(X(P, R), cG), StringEntry(ak(P, R), aW), IntegerEntry(aj(P, R), (cJ + bE))] ++ cx) | |
755 | 769 | } | |
756 | 770 | } | |
757 | 771 | } | |
758 | 772 | } | |
759 | 773 | } | |
760 | 774 | } | |
761 | 775 | } | |
762 | 776 | ||
763 | 777 | ||
764 | 778 | ||
765 | 779 | @Callable(aR) | |
766 | 780 | func buyArtwork (R,bx) = bw(aR, R, bx, "", "") | |
767 | 781 | ||
768 | 782 | ||
769 | 783 | ||
770 | 784 | @Callable(aR) | |
771 | 785 | func setBid (R,bx) = { | |
772 | - | let | |
773 | - | let bB = | |
774 | - | let P = | |
775 | - | let bC = | |
776 | - | let | |
777 | - | let aS = | |
778 | - | let aT = | |
786 | + | let cK = bv(aR) | |
787 | + | let bB = cK._1 | |
788 | + | let P = cK._2 | |
789 | + | let bC = cK._3 | |
790 | + | let cL = aQ(aR) | |
791 | + | let aS = cL._1 | |
792 | + | let aT = cL._2 | |
779 | 793 | let aW = if (!(isDefined(aS.assetId))) | |
780 | 794 | then "WAVES" | |
781 | 795 | else toBase58String(value(aS.assetId)) | |
782 | 796 | let bE = p(aj(bx, R)) | |
783 | 797 | if (if ((bE != 0)) | |
784 | 798 | then (height >= bE) | |
785 | 799 | else false) | |
786 | 800 | then throw("Sale ended.") | |
787 | 801 | else { | |
788 | - | let | |
802 | + | let cI = p(("current_bidamount_" + R)) | |
789 | 803 | if (!(be(aW))) | |
790 | 804 | then throw("asset not accepted") | |
791 | 805 | else if (!(bf(aW, aT))) | |
792 | 806 | then throw("Wrong min sell") | |
793 | 807 | else { | |
794 | 808 | let bJ = p(Z(bx, R)) | |
795 | 809 | let bK = p(X(bx, R)) | |
796 | 810 | if ((0 >= bK)) | |
797 | 811 | then throw("No max edition set for this artwork") | |
798 | 812 | else if ((bJ >= bK)) | |
799 | 813 | then throw("Sold out, you cannot bid") | |
800 | - | else [StringEntry((((((((("bid_" + R) + "_") + bx) + "_") + P) + "_") + bB) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), ( | |
814 | + | else [StringEntry((((((((("bid_" + R) + "_") + bx) + "_") + P) + "_") + bB) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), (cI + 1))] | |
801 | 815 | } | |
802 | 816 | } | |
803 | 817 | } | |
804 | 818 | ||
805 | 819 | ||
806 | 820 | ||
807 | 821 | @Callable(aR) | |
808 | 822 | func acceptBid (R,bx,by,bz) = { | |
809 | - | let | |
810 | - | let bB = | |
811 | - | let P = | |
812 | - | let bC = | |
823 | + | let cM = bv(aR) | |
824 | + | let bB = cM._1 | |
825 | + | let P = cM._2 | |
826 | + | let bC = cM._3 | |
813 | 827 | if ((P != bx)) | |
814 | 828 | then throw("You cannot do this action") | |
815 | 829 | else bw(aR, R, bx, by, bz) | |
816 | 830 | } | |
817 | 831 | ||
818 | 832 | ||
819 | 833 | ||
820 | 834 | @Callable(aR) | |
821 | 835 | func cancelBid (R,bx,by,bz) = { | |
822 | - | let | |
823 | - | let bB = | |
824 | - | let P = | |
825 | - | let bC = | |
836 | + | let cN = bv(aR) | |
837 | + | let bB = cN._1 | |
838 | + | let P = cN._2 | |
839 | + | let bC = cN._3 | |
826 | 840 | if (if ((P != bz)) | |
827 | 841 | then (P != bx) | |
828 | 842 | else false) | |
829 | 843 | then throw("You cannot do this action") | |
830 | 844 | else { | |
831 | - | let | |
845 | + | let cO = if ((P == bx)) | |
832 | 846 | then bz | |
833 | 847 | else P | |
834 | - | let | |
848 | + | let cI = p(("current_bidamount_" + R)) | |
835 | 849 | let bm = ((((((("bid_" + R) + "_") + bx) + "_") + bz) + "_") + by) | |
836 | 850 | let bn = b((bm + "_OPEN")) | |
837 | 851 | if ((bn == "")) | |
838 | 852 | then throw("Bid not found") | |
839 | 853 | else { | |
840 | 854 | let bo = split(bn, "_") | |
841 | 855 | let aW = bk(bo[0]) | |
842 | - | let | |
843 | - | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + | |
856 | + | let cP = "CANCELED" | |
857 | + | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + cP), ((bn + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + R), (cI - 1)), ScriptTransfer(Address(fromBase58String(cO)), parseIntValue(bo[1]), aW)] | |
844 | 858 | } | |
845 | 859 | } | |
846 | 860 | } | |
847 | 861 | ||
848 | 862 | ||
849 | - | @Verifier( | |
850 | - | func | |
851 | - | let I = | |
863 | + | @Verifier(cQ) | |
864 | + | func cR () = { | |
865 | + | let I = cQ | |
852 | 866 | if ($isInstanceOf(I, "InvokeScriptTransaction")) | |
853 | 867 | then { | |
854 | - | let | |
855 | - | if (if (( | |
856 | - | then ( | |
868 | + | let cS = I | |
869 | + | if (if ((cS.function == "addArtwork")) | |
870 | + | then (cS.dApp == this) | |
857 | 871 | else false) | |
858 | - | then sigVerify( | |
859 | - | else if (if (( | |
860 | - | then ( | |
872 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[13]))) | |
873 | + | else if (if ((cS.function == "updateArtwork")) | |
874 | + | then (cS.dApp == this) | |
861 | 875 | else false) | |
862 | - | then sigVerify( | |
863 | - | else if (if (( | |
864 | - | then ( | |
876 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[12]))) | |
877 | + | else if (if ((cS.function == "sellArtwork")) | |
878 | + | then (cS.dApp == this) | |
865 | 879 | else false) | |
866 | - | then sigVerify( | |
867 | - | else sigVerify( | |
880 | + | then sigVerify(cQ.bodyBytes, cQ.proofs[0], fromBase58String(ch(cS.args[5]))) | |
881 | + | else sigVerify(cQ.bodyBytes, cQ.proofs[0], cQ.senderPublicKey) | |
868 | 882 | } | |
869 | - | else sigVerify( | |
883 | + | else sigVerify(cQ.bodyBytes, cQ.proofs[0], cQ.senderPublicKey) | |
870 | 884 | } | |
871 | 885 |
github/deemru/w8io/169f3d6 194.16 ms ◑