tx · 8N7iQ2n5oVYdySCAgb1kSWgbucjXaDXesw7S9gY937xQ 3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu: -0.01000000 Waves 2022.05.09 15:54 [2044165] smart account 3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu > SELF 0.00000000 Waves
{ "type": 13, "id": "8N7iQ2n5oVYdySCAgb1kSWgbucjXaDXesw7S9gY937xQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1652100897132, "version": 2, "chainId": 84, "sender": "3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu", "senderPublicKey": "914UmzBhcoS4onGGVcBRgb4VPV88m9VCFjsj5WWck5vm", "proofs": [ "4rVLdAiShjsXqRpnGNCdhwe4T899QCfD2pJvtfQbfyJT7B8vdymV1WMeEVg3F6J1bFc4cAVcuHr7DjnCJTXZy6kH" ], "script": "base64:AAIFAAAAAAAAAFgIAhIDCgEIEgMKAQgSBQoDAQgIEgwKCggICAgICAgICAgSDgoMCAEBCAgBCAgIAQEBEgQKAggIEgUKAwgICBIDCgEIEgQKAggIEgYKBAgICAgSBQoDCAgIAAAAVAAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVLZXkCAAAACW9yYWNsZUtleQEAAAAGZ2V0U3RyAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAAZvd25lcnMJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMQkABEwAAAACCQAEHQAAAAIFAAAACW9yYWNsZUZlZQIAAAAGb3duZXIyB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kT3duZXIJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAFlVua25vd24gYXVjdGlvbiB0eXBlIDoFAAAAC2F1Y3Rpb25UeXBlAgAAABssIHBsZWFzZSBjb250YWN0IHRoZSBhZG1pbnMAAAABaQEAAAAJY2FuY2VsQmlkAAAAAwAAAAVhcnRJZAAAAAZpc3N1ZXIAAAAFYmlkSWQEAAAAC2F1Y3Rpb25UeXBlCQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABCQEAAAAOa2V5QXVjdGlvblR5cGUAAAACBQAAAAZpc3N1ZXIFAAAABWFydElkAwkAAAAAAAACBQAAAAthdWN0aW9uVHlwZQUAAAAMYXVjdGlvblR5cGUxCQEAAAANY2FuY2VsQmlkSW1wbAAAAAQFAAAAAWkFAAAABWFydElkBQAAAAZpc3N1ZXIFAAAABWJpZElkCQEAAAAYY2FuY2VsQmlkSW1wbFRyYWRpdGlvbmFsAAAABAUAAAABaQUAAAAFYXJ0SWQFAAAABmlzc3VlcgUAAAAFYmlkSWQAAAAAecTAxA==", "height": 2044165, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CtSgncCtEjKRDfvm2QAaKBgunR6DG1CZEFoobEjusjGK Next: FALumfLkJyJPbAKTSkxsihqa8dT2VThSf3QhnU8xYYNt Diff:
Old | New | Differences | |
---|---|---|---|
606 | 606 | if ((validateArtwork != "")) | |
607 | 607 | then throw("Something went wrong!") | |
608 | 608 | else { | |
609 | - | let | |
610 | - | let amount = | |
611 | - | let assetId = | |
609 | + | let validP = validatePayment(i) | |
610 | + | let amount = validP._1 | |
611 | + | let assetId = validP._2 | |
612 | 612 | if (!(isDefined(amount))) | |
613 | 613 | then throw("Something went wrong") | |
614 | 614 | else { | |
615 | 615 | let previewData = if (containsElement(Previewtypes, type)) | |
616 | 616 | then [StringEntry(keyPreviewCid(caller, artId), preview)] | |
617 | 617 | else nil | |
618 | - | let amountToSend = ((amount - 1) / 2) | |
619 | - | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amountToSend)]) | |
618 | + | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amount)]) | |
620 | 619 | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
621 | 620 | then { | |
622 | 621 | let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil) | |
629 | 628 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
630 | 629 | if ((hashExist != "")) | |
631 | 630 | then throw("This hash is already registered") | |
632 | - | else (previewData ++ [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(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement) | |
631 | + | else (previewData ++ [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(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement)]) | |
633 | 632 | } | |
634 | 633 | } | |
635 | 634 | else throw("Strict value is not equal to itself.") | |
649 | 648 | let caller = callData._2 | |
650 | 649 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
651 | 650 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
652 | - | if (if ((bidNbr > 0)) | |
653 | - | then true | |
654 | - | else (amountSold > 0)) | |
655 | - | then throw("There are bids or items sold, you can not edit anything!") | |
651 | + | let validP = validatePayment(i) | |
652 | + | let amountP = validP._1 | |
653 | + | let assetIdP = validP._2 | |
654 | + | if (!(isDefined(amountP))) | |
655 | + | then throw("Something went wrong") | |
656 | 656 | else { | |
657 | - | let artworkName = getStringByKey(keyName(caller, artId)) | |
658 | - | if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
659 | - | then throw("We don't know this auction type") | |
660 | - | else if ((artworkName == "")) | |
661 | - | then throw("This art doesn't match your account") | |
662 | - | else if (!(acceptedAssetIds(assetId))) | |
663 | - | then throw("Something went wrong!") | |
664 | - | else if (!(validateMinSell(assetId, price))) | |
665 | - | then throw("Something went wrong!") | |
666 | - | else { | |
667 | - | let checkUser = validateUser(caller) | |
668 | - | if ((checkUser != "")) | |
669 | - | then throw(checkUser) | |
670 | - | else if ((maxMint > 10000)) | |
671 | - | then throw("10000 editions max per artwork") | |
657 | + | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetIdP, amountP)]) | |
658 | + | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
659 | + | then if (if ((bidNbr > 0)) | |
660 | + | then true | |
661 | + | else (amountSold > 0)) | |
662 | + | then throw("There are bids or items sold, you can not edit anything!") | |
663 | + | else { | |
664 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
665 | + | if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
666 | + | then throw("We don't know this auction type") | |
667 | + | else if ((artworkName == "")) | |
668 | + | then throw("This art doesn't match your account") | |
669 | + | else if (!(acceptedAssetIds(assetId))) | |
670 | + | then throw("Something went wrong!") | |
671 | + | else if (!(validateMinSell(assetId, price))) | |
672 | + | then throw("Something went wrong!") | |
672 | 673 | else { | |
673 | - | let sellStatus = if ((price > 0)) | |
674 | - | then (maxMint > 0) | |
675 | - | else false | |
676 | - | let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil) | |
677 | - | if ((teamFee == teamFee)) | |
678 | - | then { | |
679 | - | let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil) | |
680 | - | if ((creatorFee == creatorFee)) | |
681 | - | then { | |
682 | - | let endHeight = (duration + height) | |
674 | + | let checkUser = validateUser(caller) | |
675 | + | if ((checkUser != "")) | |
676 | + | then throw(checkUser) | |
677 | + | else if ((maxMint > 10000)) | |
678 | + | then throw("10000 editions max per artwork") | |
679 | + | else { | |
680 | + | let sellStatus = if ((price > 0)) | |
681 | + | then (maxMint > 0) | |
682 | + | else false | |
683 | + | let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil) | |
684 | + | if ((teamFee == teamFee)) | |
685 | + | then { | |
686 | + | let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil) | |
687 | + | if ((creatorFee == creatorFee)) | |
688 | + | then { | |
689 | + | let endHeight = (duration + height) | |
683 | 690 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType)] | |
684 | - | } | |
685 | - | else throw("Strict value is not equal to itself.") | |
686 | - | } | |
687 | - | else throw("Strict value is not equal to itself.") | |
691 | + | } | |
692 | + | else throw("Strict value is not equal to itself.") | |
693 | + | } | |
694 | + | else throw("Strict value is not equal to itself.") | |
695 | + | } | |
688 | 696 | } | |
689 | - | } | |
697 | + | } | |
698 | + | else throw("Strict value is not equal to itself.") | |
690 | 699 | } | |
691 | 700 | } | |
692 | 701 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleKey = "oracleKey" | |
7 | 7 | ||
8 | 8 | func getStr (key) = match getString(this, key) { | |
9 | 9 | case b: String => | |
10 | 10 | b | |
11 | 11 | case _ => | |
12 | 12 | "" | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | let oracle = getStr(oracleKey) | |
17 | 17 | ||
18 | 18 | let oracleFee = value(addressFromString(oracle)) | |
19 | 19 | ||
20 | 20 | let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")] | |
21 | 21 | ||
22 | 22 | let collectionsDapp = valueOrErrorMessage(getString(oracleFee, "collectionsDapp"), "collectionDapp not found") | |
23 | 23 | ||
24 | 24 | let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found") | |
25 | 25 | ||
26 | 26 | let certDapp = valueOrErrorMessage(getString(oracleFee, "certDapp"), "certDapp not found") | |
27 | 27 | ||
28 | 28 | let feeDapp = valueOrErrorMessage(getString(oracleFee, "feeDapp"), "feeDapp not found") | |
29 | 29 | ||
30 | 30 | let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found"))) | |
31 | 31 | ||
32 | 32 | let stakeDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "stakeDapp"), "sconexDapp not found")) | |
33 | 33 | ||
34 | 34 | let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId")) | |
35 | 35 | ||
36 | 36 | let SconexAssetId = fromBase58String(getStringValue(oracleFee, "SconexAssetId")) | |
37 | 37 | ||
38 | 38 | let types = ["IMAGE", "PDF", "VIDEO"] | |
39 | 39 | ||
40 | 40 | let Previewtypes = ["PDF"] | |
41 | 41 | ||
42 | 42 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
43 | 43 | ||
44 | 44 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
45 | 45 | ||
46 | 46 | let userSuspended = "SUSPENDED" | |
47 | 47 | ||
48 | 48 | let userRemoved = "REMOVED" | |
49 | 49 | ||
50 | 50 | let userUnregistered = "UNREGISTERED" | |
51 | 51 | ||
52 | 52 | let auctionType1 = "BIDTYPE" | |
53 | 53 | ||
54 | 54 | let auctionType2 = "TRADITIONAL" | |
55 | 55 | ||
56 | 56 | let auctionType3 = "DIRECT" | |
57 | 57 | ||
58 | 58 | func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getStringByKeyOrError (key,error) = valueOrErrorMessage(getString(this, key), error) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func validateHash (hash) = (size(hash) == 64) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyUserStatus (caller) = ("user_status_" + caller) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyPreviewCid (caller,artId) = ((("art_preview_cid_" + artId) + "_") + caller) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyBidId (bidId) = ("bid_" + bidId) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func KeyNftIssuer (nftId) = ("nft_issued_" + nftId) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func KeyNftArtId (nftId) = ("nft_artId_" + nftId) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | let minUSDNPrice = getIntegerByKeyFromOracle(("min_" + toBase58String(USDNAssetId))) | |
155 | 155 | ||
156 | 156 | let currentFeeSconex = getIntegerByKeyFromOracle(("fee_" + toBase58String(SconexAssetId))) | |
157 | 157 | ||
158 | 158 | func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getAmountHighestBidByArtId (artId) = { | |
162 | 162 | let bidId = getStringByKey(keyHighestBidBidId(artId)) | |
163 | 163 | getAmountByBidId(bidId) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func validateString (str,max) = if ((size(str) == 0)) | |
168 | 168 | then throw("Field cannot be is empty") | |
169 | 169 | else if ((size(str) > max)) | |
170 | 170 | then throw((str + " is too long")) | |
171 | 171 | else true | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func validateUser (caller) = { | |
175 | 175 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
176 | 176 | if ((userStatus == userUnregistered)) | |
177 | 177 | then "Register this account first with 'Account' tab" | |
178 | 178 | else if ((userStatus == userSuspended)) | |
179 | 179 | then "Account suspended" | |
180 | 180 | else if ((userStatus == userRemoved)) | |
181 | 181 | then "Account removed" | |
182 | 182 | else "" | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func validateArtworkData (caller,cidDisplay,name,description,tags) = { | |
187 | 187 | let checkUser = validateUser(caller) | |
188 | 188 | if ((checkUser != "")) | |
189 | 189 | then throw(checkUser) | |
190 | 190 | else if ((size(cidDisplay) == 0)) | |
191 | 191 | then throw("Display CID cannot be empty") | |
192 | 192 | else if ((size(cidDisplay) != 46)) | |
193 | 193 | then throw("This doesn't seem a valid CID!") | |
194 | 194 | else if (!(validateString(name, 100))) | |
195 | 195 | then throw("100 Char. max name") | |
196 | 196 | else if (!(validateString(description, 1000))) | |
197 | 197 | then throw("1000 Char. max description") | |
198 | 198 | else if ((size(split(tags, ",")) > 5)) | |
199 | 199 | then throw("5 tags max.") | |
200 | 200 | else "" | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func isPayment (i) = if ((size(i.payments) == 0)) | |
205 | 205 | then throw("No payment attached") | |
206 | 206 | else { | |
207 | 207 | let payment = value(i.payments[0]) | |
208 | 208 | let amount = value(payment.amount) | |
209 | 209 | $Tuple2(payment, amount) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func validatePayment (i) = { | |
214 | 214 | let t089829018 = isPayment(i) | |
215 | 215 | let payment = t089829018._1 | |
216 | 216 | let amount = t089829018._2 | |
217 | 217 | let assetId = if (if (isDefined(payment.assetId)) | |
218 | 218 | then (payment.assetId == SconexAssetId) | |
219 | 219 | else false) | |
220 | 220 | then payment.assetId | |
221 | 221 | else throw((("Only " + toBase58String(SconexAssetId)) + " token accepted as transaction fee")) | |
222 | 222 | if ((amount != currentFeeSconex)) | |
223 | 223 | then throw(((("Payment amount should be " + toString(currentFeeSconex)) + " but is: ") + toString(amount))) | |
224 | 224 | else $Tuple2(amount, assetId) | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
229 | 229 | case b: Int => | |
230 | 230 | if ((b != 0)) | |
231 | 231 | then true | |
232 | 232 | else false | |
233 | 233 | case _ => | |
234 | 234 | false | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
239 | 239 | let pData = isPayment(i) | |
240 | 240 | let payment = pData._1 | |
241 | 241 | let amount = pData._2 | |
242 | 242 | let assetId = if (!(isDefined(payment.assetId))) | |
243 | 243 | then throw("Asset Id is not defined") | |
244 | 244 | else if (if ((size(priceAssetId) > 0)) | |
245 | 245 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
246 | 246 | else false) | |
247 | 247 | then payment.assetId | |
248 | 248 | else throw("Wrong asset id") | |
249 | 249 | if ((artworkPrice != amount)) | |
250 | 250 | then throw(((("Payment don't match " + toString(artworkPrice)) + " ") + toString(amount))) | |
251 | 251 | else $Tuple2(amount, assetId) | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId))) | |
256 | 256 | then throw("Only USDN accepted") | |
257 | 257 | else true | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func validateMinSell (assetId,price) = { | |
261 | 261 | let minSellSconex = minUSDNPrice | |
262 | 262 | if (if ((minSellSconex > price)) | |
263 | 263 | then true | |
264 | 264 | else (assetId != toBase58String(USDNAssetId))) | |
265 | 265 | then throw(("Wrong minimum sell price " + toString(minSellSconex))) | |
266 | 266 | else true | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
271 | 271 | then throw("Only USDN is accepted!") | |
272 | 272 | else fromBase58String(assetId) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func getPriceAssetIdFromBid (bidDataKey) = { | |
276 | 276 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
277 | 277 | if ((bidData == "")) | |
278 | 278 | then throw("Bid not found") | |
279 | 279 | else { | |
280 | 280 | let bidDataArr = split(bidData, "_") | |
281 | 281 | let bidAmount = parseIntValue(bidDataArr[1]) | |
282 | 282 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
283 | 283 | if ((0 >= bidAmount)) | |
284 | 284 | then throw("Wrong amount") | |
285 | 285 | else $Tuple2(bidAmount, bidAssetId) | |
286 | 286 | } | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func idCallerDate (i) = if (!(dappRunning)) | |
291 | 291 | then throw(maintenanceMSG) | |
292 | 292 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func getArtData (i,issuer,artId,isBid) = { | |
296 | 296 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
297 | 297 | let totalNFT = getIntegerByKey("total_nft_issued") | |
298 | 298 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
299 | 299 | if ((artworkName == "")) | |
300 | 300 | then throw("Art doesn't exist") | |
301 | 301 | else { | |
302 | 302 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
303 | 303 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
304 | 304 | let artworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), minUSDNPrice) | |
305 | 305 | let priceAssetId = if (callerIsIssuer) | |
306 | 306 | then toBase58String(USDNAssetId) | |
307 | 307 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
308 | 308 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
309 | 309 | if (if (if (!(isBid)) | |
310 | 310 | then !(callerIsIssuer) | |
311 | 311 | else false) | |
312 | 312 | then if (if ((0 >= artworkPrice)) | |
313 | 313 | then true | |
314 | 314 | else !(isOnSale)) | |
315 | 315 | then true | |
316 | 316 | else (0 >= maxCanSell) | |
317 | 317 | else false) | |
318 | 318 | then throw("Art not for sale") | |
319 | 319 | else if (if (if (!(isBid)) | |
320 | 320 | then callerIsIssuer | |
321 | 321 | else false) | |
322 | 322 | then (0 >= maxCanSell) | |
323 | 323 | else false) | |
324 | 324 | then throw("Max issuable not set") | |
325 | 325 | else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
326 | 326 | } | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
331 | 331 | let checkUser = validateUser(issuer) | |
332 | 332 | if (if (isBid) | |
333 | 333 | then (checkUser != "") | |
334 | 334 | else false) | |
335 | 335 | then throw(checkUser) | |
336 | 336 | else { | |
337 | 337 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
338 | 338 | let t01351913648 = if (isBid) | |
339 | 339 | then getPriceAssetIdFromBid(bidDataKey) | |
340 | 340 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
341 | 341 | let amount = t01351913648._1 | |
342 | 342 | let assetId = t01351913648._2 | |
343 | 343 | $Tuple3(bidDataKey, amount, assetId) | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
349 | 349 | let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
350 | 350 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
351 | 351 | then true | |
352 | 352 | else !(isOnSale)) | |
353 | 353 | then false | |
354 | 354 | else true | |
355 | 355 | let receiveNFT = if ((bidOwner != "")) | |
356 | 356 | then addressFromStringValue(bidOwner) | |
357 | 357 | else i.caller | |
358 | 358 | $Tuple3(sellStatus, receiveNFT, issueMeta) | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
363 | 363 | let assetIdBid = if (!(isDefined(assetId))) | |
364 | 364 | then throw("Only USDN is accepted") | |
365 | 365 | else toBase58String(value(assetId)) | |
366 | 366 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
367 | 367 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
368 | 368 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
369 | 369 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = { | |
374 | 374 | let callerData = idCallerDate(i) | |
375 | 375 | let id = callerData._1 | |
376 | 376 | let caller = callerData._2 | |
377 | 377 | let date = callerData._3 | |
378 | 378 | let artData = getArtData(i, issuer, artId, isBid) | |
379 | 379 | let totalNFT = artData._1 | |
380 | 380 | let artworkName = artData._2 | |
381 | 381 | let amountSold = artData._3 | |
382 | 382 | let artworkPrice = artData._4 | |
383 | 383 | let priceAssetId = artData._5 | |
384 | 384 | let maxCanSell = artData._6 | |
385 | 385 | let isOnSale = artData._7 | |
386 | 386 | let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
387 | 387 | let bidDataKey = bidData._1 | |
388 | 388 | let amount = bidData._2 | |
389 | 389 | let assetId = bidData._3 | |
390 | 390 | let newAmountSold = if ((amountSold == maxCanSell)) | |
391 | 391 | then throw("Max items sold") | |
392 | 392 | else (amountSold + 1) | |
393 | 393 | let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
394 | 394 | let sellStatus = issuerData._1 | |
395 | 395 | let receiveNFT = issuerData._2 | |
396 | 396 | let issueMeta = issuerData._3 | |
397 | 397 | let idNFTInvoke = invoke(this, "mintNft", [totalNFT, issueMeta, toString(receiveNFT)], nil) | |
398 | 398 | if ((idNFTInvoke == idNFTInvoke)) | |
399 | 399 | then { | |
400 | 400 | let idNFT = match idNFTInvoke { | |
401 | 401 | case r: String => | |
402 | 402 | r | |
403 | 403 | case _ => | |
404 | 404 | throw("Incorrect invoke result") | |
405 | 405 | } | |
406 | 406 | let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date) | |
407 | 407 | let assetIdBid = bidKeyValue._1 | |
408 | 408 | let bidDelOld = bidKeyValue._2 | |
409 | 409 | let bidUpdate = bidKeyValue._3 | |
410 | 410 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
411 | 411 | let soldValue = if (!(isBid)) | |
412 | 412 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + idNFT) | |
413 | 413 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + idNFT) | |
414 | 414 | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFee", [artId, issuer], [AttachedPayment(assetId, amount)]) | |
415 | 415 | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
416 | 416 | then { | |
417 | 417 | let soldData = StringEntry(soldKey, soldValue) | |
418 | 418 | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), StringEntry(KeyNftIssuer(idNFT), issuer), StringEntry(KeyNftArtId(idNFT), artId)] | |
419 | 419 | let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil) | |
420 | 420 | if ((res == res)) | |
421 | 421 | then if (isBid) | |
422 | 422 | then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld) | |
423 | 423 | else soldData :: buyRes | |
424 | 424 | else throw("Strict value is not equal to itself.") | |
425 | 425 | } | |
426 | 426 | else throw("Strict value is not equal to itself.") | |
427 | 427 | } | |
428 | 428 | else throw("Strict value is not equal to itself.") | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 | ||
432 | 432 | func setBidNonTraditional (i,artId,issuer) = { | |
433 | 433 | let t02770927747 = idCallerDate(i) | |
434 | 434 | let id = t02770927747._1 | |
435 | 435 | let caller = t02770927747._2 | |
436 | 436 | let date = t02770927747._3 | |
437 | 437 | let t02775227788 = isPayment(i) | |
438 | 438 | let payment = t02775227788._1 | |
439 | 439 | let amount = t02775227788._2 | |
440 | 440 | let assetId = if (!(isDefined(payment.assetId))) | |
441 | 441 | then throw("Only USDN is accepted!") | |
442 | 442 | else toBase58String(value(payment.assetId)) | |
443 | 443 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
444 | 444 | if (!(acceptedAssetIds(assetId))) | |
445 | 445 | then throw("asset not accepted") | |
446 | 446 | else { | |
447 | 447 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
448 | 448 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
449 | 449 | if ((0 >= maxCanSell)) | |
450 | 450 | then throw("No max edition set for this artwork") | |
451 | 451 | else if ((amountSold >= maxCanSell)) | |
452 | 452 | then throw("Sold out, you cannot bid") | |
453 | 453 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
454 | 454 | } | |
455 | 455 | } | |
456 | 456 | ||
457 | 457 | ||
458 | 458 | func setBidTraditional (i,artId,issuer) = { | |
459 | 459 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
460 | 460 | let highestBid = getAmountHighestBidByArtId(artId) | |
461 | 461 | if ((height > endHeight)) | |
462 | 462 | then throw("This auction is finished already!") | |
463 | 463 | else { | |
464 | 464 | let callderData = idCallerDate(i) | |
465 | 465 | let id = callderData._1 | |
466 | 466 | let caller = callderData._2 | |
467 | 467 | let date = callderData._3 | |
468 | 468 | let isPaymentVar = isPayment(i) | |
469 | 469 | let payment = isPaymentVar._1 | |
470 | 470 | let amount = isPaymentVar._2 | |
471 | 471 | if ((highestBid >= amount)) | |
472 | 472 | then throw(("Please place a bid higher than: " + toString(highestBid))) | |
473 | 473 | else { | |
474 | 474 | let assetId = if (!(isDefined(payment.assetId))) | |
475 | 475 | then throw("Only USDN is accepted!") | |
476 | 476 | else toBase58String(value(payment.assetId)) | |
477 | 477 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
478 | 478 | let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), minUSDNPrice) | |
479 | 479 | if (!(acceptedAssetIds(assetId))) | |
480 | 480 | then throw("asset not accepted") | |
481 | 481 | else if ((minArtworkPrice > amount)) | |
482 | 482 | then throw("Bid is below min price!") | |
483 | 483 | else { | |
484 | 484 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
485 | 485 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
486 | 486 | if ((0 >= maxCanSell)) | |
487 | 487 | then throw("No max edition set for this artwork") | |
488 | 488 | else if ((amountSold >= maxCanSell)) | |
489 | 489 | then throw("Sold out, you cannot bid") | |
490 | 490 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1)), StringEntry(keyHighestBidBidId(artId), toBase58String(i.transactionId)), IntegerEntry(keyBidId(toBase58String(i.transactionId)), amount)] | |
491 | 491 | } | |
492 | 492 | } | |
493 | 493 | } | |
494 | 494 | } | |
495 | 495 | ||
496 | 496 | ||
497 | 497 | func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = { | |
498 | 498 | let caller = toBase58String(i.caller.bytes) | |
499 | 499 | if ((caller != issuer)) | |
500 | 500 | then throw("You cannot do this action") | |
501 | 501 | else buyMint(i, artId, issuer, bidId, bidOwner, true) | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | func restartAuction (artId,issuer) = { | |
506 | 506 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
507 | 507 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
508 | 508 | let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
509 | 509 | let duration = getIntegerByKey(keyDuration(issuer, artId)) | |
510 | 510 | let endHeight = (duration + height) | |
511 | 511 | if ((oldEndHeight >= height)) | |
512 | 512 | then throw("Previous auction isn't completed yet") | |
513 | 513 | else if ((amountSold == maxCanSell)) | |
514 | 514 | then throw("Can't restart auction, max amount sold") | |
515 | 515 | else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))] | |
516 | 516 | } | |
517 | 517 | ||
518 | 518 | ||
519 | 519 | func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = { | |
520 | 520 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
521 | 521 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
522 | 522 | if ((endHeight >= height)) | |
523 | 523 | then throw("This auction is not yet finished!") | |
524 | 524 | else if ((bidId != highestBidId)) | |
525 | 525 | then throw("This is not the winning bid!") | |
526 | 526 | else { | |
527 | 527 | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true) | |
528 | 528 | let restartAuctionData = restartAuction(artId, issuer) | |
529 | 529 | (restartAuctionData ++ buyMintData) | |
530 | 530 | } | |
531 | 531 | } | |
532 | 532 | ||
533 | 533 | ||
534 | 534 | func cancelBidImpl (i,artId,issuer,bidId) = { | |
535 | 535 | let t02894229094 = idCallerDate(i) | |
536 | 536 | let id = t02894229094._1 | |
537 | 537 | let caller = t02894229094._2 | |
538 | 538 | let date = t02894229094._3 | |
539 | 539 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
540 | 540 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
541 | 541 | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
542 | 542 | let bidDataArr = split(bidData, "_") | |
543 | 543 | let assetId = getBidAssetId(bidDataArr[0]) | |
544 | 544 | let bidStatus = "CANCELED" | |
545 | 545 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 | ||
549 | 549 | func cancelBidImplTraditional (i,artId,issuer,bidId) = { | |
550 | 550 | let t02894229094 = idCallerDate(i) | |
551 | 551 | let id = t02894229094._1 | |
552 | 552 | let caller = t02894229094._2 | |
553 | 553 | let date = t02894229094._3 | |
554 | 554 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
555 | 555 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
556 | 556 | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
557 | 557 | let bidDataArr = split(bidData, "_") | |
558 | 558 | let assetId = getBidAssetId(bidDataArr[0]) | |
559 | 559 | let bidStatus = "CANCELED" | |
560 | 560 | let bidAmount = parseIntValue(bidDataArr[1]) | |
561 | 561 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
562 | 562 | if ((bidId == highestBidId)) | |
563 | 563 | then throw("You can't cancel the highest bid!") | |
564 | 564 | else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)] | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | ||
568 | 568 | @Callable(i) | |
569 | 569 | func initDapp (dappKey) = if ((i.caller != this)) | |
570 | 570 | then throw("You cannot do this action") | |
571 | 571 | else if ((oracle != "")) | |
572 | 572 | then throw("oracle already set, you can't override!") | |
573 | 573 | else [StringEntry(oracleKey, dappKey)] | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | ||
577 | 577 | @Callable(i) | |
578 | 578 | func restartAuctionManual (artId) = if ((getAmountHighestBidByArtId(artId) != 0)) | |
579 | 579 | then throw("Please accept the highest bid!") | |
580 | 580 | else restartAuction(artId, toBase58String(i.caller.bytes)) | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | ||
584 | 584 | @Callable(i) | |
585 | 585 | func mintNft (totalNFT,issueMeta,receiveNFT) = if ((i.caller != this)) | |
586 | 586 | then throw("Only the dApp can mint NFT's") | |
587 | 587 | else { | |
588 | 588 | let receiveNFTAddy = Address(fromBase58String(receiveNFT)) | |
589 | 589 | let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
590 | 590 | let idNFT = calculateAssetId(issueNFT) | |
591 | 591 | $Tuple2([issueNFT, ScriptTransfer(receiveNFTAddy, 1, idNFT)], toBase58String(idNFT)) | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | ||
596 | 596 | @Callable(i) | |
597 | 597 | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement,preview,collection,subcollection) = { | |
598 | 598 | let t01774017781 = idCallerDate(i) | |
599 | 599 | let artId = t01774017781._1 | |
600 | 600 | let caller = t01774017781._2 | |
601 | 601 | let date = t01774017781._3 | |
602 | 602 | if (!(containsElement(types, type))) | |
603 | 603 | then throw("Unknown type") | |
604 | 604 | else { | |
605 | 605 | let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags) | |
606 | 606 | if ((validateArtwork != "")) | |
607 | 607 | then throw("Something went wrong!") | |
608 | 608 | else { | |
609 | - | let | |
610 | - | let amount = | |
611 | - | let assetId = | |
609 | + | let validP = validatePayment(i) | |
610 | + | let amount = validP._1 | |
611 | + | let assetId = validP._2 | |
612 | 612 | if (!(isDefined(amount))) | |
613 | 613 | then throw("Something went wrong") | |
614 | 614 | else { | |
615 | 615 | let previewData = if (containsElement(Previewtypes, type)) | |
616 | 616 | then [StringEntry(keyPreviewCid(caller, artId), preview)] | |
617 | 617 | else nil | |
618 | - | let amountToSend = ((amount - 1) / 2) | |
619 | - | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amountToSend)]) | |
618 | + | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amount)]) | |
620 | 619 | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
621 | 620 | then { | |
622 | 621 | let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil) | |
623 | 622 | if ((invokeCollectionCreate == invokeCollectionCreate)) | |
624 | 623 | then { | |
625 | 624 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
626 | 625 | if ((entryExist != "")) | |
627 | 626 | then throw("You already added it") | |
628 | 627 | else { | |
629 | 628 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
630 | 629 | if ((hashExist != "")) | |
631 | 630 | then throw("This hash is already registered") | |
632 | - | else (previewData ++ [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(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement) | |
631 | + | else (previewData ++ [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(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement)]) | |
633 | 632 | } | |
634 | 633 | } | |
635 | 634 | else throw("Strict value is not equal to itself.") | |
636 | 635 | } | |
637 | 636 | else throw("Strict value is not equal to itself.") | |
638 | 637 | } | |
639 | 638 | } | |
640 | 639 | } | |
641 | 640 | } | |
642 | 641 | ||
643 | 642 | ||
644 | 643 | ||
645 | 644 | @Callable(i) | |
646 | 645 | func sellArtwork (artId,price,maxMint,assetId,auctionType,duration,add1,add2,add3,add1Sh,add2Sh,add3Sh) = { | |
647 | 646 | let callData = idCallerDate(i) | |
648 | 647 | let id = callData._1 | |
649 | 648 | let caller = callData._2 | |
650 | 649 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
651 | 650 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
652 | - | if (if ((bidNbr > 0)) | |
653 | - | then true | |
654 | - | else (amountSold > 0)) | |
655 | - | then throw("There are bids or items sold, you can not edit anything!") | |
651 | + | let validP = validatePayment(i) | |
652 | + | let amountP = validP._1 | |
653 | + | let assetIdP = validP._2 | |
654 | + | if (!(isDefined(amountP))) | |
655 | + | then throw("Something went wrong") | |
656 | 656 | else { | |
657 | - | let artworkName = getStringByKey(keyName(caller, artId)) | |
658 | - | if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
659 | - | then throw("We don't know this auction type") | |
660 | - | else if ((artworkName == "")) | |
661 | - | then throw("This art doesn't match your account") | |
662 | - | else if (!(acceptedAssetIds(assetId))) | |
663 | - | then throw("Something went wrong!") | |
664 | - | else if (!(validateMinSell(assetId, price))) | |
665 | - | then throw("Something went wrong!") | |
666 | - | else { | |
667 | - | let checkUser = validateUser(caller) | |
668 | - | if ((checkUser != "")) | |
669 | - | then throw(checkUser) | |
670 | - | else if ((maxMint > 10000)) | |
671 | - | then throw("10000 editions max per artwork") | |
657 | + | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetIdP, amountP)]) | |
658 | + | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
659 | + | then if (if ((bidNbr > 0)) | |
660 | + | then true | |
661 | + | else (amountSold > 0)) | |
662 | + | then throw("There are bids or items sold, you can not edit anything!") | |
663 | + | else { | |
664 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
665 | + | if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
666 | + | then throw("We don't know this auction type") | |
667 | + | else if ((artworkName == "")) | |
668 | + | then throw("This art doesn't match your account") | |
669 | + | else if (!(acceptedAssetIds(assetId))) | |
670 | + | then throw("Something went wrong!") | |
671 | + | else if (!(validateMinSell(assetId, price))) | |
672 | + | then throw("Something went wrong!") | |
672 | 673 | else { | |
673 | - | let sellStatus = if ((price > 0)) | |
674 | - | then (maxMint > 0) | |
675 | - | else false | |
676 | - | let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil) | |
677 | - | if ((teamFee == teamFee)) | |
678 | - | then { | |
679 | - | let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil) | |
680 | - | if ((creatorFee == creatorFee)) | |
681 | - | then { | |
682 | - | let endHeight = (duration + height) | |
674 | + | let checkUser = validateUser(caller) | |
675 | + | if ((checkUser != "")) | |
676 | + | then throw(checkUser) | |
677 | + | else if ((maxMint > 10000)) | |
678 | + | then throw("10000 editions max per artwork") | |
679 | + | else { | |
680 | + | let sellStatus = if ((price > 0)) | |
681 | + | then (maxMint > 0) | |
682 | + | else false | |
683 | + | let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil) | |
684 | + | if ((teamFee == teamFee)) | |
685 | + | then { | |
686 | + | let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil) | |
687 | + | if ((creatorFee == creatorFee)) | |
688 | + | then { | |
689 | + | let endHeight = (duration + height) | |
683 | 690 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType)] | |
684 | - | } | |
685 | - | else throw("Strict value is not equal to itself.") | |
686 | - | } | |
687 | - | else throw("Strict value is not equal to itself.") | |
691 | + | } | |
692 | + | else throw("Strict value is not equal to itself.") | |
693 | + | } | |
694 | + | else throw("Strict value is not equal to itself.") | |
695 | + | } | |
688 | 696 | } | |
689 | - | } | |
697 | + | } | |
698 | + | else throw("Strict value is not equal to itself.") | |
690 | 699 | } | |
691 | 700 | } | |
692 | 701 | ||
693 | 702 | ||
694 | 703 | ||
695 | 704 | @Callable(i) | |
696 | 705 | func buyArtwork (artId,issuer) = { | |
697 | 706 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
698 | 707 | if ((auctionType == auctionType3)) | |
699 | 708 | then buyMint(i, artId, issuer, "", "", false) | |
700 | 709 | else throw("Direct buy only allowed when no auction type is set!") | |
701 | 710 | } | |
702 | 711 | ||
703 | 712 | ||
704 | 713 | ||
705 | 714 | @Callable(i) | |
706 | 715 | func updateTags (artist,artId,tags) = { | |
707 | 716 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
708 | 717 | if (!(containsElement(owners, caller))) | |
709 | 718 | then throw("no") | |
710 | 719 | else if ((size(split(tags, ",")) > 5)) | |
711 | 720 | then throw("5 tags max.") | |
712 | 721 | else { | |
713 | 722 | let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!") | |
714 | 723 | if ((tags == tagsOld)) | |
715 | 724 | then throw("Tags are the same as old tags!") | |
716 | 725 | else [StringEntry(keyTags(artist, artId), tags)] | |
717 | 726 | } | |
718 | 727 | } | |
719 | 728 | ||
720 | 729 | ||
721 | 730 | ||
722 | 731 | @Callable(i) | |
723 | 732 | func deleteEntry (entry) = { | |
724 | 733 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
725 | 734 | if (!(containsElement(owners, caller))) | |
726 | 735 | then throw("no") | |
727 | 736 | else [DeleteEntry(entry)] | |
728 | 737 | } | |
729 | 738 | ||
730 | 739 | ||
731 | 740 | ||
732 | 741 | @Callable(i) | |
733 | 742 | func setBid (artId,issuer) = { | |
734 | 743 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
735 | 744 | if ((auctionType == auctionType1)) | |
736 | 745 | then setBidNonTraditional(i, artId, issuer) | |
737 | 746 | else if ((auctionType == auctionType2)) | |
738 | 747 | then setBidTraditional(i, artId, issuer) | |
739 | 748 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
740 | 749 | } | |
741 | 750 | ||
742 | 751 | ||
743 | 752 | ||
744 | 753 | @Callable(i) | |
745 | 754 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
746 | 755 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
747 | 756 | if ((auctionType == auctionType1)) | |
748 | 757 | then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner) | |
749 | 758 | else if ((auctionType == auctionType2)) | |
750 | 759 | then acceptBidTraditional(i, artId, issuer, bidId, bidOwner) | |
751 | 760 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
752 | 761 | } | |
753 | 762 | ||
754 | 763 | ||
755 | 764 | ||
756 | 765 | @Callable(i) | |
757 | 766 | func cancelBid (artId,issuer,bidId) = { | |
758 | 767 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
759 | 768 | if ((auctionType == auctionType1)) | |
760 | 769 | then cancelBidImpl(i, artId, issuer, bidId) | |
761 | 770 | else cancelBidImplTraditional(i, artId, issuer, bidId) | |
762 | 771 | } | |
763 | 772 | ||
764 | 773 |
github/deemru/w8io/026f985 92.89 ms ◑