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