tx · 9gRLfvq4m9svk5TbZaC6MkzZf1gvZjFTrqnFRASzkpiZ

3MqAGZXRqHw91nJdzVpQwn6u1LMdJd51QmF:  -0.01000000 Waves

2021.09.10 16:19 [1696998] smart account 3MqAGZXRqHw91nJdzVpQwn6u1LMdJd51QmF > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
39.75 ms