tx · 37xNXRuXuPX9cHwMt1e3XqSbJfjNctXofTc3MdBFGmQF

3N6qYg1veUTYEoMkZsW59egiHhHQ4vqa54H:  -0.01000000 Waves

2021.09.09 16:15 [1695558] smart account 3N6qYg1veUTYEoMkZsW59egiHhHQ4vqa54H > SELF 0.00000000 Waves

{ "type": 13, "id": "37xNXRuXuPX9cHwMt1e3XqSbJfjNctXofTc3MdBFGmQF", "fee": 1000000, "feeAssetId": null, "timestamp": 1631193331638, "version": 2, "chainId": 84, "sender": "3N6qYg1veUTYEoMkZsW59egiHhHQ4vqa54H", "senderPublicKey": "9dHqLx2hUVh3qS6SLoxwpryb59KpejB9EoMZJWxVAtXo", "proofs": [ "3tf9JyohCWyASNTZ2tdixeDorKWyWV5zakuGEfvkrAaAq6BJiMYG7wwEqSGQW2GE19krY4jrmvF1iWrSNpSw5AQo" ], "script": "base64:AAIFAAAAAAAAAFEIAhINCgsICAgICAgICAgICBIMCgoICAgICAgICAgIEgUKAwgICBIECgIICBIHCgUIAQEIARIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAgAAABFAAAAAAh1bml0VGVzdAYAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGFZakUyN0FhNzlkNWhIc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AAEFAAAABGRhdGUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAASY3VycmVudF9iaWRhbW91bnRfBQAAAAVhcnRJZAkAAGUAAAACBQAAAAZiaWROYnIAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAADXJldHVybk1vbmV5VG8JAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAWmlvfw==", "height": 1695558, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let unitTest = true
5+
6+let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
7+
8+let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
9+
10+let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
11+
12+let userDapp = if (unitTest)
13+ then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
14+ else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj"))
15+
16+let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
17+
18+let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
19+
20+let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
21+
22+let wavesAssetId = base58''
23+
24+let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
25+
26+let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
27+
28+let signCut = 7
29+
30+let usdnWaveCut = 10
31+
32+let defaultLicence = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf"
33+
34+let defaultHashLicence = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639"
35+
36+let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
37+
38+let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
39+
40+let userSuspended = "SUSPENDED"
41+
42+let userRemoved = "REMOVED"
43+
44+let userUnregistered = "UNREGISTERED"
45+
46+let userAllowed = "ALLOWED"
47+
48+func getStringByKey (key) = valueOrElse(getString(this, key), "")
49+
50+
51+func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
52+
53+
54+func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
55+
56+
57+func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0)
58+
59+
60+func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
61+
62+
63+let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId)))
64+
65+func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
66+ case a: String =>
67+ if (contains(a, sha256Hash))
68+ then true
69+ else false
70+ case _ =>
71+ false
72+}
73+
74+
75+func validateCID (cid) = if (contains(cid, "/"))
76+ then if (if ((76 > size(cid)))
77+ then (size(split(cid, "/")[0]) == 59)
78+ else false)
79+ then (16 > size(split(cid, "/")[1]))
80+ else false
81+ else false
82+
83+
84+func validateHash (hash) = (size(hash) == 64)
85+
86+
87+func keyUserStatus (caller) = ("user_status_" + caller)
88+
89+
90+func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
91+
92+
93+func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
94+
95+
96+func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
97+
98+
99+func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
100+
101+
102+func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
103+
104+
105+func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
106+
107+
108+func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
109+
110+
111+func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
112+
113+
114+func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
115+
116+
117+func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
118+
119+
120+func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
121+
122+
123+func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
124+
125+
126+func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
127+
128+
129+func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
130+
131+
132+func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
133+
134+
135+func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller)
136+
137+
138+func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
139+
140+
141+func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller)
142+
143+
144+func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
145+
146+
147+func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
148+
149+
150+func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
151+
152+
153+func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
154+
155+
156+func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay)))
157+ then throw("Wrong Display CID")
158+ else if (!(validateCID(cidExport)))
159+ then throw("Wrong Export CID")
160+ else if (if ((cidLicence != ""))
161+ then !(validateCID(cidLicence))
162+ else false)
163+ then throw("Wrong Licence CID")
164+ else true
165+
166+
167+func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export)))
168+ then throw("Export Hash 64 char. max")
169+ else if (!(validateHash(sha256Licence)))
170+ then throw("Licence Hash 64 char. max")
171+ else true
172+
173+
174+func validateString (str,max) = if ((size(str) == 0))
175+ then throw("Field cannot be is empty")
176+ else if ((size(str) > max))
177+ then throw((str + " is too long"))
178+ else true
179+
180+
181+func validateUser (caller) = {
182+ let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
183+ if (if ((userStatus == userUnregistered))
184+ then true
185+ else (userStatus == userAllowed))
186+ then "Register this account first with \"Account\" tab"
187+ else if ((userStatus == userSuspended))
188+ then "Account suspended"
189+ else if ((userStatus == userRemoved))
190+ then "Account removed"
191+ else ""
192+ }
193+
194+
195+func setLIcence (cidLicence,sha256Licence) = {
196+ let cid = if ((size(cidLicence) == 0))
197+ then defaultLicence
198+ else cidLicence
199+ let hash = if ((size(sha256Licence) == 0))
200+ then defaultHashLicence
201+ else sha256Licence
202+ $Tuple2(cid, hash)
203+ }
204+
205+
206+func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags) = {
207+ let checkUser = validateUser(caller)
208+ if ((checkUser != ""))
209+ then throw(checkUser)
210+ else if ((size(cidDisplay) == 0))
211+ then throw("Display CID cannot be empty")
212+ else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
213+ then throw("Problem with CID")
214+ else if (!(validateAllHash(sha256Export, licenceHash)))
215+ then throw("Problem with Hashes")
216+ else if (!(validateString(name, 100)))
217+ then throw("100 Char. max name")
218+ else if (!(validateString(description, 1000)))
219+ then throw("1000 Char. max description")
220+ else if ((size(split(tags, ",")) > 5))
221+ then throw("5 tags max.")
222+ else ""
223+ }
224+
225+
226+func isPayment (i) = if ((size(i.payments) == 0))
227+ then throw("No payment attached")
228+ else {
229+ let payment = value(i.payments[0])
230+ let amount = value(payment.amount)
231+ $Tuple2(payment, amount)
232+ }
233+
234+
235+func validatePayment (i) = {
236+ let $t093079343 = isPayment(i)
237+ let payment = $t093079343._1
238+ let amount = $t093079343._2
239+ let assetId = if (if (isDefined(payment.assetId))
240+ then (payment.assetId == signAssetId)
241+ else false)
242+ then payment.assetId
243+ else throw("Only SIGN token accepted as transaction fee")
244+ if ((amount != currentCertificationPrice))
245+ then throw(("Payment amount should be " + toString(currentCertificationPrice)))
246+ else $Tuple2(amount, assetId)
247+ }
248+
249+
250+func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
251+ case b: Int =>
252+ if ((b != 0))
253+ then true
254+ else false
255+ case _ =>
256+ false
257+}
258+
259+
260+func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
261+ let $t099509986 = isPayment(i)
262+ let payment = $t099509986._1
263+ let amount = $t099509986._2
264+ let assetId = if (!(isDefined(payment.assetId)))
265+ then unit
266+ else if (if ((size(priceAssetId) > 0))
267+ then (toBase58String(value(payment.assetId)) == priceAssetId)
268+ else false)
269+ then payment.assetId
270+ else throw("Wrong asset id")
271+ if (if ((assetId == unit))
272+ then (priceAssetId != "")
273+ else false)
274+ then throw("Wrong asset id")
275+ else if ((artworkPrice != amount))
276+ then throw("Payment don't match")
277+ else $Tuple2(amount, assetId)
278+ }
279+
280+
281+func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
282+ then (assetId != toBase58String(wavesAssetId))
283+ else false)
284+ then (assetId != "WAVES")
285+ else false)
286+ then (assetId != toBase58String(usdnAssetId))
287+ else false)
288+ then throw("Only SIGN, USDN or WAVES accepted")
289+ else true
290+
291+
292+func validateMinSell (assetId,price) = {
293+ let minSellWaves = if (unitTest)
294+ then 10
295+ else getIntegerByKeyFromOracle("waves_min_sell")
296+ let minSellUsdn = 1000000
297+ let minSellSign = if (unitTest)
298+ then 1
299+ else (currentCertificationPrice * 2)
300+ if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
301+ then (minSellUsdn > price)
302+ else false)
303+ then (price != 0)
304+ else false)
305+ then true
306+ else if (if ((assetId == toBase58String(signAssetId)))
307+ then (minSellSign > price)
308+ else false)
309+ then (price != 0)
310+ else false)
311+ then true
312+ else if (if (if ((assetId == toBase58String(wavesAssetId)))
313+ then true
314+ else (assetId == "WAVES"))
315+ then (minSellWaves > price)
316+ else false)
317+ then (price != 0)
318+ else false)
319+ then throw("Wrong minimum sell price")
320+ else true
321+ }
322+
323+
324+func getBidAssetId (assetId) = if ((assetId == "WAVES"))
325+ then unit
326+ else fromBase58String(assetId)
327+
328+
329+func getPriceAssetIdFromBid (bidDataKey) = {
330+ let bidData = getStringByKey((bidDataKey + "_OPEN"))
331+ if ((bidData == ""))
332+ then throw("Bid not found")
333+ else {
334+ let bidDataArr = split(bidData, "_")
335+ let bidAmount = parseIntValue(bidDataArr[1])
336+ let bidAssetId = getBidAssetId(bidDataArr[0])
337+ if ((0 >= bidAmount))
338+ then throw("Wrong amount")
339+ else $Tuple2(bidAmount, bidAssetId)
340+ }
341+ }
342+
343+
344+func idCallerDate (i) = if (!(dappRunning))
345+ then throw(maintenanceMSG)
346+ else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
347+
348+
349+func buyMint (i,artId,issuer,bidId,bidOwner) = {
350+ let $t01225312313 = idCallerDate(i)
351+ let id = $t01225312313._1
352+ let caller = $t01225312313._2
353+ let date = $t01225312313._3
354+ let isBid = if (if (if ((toBase58String(i.caller.bytes) == issuer))
355+ then (bidOwner != "")
356+ else false)
357+ then (bidId != "")
358+ else false)
359+ then true
360+ else false
361+ let blockEnd = getIntegerByKey(keyEndSale(caller, artId))
362+ if (if (if ((blockEnd != 0))
363+ then (height >= blockEnd)
364+ else false)
365+ then !(isBid)
366+ else false)
367+ then throw("Sale ended.")
368+ else {
369+ let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer)
370+ let totalNFT = getIntegerByKey("total_nft_issued")
371+ let signID = getStringByKey(keySignID(issuer, artId))
372+ let artworkName = getStringByKey(keyName(issuer, artId))
373+ if ((artworkName == ""))
374+ then throw("Art doesn't exist")
375+ else {
376+ let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
377+ let amountSold = getIntegerByKey(keyIssued(issuer, artId))
378+ let artworkPrice = if (callerIsIssuer)
379+ then (currentCertificationPrice * 2)
380+ else getIntegerByKey(keyPrice(issuer, artId))
381+ let priceAssetId = if (callerIsIssuer)
382+ then toBase58String(signAssetId)
383+ else getStringByKey(keyAssetIdAccepted(issuer, artId))
384+ let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
385+ if (if (if (!(isBid))
386+ then !(callerIsIssuer)
387+ else false)
388+ then if (if ((0 >= artworkPrice))
389+ then true
390+ else !(isOnSale))
391+ then true
392+ else (0 >= maxCanSell)
393+ else false)
394+ then throw("Art not for sale")
395+ else if (if (if (!(isBid))
396+ then callerIsIssuer
397+ else false)
398+ then (0 >= maxCanSell)
399+ else false)
400+ then throw("Max issuable not set")
401+ else {
402+ let checkUser = validateUser(issuer)
403+ if (if (isBid)
404+ then (checkUser != "")
405+ else false)
406+ then throw(checkUser)
407+ else {
408+ let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
409+ let $t01409214251 = if (isBid)
410+ then getPriceAssetIdFromBid(bidDataKey)
411+ else validatePriceAssetId(i, priceAssetId, artworkPrice)
412+ let amount = $t01409214251._1
413+ let assetId = $t01409214251._2
414+ let isWhitelisted = checkWhitelist(issuer)
415+ let cut = if ((isWhitelisted > height))
416+ then 0
417+ else if ((assetId == signAssetId))
418+ then signCut
419+ else usdnWaveCut
420+ let amountForSign = fraction(amount, cut, 100)
421+ let amountForCreator = (amount - amountForSign)
422+ if ((amountSold == maxCanSell))
423+ then throw("Art sold out")
424+ else {
425+ let newAmountSold = (amountSold + 1)
426+ let issueMeta = ((((((((((("Creator: " + issuer) + ",
427+ ArtID: ") + artId) + ",
428+ SignID: ") + signID) + ",
429+ Artwork name: ") + artworkName) + ",
430+ Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
431+ let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
432+ let idNFT = calculateAssetId(issueNFT)
433+ let sellStatus = if (if ((newAmountSold == maxCanSell))
434+ then true
435+ else !(isOnSale))
436+ then false
437+ else true
438+ let receiveNFT = if (if (if ((caller == issuer))
439+ then (bidOwner != "")
440+ else false)
441+ then (bidId != "")
442+ else false)
443+ then addressFromStringValue(bidOwner)
444+ else i.caller
445+ let assetIdBid = if (!(isDefined(assetId)))
446+ then "WAVES"
447+ else toBase58String(value(assetId))
448+ let bidData = getStringByKey((bidDataKey + "_OPEN"))
449+ let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
450+ let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
451+ let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
452+ let soldValue = if (!(isBid))
453+ then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
454+ else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
455+ let soldData = StringEntry(soldKey, soldValue)
456+ let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)]
457+ if (isBid)
458+ then [soldData, bidUpdate, bidDelOld] :: buyRes
459+ else soldData :: buyRes
460+ }
461+ }
462+ }
463+ }
464+ }
465+ }
466+
467+
468+@Callable(i)
469+func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
470+ let $t01690816949 = idCallerDate(i)
471+ let artId = $t01690816949._1
472+ let caller = $t01690816949._2
473+ let date = $t01690816949._3
474+ if (!(validateHash(sha256Hash)))
475+ then throw("Hash should be 64 characters maximum")
476+ else {
477+ let $t01705417123 = setLIcence(cidLicence, sha256Licence)
478+ let licenceCID = $t01705417123._1
479+ let licenceHash = $t01705417123._2
480+ let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags)
481+ if ((validateArtwork != ""))
482+ then throw("Something went wrong!")
483+ else {
484+ let $t01734717389 = validatePayment(i)
485+ let amount = $t01734717389._1
486+ let assetId = $t01734717389._2
487+ if (!(isDefined(amount)))
488+ then throw("Something went wrong")
489+ else {
490+ let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
491+ if ((entryExist != ""))
492+ then throw("You already added it")
493+ else {
494+ let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
495+ if ((hashExist != ""))
496+ then throw("Hash already registered")
497+ else {
498+ let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
499+ if (!(isSignCertified))
500+ then throw("Sign Certificate not found for this address.")
501+ 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(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
502+ }
503+ }
504+ }
505+ }
506+ }
507+ }
508+
509+
510+
511+@Callable(i)
512+func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
513+ then throw(maintenanceMSG)
514+ else {
515+ let caller = toBase58String(i.caller.bytes)
516+ let $t02007620145 = setLIcence(cidLicence, sha256Licence)
517+ let licenceCID = $t02007620145._1
518+ let licenceHash = $t02007620145._2
519+ let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags)
520+ if ((validateArtwork != ""))
521+ then throw("Something went wrong!")
522+ else {
523+ let entryExist = getStringByKey(keyName(caller, txid))
524+ if ((entryExist == ""))
525+ then throw("Entry not found")
526+ else {
527+ let flag = getStringByKey(keyFlag(caller, txid))
528+ if ((flag == "ILLEGAL"))
529+ then throw("Cannot update ILLEGAL artwork")
530+ else if (!(isArtMinted(caller, txid)))
531+ then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type)]
532+ else throw("Already minted")
533+ }
534+ }
535+ }
536+
537+
538+
539+@Callable(i)
540+func flagArtwork (artId,addr,flag) = {
541+ let $t02151221545 = idCallerDate(i)
542+ let id = $t02151221545._1
543+ let caller = $t02151221545._2
544+ if (containsElement([chris, toString(this)], caller))
545+ then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "SUSPENDED", "FLAGGED", "ILLEGAL"], flag))
546+ then [StringEntry(keyFlag(addr, artId), flag)]
547+ else throw(("Unknow status " + flag))
548+ else throw("You are not allowed")
549+ }
550+
551+
552+
553+@Callable(i)
554+func deleteArtwork (artId,addr) = {
555+ let $t02195421987 = idCallerDate(i)
556+ let id = $t02195421987._1
557+ let caller = $t02195421987._2
558+ let addrToUse = if (containsElement([chris, joep, toString(this)], caller))
559+ then addr
560+ else caller
561+ let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
562+ if ((entryExist == ""))
563+ then throw("No art matching for this address")
564+ else {
565+ let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
566+ if ((sha256Hash == ""))
567+ then throw("No art hash matching for this address")
568+ else {
569+ let signID = getStringByKey(keySignID(addrToUse, artId))
570+ if ((signID == ""))
571+ then throw("No SIGN ID matching")
572+ else {
573+ let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addr, artId)), DeleteEntry(keyPrice(addr, artId)), DeleteEntry(keyAssetIdAccepted(addr, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId))]
574+ if (!(isArtMinted(addrToUse, artId)))
575+ then if (!(dappRunning))
576+ then throw(maintenanceMSG)
577+ else dataToDelete
578+ else if (containsElement([chris, toString(this)], caller))
579+ then dataToDelete
580+ else throw("Art already minted, you cannot delete it")
581+ }
582+ }
583+ }
584+ }
585+
586+
587+
588+@Callable(i)
589+func sellArtwork (artId,price,maxMint,assetId,blockEnd) = {
590+ let $t02469824731 = idCallerDate(i)
591+ let id = $t02469824731._1
592+ let caller = $t02469824731._2
593+ let artworkName = getStringByKey(keyName(caller, artId))
594+ if ((artworkName == ""))
595+ then throw("This art doesn't match your account")
596+ else {
597+ let flag = getStringByKey(keyFlag(caller, artId))
598+ if (containsElement(["CHANGE_REQUIRED", "SUSPENDED", "FLAGGED", "ILLEGAL"], flag))
599+ then throw("Flagged artwork")
600+ else {
601+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
602+ if ((0 > blockEnd))
603+ then throw("Negative end")
604+ else if (if ((blockEnd > 0))
605+ then if ((maxMint != 1))
606+ then true
607+ else (price != 0)
608+ else false)
609+ then throw("Timed offer only allowed for unique edition and offer only")
610+ else {
611+ let baseHeight = if ((blockEnd == 0))
612+ then 0
613+ else height
614+ if (!(acceptedAssetIds(assetId)))
615+ then throw("Something went wrong!")
616+ else if (!(validateMinSell(assetId, price)))
617+ then throw("Something went wrong!")
618+ else {
619+ let checkUser = validateUser(caller)
620+ if ((checkUser != ""))
621+ then throw(checkUser)
622+ else {
623+ let amountSold = getIntegerByKey(keyIssued(caller, artId))
624+ let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
625+ if ((maxMint > 100))
626+ then throw("100 editions max per artwork")
627+ else if (if ((amountSold != 0))
628+ then (amountSold == maxCanSell)
629+ else false)
630+ then throw("Max edition reached.")
631+ else if (if ((amountSold > 0))
632+ then (maxCanSell != maxMint)
633+ else false)
634+ then throw("Cannot change maximum issuable anymore")
635+ else if (if ((bidNbr > 0))
636+ then (maxCanSell != maxMint)
637+ else false)
638+ then throw("Cannot change maximum issuable with active orders")
639+ else {
640+ let sellStatus = if (if ((price > 0))
641+ then (maxMint > 0)
642+ else false)
643+ then true
644+ else false
645+[BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))]
646+ }
647+ }
648+ }
649+ }
650+ }
651+ }
652+ }
653+
654+
655+
656+@Callable(i)
657+func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "")
658+
659+
660+
661+@Callable(i)
662+func setBid (artId,issuer) = {
663+ let $t02705427092 = idCallerDate(i)
664+ let id = $t02705427092._1
665+ let caller = $t02705427092._2
666+ let date = $t02705427092._3
667+ let $t02709827134 = isPayment(i)
668+ let payment = $t02709827134._1
669+ let amount = $t02709827134._2
670+ let assetId = if (!(isDefined(payment.assetId)))
671+ then "WAVES"
672+ else toBase58String(value(payment.assetId))
673+ let blockEnd = getIntegerByKey(keyEndSale(issuer, artId))
674+ if (if ((blockEnd != 0))
675+ then (height >= blockEnd)
676+ else false)
677+ then throw("Sale ended.")
678+ else {
679+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
680+ if (!(acceptedAssetIds(assetId)))
681+ then throw("asset not accepted")
682+ else if (!(validateMinSell(assetId, amount)))
683+ then throw("Wrong min sell")
684+ else {
685+ let amountSold = getIntegerByKey(keyIssued(issuer, artId))
686+ let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
687+ if ((0 >= maxCanSell))
688+ then throw("No max edition set for this artwork")
689+ else if ((amountSold >= maxCanSell))
690+ then throw("Sold out, you cannot bid")
691+ else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
692+ }
693+ }
694+ }
695+
696+
697+
698+@Callable(i)
699+func acceptBid (artId,issuer,bidId,bidOwner) = {
700+ let caller = toBase58String(i.caller.bytes)
701+ if ((caller != issuer))
702+ then throw("You cannot do this action")
703+ else buyMint(i, artId, issuer, bidId, bidOwner)
704+ }
705+
706+
707+
708+@Callable(i)
709+func cancelBid (artId,issuer,bidId,bidOwner) = {
710+ let $t02859428654 = idCallerDate(i)
711+ let id = $t02859428654._1
712+ let caller = $t02859428654._2
713+ let date = $t02859428654._3
714+ if (if ((caller != bidOwner))
715+ then (caller != issuer)
716+ else false)
717+ then throw("You cannot do this action")
718+ else {
719+ let returnMoneyTo = if ((caller == issuer))
720+ then bidOwner
721+ else caller
722+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
723+ let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
724+ let bidData = getStringByKey((bidDataKey + "_OPEN"))
725+ if ((bidData == ""))
726+ then throw("Bid not found")
727+ else {
728+ let bidDataArr = split(bidData, "_")
729+ let assetId = getBidAssetId(bidDataArr[0])
730+ let bidStatus = "CANCELED"
731+[DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)]
732+ }
733+ }
734+ }
735+
736+

github/deemru/w8io/026f985 
39.39 ms