tx · ARnhSqHoWy79aZ9V6qymqZ4wHrRq19RuGdcLt7TTZq9y 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA: -0.01000000 Waves 2021.08.25 15:15 [1673844] smart account 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA > SELF 0.00000000 Waves
{ "type": 13, "id": "ARnhSqHoWy79aZ9V6qymqZ4wHrRq19RuGdcLt7TTZq9y", "fee": 1000000, "feeAssetId": null, "timestamp": 1629893762524, "version": 2, "chainId": 84, "sender": "3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA", "senderPublicKey": "9abKuN1XmLjjire2feZH26PmcEWhEXxiHToWSmii3Gn2", "proofs": [ "4UfNyRWdWUPibgwdqSacJFUkMXkC16HpiPRfeEYkz7H7dbposczeK7Fkaib8ceiFoM21ecTVvktKjHQ1P9z3Fdqg" ], "script": "base64:AAIFAAAAAAAADCMIAhIJCgcICAgICAgIEgkKBwgBAQgIAQESBAoCCAgSAwoBCBIECgIICBIGCgQICAgIEgUKAwgICBoOCgJhMRIIdW5pdFRlc3QaDwoCYTISCW9yYWNsZUZlZRoRCgJhMxILZmVlUmVjZWl2ZXIaDgoCYTQSCHVzZXJEYXBwGhMKAmE1Eg13aGl0ZWxpc3REYXBwGhMKAmE2Eg1zY29uZXhBc3NldElkGgsKAmE3EgVvd25lchoYCgJhOBISc2NvbmV4Rmlyc3RTZWxsQ3V0GhEKAmE5EgtkYXBwUnVubmluZxoUCgJiMRIObWFpbnRlbmFuY2VNU0caEwoCYjISDXVzZXJTdXNwZW5kZWQaEQoCYjMSC3VzZXJSZW1vdmVkGhYKAmI0EhB1c2VyVW5yZWdpc3RlcmVkGhEKAmI1Egt1c2VyQWxsb3dlZBoSCgJiNhIMYXVjdGlvblR5cGUxGhIKAmI3EgxhdWN0aW9uVHlwZTIaFAoCYjgSDmdldFN0cmluZ0J5S2V5GgkKAmI5EgNrZXkaHwoCYzESGWdldEludGVnZXJCeUtleUZyb21PcmFjbGUa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WQAAAADAAAAAmM4AAAAAmo5AAAAAmQ3BAAAAAJyNQkBAAAAAmI4AAAAAQkBAAAAAmUxAAAAAgUAAAACajkFAAAAAmM4AwkAAAAAAAACBQAAAAJyNQUAAAACYjYJAQAAAAJxMgAAAAQFAAAAAmg0BQAAAAJjOAUAAAACajkFAAAAAmQ3CQEAAAACcTUAAAAEBQAAAAJoNAUAAAACYzgFAAAAAmo5BQAAAAJkNwAAAACuoh1Z", "height": 1673844, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: awu1NSsPzuEXWqxZpdTkRjgDXTw21i6fdmDVqqGskyb Next: CE1YZZhrQjxbDwgGyGrGaJs6L17MSGaukwf5DfhpdpnY Diff:
Old | New | Differences | |
---|---|---|---|
256 | 256 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
260 | - | then (bidOwner != "") | |
261 | - | else false) | |
262 | - | then (bidId != "") | |
263 | - | else false) | |
264 | - | then true | |
265 | - | else false | |
266 | - | ||
267 | - | ||
268 | 259 | func getArtData (i,issuer,artId,isBid) = { | |
269 | 260 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
270 | 261 | let totalNFT = getIntegerByKey("total_nft_issued") | |
369 | 360 | } | |
370 | 361 | ||
371 | 362 | ||
372 | - | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
373 | - | let t01551615566 = idCallerDate(i) | |
374 | - | let id = t01551615566._1 | |
375 | - | let caller = t01551615566._2 | |
376 | - | let date = t01551615566._3 | |
377 | - | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
378 | - | let t01564615797 = getArtData(i, issuer, artId, isBid) | |
379 | - | let totalNFT = t01564615797._1 | |
380 | - | let artworkName = t01564615797._2 | |
381 | - | let amountSold = t01564615797._3 | |
382 | - | let artworkPrice = t01564615797._4 | |
383 | - | let priceAssetId = t01564615797._5 | |
384 | - | let maxCanSell = t01564615797._6 | |
385 | - | let isOnSale = t01564615797._7 | |
386 | - | let t01580215948 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
387 | - | let bidDataKey = t01580215948._1 | |
388 | - | let amount = t01580215948._2 | |
389 | - | let assetId = t01580215948._3 | |
390 | - | let t01595316095 = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
391 | - | let amountForSconex = t01595316095._1 | |
392 | - | let amountForCreator = t01595316095._2 | |
393 | - | let newAmountSold = t01595316095._3 | |
394 | - | let t01610016290 = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
395 | - | let issueNFT = t01610016290._1 | |
396 | - | let idNFT = t01610016290._2 | |
397 | - | let sellStatus = t01610016290._3 | |
398 | - | let receiveNFT = t01610016290._4 | |
399 | - | let t01629516394 = getBidKeyVal(assetId, bidDataKey, date) | |
400 | - | let assetIdBid = t01629516394._1 | |
401 | - | let bidDelOld = t01629516394._2 | |
402 | - | let bidUpdate = t01629516394._3 | |
363 | + | func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = { | |
364 | + | let callerData = idCallerDate(i) | |
365 | + | let id = callerData._1 | |
366 | + | let caller = callerData._2 | |
367 | + | let date = callerData._3 | |
368 | + | let artData = getArtData(i, issuer, artId, isBid) | |
369 | + | let totalNFT = artData._1 | |
370 | + | let artworkName = artData._2 | |
371 | + | let amountSold = artData._3 | |
372 | + | let artworkPrice = artData._4 | |
373 | + | let priceAssetId = artData._5 | |
374 | + | let maxCanSell = artData._6 | |
375 | + | let isOnSale = artData._7 | |
376 | + | let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
377 | + | let bidDataKey = bidData._1 | |
378 | + | let amount = bidData._2 | |
379 | + | let assetId = bidData._3 | |
380 | + | let commisionData = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
381 | + | let amountForSconex = commisionData._1 | |
382 | + | let amountForCreator = commisionData._2 | |
383 | + | let newAmountSold = commisionData._3 | |
384 | + | let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
385 | + | let issueNFT = issuerData._1 | |
386 | + | let idNFT = issuerData._2 | |
387 | + | let sellStatus = issuerData._3 | |
388 | + | let receiveNFT = issuerData._4 | |
389 | + | let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date) | |
390 | + | let assetIdBid = bidKeyValue._1 | |
391 | + | let bidDelOld = bidKeyValue._2 | |
392 | + | let bidUpdate = bidKeyValue._3 | |
403 | 393 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
404 | 394 | let soldValue = if (!(isBid)) | |
405 | 395 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
482 | 472 | let caller = toBase58String(i.caller.bytes) | |
483 | 473 | if ((caller != issuer)) | |
484 | 474 | then throw("You cannot do this action") | |
485 | - | else buyMint(i, artId, issuer, bidId, bidOwner) | |
475 | + | else buyMint(i, artId, issuer, bidId, bidOwner, true) | |
486 | 476 | } | |
487 | 477 | ||
488 | 478 | ||
506 | 496 | if ((height > endHeight)) | |
507 | 497 | then if ((bidId == highestBidId)) | |
508 | 498 | then { | |
509 | - | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner) | |
499 | + | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true) | |
510 | 500 | let restartAuctionData = restartAuction(artId, issuer) | |
511 | 501 | (restartAuctionData ++ buyMintData) | |
512 | 502 | } | |
642 | 632 | ||
643 | 633 | ||
644 | 634 | @Callable(i) | |
645 | - | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
635 | + | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "", false) | |
646 | 636 | ||
647 | 637 | ||
648 | 638 |
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 oracleFee = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz" | |
9 | 9 | ||
10 | 10 | let userDapp = value(addressFromString("3N9cQgZFPHHVu8wqsn2DkQFehg3h8CNiooA")) | |
11 | 11 | ||
12 | 12 | let whitelistDapp = value(addressFromString("3N9xZYGpzMFDXvXuctmU6zV8qSzm2ZfF31f")) | |
13 | 13 | ||
14 | 14 | let sconexAssetId = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC' | |
15 | 15 | ||
16 | 16 | let owner = "3N1Dhq5ZZyoojQisuTLusYjnGisqrxDwGLy" | |
17 | 17 | ||
18 | 18 | let sconexFirstSellCut = 150 | |
19 | 19 | ||
20 | 20 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
21 | 21 | ||
22 | 22 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
23 | 23 | ||
24 | 24 | let userSuspended = "SUSPENDED" | |
25 | 25 | ||
26 | 26 | let userRemoved = "REMOVED" | |
27 | 27 | ||
28 | 28 | let userUnregistered = "UNREGISTERED" | |
29 | 29 | ||
30 | 30 | let userAllowed = "ALLOWED" | |
31 | 31 | ||
32 | 32 | let auctionType1 = "BIDTYPE" | |
33 | 33 | ||
34 | 34 | let auctionType2 = "TRADITIONAL" | |
35 | 35 | ||
36 | 36 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func keyUserStatus (caller) = ("user_status_" + caller) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyMinPrice (caller,artId) = ((("art_minprice_" + artId) + "_") + caller) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyBidId (bidId) = ("bid_" + bidId) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func KeyNftIssuer (nftId) = ("nft_issued_" + nftId) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(sconexAssetId))) | |
121 | 121 | ||
122 | 122 | func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getAmountHighestBidByArtId (artId) = { | |
126 | 126 | let bidId = valueOrElse(getStringByKey(keyHighestBidBidId(artId)), "") | |
127 | 127 | if ((bidId == "")) | |
128 | 128 | then 0 | |
129 | 129 | else getAmountByBidId(bidId) | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func validateString (str,max) = if ((size(str) == 0)) | |
134 | 134 | then throw("Field cannot be is empty") | |
135 | 135 | else if ((size(str) > max)) | |
136 | 136 | then throw((str + " is too long")) | |
137 | 137 | else true | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func validateUser (caller) = { | |
141 | 141 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
142 | 142 | if (if ((userStatus == userUnregistered)) | |
143 | 143 | then true | |
144 | 144 | else (userStatus == userAllowed)) | |
145 | 145 | then "Register this account first with 'Account' tab" | |
146 | 146 | else if ((userStatus == userSuspended)) | |
147 | 147 | then "Account suspended" | |
148 | 148 | else if ((userStatus == userRemoved)) | |
149 | 149 | then "Account removed" | |
150 | 150 | else "" | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func validateArtworkData (caller,cidDisplay,name,description,tags) = { | |
155 | 155 | let checkUser = validateUser(caller) | |
156 | 156 | if ((checkUser != "")) | |
157 | 157 | then throw(checkUser) | |
158 | 158 | else if ((size(cidDisplay) == 0)) | |
159 | 159 | then throw("Display CID cannot be empty") | |
160 | 160 | else if (!(validateString(name, 100))) | |
161 | 161 | then throw("100 Char. max name") | |
162 | 162 | else if (!(validateString(description, 1000))) | |
163 | 163 | then throw("1000 Char. max description") | |
164 | 164 | else if ((size(split(tags, ",")) > 5)) | |
165 | 165 | then throw("5 tags max.") | |
166 | 166 | else "" | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func isPayment (i) = if ((size(i.payments) == 0)) | |
171 | 171 | then throw("No payment attached") | |
172 | 172 | else { | |
173 | 173 | let payment = value(i.payments[0]) | |
174 | 174 | let amount = value(payment.amount) | |
175 | 175 | $Tuple2(payment, amount) | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func validatePayment (i) = { | |
180 | 180 | let t089829018 = isPayment(i) | |
181 | 181 | let payment = t089829018._1 | |
182 | 182 | let amount = t089829018._2 | |
183 | 183 | let assetId = if (if (isDefined(payment.assetId)) | |
184 | 184 | then (payment.assetId == sconexAssetId) | |
185 | 185 | else false) | |
186 | 186 | then payment.assetId | |
187 | 187 | else throw("Only Sconex token accepted as transaction fee") | |
188 | 188 | if ((amount != currentCertificationPrice)) | |
189 | 189 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
190 | 190 | else $Tuple2(amount, assetId) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
195 | 195 | let t096119647 = isPayment(i) | |
196 | 196 | let payment = t096119647._1 | |
197 | 197 | let amount = t096119647._2 | |
198 | 198 | let assetId = if (!(isDefined(payment.assetId))) | |
199 | 199 | then throw("Wrong asset id") | |
200 | 200 | else if (if ((size(priceAssetId) > 0)) | |
201 | 201 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
202 | 202 | else false) | |
203 | 203 | then payment.assetId | |
204 | 204 | else throw("Wrong asset id") | |
205 | 205 | if (if ((assetId == unit)) | |
206 | 206 | then (priceAssetId != "") | |
207 | 207 | else false) | |
208 | 208 | then throw("Wrong asset id") | |
209 | 209 | else if ((artworkPrice != amount)) | |
210 | 210 | then throw("Payment don't match") | |
211 | 211 | else $Tuple2(amount, assetId) | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(sconexAssetId))) | |
216 | 216 | then throw("Only Sconex accepted") | |
217 | 217 | else true | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func validateMinSell (assetId,price) = { | |
221 | 221 | let minSellSconex = if (unitTest) | |
222 | 222 | then 1 | |
223 | 223 | else (currentCertificationPrice * 2) | |
224 | 224 | if (if (if ((assetId == toBase58String(sconexAssetId))) | |
225 | 225 | then (minSellSconex > price) | |
226 | 226 | else false) | |
227 | 227 | then (price != 0) | |
228 | 228 | else false) | |
229 | 229 | then throw(("Wrong minimum sell price " + toString(minSellSconex))) | |
230 | 230 | else true | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
235 | 235 | then throw("Only sconex is accepted!") | |
236 | 236 | else fromBase58String(assetId) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func getPriceAssetIdFromBid (bidDataKey) = { | |
240 | 240 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
241 | 241 | if ((bidData == "")) | |
242 | 242 | then throw("Bid not found") | |
243 | 243 | else { | |
244 | 244 | let bidDataArr = split(bidData, "_") | |
245 | 245 | let bidAmount = parseIntValue(bidDataArr[1]) | |
246 | 246 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
247 | 247 | if ((0 >= bidAmount)) | |
248 | 248 | then throw("Wrong amount") | |
249 | 249 | else $Tuple2(bidAmount, bidAssetId) | |
250 | 250 | } | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func idCallerDate (i) = if (!(dappRunning)) | |
255 | 255 | then throw(maintenanceMSG) | |
256 | 256 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
260 | - | then (bidOwner != "") | |
261 | - | else false) | |
262 | - | then (bidId != "") | |
263 | - | else false) | |
264 | - | then true | |
265 | - | else false | |
266 | - | ||
267 | - | ||
268 | 259 | func getArtData (i,issuer,artId,isBid) = { | |
269 | 260 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
270 | 261 | let totalNFT = getIntegerByKey("total_nft_issued") | |
271 | 262 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
272 | 263 | if ((artworkName == "")) | |
273 | 264 | then throw("Art doesn't exist") | |
274 | 265 | else { | |
275 | 266 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
276 | 267 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
277 | 268 | let artworkPrice = if (callerIsIssuer) | |
278 | 269 | then (currentCertificationPrice * 2) | |
279 | 270 | else getIntegerByKey(keyPrice(issuer, artId)) | |
280 | 271 | let priceAssetId = if (callerIsIssuer) | |
281 | 272 | then toBase58String(sconexAssetId) | |
282 | 273 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
283 | 274 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
284 | 275 | if (if (if (!(isBid)) | |
285 | 276 | then !(callerIsIssuer) | |
286 | 277 | else false) | |
287 | 278 | then if (if ((0 >= artworkPrice)) | |
288 | 279 | then true | |
289 | 280 | else !(isOnSale)) | |
290 | 281 | then true | |
291 | 282 | else (0 >= maxCanSell) | |
292 | 283 | else false) | |
293 | 284 | then throw("Art not for sale") | |
294 | 285 | else if (if (if (!(isBid)) | |
295 | 286 | then callerIsIssuer | |
296 | 287 | else false) | |
297 | 288 | then (0 >= maxCanSell) | |
298 | 289 | else false) | |
299 | 290 | then throw("Max issuable not set") | |
300 | 291 | else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
301 | 292 | } | |
302 | 293 | } | |
303 | 294 | ||
304 | 295 | ||
305 | 296 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
306 | 297 | let checkUser = validateUser(issuer) | |
307 | 298 | if (if (isBid) | |
308 | 299 | then (checkUser != "") | |
309 | 300 | else false) | |
310 | 301 | then throw(checkUser) | |
311 | 302 | else { | |
312 | 303 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
313 | 304 | let t01351913648 = if (isBid) | |
314 | 305 | then getPriceAssetIdFromBid(bidDataKey) | |
315 | 306 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
316 | 307 | let amount = t01351913648._1 | |
317 | 308 | let assetId = t01351913648._2 | |
318 | 309 | $Tuple3(bidDataKey, amount, assetId) | |
319 | 310 | } | |
320 | 311 | } | |
321 | 312 | ||
322 | 313 | ||
323 | 314 | func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = { | |
324 | 315 | let isWhitelisted = checkWhitelist(issuer) | |
325 | 316 | let cut = if ((isWhitelisted > height)) | |
326 | 317 | then 0 | |
327 | 318 | else if ((assetId == sconexAssetId)) | |
328 | 319 | then sconexFirstSellCut | |
329 | 320 | else throw("Only Sconex is accepted!") | |
330 | 321 | let amountForSconex = fraction(amount, cut, 1000) | |
331 | 322 | let amountForCreator = (amount - amountForSconex) | |
332 | 323 | if ((amountSold == maxCanSell)) | |
333 | 324 | then throw("Art sold out") | |
334 | 325 | else { | |
335 | 326 | let newAmountSold = (amountSold + 1) | |
336 | 327 | $Tuple3(amountForSconex, amountForCreator, newAmountSold) | |
337 | 328 | } | |
338 | 329 | } | |
339 | 330 | ||
340 | 331 | ||
341 | 332 | func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
342 | 333 | let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
343 | 334 | let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
344 | 335 | let idNFT = calculateAssetId(issueNFT) | |
345 | 336 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
346 | 337 | then true | |
347 | 338 | else !(isOnSale)) | |
348 | 339 | then false | |
349 | 340 | else true | |
350 | 341 | let receiveNFT = if (if (if ((caller == issuer)) | |
351 | 342 | then (bidOwner != "") | |
352 | 343 | else false) | |
353 | 344 | then (bidId != "") | |
354 | 345 | else false) | |
355 | 346 | then addressFromStringValue(bidOwner) | |
356 | 347 | else i.caller | |
357 | 348 | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
358 | 349 | } | |
359 | 350 | ||
360 | 351 | ||
361 | 352 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
362 | 353 | let assetIdBid = if (!(isDefined(assetId))) | |
363 | 354 | then throw("Only sconex is accepted") | |
364 | 355 | else toBase58String(value(assetId)) | |
365 | 356 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
366 | 357 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
367 | 358 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
368 | 359 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
369 | 360 | } | |
370 | 361 | ||
371 | 362 | ||
372 | - | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
373 | - | let t01551615566 = idCallerDate(i) | |
374 | - | let id = t01551615566._1 | |
375 | - | let caller = t01551615566._2 | |
376 | - | let date = t01551615566._3 | |
377 | - | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
378 | - | let t01564615797 = getArtData(i, issuer, artId, isBid) | |
379 | - | let totalNFT = t01564615797._1 | |
380 | - | let artworkName = t01564615797._2 | |
381 | - | let amountSold = t01564615797._3 | |
382 | - | let artworkPrice = t01564615797._4 | |
383 | - | let priceAssetId = t01564615797._5 | |
384 | - | let maxCanSell = t01564615797._6 | |
385 | - | let isOnSale = t01564615797._7 | |
386 | - | let t01580215948 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
387 | - | let bidDataKey = t01580215948._1 | |
388 | - | let amount = t01580215948._2 | |
389 | - | let assetId = t01580215948._3 | |
390 | - | let t01595316095 = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
391 | - | let amountForSconex = t01595316095._1 | |
392 | - | let amountForCreator = t01595316095._2 | |
393 | - | let newAmountSold = t01595316095._3 | |
394 | - | let t01610016290 = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
395 | - | let issueNFT = t01610016290._1 | |
396 | - | let idNFT = t01610016290._2 | |
397 | - | let sellStatus = t01610016290._3 | |
398 | - | let receiveNFT = t01610016290._4 | |
399 | - | let t01629516394 = getBidKeyVal(assetId, bidDataKey, date) | |
400 | - | let assetIdBid = t01629516394._1 | |
401 | - | let bidDelOld = t01629516394._2 | |
402 | - | let bidUpdate = t01629516394._3 | |
363 | + | func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = { | |
364 | + | let callerData = idCallerDate(i) | |
365 | + | let id = callerData._1 | |
366 | + | let caller = callerData._2 | |
367 | + | let date = callerData._3 | |
368 | + | let artData = getArtData(i, issuer, artId, isBid) | |
369 | + | let totalNFT = artData._1 | |
370 | + | let artworkName = artData._2 | |
371 | + | let amountSold = artData._3 | |
372 | + | let artworkPrice = artData._4 | |
373 | + | let priceAssetId = artData._5 | |
374 | + | let maxCanSell = artData._6 | |
375 | + | let isOnSale = artData._7 | |
376 | + | let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
377 | + | let bidDataKey = bidData._1 | |
378 | + | let amount = bidData._2 | |
379 | + | let assetId = bidData._3 | |
380 | + | let commisionData = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
381 | + | let amountForSconex = commisionData._1 | |
382 | + | let amountForCreator = commisionData._2 | |
383 | + | let newAmountSold = commisionData._3 | |
384 | + | let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
385 | + | let issueNFT = issuerData._1 | |
386 | + | let idNFT = issuerData._2 | |
387 | + | let sellStatus = issuerData._3 | |
388 | + | let receiveNFT = issuerData._4 | |
389 | + | let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date) | |
390 | + | let assetIdBid = bidKeyValue._1 | |
391 | + | let bidDelOld = bidKeyValue._2 | |
392 | + | let bidUpdate = bidKeyValue._3 | |
403 | 393 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
404 | 394 | let soldValue = if (!(isBid)) | |
405 | 395 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
406 | 396 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
407 | 397 | let soldData = StringEntry(soldKey, soldValue) | |
408 | 398 | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSconex, assetId), ScriptTransfer(receiveNFT, 1, idNFT), StringEntry(KeyNftIssuer(toBase58String(idNFT)), issuer)] | |
409 | 399 | if (isBid) | |
410 | 400 | then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld) | |
411 | 401 | else soldData :: buyRes | |
412 | 402 | } | |
413 | 403 | ||
414 | 404 | ||
415 | 405 | func setBidNonTraditional (i,artId,issuer) = { | |
416 | 406 | let t02770927747 = idCallerDate(i) | |
417 | 407 | let id = t02770927747._1 | |
418 | 408 | let caller = t02770927747._2 | |
419 | 409 | let date = t02770927747._3 | |
420 | 410 | let t02775227788 = isPayment(i) | |
421 | 411 | let payment = t02775227788._1 | |
422 | 412 | let amount = t02775227788._2 | |
423 | 413 | let assetId = if (!(isDefined(payment.assetId))) | |
424 | 414 | then throw("Only sconex is accepted!") | |
425 | 415 | else toBase58String(value(payment.assetId)) | |
426 | 416 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
427 | 417 | if (!(acceptedAssetIds(assetId))) | |
428 | 418 | then throw("asset not accepted") | |
429 | 419 | else if (!(validateMinSell(assetId, amount))) | |
430 | 420 | then throw("Wrong min sell") | |
431 | 421 | else { | |
432 | 422 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
433 | 423 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
434 | 424 | if ((0 >= maxCanSell)) | |
435 | 425 | then throw("No max edition set for this artwork") | |
436 | 426 | else if ((amountSold >= maxCanSell)) | |
437 | 427 | then throw("Sold out, you cannot bid") | |
438 | 428 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
439 | 429 | } | |
440 | 430 | } | |
441 | 431 | ||
442 | 432 | ||
443 | 433 | func setBidTraditional (i,artId,issuer) = { | |
444 | 434 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
445 | 435 | let highestBid = getAmountHighestBidByArtId(artId) | |
446 | 436 | if ((height > endHeight)) | |
447 | 437 | then throw("This auction is finished already!") | |
448 | 438 | else { | |
449 | 439 | let callderData = idCallerDate(i) | |
450 | 440 | let id = callderData._1 | |
451 | 441 | let caller = callderData._2 | |
452 | 442 | let date = callderData._3 | |
453 | 443 | let isPaymentVar = isPayment(i) | |
454 | 444 | let payment = isPaymentVar._1 | |
455 | 445 | let amount = isPaymentVar._2 | |
456 | 446 | if ((highestBid >= amount)) | |
457 | 447 | then throw(("Please place a bid higher then: " + toString(highestBid))) | |
458 | 448 | else { | |
459 | 449 | let assetId = if (!(isDefined(payment.assetId))) | |
460 | 450 | then throw("Only sconex is accepted!") | |
461 | 451 | else toBase58String(value(payment.assetId)) | |
462 | 452 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
463 | 453 | if (!(acceptedAssetIds(assetId))) | |
464 | 454 | then throw("asset not accepted") | |
465 | 455 | else if (!(validateMinSell(assetId, amount))) | |
466 | 456 | then throw("Wrong min sell") | |
467 | 457 | else { | |
468 | 458 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
469 | 459 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
470 | 460 | if ((0 >= maxCanSell)) | |
471 | 461 | then throw("No max edition set for this artwork") | |
472 | 462 | else if ((amountSold >= maxCanSell)) | |
473 | 463 | then throw("Sold out, you cannot bid") | |
474 | 464 | 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)] | |
475 | 465 | } | |
476 | 466 | } | |
477 | 467 | } | |
478 | 468 | } | |
479 | 469 | ||
480 | 470 | ||
481 | 471 | func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = { | |
482 | 472 | let caller = toBase58String(i.caller.bytes) | |
483 | 473 | if ((caller != issuer)) | |
484 | 474 | then throw("You cannot do this action") | |
485 | - | else buyMint(i, artId, issuer, bidId, bidOwner) | |
475 | + | else buyMint(i, artId, issuer, bidId, bidOwner, true) | |
486 | 476 | } | |
487 | 477 | ||
488 | 478 | ||
489 | 479 | func restartAuction (artId,issuer) = { | |
490 | 480 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
491 | 481 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
492 | 482 | let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
493 | 483 | let duration = getIntegerByKey(keyDuration(issuer, artId)) | |
494 | 484 | let endHeight = (duration + height) | |
495 | 485 | if ((height > oldEndHeight)) | |
496 | 486 | then if ((amountSold == maxCanSell)) | |
497 | 487 | then throw("Can't restart auction, max amount sold") | |
498 | 488 | else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))] | |
499 | 489 | else throw("Previous auction isn't completed yet") | |
500 | 490 | } | |
501 | 491 | ||
502 | 492 | ||
503 | 493 | func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = { | |
504 | 494 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
505 | 495 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
506 | 496 | if ((height > endHeight)) | |
507 | 497 | then if ((bidId == highestBidId)) | |
508 | 498 | then { | |
509 | - | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner) | |
499 | + | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true) | |
510 | 500 | let restartAuctionData = restartAuction(artId, issuer) | |
511 | 501 | (restartAuctionData ++ buyMintData) | |
512 | 502 | } | |
513 | 503 | else throw("This is not the winning bid!") | |
514 | 504 | else throw("This auction is not yet finished!") | |
515 | 505 | } | |
516 | 506 | ||
517 | 507 | ||
518 | 508 | func cancelBidImpl (i,artId,issuer,bidId) = { | |
519 | 509 | let t02894229094 = idCallerDate(i) | |
520 | 510 | let id = t02894229094._1 | |
521 | 511 | let caller = t02894229094._2 | |
522 | 512 | let date = t02894229094._3 | |
523 | 513 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
524 | 514 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
525 | 515 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
526 | 516 | if ((bidData == "")) | |
527 | 517 | then throw("Bid not found") | |
528 | 518 | else { | |
529 | 519 | let bidDataArr = split(bidData, "_") | |
530 | 520 | let assetId = getBidAssetId(bidDataArr[0]) | |
531 | 521 | let bidStatus = "CANCELED" | |
532 | 522 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
533 | 523 | } | |
534 | 524 | } | |
535 | 525 | ||
536 | 526 | ||
537 | 527 | func cancelBidImplTraditional (i,artId,issuer,bidId) = { | |
538 | 528 | let t02894229094 = idCallerDate(i) | |
539 | 529 | let id = t02894229094._1 | |
540 | 530 | let caller = t02894229094._2 | |
541 | 531 | let date = t02894229094._3 | |
542 | 532 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
543 | 533 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
544 | 534 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
545 | 535 | if ((bidData == "")) | |
546 | 536 | then throw("Bid not found") | |
547 | 537 | else { | |
548 | 538 | let bidDataArr = split(bidData, "_") | |
549 | 539 | let assetId = getBidAssetId(bidDataArr[0]) | |
550 | 540 | let bidStatus = "CANCELED" | |
551 | 541 | let bidAmount = parseIntValue(bidDataArr[1]) | |
552 | 542 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
553 | 543 | if ((bidId == highestBidId)) | |
554 | 544 | then throw("You can't cancel the highest bid!") | |
555 | 545 | else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)] | |
556 | 546 | } | |
557 | 547 | } | |
558 | 548 | ||
559 | 549 | ||
560 | 550 | @Callable(i) | |
561 | 551 | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement) = { | |
562 | 552 | let t01774017781 = idCallerDate(i) | |
563 | 553 | let artId = t01774017781._1 | |
564 | 554 | let caller = t01774017781._2 | |
565 | 555 | let date = t01774017781._3 | |
566 | 556 | let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags) | |
567 | 557 | if ((validateArtwork != "")) | |
568 | 558 | then throw("Something went wrong!") | |
569 | 559 | else { | |
570 | 560 | let t01817018212 = validatePayment(i) | |
571 | 561 | let amount = t01817018212._1 | |
572 | 562 | let assetId = t01817018212._2 | |
573 | 563 | if (!(isDefined(amount))) | |
574 | 564 | then throw("Something went wrong") | |
575 | 565 | else { | |
576 | 566 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
577 | 567 | if ((entryExist != "")) | |
578 | 568 | then throw("You already added it") | |
579 | 569 | else { | |
580 | 570 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
581 | 571 | if ((hashExist != "")) | |
582 | 572 | then throw("Hash already registered") | |
583 | 573 | else [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)] | |
584 | 574 | } | |
585 | 575 | } | |
586 | 576 | } | |
587 | 577 | } | |
588 | 578 | ||
589 | 579 | ||
590 | 580 | ||
591 | 581 | @Callable(i) | |
592 | 582 | func sellArtwork (artId,price,maxMint,assetId,auctionType,minBid,duration) = { | |
593 | 583 | let t02571425747 = idCallerDate(i) | |
594 | 584 | let id = t02571425747._1 | |
595 | 585 | let caller = t02571425747._2 | |
596 | 586 | let artworkName = getStringByKey(keyName(caller, artId)) | |
597 | 587 | if (!(containsElement([auctionType1, auctionType2], auctionType))) | |
598 | 588 | then throw("We dont know this auction type") | |
599 | 589 | else if ((artworkName == "")) | |
600 | 590 | then throw("This art doesn't match your account") | |
601 | 591 | else { | |
602 | 592 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
603 | 593 | if (!(acceptedAssetIds(assetId))) | |
604 | 594 | then throw("Something went wrong!") | |
605 | 595 | else if (!(validateMinSell(assetId, price))) | |
606 | 596 | then throw("Something went wrong!") | |
607 | 597 | else { | |
608 | 598 | let checkUser = validateUser(caller) | |
609 | 599 | if ((checkUser != "")) | |
610 | 600 | then throw(checkUser) | |
611 | 601 | else { | |
612 | 602 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
613 | 603 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
614 | 604 | if ((maxMint > 10)) | |
615 | 605 | then throw("10 editions max per artwork") | |
616 | 606 | else if (if ((amountSold != 0)) | |
617 | 607 | then (amountSold == maxCanSell) | |
618 | 608 | else false) | |
619 | 609 | then throw("Max edition reached.") | |
620 | 610 | else if (if ((amountSold > 0)) | |
621 | 611 | then (maxCanSell != maxMint) | |
622 | 612 | else false) | |
623 | 613 | then throw("Cannot change maximum issuable anymore") | |
624 | 614 | else if (if ((bidNbr > 0)) | |
625 | 615 | then (maxCanSell != maxMint) | |
626 | 616 | else false) | |
627 | 617 | then throw("Cannot change maximum issuable with active orders") | |
628 | 618 | else { | |
629 | 619 | let sellStatus = if (if ((price > 0)) | |
630 | 620 | then (maxMint > 0) | |
631 | 621 | else false) | |
632 | 622 | then true | |
633 | 623 | else false | |
634 | 624 | let endHeight = (duration + height) | |
635 | 625 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyMinPrice(caller, artId), minBid), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType)] | |
636 | 626 | } | |
637 | 627 | } | |
638 | 628 | } | |
639 | 629 | } | |
640 | 630 | } | |
641 | 631 | ||
642 | 632 | ||
643 | 633 | ||
644 | 634 | @Callable(i) | |
645 | - | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
635 | + | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "", false) | |
646 | 636 | ||
647 | 637 | ||
648 | 638 | ||
649 | 639 | @Callable(i) | |
650 | 640 | func deleteEntry (entry) = { | |
651 | 641 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
652 | 642 | if ((caller == owner)) | |
653 | 643 | then [DeleteEntry(entry)] | |
654 | 644 | else throw("no") | |
655 | 645 | } | |
656 | 646 | ||
657 | 647 | ||
658 | 648 | ||
659 | 649 | @Callable(i) | |
660 | 650 | func setBid (artId,issuer) = { | |
661 | 651 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
662 | 652 | if ((auctionType == auctionType1)) | |
663 | 653 | then setBidNonTraditional(i, artId, issuer) | |
664 | 654 | else if ((auctionType == auctionType2)) | |
665 | 655 | then setBidTraditional(i, artId, issuer) | |
666 | 656 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
667 | 657 | } | |
668 | 658 | ||
669 | 659 | ||
670 | 660 | ||
671 | 661 | @Callable(i) | |
672 | 662 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
673 | 663 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
674 | 664 | if ((auctionType == auctionType1)) | |
675 | 665 | then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner) | |
676 | 666 | else if ((auctionType == auctionType2)) | |
677 | 667 | then acceptBidTraditional(i, artId, issuer, bidId, bidOwner) | |
678 | 668 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
679 | 669 | } | |
680 | 670 | ||
681 | 671 | ||
682 | 672 | ||
683 | 673 | @Callable(i) | |
684 | 674 | func cancelBid (artId,issuer,bidId) = { | |
685 | 675 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
686 | 676 | if ((auctionType == auctionType1)) | |
687 | 677 | then cancelBidImpl(i, artId, issuer, bidId) | |
688 | 678 | else cancelBidImplTraditional(i, artId, issuer, bidId) | |
689 | 679 | } | |
690 | 680 | ||
691 | 681 |
github/deemru/w8io/026f985 81.84 ms ◑