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