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