tx · 4PZCMKbLzsto62QD7YsB97XAXPfed12S7mBcYdSthEvf 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02400000 Waves 2023.01.19 10:12 [2411490] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "4PZCMKbLzsto62QD7YsB97XAXPfed12S7mBcYdSthEvf", "fee": 2400000, "feeAssetId": null, "timestamp": 1674112290298, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "25gKhXaFsdUmvqvdzRdXviusN8Z1grKFxnpZLm6GmXSntuizg9wWMBUF2SPpfnqviNgdNSKeQqsfrFPZGXdJXLqv" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgUxLjEuOQEOZ2V0U3RyaW5nQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQNrZXkCAAAIdW5pdFRlc3QHAAlvcmFjbGVGZWUJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZl9vcmFjbGVfZmVlAAhzaWduRGFwcAkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX3NpZ253ZWJfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAh1c2VyRGFwcAMFCHVuaXRUZXN0CQEFdmFsdWUBCQCmCAECIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2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dzAAUJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmM/iZh", "height": 2411490, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJy6MdgfSmi2A6ca7SQhvhLGu9rco1oz4Gt6H16Y3sSC Next: FEDWZ8CvQW1rjLrLEo9hdENiybMkqn9DKqTZSySELvYp Diff:
Old | New | Differences | |
---|---|---|---|
377 | 377 | ||
378 | 378 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
379 | 379 | then throw(maintenanceMSG) | |
380 | - | else if ((toBase58String(i.caller.bytes) == toString(this))) | |
381 | - | then throw("toto") | |
382 | - | else { | |
383 | - | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
384 | - | then !(isDefined(i.payments)) | |
385 | - | else false) | |
386 | - | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
387 | - | else toBase58String(i.caller.bytes) | |
388 | - | let get_sponsored_waves = if ((pubKey != "")) | |
389 | - | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
390 | - | else unit | |
391 | - | if ((get_sponsored_waves == get_sponsored_waves)) | |
392 | - | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
393 | - | else throw("Strict value is not equal to itself.") | |
394 | - | } | |
380 | + | else { | |
381 | + | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
382 | + | then !(isDefined(i.payments[0])) | |
383 | + | else false) | |
384 | + | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
385 | + | else toBase58String(i.caller.bytes) | |
386 | + | let get_sponsored_waves = if ((pubKey != "")) | |
387 | + | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
388 | + | else unit | |
389 | + | if ((get_sponsored_waves == get_sponsored_waves)) | |
390 | + | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
391 | + | else throw("Strict value is not equal to itself.") | |
392 | + | } | |
395 | 393 | ||
396 | 394 | ||
397 | 395 | func idCallerDate (i) = if (!(dappRunning)) | |
400 | 398 | ||
401 | 399 | ||
402 | 400 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
403 | - | let $ | |
404 | - | let id = $ | |
405 | - | let caller = $ | |
406 | - | let date = $ | |
401 | + | let $t01269512754 = idCallerDate(i) | |
402 | + | let id = $t01269512754._1 | |
403 | + | let caller = $t01269512754._2 | |
404 | + | let date = $t01269512754._3 | |
407 | 405 | let isBid = if (if (if ((caller == issuer)) | |
408 | 406 | then (bidOwner != "") | |
409 | 407 | else false) | |
459 | 457 | then throw(checkUser) | |
460 | 458 | else { | |
461 | 459 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
462 | - | let $ | |
460 | + | let $t01445714624 = if (isBid) | |
463 | 461 | then getPriceAssetIdFromBid(bidDataKey) | |
464 | 462 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
465 | - | let amount = $ | |
466 | - | let assetId = $ | |
463 | + | let amount = $t01445714624._1 | |
464 | + | let assetId = $t01445714624._2 | |
467 | 465 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
468 | 466 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0) | |
469 | 467 | let isWhitelisted = checkWhitelist(issuer) | |
552 | 550 | ||
553 | 551 | @Callable(i) | |
554 | 552 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
555 | - | let $ | |
556 | - | let artId = $ | |
557 | - | let caller = $ | |
558 | - | let date = $ | |
553 | + | let $t01865718717 = idCallerDateSponsored(i, pubKey) | |
554 | + | let artId = $t01865718717._1 | |
555 | + | let caller = $t01865718717._2 | |
556 | + | let date = $t01865718717._3 | |
559 | 557 | if (true) | |
560 | 558 | then throw(caller) | |
561 | 559 | else if (!(validateHash(sha256Hash))) | |
562 | 560 | then throw("Hash should be 64 characters maximum") | |
563 | 561 | else { | |
564 | - | let $ | |
565 | - | let licenceCID = $ | |
566 | - | let licenceHash = $ | |
562 | + | let $t01884918918 = setLIcence(cidLicence, sha256Licence) | |
563 | + | let licenceCID = $t01884918918._1 | |
564 | + | let licenceHash = $t01884918918._2 | |
567 | 565 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
568 | 566 | if ((validateArtwork != "")) | |
569 | 567 | then throw("Something went wrong!") | |
570 | 568 | else { | |
571 | 569 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
572 | - | let $ | |
570 | + | let $t01921719301 = if (whitelisted_drop) | |
573 | 571 | then $Tuple2(0, signID) | |
574 | 572 | else validatePayment(i) | |
575 | - | let amount = $ | |
576 | - | let assetId = $ | |
573 | + | let amount = $t01921719301._1 | |
574 | + | let assetId = $t01921719301._2 | |
577 | 575 | if (!(isDefined(amount))) | |
578 | 576 | then throw("Something went wrong") | |
579 | 577 | else { | |
609 | 607 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
610 | 608 | then throw(maintenanceMSG) | |
611 | 609 | else { | |
612 | - | let $ | |
613 | - | let id = $ | |
614 | - | let caller = $ | |
615 | - | let date = $ | |
616 | - | let $ | |
617 | - | let licenceCID = $ | |
618 | - | let licenceHash = $ | |
610 | + | let $t02224322300 = idCallerDateSponsored(i, pubKey) | |
611 | + | let id = $t02224322300._1 | |
612 | + | let caller = $t02224322300._2 | |
613 | + | let date = $t02224322300._3 | |
614 | + | let $t02231022379 = setLIcence(cidLicence, sha256Licence) | |
615 | + | let licenceCID = $t02231022379._1 | |
616 | + | let licenceHash = $t02231022379._2 | |
619 | 617 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
620 | 618 | if ((validateArtwork != "")) | |
621 | 619 | then throw("Something went wrong!") | |
638 | 636 | ||
639 | 637 | @Callable(i) | |
640 | 638 | func flagArtwork (artId,addr,flag,note) = { | |
641 | - | let $ | |
642 | - | let id = $ | |
643 | - | let caller = $ | |
639 | + | let $t02388023914 = idCallerDate(i) | |
640 | + | let id = $t02388023914._1 | |
641 | + | let caller = $t02388023914._2 | |
644 | 642 | if (containsElement([chris, toString(this)], caller)) | |
645 | 643 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
646 | 644 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
652 | 650 | ||
653 | 651 | @Callable(i) | |
654 | 652 | func deleteArtwork (artId,addr) = { | |
655 | - | let $ | |
656 | - | let id = $ | |
657 | - | let caller = $ | |
653 | + | let $t02435024384 = idCallerDate(i) | |
654 | + | let id = $t02435024384._1 | |
655 | + | let caller = $t02435024384._2 | |
658 | 656 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
659 | 657 | then addr | |
660 | 658 | else caller | |
687 | 685 | ||
688 | 686 | @Callable(i) | |
689 | 687 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
690 | - | let $ | |
691 | - | let id = $ | |
692 | - | let caller = $ | |
688 | + | let $t02722027271 = idCallerDateSponsored(i, pubKey) | |
689 | + | let id = $t02722027271._1 | |
690 | + | let caller = $t02722027271._2 | |
693 | 691 | let artworkName = getStringByKey(keyName(caller, artId)) | |
694 | 692 | if ((artworkName == "")) | |
695 | 693 | then throw("This art doesn't match your account") | |
760 | 758 | ||
761 | 759 | @Callable(i) | |
762 | 760 | func setBid (artId,issuer) = { | |
763 | - | let $ | |
764 | - | let id = $ | |
765 | - | let caller = $ | |
766 | - | let date = $ | |
767 | - | let $ | |
768 | - | let payment = $ | |
769 | - | let amount = $ | |
761 | + | let $t02952829568 = idCallerDate(i) | |
762 | + | let id = $t02952829568._1 | |
763 | + | let caller = $t02952829568._2 | |
764 | + | let date = $t02952829568._3 | |
765 | + | let $t02957329609 = isPayment(i) | |
766 | + | let payment = $t02957329609._1 | |
767 | + | let amount = $t02957329609._2 | |
770 | 768 | let assetId = if (!(isDefined(payment.assetId))) | |
771 | 769 | then "WAVES" | |
772 | 770 | else toBase58String(value(payment.assetId)) | |
797 | 795 | ||
798 | 796 | @Callable(i) | |
799 | 797 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
800 | - | let $ | |
801 | - | let id = $ | |
802 | - | let caller = $ | |
803 | - | let date = $ | |
798 | + | let $t03076730807 = idCallerDate(i) | |
799 | + | let id = $t03076730807._1 | |
800 | + | let caller = $t03076730807._2 | |
801 | + | let date = $t03076730807._3 | |
804 | 802 | if ((caller != issuer)) | |
805 | 803 | then throw("You cannot do this action") | |
806 | 804 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
810 | 808 | ||
811 | 809 | @Callable(i) | |
812 | 810 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
813 | - | let $ | |
814 | - | let id = $ | |
815 | - | let caller = $ | |
816 | - | let date = $ | |
811 | + | let $t03103331094 = idCallerDate(i) | |
812 | + | let id = $t03103331094._1 | |
813 | + | let caller = $t03103331094._2 | |
814 | + | let date = $t03103331094._3 | |
817 | 815 | if (if ((caller != bidOwner)) | |
818 | 816 | then (caller != issuer) | |
819 | 817 | 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.9" | |
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) = if (true) | |
202 | 202 | then throw(caller) | |
203 | 203 | else { | |
204 | 204 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
205 | 205 | if (if ((userStatus == userUnregistered)) | |
206 | 206 | then true | |
207 | 207 | else (userStatus == userAllowed)) | |
208 | 208 | then "Register this account first with \"Account\" tab" | |
209 | 209 | else if ((userStatus == userSuspended)) | |
210 | 210 | then "Account suspended" | |
211 | 211 | else if ((userStatus == userRemoved)) | |
212 | 212 | then "Account removed" | |
213 | 213 | else "" | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func setLIcence (cidLicence,sha256Licence) = { | |
218 | 218 | let cid = if ((size(cidLicence) == 0)) | |
219 | 219 | then defaultLicence | |
220 | 220 | else cidLicence | |
221 | 221 | let hash = if ((size(sha256Licence) == 0)) | |
222 | 222 | then defaultHashLicence | |
223 | 223 | else sha256Licence | |
224 | 224 | $Tuple2(cid, hash) | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = { | |
229 | 229 | let checkUser = validateUser(caller) | |
230 | 230 | if ((checkUser != "")) | |
231 | 231 | then throw(checkUser) | |
232 | 232 | else if ((size(cidDisplay) == 0)) | |
233 | 233 | then throw("Display CID cannot be empty") | |
234 | 234 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
235 | 235 | then throw("Problem with CID") | |
236 | 236 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
237 | 237 | then throw("Problem with Hashes") | |
238 | 238 | else if (!(validateString(name, 100))) | |
239 | 239 | then throw("100 Char. max name") | |
240 | 240 | else if (!(validateString(description, 1000))) | |
241 | 241 | then throw("1000 Char. max description") | |
242 | 242 | else if (if ((0 > royalties)) | |
243 | 243 | then true | |
244 | 244 | else (royalties > 1000)) | |
245 | 245 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
246 | 246 | else if ((size(split(tags, ",")) > 5)) | |
247 | 247 | then throw("5 tags max.") | |
248 | 248 | else "" | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func isPayment (i) = if ((size(i.payments) == 0)) | |
253 | 253 | then throw("No payment attached") | |
254 | 254 | else { | |
255 | 255 | let payment = value(i.payments[0]) | |
256 | 256 | let amount = value(payment.amount) | |
257 | 257 | $Tuple2(payment, amount) | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func validatePayment (i) = { | |
262 | 262 | let $t089108946 = isPayment(i) | |
263 | 263 | let payment = $t089108946._1 | |
264 | 264 | let amount = $t089108946._2 | |
265 | 265 | let assetId = if (if (isDefined(payment.assetId)) | |
266 | 266 | then (payment.assetId == signAssetId) | |
267 | 267 | else false) | |
268 | 268 | then payment.assetId | |
269 | 269 | else throw("Only SIGN token accepted as transaction fee") | |
270 | 270 | if ((amount != currentCertificationPrice)) | |
271 | 271 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
272 | 272 | else $Tuple2(amount, assetId) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
277 | 277 | case b: Int => | |
278 | 278 | if ((b != 0)) | |
279 | 279 | then true | |
280 | 280 | else false | |
281 | 281 | case _ => | |
282 | 282 | false | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
287 | 287 | let $t095349570 = isPayment(i) | |
288 | 288 | let payment = $t095349570._1 | |
289 | 289 | let amount = $t095349570._2 | |
290 | 290 | let assetId = if (!(isDefined(payment.assetId))) | |
291 | 291 | then unit | |
292 | 292 | else if (if ((size(priceAssetId) > 0)) | |
293 | 293 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
294 | 294 | else false) | |
295 | 295 | then payment.assetId | |
296 | 296 | else throw("Wrong asset id") | |
297 | 297 | if (if ((assetId == unit)) | |
298 | 298 | then (priceAssetId != "") | |
299 | 299 | else false) | |
300 | 300 | then throw("Wrong asset id") | |
301 | 301 | else if ((artworkPrice != amount)) | |
302 | 302 | then throw("Payment don't match") | |
303 | 303 | else $Tuple2(amount, assetId) | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
308 | 308 | then (assetId != toBase58String(wavesAssetId)) | |
309 | 309 | else false) | |
310 | 310 | then (assetId != "WAVES") | |
311 | 311 | else false) | |
312 | 312 | then (assetId != toBase58String(usdnAssetId)) | |
313 | 313 | else false) | |
314 | 314 | then (assetId != toBase58String(usdtAssetId)) | |
315 | 315 | else false) | |
316 | 316 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
317 | 317 | else true | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func validateMinSell (assetId,price) = { | |
321 | 321 | let minSellWaves = if (unitTest) | |
322 | 322 | then 10 | |
323 | 323 | else getIntegerByKeyFromOracle("waves_min_sell") | |
324 | 324 | let minSellUsdn = 1000000 | |
325 | 325 | let minSellSign = if (unitTest) | |
326 | 326 | then 1 | |
327 | 327 | else (currentCertificationPrice * 2) | |
328 | 328 | if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
329 | 329 | then (minSellUsdn > price) | |
330 | 330 | else false) | |
331 | 331 | then (price != 0) | |
332 | 332 | else false) | |
333 | 333 | then true | |
334 | 334 | else if (if ((assetId == toBase58String(usdtAssetId))) | |
335 | 335 | then (minSellUsdn > price) | |
336 | 336 | else false) | |
337 | 337 | then (price != 0) | |
338 | 338 | else false) | |
339 | 339 | then true | |
340 | 340 | else if (if ((assetId == toBase58String(signAssetId))) | |
341 | 341 | then (minSellSign > price) | |
342 | 342 | else false) | |
343 | 343 | then (price != 0) | |
344 | 344 | else false) | |
345 | 345 | then true | |
346 | 346 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
347 | 347 | then true | |
348 | 348 | else (assetId == "WAVES")) | |
349 | 349 | then (minSellWaves > price) | |
350 | 350 | else false) | |
351 | 351 | then (price != 0) | |
352 | 352 | else false) | |
353 | 353 | then throw("Wrong minimum sell price") | |
354 | 354 | else true | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
359 | 359 | then unit | |
360 | 360 | else fromBase58String(assetId) | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func getPriceAssetIdFromBid (bidDataKey) = { | |
364 | 364 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
365 | 365 | if ((bidData == "")) | |
366 | 366 | then throw("Bid not found") | |
367 | 367 | else { | |
368 | 368 | let bidDataArr = split(bidData, "_") | |
369 | 369 | let bidAmount = parseIntValue(bidDataArr[1]) | |
370 | 370 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
371 | 371 | if ((0 >= bidAmount)) | |
372 | 372 | then throw("Wrong amount") | |
373 | 373 | else $Tuple2(bidAmount, bidAssetId) | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
379 | 379 | then throw(maintenanceMSG) | |
380 | - | else if ((toBase58String(i.caller.bytes) == toString(this))) | |
381 | - | then throw("toto") | |
382 | - | else { | |
383 | - | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
384 | - | then !(isDefined(i.payments)) | |
385 | - | else false) | |
386 | - | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
387 | - | else toBase58String(i.caller.bytes) | |
388 | - | let get_sponsored_waves = if ((pubKey != "")) | |
389 | - | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
390 | - | else unit | |
391 | - | if ((get_sponsored_waves == get_sponsored_waves)) | |
392 | - | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
393 | - | else throw("Strict value is not equal to itself.") | |
394 | - | } | |
380 | + | else { | |
381 | + | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
382 | + | then !(isDefined(i.payments[0])) | |
383 | + | else false) | |
384 | + | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
385 | + | else toBase58String(i.caller.bytes) | |
386 | + | let get_sponsored_waves = if ((pubKey != "")) | |
387 | + | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
388 | + | else unit | |
389 | + | if ((get_sponsored_waves == get_sponsored_waves)) | |
390 | + | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
391 | + | else throw("Strict value is not equal to itself.") | |
392 | + | } | |
395 | 393 | ||
396 | 394 | ||
397 | 395 | func idCallerDate (i) = if (!(dappRunning)) | |
398 | 396 | then throw(maintenanceMSG) | |
399 | 397 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
400 | 398 | ||
401 | 399 | ||
402 | 400 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
403 | - | let $ | |
404 | - | let id = $ | |
405 | - | let caller = $ | |
406 | - | let date = $ | |
401 | + | let $t01269512754 = idCallerDate(i) | |
402 | + | let id = $t01269512754._1 | |
403 | + | let caller = $t01269512754._2 | |
404 | + | let date = $t01269512754._3 | |
407 | 405 | let isBid = if (if (if ((caller == issuer)) | |
408 | 406 | then (bidOwner != "") | |
409 | 407 | else false) | |
410 | 408 | then (bidId != "") | |
411 | 409 | else false) | |
412 | 410 | then true | |
413 | 411 | else false | |
414 | 412 | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
415 | 413 | if (if (if ((blockEnd != 0)) | |
416 | 414 | then (height >= blockEnd) | |
417 | 415 | else false) | |
418 | 416 | then !(isBid) | |
419 | 417 | else false) | |
420 | 418 | then throw("Sale ended.") | |
421 | 419 | else { | |
422 | 420 | let callerIsIssuer = (caller == issuer) | |
423 | 421 | let totalNFT = getIntegerByKey("total_nft_issued") | |
424 | 422 | let signID = getStringByKey(keySignID(issuer, artId)) | |
425 | 423 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
426 | 424 | if ((artworkName == "")) | |
427 | 425 | then throw("Art doesn't exist") | |
428 | 426 | else { | |
429 | 427 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
430 | 428 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
431 | 429 | let artworkPrice = if (callerIsIssuer) | |
432 | 430 | then (currentCertificationPrice * 2) | |
433 | 431 | else getIntegerByKey(keyPrice(issuer, artId)) | |
434 | 432 | let priceAssetId = if (callerIsIssuer) | |
435 | 433 | then toBase58String(signAssetId) | |
436 | 434 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
437 | 435 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
438 | 436 | if (if (if (!(isBid)) | |
439 | 437 | then !(callerIsIssuer) | |
440 | 438 | else false) | |
441 | 439 | then if (if ((0 >= artworkPrice)) | |
442 | 440 | then true | |
443 | 441 | else !(isOnSale)) | |
444 | 442 | then true | |
445 | 443 | else (0 >= maxCanSell) | |
446 | 444 | else false) | |
447 | 445 | then throw("Art not for sale") | |
448 | 446 | else if (if (if (!(isBid)) | |
449 | 447 | then callerIsIssuer | |
450 | 448 | else false) | |
451 | 449 | then (0 >= maxCanSell) | |
452 | 450 | else false) | |
453 | 451 | then throw("Max issuable not set") | |
454 | 452 | else { | |
455 | 453 | let checkUser = validateUser(issuer) | |
456 | 454 | if (if (isBid) | |
457 | 455 | then (checkUser != "") | |
458 | 456 | else false) | |
459 | 457 | then throw(checkUser) | |
460 | 458 | else { | |
461 | 459 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
462 | - | let $ | |
460 | + | let $t01445714624 = if (isBid) | |
463 | 461 | then getPriceAssetIdFromBid(bidDataKey) | |
464 | 462 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
465 | - | let amount = $ | |
466 | - | let assetId = $ | |
463 | + | let amount = $t01445714624._1 | |
464 | + | let assetId = $t01445714624._2 | |
467 | 465 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
468 | 466 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0) | |
469 | 467 | let isWhitelisted = checkWhitelist(issuer) | |
470 | 468 | let cut = if ((isWhitelisted > height)) | |
471 | 469 | then 0 | |
472 | 470 | else if ((assetId == signAssetId)) | |
473 | 471 | then signCut | |
474 | 472 | else usdnWaveCut | |
475 | 473 | let amountForSign = fraction(amount, cut, 100) | |
476 | 474 | let amountForAgent = if (if (if ((agent != feeReceiver)) | |
477 | 475 | then (agentShare > 0) | |
478 | 476 | else false) | |
479 | 477 | then (height > isWhitelisted) | |
480 | 478 | else false) | |
481 | 479 | then fraction(amount, agentShare, 100) | |
482 | 480 | else 0 | |
483 | 481 | let amountForCreator = (amount - amountForSign) | |
484 | 482 | if ((amountSold == maxCanSell)) | |
485 | 483 | then throw("Art sold out") | |
486 | 484 | else { | |
487 | 485 | let newAmountSold = (amountSold + 1) | |
488 | 486 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
489 | 487 | ArtID: ") + artId) + ", | |
490 | 488 | SignID: ") + signID) + ", | |
491 | 489 | Artwork name: ") + artworkName) + ", | |
492 | 490 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
493 | 491 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
494 | 492 | let idNFT = calculateAssetId(issueNFT) | |
495 | 493 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
496 | 494 | then true | |
497 | 495 | else !(isOnSale)) | |
498 | 496 | then false | |
499 | 497 | else true | |
500 | 498 | let receiveNFT = if (if (if ((caller == issuer)) | |
501 | 499 | then (bidOwner != "") | |
502 | 500 | else false) | |
503 | 501 | then (bidId != "") | |
504 | 502 | else false) | |
505 | 503 | then addressFromStringValue(bidOwner) | |
506 | 504 | else i.caller | |
507 | 505 | let assetIdBid = if (!(isDefined(assetId))) | |
508 | 506 | then "WAVES" | |
509 | 507 | else toBase58String(value(assetId)) | |
510 | 508 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
511 | 509 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
512 | 510 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
513 | 511 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
514 | 512 | let soldValue = if (!(isBid)) | |
515 | 513 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
516 | 514 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
517 | 515 | let soldData = StringEntry(soldKey, soldValue) | |
518 | 516 | let commissions = if ((amountForAgent != 0)) | |
519 | 517 | then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)] | |
520 | 518 | else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)] | |
521 | 519 | 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) | |
522 | 520 | if (isBid) | |
523 | 521 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
524 | 522 | else soldData :: buyRes | |
525 | 523 | } | |
526 | 524 | } | |
527 | 525 | } | |
528 | 526 | } | |
529 | 527 | } | |
530 | 528 | } | |
531 | 529 | ||
532 | 530 | ||
533 | 531 | func asString (bv) = match bv { | |
534 | 532 | case bv0: String => | |
535 | 533 | bv0 | |
536 | 534 | case _ => | |
537 | 535 | throw("Sponsored Public Key String expected") | |
538 | 536 | } | |
539 | 537 | ||
540 | 538 | ||
541 | 539 | @Callable(invoke) | |
542 | 540 | func setConf (key,val) = { | |
543 | 541 | let caller = toString(invoke.caller) | |
544 | 542 | if (containsElement([chris, toString(this)], caller)) | |
545 | 543 | then if (contains(key, "conf_")) | |
546 | 544 | then [StringEntry(key, val)] | |
547 | 545 | else throw("Entries starting with conf_ only") | |
548 | 546 | else throw("You are not allowed to change this") | |
549 | 547 | } | |
550 | 548 | ||
551 | 549 | ||
552 | 550 | ||
553 | 551 | @Callable(i) | |
554 | 552 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
555 | - | let $ | |
556 | - | let artId = $ | |
557 | - | let caller = $ | |
558 | - | let date = $ | |
553 | + | let $t01865718717 = idCallerDateSponsored(i, pubKey) | |
554 | + | let artId = $t01865718717._1 | |
555 | + | let caller = $t01865718717._2 | |
556 | + | let date = $t01865718717._3 | |
559 | 557 | if (true) | |
560 | 558 | then throw(caller) | |
561 | 559 | else if (!(validateHash(sha256Hash))) | |
562 | 560 | then throw("Hash should be 64 characters maximum") | |
563 | 561 | else { | |
564 | - | let $ | |
565 | - | let licenceCID = $ | |
566 | - | let licenceHash = $ | |
562 | + | let $t01884918918 = setLIcence(cidLicence, sha256Licence) | |
563 | + | let licenceCID = $t01884918918._1 | |
564 | + | let licenceHash = $t01884918918._2 | |
567 | 565 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
568 | 566 | if ((validateArtwork != "")) | |
569 | 567 | then throw("Something went wrong!") | |
570 | 568 | else { | |
571 | 569 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
572 | - | let $ | |
570 | + | let $t01921719301 = if (whitelisted_drop) | |
573 | 571 | then $Tuple2(0, signID) | |
574 | 572 | else validatePayment(i) | |
575 | - | let amount = $ | |
576 | - | let assetId = $ | |
573 | + | let amount = $t01921719301._1 | |
574 | + | let assetId = $t01921719301._2 | |
577 | 575 | if (!(isDefined(amount))) | |
578 | 576 | then throw("Something went wrong") | |
579 | 577 | else { | |
580 | 578 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
581 | 579 | if ((entryExist != "")) | |
582 | 580 | then throw("You already added it") | |
583 | 581 | else { | |
584 | 582 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
585 | 583 | if ((hashExist != "")) | |
586 | 584 | then throw("Hash already registered") | |
587 | 585 | else { | |
588 | 586 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
589 | 587 | if (!(isSignCertified)) | |
590 | 588 | then throw("Sign Certificate not found for this address.") | |
591 | 589 | else { | |
592 | 590 | let decrease_whitelist_drop = if (whitelisted_drop) | |
593 | 591 | then invoke(whitelistDapp, "useFreeDrop", [toBase58String(i.caller.bytes)], nil) | |
594 | 592 | else unit | |
595 | 593 | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
596 | 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)] | |
597 | 595 | else throw("Strict value is not equal to itself.") | |
598 | 596 | } | |
599 | 597 | } | |
600 | 598 | } | |
601 | 599 | } | |
602 | 600 | } | |
603 | 601 | } | |
604 | 602 | } | |
605 | 603 | ||
606 | 604 | ||
607 | 605 | ||
608 | 606 | @Callable(i) | |
609 | 607 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
610 | 608 | then throw(maintenanceMSG) | |
611 | 609 | else { | |
612 | - | let $ | |
613 | - | let id = $ | |
614 | - | let caller = $ | |
615 | - | let date = $ | |
616 | - | let $ | |
617 | - | let licenceCID = $ | |
618 | - | let licenceHash = $ | |
610 | + | let $t02224322300 = idCallerDateSponsored(i, pubKey) | |
611 | + | let id = $t02224322300._1 | |
612 | + | let caller = $t02224322300._2 | |
613 | + | let date = $t02224322300._3 | |
614 | + | let $t02231022379 = setLIcence(cidLicence, sha256Licence) | |
615 | + | let licenceCID = $t02231022379._1 | |
616 | + | let licenceHash = $t02231022379._2 | |
619 | 617 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
620 | 618 | if ((validateArtwork != "")) | |
621 | 619 | then throw("Something went wrong!") | |
622 | 620 | else { | |
623 | 621 | let entryExist = getStringByKey(keyName(caller, txid)) | |
624 | 622 | if ((entryExist == "")) | |
625 | 623 | then throw("Entry not found") | |
626 | 624 | else { | |
627 | 625 | let flag = getStringByKey(keyFlag(caller, txid)) | |
628 | 626 | if ((flag == "ILLEGAL")) | |
629 | 627 | then throw("Cannot update ILLEGAL artwork") | |
630 | 628 | else if (!(isArtMinted(caller, txid))) | |
631 | 629 | 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)] | |
632 | 630 | else throw("Already minted") | |
633 | 631 | } | |
634 | 632 | } | |
635 | 633 | } | |
636 | 634 | ||
637 | 635 | ||
638 | 636 | ||
639 | 637 | @Callable(i) | |
640 | 638 | func flagArtwork (artId,addr,flag,note) = { | |
641 | - | let $ | |
642 | - | let id = $ | |
643 | - | let caller = $ | |
639 | + | let $t02388023914 = idCallerDate(i) | |
640 | + | let id = $t02388023914._1 | |
641 | + | let caller = $t02388023914._2 | |
644 | 642 | if (containsElement([chris, toString(this)], caller)) | |
645 | 643 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
646 | 644 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
647 | 645 | else throw(("Unknow status " + flag)) | |
648 | 646 | else throw("You are not allowed") | |
649 | 647 | } | |
650 | 648 | ||
651 | 649 | ||
652 | 650 | ||
653 | 651 | @Callable(i) | |
654 | 652 | func deleteArtwork (artId,addr) = { | |
655 | - | let $ | |
656 | - | let id = $ | |
657 | - | let caller = $ | |
653 | + | let $t02435024384 = idCallerDate(i) | |
654 | + | let id = $t02435024384._1 | |
655 | + | let caller = $t02435024384._2 | |
658 | 656 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
659 | 657 | then addr | |
660 | 658 | else caller | |
661 | 659 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
662 | 660 | if ((entryExist == "")) | |
663 | 661 | then throw("No art matching for this address") | |
664 | 662 | else { | |
665 | 663 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
666 | 664 | if ((sha256Hash == "")) | |
667 | 665 | then throw("No art hash matching for this address") | |
668 | 666 | else { | |
669 | 667 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
670 | 668 | if ((signID == "")) | |
671 | 669 | then throw("No SIGN ID matching") | |
672 | 670 | else { | |
673 | 671 | 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))] | |
674 | 672 | if (!(isArtMinted(addrToUse, artId))) | |
675 | 673 | then if (!(dappRunning)) | |
676 | 674 | then throw(maintenanceMSG) | |
677 | 675 | else dataToDelete | |
678 | 676 | else if (containsElement([chris, toString(this)], caller)) | |
679 | 677 | then dataToDelete | |
680 | 678 | else throw("Art already minted, you cannot delete it") | |
681 | 679 | } | |
682 | 680 | } | |
683 | 681 | } | |
684 | 682 | } | |
685 | 683 | ||
686 | 684 | ||
687 | 685 | ||
688 | 686 | @Callable(i) | |
689 | 687 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
690 | - | let $ | |
691 | - | let id = $ | |
692 | - | let caller = $ | |
688 | + | let $t02722027271 = idCallerDateSponsored(i, pubKey) | |
689 | + | let id = $t02722027271._1 | |
690 | + | let caller = $t02722027271._2 | |
693 | 691 | let artworkName = getStringByKey(keyName(caller, artId)) | |
694 | 692 | if ((artworkName == "")) | |
695 | 693 | then throw("This art doesn't match your account") | |
696 | 694 | else { | |
697 | 695 | let flag = getStringByKey(keyFlag(caller, artId)) | |
698 | 696 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
699 | 697 | then throw("Flagged artwork") | |
700 | 698 | else { | |
701 | 699 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
702 | 700 | if ((0 > blockEnd)) | |
703 | 701 | then throw("Negative end") | |
704 | 702 | else if (if ((blockEnd > 0)) | |
705 | 703 | then if ((maxMint != 1)) | |
706 | 704 | then true | |
707 | 705 | else (price != 0) | |
708 | 706 | else false) | |
709 | 707 | then throw("Timed offer only allowed for unique edition and offer only") | |
710 | 708 | else { | |
711 | 709 | let baseHeight = if ((blockEnd == 0)) | |
712 | 710 | then 0 | |
713 | 711 | else height | |
714 | 712 | if (!(acceptedAssetIds(assetId))) | |
715 | 713 | then throw("Something went wrong!") | |
716 | 714 | else if (!(validateMinSell(assetId, price))) | |
717 | 715 | then throw("Something went wrong!") | |
718 | 716 | else { | |
719 | 717 | let checkUser = validateUser(caller) | |
720 | 718 | if ((checkUser != "")) | |
721 | 719 | then throw(checkUser) | |
722 | 720 | else { | |
723 | 721 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
724 | 722 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
725 | 723 | if ((maxMint > 100)) | |
726 | 724 | then throw("100 editions max per artwork") | |
727 | 725 | else if (if ((amountSold != 0)) | |
728 | 726 | then (amountSold == maxCanSell) | |
729 | 727 | else false) | |
730 | 728 | then throw("Max edition reached.") | |
731 | 729 | else if (if ((amountSold > 0)) | |
732 | 730 | then (maxCanSell != maxMint) | |
733 | 731 | else false) | |
734 | 732 | then throw("Cannot change maximum issuable anymore") | |
735 | 733 | else if (if ((bidNbr > 0)) | |
736 | 734 | then (maxCanSell != maxMint) | |
737 | 735 | else false) | |
738 | 736 | then throw("Cannot change maximum issuable with active orders") | |
739 | 737 | else { | |
740 | 738 | let sellStatus = if (if ((price > 0)) | |
741 | 739 | then (maxMint > 0) | |
742 | 740 | else false) | |
743 | 741 | then true | |
744 | 742 | else false | |
745 | 743 | [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))] | |
746 | 744 | } | |
747 | 745 | } | |
748 | 746 | } | |
749 | 747 | } | |
750 | 748 | } | |
751 | 749 | } | |
752 | 750 | } | |
753 | 751 | ||
754 | 752 | ||
755 | 753 | ||
756 | 754 | @Callable(i) | |
757 | 755 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
758 | 756 | ||
759 | 757 | ||
760 | 758 | ||
761 | 759 | @Callable(i) | |
762 | 760 | func setBid (artId,issuer) = { | |
763 | - | let $ | |
764 | - | let id = $ | |
765 | - | let caller = $ | |
766 | - | let date = $ | |
767 | - | let $ | |
768 | - | let payment = $ | |
769 | - | let amount = $ | |
761 | + | let $t02952829568 = idCallerDate(i) | |
762 | + | let id = $t02952829568._1 | |
763 | + | let caller = $t02952829568._2 | |
764 | + | let date = $t02952829568._3 | |
765 | + | let $t02957329609 = isPayment(i) | |
766 | + | let payment = $t02957329609._1 | |
767 | + | let amount = $t02957329609._2 | |
770 | 768 | let assetId = if (!(isDefined(payment.assetId))) | |
771 | 769 | then "WAVES" | |
772 | 770 | else toBase58String(value(payment.assetId)) | |
773 | 771 | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
774 | 772 | if (if ((blockEnd != 0)) | |
775 | 773 | then (height >= blockEnd) | |
776 | 774 | else false) | |
777 | 775 | then throw("Sale ended.") | |
778 | 776 | else { | |
779 | 777 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
780 | 778 | if (!(acceptedAssetIds(assetId))) | |
781 | 779 | then throw("asset not accepted") | |
782 | 780 | else if (!(validateMinSell(assetId, amount))) | |
783 | 781 | then throw("Wrong min sell") | |
784 | 782 | else { | |
785 | 783 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
786 | 784 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
787 | 785 | if ((0 >= maxCanSell)) | |
788 | 786 | then throw("No max edition set for this artwork") | |
789 | 787 | else if ((amountSold >= maxCanSell)) | |
790 | 788 | then throw("Sold out, you cannot bid") | |
791 | 789 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
792 | 790 | } | |
793 | 791 | } | |
794 | 792 | } | |
795 | 793 | ||
796 | 794 | ||
797 | 795 | ||
798 | 796 | @Callable(i) | |
799 | 797 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
800 | - | let $ | |
801 | - | let id = $ | |
802 | - | let caller = $ | |
803 | - | let date = $ | |
798 | + | let $t03076730807 = idCallerDate(i) | |
799 | + | let id = $t03076730807._1 | |
800 | + | let caller = $t03076730807._2 | |
801 | + | let date = $t03076730807._3 | |
804 | 802 | if ((caller != issuer)) | |
805 | 803 | then throw("You cannot do this action") | |
806 | 804 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
807 | 805 | } | |
808 | 806 | ||
809 | 807 | ||
810 | 808 | ||
811 | 809 | @Callable(i) | |
812 | 810 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
813 | - | let $ | |
814 | - | let id = $ | |
815 | - | let caller = $ | |
816 | - | let date = $ | |
811 | + | let $t03103331094 = idCallerDate(i) | |
812 | + | let id = $t03103331094._1 | |
813 | + | let caller = $t03103331094._2 | |
814 | + | let date = $t03103331094._3 | |
817 | 815 | if (if ((caller != bidOwner)) | |
818 | 816 | then (caller != issuer) | |
819 | 817 | else false) | |
820 | 818 | then throw("You cannot do this action") | |
821 | 819 | else { | |
822 | 820 | let returnMoneyTo = if ((caller == issuer)) | |
823 | 821 | then bidOwner | |
824 | 822 | else caller | |
825 | 823 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
826 | 824 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
827 | 825 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
828 | 826 | if ((bidData == "")) | |
829 | 827 | then throw("Bid not found") | |
830 | 828 | else { | |
831 | 829 | let bidDataArr = split(bidData, "_") | |
832 | 830 | let assetId = getBidAssetId(bidDataArr[0]) | |
833 | 831 | let bidStatus = "CANCELED" | |
834 | 832 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
835 | 833 | } | |
836 | 834 | } | |
837 | 835 | } | |
838 | 836 | ||
839 | 837 | ||
840 | 838 | @Verifier(tx) | |
841 | 839 | func verifier () = match tx { | |
842 | 840 | case inv: InvokeScriptTransaction => | |
843 | 841 | if (if ((inv.function == "addArtwork")) | |
844 | 842 | then (inv.dApp == this) | |
845 | 843 | else false) | |
846 | 844 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13]))) | |
847 | 845 | else if (if ((inv.function == "updateArtwork")) | |
848 | 846 | then (inv.dApp == this) | |
849 | 847 | else false) | |
850 | 848 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12]))) | |
851 | 849 | else if (if ((inv.function == "sellArtwork")) | |
852 | 850 | then (inv.dApp == this) | |
853 | 851 | else false) | |
854 | 852 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5]))) | |
855 | 853 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
856 | 854 | case _ => | |
857 | 855 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
858 | 856 | } | |
859 | 857 |
github/deemru/w8io/169f3d6 91.51 ms ◑