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 | |
---|---|---|---|
591 | 591 | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
592 | 592 | else unit | |
593 | 593 | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
594 | - | then [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] | |
594 | + | then { | |
595 | + | let txToCaller = if (isSponsored) | |
596 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
597 | + | else nil | |
598 | + | ([StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] ++ txToCaller) | |
599 | + | } | |
595 | 600 | else throw("Strict value is not equal to itself.") | |
596 | 601 | } | |
597 | 602 | } | |
607 | 612 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
608 | 613 | then throw(maintenanceMSG) | |
609 | 614 | else { | |
610 | - | let $ | |
611 | - | let id = $ | |
612 | - | let caller = $ | |
613 | - | let date = $ | |
614 | - | let isSponsored = $ | |
615 | - | let $ | |
616 | - | let licenceCID = $ | |
617 | - | let licenceHash = $ | |
615 | + | let $t02254122611 = idCallerDateSponsored(i, pubKey) | |
616 | + | let id = $t02254122611._1 | |
617 | + | let caller = $t02254122611._2 | |
618 | + | let date = $t02254122611._3 | |
619 | + | let isSponsored = $t02254122611._4 | |
620 | + | let $t02262122690 = setLIcence(cidLicence, sha256Licence) | |
621 | + | let licenceCID = $t02262122690._1 | |
622 | + | let licenceHash = $t02262122690._2 | |
618 | 623 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
619 | 624 | if ((validateArtwork != "")) | |
620 | 625 | then throw("Something went wrong!") | |
627 | 632 | if ((flag == "ILLEGAL")) | |
628 | 633 | then throw("Cannot update ILLEGAL artwork") | |
629 | 634 | else if (!(isArtMinted(caller, txid))) | |
630 | - | then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] | |
635 | + | then { | |
636 | + | let txToCaller = if (isSponsored) | |
637 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
638 | + | else nil | |
639 | + | ([StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] ++ txToCaller) | |
640 | + | } | |
631 | 641 | else throw("Already minted") | |
632 | 642 | } | |
633 | 643 | } | |
637 | 647 | ||
638 | 648 | @Callable(i) | |
639 | 649 | func flagArtwork (artId,addr,flag,note) = { | |
640 | - | let $ | |
641 | - | let id = $ | |
642 | - | let caller = $ | |
650 | + | let $t02431724351 = idCallerDate(i) | |
651 | + | let id = $t02431724351._1 | |
652 | + | let caller = $t02431724351._2 | |
643 | 653 | if (containsElement([chris, toString(this)], caller)) | |
644 | 654 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
645 | 655 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
651 | 661 | ||
652 | 662 | @Callable(i) | |
653 | 663 | func deleteArtwork (artId,addr) = { | |
654 | - | let $ | |
655 | - | let id = $ | |
656 | - | let caller = $ | |
664 | + | let $t02478724821 = idCallerDate(i) | |
665 | + | let id = $t02478724821._1 | |
666 | + | let caller = $t02478724821._2 | |
657 | 667 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
658 | 668 | then addr | |
659 | 669 | else caller | |
686 | 696 | ||
687 | 697 | @Callable(i) | |
688 | 698 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
689 | - | let $t02741527479 = idCallerDateSponsored(i, pubKey) | |
690 | - | let id = $t02741527479._1 | |
691 | - | let caller = $t02741527479._2 | |
692 | - | let isSponsored = $t02741527479._3 | |
699 | + | let $t02765727727 = idCallerDateSponsored(i, pubKey) | |
700 | + | let id = $t02765727727._1 | |
701 | + | let caller = $t02765727727._2 | |
702 | + | let date = $t02765727727._3 | |
703 | + | let isSponsored = $t02765727727._4 | |
693 | 704 | let artworkName = getStringByKey(keyName(caller, artId)) | |
694 | 705 | if ((artworkName == "")) | |
695 | 706 | then throw("This art doesn't match your account") | |
742 | 753 | else false) | |
743 | 754 | then true | |
744 | 755 | else false | |
745 | - | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] | |
756 | + | let txToCaller = if (isSponsored) | |
757 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
758 | + | else nil | |
759 | + | ([BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] ++ txToCaller) | |
746 | 760 | } | |
747 | 761 | } | |
748 | 762 | } | |
760 | 774 | ||
761 | 775 | @Callable(i) | |
762 | 776 | func setBid (artId,issuer) = { | |
763 | - | let $ | |
764 | - | let id = $ | |
765 | - | let caller = $ | |
766 | - | let date = $ | |
767 | - | let $ | |
768 | - | let payment = $ | |
769 | - | let amount = $ | |
777 | + | let $t03010530145 = idCallerDate(i) | |
778 | + | let id = $t03010530145._1 | |
779 | + | let caller = $t03010530145._2 | |
780 | + | let date = $t03010530145._3 | |
781 | + | let $t03015030186 = isPayment(i) | |
782 | + | let payment = $t03015030186._1 | |
783 | + | let amount = $t03015030186._2 | |
770 | 784 | let assetId = if (!(isDefined(payment.assetId))) | |
771 | 785 | then "WAVES" | |
772 | 786 | else toBase58String(value(payment.assetId)) | |
797 | 811 | ||
798 | 812 | @Callable(i) | |
799 | 813 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
800 | - | let $ | |
801 | - | let id = $ | |
802 | - | let caller = $ | |
803 | - | let date = $ | |
814 | + | let $t03134431384 = idCallerDate(i) | |
815 | + | let id = $t03134431384._1 | |
816 | + | let caller = $t03134431384._2 | |
817 | + | let date = $t03134431384._3 | |
804 | 818 | if ((caller != issuer)) | |
805 | 819 | then throw("You cannot do this action") | |
806 | 820 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
810 | 824 | ||
811 | 825 | @Callable(i) | |
812 | 826 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
813 | - | let $ | |
814 | - | let id = $ | |
815 | - | let caller = $ | |
816 | - | let date = $ | |
827 | + | let $t03161031671 = idCallerDate(i) | |
828 | + | let id = $t03161031671._1 | |
829 | + | let caller = $t03161031671._2 | |
830 | + | let date = $t03161031671._3 | |
817 | 831 | if (if ((caller != bidOwner)) | |
818 | 832 | then (caller != issuer) | |
819 | 833 | else false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let VERSION = "1.1.10" | |
5 | 5 | ||
6 | 6 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let unitTest = false | |
10 | 10 | ||
11 | 11 | let oracleFee = value(addressFromString(getStringByKey("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let signDapp = value(addressFromString(getStringByKey("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let feeReceiver = getStringByKey("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let userDapp = if (unitTest) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(getStringByKey("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let whitelistDapp = value(addressFromString(getStringByKey("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | 23 | let signAssetId = fromBase58String(getStringByKey("conf_accepted_asset_SIGN")) | |
24 | 24 | ||
25 | 25 | let usdnAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDN")) | |
26 | 26 | ||
27 | 27 | let usdtAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDT")) | |
28 | 28 | ||
29 | 29 | let wavesAssetId = base58'' | |
30 | 30 | ||
31 | 31 | let chris = getStringByKey("conf_admin_1") | |
32 | 32 | ||
33 | 33 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let signCut = 7 | |
46 | 46 | ||
47 | 47 | let usdnWaveCut = 10 | |
48 | 48 | ||
49 | 49 | let defaultLicence = getStringByKey("conf_default_licence") | |
50 | 50 | ||
51 | 51 | let defaultHashLicence = getStringByKey("conf_default_licence_hash") | |
52 | 52 | ||
53 | 53 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
54 | 54 | ||
55 | 55 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
56 | 56 | ||
57 | 57 | let userSuspended = "SUSPENDED" | |
58 | 58 | ||
59 | 59 | let userRemoved = "REMOVED" | |
60 | 60 | ||
61 | 61 | let userUnregistered = "UNREGISTERED" | |
62 | 62 | ||
63 | 63 | let userAllowed = "ALLOWED" | |
64 | 64 | ||
65 | 65 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
66 | 66 | ||
67 | 67 | func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | 71 | case a: String => | |
72 | 72 | if (contains(a, sha256Hash)) | |
73 | 73 | then true | |
74 | 74 | else false | |
75 | 75 | case _ => | |
76 | 76 | false | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func validateCID (cid) = if (contains(cid, "/")) | |
81 | 81 | then if (if ((76 > size(cid))) | |
82 | 82 | then (size(split(cid, "/")[0]) == 59) | |
83 | 83 | else false) | |
84 | 84 | then (16 > size(split(cid, "/")[1])) | |
85 | 85 | else false | |
86 | 86 | else false | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func validateHash (hash) = (size(hash) == 64) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyUserStatus (caller) = ("user_status_" + caller) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyPrimaryShare (artistAddr) = ("artist_agent_primary_" + artistAddr) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
177 | 177 | then throw("Wrong Display CID") | |
178 | 178 | else if (!(validateCID(cidExport))) | |
179 | 179 | then throw("Wrong Export CID") | |
180 | 180 | else if (if ((cidLicence != "")) | |
181 | 181 | then !(validateCID(cidLicence)) | |
182 | 182 | else false) | |
183 | 183 | then throw("Wrong Licence CID") | |
184 | 184 | else true | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
188 | 188 | then throw("Export Hash 64 char. max") | |
189 | 189 | else if (!(validateHash(sha256Licence))) | |
190 | 190 | then throw("Licence Hash 64 char. max") | |
191 | 191 | else true | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func validateString (str,max) = if ((size(str) == 0)) | |
195 | 195 | then throw("Field cannot be is empty") | |
196 | 196 | else if ((size(str) > max)) | |
197 | 197 | then throw((str + " is too long")) | |
198 | 198 | else true | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func validateUser (caller) = { | |
202 | 202 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
203 | 203 | if (if ((userStatus == userUnregistered)) | |
204 | 204 | then true | |
205 | 205 | else (userStatus == userAllowed)) | |
206 | 206 | then "Register this account first with \"Account\" tab" | |
207 | 207 | else if ((userStatus == userSuspended)) | |
208 | 208 | then "Account suspended" | |
209 | 209 | else if ((userStatus == userRemoved)) | |
210 | 210 | then "Account removed" | |
211 | 211 | else "" | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func setLIcence (cidLicence,sha256Licence) = { | |
216 | 216 | let cid = if ((size(cidLicence) == 0)) | |
217 | 217 | then defaultLicence | |
218 | 218 | else cidLicence | |
219 | 219 | let hash = if ((size(sha256Licence) == 0)) | |
220 | 220 | then defaultHashLicence | |
221 | 221 | else sha256Licence | |
222 | 222 | $Tuple2(cid, hash) | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = { | |
227 | 227 | let checkUser = validateUser(caller) | |
228 | 228 | if ((checkUser != "")) | |
229 | 229 | then throw(checkUser) | |
230 | 230 | else if ((size(cidDisplay) == 0)) | |
231 | 231 | then throw("Display CID cannot be empty") | |
232 | 232 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
233 | 233 | then throw("Problem with CID") | |
234 | 234 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
235 | 235 | then throw("Problem with Hashes") | |
236 | 236 | else if (!(validateString(name, 100))) | |
237 | 237 | then throw("100 Char. max name") | |
238 | 238 | else if (!(validateString(description, 1000))) | |
239 | 239 | then throw("1000 Char. max description") | |
240 | 240 | else if (if ((0 > royalties)) | |
241 | 241 | then true | |
242 | 242 | else (royalties > 1000)) | |
243 | 243 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
244 | 244 | else if ((size(split(tags, ",")) > 5)) | |
245 | 245 | then throw("5 tags max.") | |
246 | 246 | else "" | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func isPayment (i) = if ((size(i.payments) == 0)) | |
251 | 251 | then throw("No payment attached") | |
252 | 252 | else { | |
253 | 253 | let payment = value(i.payments[0]) | |
254 | 254 | let amount = value(payment.amount) | |
255 | 255 | $Tuple2(payment, amount) | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func validatePayment (i) = { | |
260 | 260 | let $t089078943 = isPayment(i) | |
261 | 261 | let payment = $t089078943._1 | |
262 | 262 | let amount = $t089078943._2 | |
263 | 263 | let assetId = if (if (isDefined(payment.assetId)) | |
264 | 264 | then (payment.assetId == signAssetId) | |
265 | 265 | else false) | |
266 | 266 | then payment.assetId | |
267 | 267 | else throw("Only SIGN token accepted as transaction fee") | |
268 | 268 | if ((amount != currentCertificationPrice)) | |
269 | 269 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
270 | 270 | else $Tuple2(amount, assetId) | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
275 | 275 | case b: Int => | |
276 | 276 | if ((b != 0)) | |
277 | 277 | then true | |
278 | 278 | else false | |
279 | 279 | case _ => | |
280 | 280 | false | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
285 | 285 | let $t095319567 = isPayment(i) | |
286 | 286 | let payment = $t095319567._1 | |
287 | 287 | let amount = $t095319567._2 | |
288 | 288 | let assetId = if (!(isDefined(payment.assetId))) | |
289 | 289 | then unit | |
290 | 290 | else if (if ((size(priceAssetId) > 0)) | |
291 | 291 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
292 | 292 | else false) | |
293 | 293 | then payment.assetId | |
294 | 294 | else throw("Wrong asset id") | |
295 | 295 | if (if ((assetId == unit)) | |
296 | 296 | then (priceAssetId != "") | |
297 | 297 | else false) | |
298 | 298 | then throw("Wrong asset id") | |
299 | 299 | else if ((artworkPrice != amount)) | |
300 | 300 | then throw("Payment don't match") | |
301 | 301 | else $Tuple2(amount, assetId) | |
302 | 302 | } | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
306 | 306 | then (assetId != toBase58String(wavesAssetId)) | |
307 | 307 | else false) | |
308 | 308 | then (assetId != "WAVES") | |
309 | 309 | else false) | |
310 | 310 | then (assetId != toBase58String(usdnAssetId)) | |
311 | 311 | else false) | |
312 | 312 | then (assetId != toBase58String(usdtAssetId)) | |
313 | 313 | else false) | |
314 | 314 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
315 | 315 | else true | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | func validateMinSell (assetId,price) = { | |
319 | 319 | let minSellWaves = if (unitTest) | |
320 | 320 | then 10 | |
321 | 321 | else getIntegerByKeyFromOracle("waves_min_sell") | |
322 | 322 | let minSellUsdn = 1000000 | |
323 | 323 | let minSellSign = if (unitTest) | |
324 | 324 | then 1 | |
325 | 325 | else (currentCertificationPrice * 2) | |
326 | 326 | if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
327 | 327 | then (minSellUsdn > price) | |
328 | 328 | else false) | |
329 | 329 | then (price != 0) | |
330 | 330 | else false) | |
331 | 331 | then true | |
332 | 332 | else if (if ((assetId == toBase58String(usdtAssetId))) | |
333 | 333 | then (minSellUsdn > price) | |
334 | 334 | else false) | |
335 | 335 | then (price != 0) | |
336 | 336 | else false) | |
337 | 337 | then true | |
338 | 338 | else if (if ((assetId == toBase58String(signAssetId))) | |
339 | 339 | then (minSellSign > price) | |
340 | 340 | else false) | |
341 | 341 | then (price != 0) | |
342 | 342 | else false) | |
343 | 343 | then true | |
344 | 344 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
345 | 345 | then true | |
346 | 346 | else (assetId == "WAVES")) | |
347 | 347 | then (minSellWaves > price) | |
348 | 348 | else false) | |
349 | 349 | then (price != 0) | |
350 | 350 | else false) | |
351 | 351 | then throw("Wrong minimum sell price") | |
352 | 352 | else true | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
357 | 357 | then unit | |
358 | 358 | else fromBase58String(assetId) | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func getPriceAssetIdFromBid (bidDataKey) = { | |
362 | 362 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
363 | 363 | if ((bidData == "")) | |
364 | 364 | then throw("Bid not found") | |
365 | 365 | else { | |
366 | 366 | let bidDataArr = split(bidData, "_") | |
367 | 367 | let bidAmount = parseIntValue(bidDataArr[1]) | |
368 | 368 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
369 | 369 | if ((0 >= bidAmount)) | |
370 | 370 | then throw("Wrong amount") | |
371 | 371 | else $Tuple2(bidAmount, bidAssetId) | |
372 | 372 | } | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
377 | 377 | then throw(maintenanceMSG) | |
378 | 378 | else { | |
379 | 379 | let isSponsored = valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0) | |
380 | 380 | let caller = if (if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
381 | 381 | then (size(i.payments) == 0) | |
382 | 382 | else false) | |
383 | 383 | then (isSponsored > 0) | |
384 | 384 | else false) | |
385 | 385 | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
386 | 386 | else toBase58String(i.caller.bytes) | |
387 | 387 | let get_sponsored_waves = if ((pubKey != "")) | |
388 | 388 | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
389 | 389 | else unit | |
390 | 390 | if ((get_sponsored_waves == get_sponsored_waves)) | |
391 | 391 | then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0)) | |
392 | 392 | else throw("Strict value is not equal to itself.") | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | func idCallerDate (i) = if (!(dappRunning)) | |
397 | 397 | then throw(maintenanceMSG) | |
398 | 398 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
402 | 402 | let $t01291912978 = idCallerDate(i) | |
403 | 403 | let id = $t01291912978._1 | |
404 | 404 | let caller = $t01291912978._2 | |
405 | 405 | let date = $t01291912978._3 | |
406 | 406 | let isBid = if (if (if ((caller == issuer)) | |
407 | 407 | then (bidOwner != "") | |
408 | 408 | else false) | |
409 | 409 | then (bidId != "") | |
410 | 410 | else false) | |
411 | 411 | then true | |
412 | 412 | else false | |
413 | 413 | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
414 | 414 | if (if (if ((blockEnd != 0)) | |
415 | 415 | then (height >= blockEnd) | |
416 | 416 | else false) | |
417 | 417 | then !(isBid) | |
418 | 418 | else false) | |
419 | 419 | then throw("Sale ended.") | |
420 | 420 | else { | |
421 | 421 | let callerIsIssuer = (caller == issuer) | |
422 | 422 | let totalNFT = getIntegerByKey("total_nft_issued") | |
423 | 423 | let signID = getStringByKey(keySignID(issuer, artId)) | |
424 | 424 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
425 | 425 | if ((artworkName == "")) | |
426 | 426 | then throw("Art doesn't exist") | |
427 | 427 | else { | |
428 | 428 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
429 | 429 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
430 | 430 | let artworkPrice = if (callerIsIssuer) | |
431 | 431 | then (currentCertificationPrice * 2) | |
432 | 432 | else getIntegerByKey(keyPrice(issuer, artId)) | |
433 | 433 | let priceAssetId = if (callerIsIssuer) | |
434 | 434 | then toBase58String(signAssetId) | |
435 | 435 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
436 | 436 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
437 | 437 | if (if (if (!(isBid)) | |
438 | 438 | then !(callerIsIssuer) | |
439 | 439 | else false) | |
440 | 440 | then if (if ((0 >= artworkPrice)) | |
441 | 441 | then true | |
442 | 442 | else !(isOnSale)) | |
443 | 443 | then true | |
444 | 444 | else (0 >= maxCanSell) | |
445 | 445 | else false) | |
446 | 446 | then throw("Art not for sale") | |
447 | 447 | else if (if (if (!(isBid)) | |
448 | 448 | then callerIsIssuer | |
449 | 449 | else false) | |
450 | 450 | then (0 >= maxCanSell) | |
451 | 451 | else false) | |
452 | 452 | then throw("Max issuable not set") | |
453 | 453 | else { | |
454 | 454 | let checkUser = validateUser(issuer) | |
455 | 455 | if (if (isBid) | |
456 | 456 | then (checkUser != "") | |
457 | 457 | else false) | |
458 | 458 | then throw(checkUser) | |
459 | 459 | else { | |
460 | 460 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
461 | 461 | let $t01468114848 = if (isBid) | |
462 | 462 | then getPriceAssetIdFromBid(bidDataKey) | |
463 | 463 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
464 | 464 | let amount = $t01468114848._1 | |
465 | 465 | let assetId = $t01468114848._2 | |
466 | 466 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
467 | 467 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0) | |
468 | 468 | let isWhitelisted = checkWhitelist(issuer) | |
469 | 469 | let cut = if ((isWhitelisted > height)) | |
470 | 470 | then 0 | |
471 | 471 | else if ((assetId == signAssetId)) | |
472 | 472 | then signCut | |
473 | 473 | else usdnWaveCut | |
474 | 474 | let amountForSign = fraction(amount, cut, 100) | |
475 | 475 | let amountForAgent = if (if (if ((agent != feeReceiver)) | |
476 | 476 | then (agentShare > 0) | |
477 | 477 | else false) | |
478 | 478 | then (height > isWhitelisted) | |
479 | 479 | else false) | |
480 | 480 | then fraction(amount, agentShare, 100) | |
481 | 481 | else 0 | |
482 | 482 | let amountForCreator = (amount - amountForSign) | |
483 | 483 | if ((amountSold == maxCanSell)) | |
484 | 484 | then throw("Art sold out") | |
485 | 485 | else { | |
486 | 486 | let newAmountSold = (amountSold + 1) | |
487 | 487 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
488 | 488 | ArtID: ") + artId) + ", | |
489 | 489 | SignID: ") + signID) + ", | |
490 | 490 | Artwork name: ") + artworkName) + ", | |
491 | 491 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
492 | 492 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
493 | 493 | let idNFT = calculateAssetId(issueNFT) | |
494 | 494 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
495 | 495 | then true | |
496 | 496 | else !(isOnSale)) | |
497 | 497 | then false | |
498 | 498 | else true | |
499 | 499 | let receiveNFT = if (if (if ((caller == issuer)) | |
500 | 500 | then (bidOwner != "") | |
501 | 501 | else false) | |
502 | 502 | then (bidId != "") | |
503 | 503 | else false) | |
504 | 504 | then addressFromStringValue(bidOwner) | |
505 | 505 | else i.caller | |
506 | 506 | let assetIdBid = if (!(isDefined(assetId))) | |
507 | 507 | then "WAVES" | |
508 | 508 | else toBase58String(value(assetId)) | |
509 | 509 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
510 | 510 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
511 | 511 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
512 | 512 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
513 | 513 | let soldValue = if (!(isBid)) | |
514 | 514 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
515 | 515 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
516 | 516 | let soldData = StringEntry(soldKey, soldValue) | |
517 | 517 | let commissions = if ((amountForAgent != 0)) | |
518 | 518 | then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)] | |
519 | 519 | else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)] | |
520 | 520 | let buyRes = ([IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] ++ commissions) | |
521 | 521 | if (isBid) | |
522 | 522 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
523 | 523 | else soldData :: buyRes | |
524 | 524 | } | |
525 | 525 | } | |
526 | 526 | } | |
527 | 527 | } | |
528 | 528 | } | |
529 | 529 | } | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | func asString (bv) = match bv { | |
533 | 533 | case bv0: String => | |
534 | 534 | bv0 | |
535 | 535 | case _ => | |
536 | 536 | throw("Sponsored Public Key String expected") | |
537 | 537 | } | |
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(invoke) | |
541 | 541 | func setConf (key,val) = { | |
542 | 542 | let caller = toString(invoke.caller) | |
543 | 543 | if (containsElement([chris, toString(this)], caller)) | |
544 | 544 | then if (contains(key, "conf_")) | |
545 | 545 | then [StringEntry(key, val)] | |
546 | 546 | else throw("Entries starting with conf_ only") | |
547 | 547 | else throw("You are not allowed to change this") | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | ||
552 | 552 | @Callable(i) | |
553 | 553 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
554 | 554 | let $t01888118954 = idCallerDateSponsored(i, pubKey) | |
555 | 555 | let artId = $t01888118954._1 | |
556 | 556 | let caller = $t01888118954._2 | |
557 | 557 | let date = $t01888118954._3 | |
558 | 558 | let isSponsored = $t01888118954._4 | |
559 | 559 | if (!(validateHash(sha256Hash))) | |
560 | 560 | then throw("Hash should be 64 characters maximum") | |
561 | 561 | else { | |
562 | 562 | let $t01905519124 = setLIcence(cidLicence, sha256Licence) | |
563 | 563 | let licenceCID = $t01905519124._1 | |
564 | 564 | let licenceHash = $t01905519124._2 | |
565 | 565 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
566 | 566 | if ((validateArtwork != "")) | |
567 | 567 | then throw("Something went wrong!") | |
568 | 568 | else { | |
569 | 569 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
570 | 570 | let $t01942319507 = if (whitelisted_drop) | |
571 | 571 | then $Tuple2(0, signID) | |
572 | 572 | else validatePayment(i) | |
573 | 573 | let amount = $t01942319507._1 | |
574 | 574 | let assetId = $t01942319507._2 | |
575 | 575 | if (!(isDefined(amount))) | |
576 | 576 | then throw("Something went wrong") | |
577 | 577 | else { | |
578 | 578 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
579 | 579 | if ((entryExist != "")) | |
580 | 580 | then throw("You already added it") | |
581 | 581 | else { | |
582 | 582 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
583 | 583 | if ((hashExist != "")) | |
584 | 584 | then throw("Hash already registered") | |
585 | 585 | else { | |
586 | 586 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
587 | 587 | if (!(isSignCertified)) | |
588 | 588 | then throw("Sign Certificate not found for this address.") | |
589 | 589 | else { | |
590 | 590 | let decrease_whitelist_drop = if (whitelisted_drop) | |
591 | 591 | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
592 | 592 | else unit | |
593 | 593 | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
594 | - | then [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] | |
594 | + | then { | |
595 | + | let txToCaller = if (isSponsored) | |
596 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
597 | + | else nil | |
598 | + | ([StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] ++ txToCaller) | |
599 | + | } | |
595 | 600 | else throw("Strict value is not equal to itself.") | |
596 | 601 | } | |
597 | 602 | } | |
598 | 603 | } | |
599 | 604 | } | |
600 | 605 | } | |
601 | 606 | } | |
602 | 607 | } | |
603 | 608 | ||
604 | 609 | ||
605 | 610 | ||
606 | 611 | @Callable(i) | |
607 | 612 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
608 | 613 | then throw(maintenanceMSG) | |
609 | 614 | else { | |
610 | - | let $ | |
611 | - | let id = $ | |
612 | - | let caller = $ | |
613 | - | let date = $ | |
614 | - | let isSponsored = $ | |
615 | - | let $ | |
616 | - | let licenceCID = $ | |
617 | - | let licenceHash = $ | |
615 | + | let $t02254122611 = idCallerDateSponsored(i, pubKey) | |
616 | + | let id = $t02254122611._1 | |
617 | + | let caller = $t02254122611._2 | |
618 | + | let date = $t02254122611._3 | |
619 | + | let isSponsored = $t02254122611._4 | |
620 | + | let $t02262122690 = setLIcence(cidLicence, sha256Licence) | |
621 | + | let licenceCID = $t02262122690._1 | |
622 | + | let licenceHash = $t02262122690._2 | |
618 | 623 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
619 | 624 | if ((validateArtwork != "")) | |
620 | 625 | then throw("Something went wrong!") | |
621 | 626 | else { | |
622 | 627 | let entryExist = getStringByKey(keyName(caller, txid)) | |
623 | 628 | if ((entryExist == "")) | |
624 | 629 | then throw("Entry not found") | |
625 | 630 | else { | |
626 | 631 | let flag = getStringByKey(keyFlag(caller, txid)) | |
627 | 632 | if ((flag == "ILLEGAL")) | |
628 | 633 | then throw("Cannot update ILLEGAL artwork") | |
629 | 634 | else if (!(isArtMinted(caller, txid))) | |
630 | - | then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] | |
635 | + | then { | |
636 | + | let txToCaller = if (isSponsored) | |
637 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
638 | + | else nil | |
639 | + | ([StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] ++ txToCaller) | |
640 | + | } | |
631 | 641 | else throw("Already minted") | |
632 | 642 | } | |
633 | 643 | } | |
634 | 644 | } | |
635 | 645 | ||
636 | 646 | ||
637 | 647 | ||
638 | 648 | @Callable(i) | |
639 | 649 | func flagArtwork (artId,addr,flag,note) = { | |
640 | - | let $ | |
641 | - | let id = $ | |
642 | - | let caller = $ | |
650 | + | let $t02431724351 = idCallerDate(i) | |
651 | + | let id = $t02431724351._1 | |
652 | + | let caller = $t02431724351._2 | |
643 | 653 | if (containsElement([chris, toString(this)], caller)) | |
644 | 654 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
645 | 655 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
646 | 656 | else throw(("Unknow status " + flag)) | |
647 | 657 | else throw("You are not allowed") | |
648 | 658 | } | |
649 | 659 | ||
650 | 660 | ||
651 | 661 | ||
652 | 662 | @Callable(i) | |
653 | 663 | func deleteArtwork (artId,addr) = { | |
654 | - | let $ | |
655 | - | let id = $ | |
656 | - | let caller = $ | |
664 | + | let $t02478724821 = idCallerDate(i) | |
665 | + | let id = $t02478724821._1 | |
666 | + | let caller = $t02478724821._2 | |
657 | 667 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
658 | 668 | then addr | |
659 | 669 | else caller | |
660 | 670 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
661 | 671 | if ((entryExist == "")) | |
662 | 672 | then throw("No art matching for this address") | |
663 | 673 | else { | |
664 | 674 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
665 | 675 | if ((sha256Hash == "")) | |
666 | 676 | then throw("No art hash matching for this address") | |
667 | 677 | else { | |
668 | 678 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
669 | 679 | if ((signID == "")) | |
670 | 680 | then throw("No SIGN ID matching") | |
671 | 681 | else { | |
672 | 682 | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] | |
673 | 683 | if (!(isArtMinted(addrToUse, artId))) | |
674 | 684 | then if (!(dappRunning)) | |
675 | 685 | then throw(maintenanceMSG) | |
676 | 686 | else dataToDelete | |
677 | 687 | else if (containsElement([chris, toString(this)], caller)) | |
678 | 688 | then dataToDelete | |
679 | 689 | else throw("Art already minted, you cannot delete it") | |
680 | 690 | } | |
681 | 691 | } | |
682 | 692 | } | |
683 | 693 | } | |
684 | 694 | ||
685 | 695 | ||
686 | 696 | ||
687 | 697 | @Callable(i) | |
688 | 698 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
689 | - | let $t02741527479 = idCallerDateSponsored(i, pubKey) | |
690 | - | let id = $t02741527479._1 | |
691 | - | let caller = $t02741527479._2 | |
692 | - | let isSponsored = $t02741527479._3 | |
699 | + | let $t02765727727 = idCallerDateSponsored(i, pubKey) | |
700 | + | let id = $t02765727727._1 | |
701 | + | let caller = $t02765727727._2 | |
702 | + | let date = $t02765727727._3 | |
703 | + | let isSponsored = $t02765727727._4 | |
693 | 704 | let artworkName = getStringByKey(keyName(caller, artId)) | |
694 | 705 | if ((artworkName == "")) | |
695 | 706 | then throw("This art doesn't match your account") | |
696 | 707 | else { | |
697 | 708 | let flag = getStringByKey(keyFlag(caller, artId)) | |
698 | 709 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
699 | 710 | then throw("Flagged artwork") | |
700 | 711 | else { | |
701 | 712 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
702 | 713 | if ((0 > blockEnd)) | |
703 | 714 | then throw("Negative end") | |
704 | 715 | else if (if ((blockEnd > 0)) | |
705 | 716 | then if ((maxMint != 1)) | |
706 | 717 | then true | |
707 | 718 | else (price != 0) | |
708 | 719 | else false) | |
709 | 720 | then throw("Timed offer only allowed for unique edition and offer only") | |
710 | 721 | else { | |
711 | 722 | let baseHeight = if ((blockEnd == 0)) | |
712 | 723 | then 0 | |
713 | 724 | else height | |
714 | 725 | if (!(acceptedAssetIds(assetId))) | |
715 | 726 | then throw("Something went wrong!") | |
716 | 727 | else if (!(validateMinSell(assetId, price))) | |
717 | 728 | then throw("Something went wrong!") | |
718 | 729 | else { | |
719 | 730 | let checkUser = validateUser(caller) | |
720 | 731 | if ((checkUser != "")) | |
721 | 732 | then throw(checkUser) | |
722 | 733 | else { | |
723 | 734 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
724 | 735 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
725 | 736 | if ((maxMint > 100)) | |
726 | 737 | then throw("100 editions max per artwork") | |
727 | 738 | else if (if ((amountSold != 0)) | |
728 | 739 | then (amountSold == maxCanSell) | |
729 | 740 | else false) | |
730 | 741 | then throw("Max edition reached.") | |
731 | 742 | else if (if ((amountSold > 0)) | |
732 | 743 | then (maxCanSell != maxMint) | |
733 | 744 | else false) | |
734 | 745 | then throw("Cannot change maximum issuable anymore") | |
735 | 746 | else if (if ((bidNbr > 0)) | |
736 | 747 | then (maxCanSell != maxMint) | |
737 | 748 | else false) | |
738 | 749 | then throw("Cannot change maximum issuable with active orders") | |
739 | 750 | else { | |
740 | 751 | let sellStatus = if (if ((price > 0)) | |
741 | 752 | then (maxMint > 0) | |
742 | 753 | else false) | |
743 | 754 | then true | |
744 | 755 | else false | |
745 | - | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] | |
756 | + | let txToCaller = if (isSponsored) | |
757 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
758 | + | else nil | |
759 | + | ([BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] ++ txToCaller) | |
746 | 760 | } | |
747 | 761 | } | |
748 | 762 | } | |
749 | 763 | } | |
750 | 764 | } | |
751 | 765 | } | |
752 | 766 | } | |
753 | 767 | ||
754 | 768 | ||
755 | 769 | ||
756 | 770 | @Callable(i) | |
757 | 771 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
758 | 772 | ||
759 | 773 | ||
760 | 774 | ||
761 | 775 | @Callable(i) | |
762 | 776 | func setBid (artId,issuer) = { | |
763 | - | let $ | |
764 | - | let id = $ | |
765 | - | let caller = $ | |
766 | - | let date = $ | |
767 | - | let $ | |
768 | - | let payment = $ | |
769 | - | let amount = $ | |
777 | + | let $t03010530145 = idCallerDate(i) | |
778 | + | let id = $t03010530145._1 | |
779 | + | let caller = $t03010530145._2 | |
780 | + | let date = $t03010530145._3 | |
781 | + | let $t03015030186 = isPayment(i) | |
782 | + | let payment = $t03015030186._1 | |
783 | + | let amount = $t03015030186._2 | |
770 | 784 | let assetId = if (!(isDefined(payment.assetId))) | |
771 | 785 | then "WAVES" | |
772 | 786 | else toBase58String(value(payment.assetId)) | |
773 | 787 | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
774 | 788 | if (if ((blockEnd != 0)) | |
775 | 789 | then (height >= blockEnd) | |
776 | 790 | else false) | |
777 | 791 | then throw("Sale ended.") | |
778 | 792 | else { | |
779 | 793 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
780 | 794 | if (!(acceptedAssetIds(assetId))) | |
781 | 795 | then throw("asset not accepted") | |
782 | 796 | else if (!(validateMinSell(assetId, amount))) | |
783 | 797 | then throw("Wrong min sell") | |
784 | 798 | else { | |
785 | 799 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
786 | 800 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
787 | 801 | if ((0 >= maxCanSell)) | |
788 | 802 | then throw("No max edition set for this artwork") | |
789 | 803 | else if ((amountSold >= maxCanSell)) | |
790 | 804 | then throw("Sold out, you cannot bid") | |
791 | 805 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
792 | 806 | } | |
793 | 807 | } | |
794 | 808 | } | |
795 | 809 | ||
796 | 810 | ||
797 | 811 | ||
798 | 812 | @Callable(i) | |
799 | 813 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
800 | - | let $ | |
801 | - | let id = $ | |
802 | - | let caller = $ | |
803 | - | let date = $ | |
814 | + | let $t03134431384 = idCallerDate(i) | |
815 | + | let id = $t03134431384._1 | |
816 | + | let caller = $t03134431384._2 | |
817 | + | let date = $t03134431384._3 | |
804 | 818 | if ((caller != issuer)) | |
805 | 819 | then throw("You cannot do this action") | |
806 | 820 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
807 | 821 | } | |
808 | 822 | ||
809 | 823 | ||
810 | 824 | ||
811 | 825 | @Callable(i) | |
812 | 826 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
813 | - | let $ | |
814 | - | let id = $ | |
815 | - | let caller = $ | |
816 | - | let date = $ | |
827 | + | let $t03161031671 = idCallerDate(i) | |
828 | + | let id = $t03161031671._1 | |
829 | + | let caller = $t03161031671._2 | |
830 | + | let date = $t03161031671._3 | |
817 | 831 | if (if ((caller != bidOwner)) | |
818 | 832 | then (caller != issuer) | |
819 | 833 | else false) | |
820 | 834 | then throw("You cannot do this action") | |
821 | 835 | else { | |
822 | 836 | let returnMoneyTo = if ((caller == issuer)) | |
823 | 837 | then bidOwner | |
824 | 838 | else caller | |
825 | 839 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
826 | 840 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
827 | 841 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
828 | 842 | if ((bidData == "")) | |
829 | 843 | then throw("Bid not found") | |
830 | 844 | else { | |
831 | 845 | let bidDataArr = split(bidData, "_") | |
832 | 846 | let assetId = getBidAssetId(bidDataArr[0]) | |
833 | 847 | let bidStatus = "CANCELED" | |
834 | 848 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
835 | 849 | } | |
836 | 850 | } | |
837 | 851 | } | |
838 | 852 | ||
839 | 853 | ||
840 | 854 | @Verifier(tx) | |
841 | 855 | func verifier () = match tx { | |
842 | 856 | case inv: InvokeScriptTransaction => | |
843 | 857 | if (if ((inv.function == "addArtwork")) | |
844 | 858 | then (inv.dApp == this) | |
845 | 859 | else false) | |
846 | 860 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13]))) | |
847 | 861 | else if (if ((inv.function == "updateArtwork")) | |
848 | 862 | then (inv.dApp == this) | |
849 | 863 | else false) | |
850 | 864 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12]))) | |
851 | 865 | else if (if ((inv.function == "sellArtwork")) | |
852 | 866 | then (inv.dApp == this) | |
853 | 867 | else false) | |
854 | 868 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5]))) | |
855 | 869 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
856 | 870 | case _ => | |
857 | 871 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
858 | 872 | } | |
859 | 873 |
github/deemru/w8io/169f3d6 123.93 ms ◑