tx · GT56EotnXffXpWRQWZyL8rxwgut4xGPQ5yw3WTiqXCff

3N6MXogfdMTYB6YXe3Lon8tXHUBdj31rktf:  -0.01000000 Waves

2021.03.21 05:22 [1446890] smart account 3N6MXogfdMTYB6YXe3Lon8tXHUBdj31rktf > SELF 0.00000000 Waves

{ "type": 13, "id": "GT56EotnXffXpWRQWZyL8rxwgut4xGPQ5yw3WTiqXCff", "fee": 1000000, "feeAssetId": null, "timestamp": 1616293412158, "version": 2, "chainId": 84, "sender": "3N6MXogfdMTYB6YXe3Lon8tXHUBdj31rktf", "senderPublicKey": "EEURzHjRY5MtqRav98wh6EuWXUJpSkDHZbtQcNUKEYbm", "proofs": [ "5AJ5zkMHHVkjGRWe9qc1uw3ESwM8KUGFgFjPAjKoUo8XegPFRofePrQMCD9iEC1RD3FU4rcXMjeMFk8NyerhhNE3" ], "script": "base64:AAIEAAAAAAAAAFQIAhINCgsICAgICAgICAgICBIMCgoICAgICAgICAgIEgUKAwgICBIECgIICBIGCgQIAQEIEgQKAggIEgQKAggIEgYKBAgICAgSBQoDCAgIEgMKAQgAAABLAAAAAAh1bml0VGVzdAYAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGFZakUyN0FhN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AB2JpZERhdGECAAAAAV8JAAGkAAAAAQUAAAAEZGF0ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABJjdXJyZW50X2JpZGFtb3VudF8FAAAABWFydElkCQAAZQAAAAIFAAAABmJpZE5icgAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAKYmlkRGF0YUFycgAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAGjHu2M=", "height": 1446890, "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 = 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 getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "")
49+
50+
51+func getStringByKey (key) = valueOrElse(getString(this, key), "")
52+
53+
54+func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
55+
56+
57+func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
58+
59+
60+func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0)
61+
62+
63+func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
64+
65+
66+let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId)))
67+
68+func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
69+ case a: String =>
70+ if (contains(a, sha256Hash))
71+ then true
72+ else false
73+ case _ =>
74+ false
75+}
76+
77+
78+func validateCID (cid) = if (contains(cid, "/"))
79+ then if (if ((76 > size(cid)))
80+ then (size(split(cid, "/")[0]) == 59)
81+ else false)
82+ then (16 > size(split(cid, "/")[1]))
83+ else false
84+ else false
85+
86+
87+func validateHash (hash) = (size(hash) == 64)
88+
89+
90+func keyUserStatus (caller) = ("user_status_" + caller)
91+
92+
93+func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
94+
95+
96+func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
97+
98+
99+func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
100+
101+
102+func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
103+
104+
105+func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
106+
107+
108+func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
109+
110+
111+func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
112+
113+
114+func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
115+
116+
117+func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
118+
119+
120+func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
121+
122+
123+func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
124+
125+
126+func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
127+
128+
129+func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
130+
131+
132+func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
133+
134+
135+func keyPrice (caller,artId) = ((("art_price_" + 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 $t091709206 = isPayment(i)
237+ let payment = $t091709206._1
238+ let amount = $t091709206._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 $t098139849 = isPayment(i)
262+ let payment = $t098139849._1
263+ let amount = $t098139849._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 isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer))
350+ then (bidOwner != "")
351+ else false)
352+ then (bidId != "")
353+ else false)
354+ then true
355+ else false
356+
357+
358+func getArtData (i,issuer,artId,isBid) = {
359+ let totalNFT = getIntegerByKey("total_nft_issued")
360+ let signID = getStringByKey(keySignID(issuer, artId))
361+ let artworkName = getStringByKey(keyName(issuer, artId))
362+ if ((artworkName == ""))
363+ then throw("Art doesn't exist")
364+ else {
365+ let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
366+ let amountSold = getIntegerByKey(keyIssued(issuer, artId))
367+ let artworkPrice = getIntegerByKey(keyPrice(issuer, artId))
368+ let priceAssetId = getStringByKey(keyAssetIdAccepted(issuer, artId))
369+ let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
370+ if (if (!(isBid))
371+ then if (if ((0 >= artworkPrice))
372+ then true
373+ else !(isOnSale))
374+ then true
375+ else (0 >= maxCanSell)
376+ else false)
377+ then throw("Art not for sale")
378+ else if (if (isBid)
379+ then (0 >= maxCanSell)
380+ else false)
381+ then throw("Art not open for Offer")
382+ else $Tuple8(totalNFT, signID, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale)
383+ }
384+ }
385+
386+
387+func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = {
388+ let checkUser = validateUser(issuer)
389+ if (if (isBid)
390+ then (checkUser != "")
391+ else false)
392+ then throw(checkUser)
393+ else {
394+ let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
395+ let $t01357113700 = if (isBid)
396+ then getPriceAssetIdFromBid(bidDataKey)
397+ else validatePriceAssetId(i, priceAssetId, artworkPrice)
398+ let amount = $t01357113700._1
399+ let assetId = $t01357113700._2
400+ $Tuple3(bidDataKey, amount, assetId)
401+ }
402+ }
403+
404+
405+func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = {
406+ let isWhitelisted = checkWhitelist(issuer)
407+ let cut = if ((isWhitelisted > height))
408+ then 0
409+ else if ((assetId == signAssetId))
410+ then signCut
411+ else usdnWaveCut
412+ let amountForSign = fraction(amount, cut, 100)
413+ let amountForCreator = (amount - amountForSign)
414+ if ((amountSold == maxCanSell))
415+ then throw("Art sold out")
416+ else {
417+ let newAmountSold = (amountSold + 1)
418+ $Tuple3(amountForSign, amountForCreator, newAmountSold)
419+ }
420+ }
421+
422+
423+func getIssueData (issuer,artId,signID,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = {
424+ let issueMeta = ((((((((((("Creator: " + issuer) + ",
425+ ArtID: ") + artId) + ",
426+ SignID: ") + signID) + ",
427+ Artwork name: ") + artworkName) + ",
428+ Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
429+ let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
430+ let idNFT = calculateAssetId(issueNFT)
431+ let sellStatus = if (if ((newAmountSold == maxCanSell))
432+ then true
433+ else !(isOnSale))
434+ then false
435+ else true
436+ let receiveNFT = if (if (if ((caller == issuer))
437+ then (bidOwner != "")
438+ else false)
439+ then (bidId != "")
440+ else false)
441+ then addressFromStringValue(bidOwner)
442+ else i.caller
443+ $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT)
444+ }
445+
446+
447+func getBidKeyVal (assetId,bidDataKey,date) = {
448+ let assetIdBid = if (!(isDefined(assetId)))
449+ then "WAVES"
450+ else toBase58String(value(assetId))
451+ let bidData = getStringByKey((bidDataKey + "_OPEN"))
452+ let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
453+ let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
454+ $Tuple3(assetIdBid, bidDelOld, bidUpdate)
455+ }
456+
457+
458+func buyMint (i,artId,issuer,bidId,bidOwner) = {
459+ let $t01560215655 = idCallerDate(i)
460+ let id = $t01560215655._1
461+ let caller = $t01560215655._2
462+ let date = $t01560215655._3
463+ let isBid = isBidCheck(i, issuer, bidOwner, bidId)
464+ let $t01573815891 = getArtData(i, issuer, artId, isBid)
465+ let totalNFT = $t01573815891._1
466+ let signID = $t01573815891._2
467+ let artworkName = $t01573815891._3
468+ let amountSold = $t01573815891._4
469+ let artworkPrice = $t01573815891._5
470+ let priceAssetId = $t01573815891._6
471+ let maxCanSell = $t01573815891._7
472+ let isOnSale = $t01573815891._8
473+ let $t01589616046 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid)
474+ let bidDataKey = $t01589616046._1
475+ let amount = $t01589616046._2
476+ let assetId = $t01589616046._3
477+ let $t01605116197 = getCommissionData(issuer, assetId, amount, amountSold, maxCanSell)
478+ let amountForSign = $t01605116197._1
479+ let amountForCreator = $t01605116197._2
480+ let newAmountSold = $t01605116197._3
481+ let $t01620216395 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale)
482+ let issueNFT = $t01620216395._1
483+ let idNFT = $t01620216395._2
484+ let sellStatus = $t01620216395._3
485+ let receiveNFT = $t01620216395._4
486+ let $t01640016501 = getBidKeyVal(assetId, bidDataKey, date)
487+ let assetIdBid = $t01640016501._1
488+ let bidDelOld = $t01640016501._2
489+ let bidUpdate = $t01640016501._3
490+ let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
491+ let soldValue = if (!(isBid))
492+ then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
493+ else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
494+ let soldData = StringEntry(soldKey, soldValue)
495+ 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)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)]
496+ if (isBid)
497+ then [soldData, bidUpdate, bidDelOld] :: buyRes
498+ else soldData :: buyRes
499+ }
500+
501+
502+@Callable(i)
503+func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
504+ let $t01787117912 = idCallerDate(i)
505+ let artId = $t01787117912._1
506+ let caller = $t01787117912._2
507+ let date = $t01787117912._3
508+ if (!(validateHash(sha256Hash)))
509+ then throw("Hash should be 64 characters maximum")
510+ else {
511+ let $t01801718086 = setLIcence(cidLicence, sha256Licence)
512+ let licenceCID = $t01801718086._1
513+ let licenceHash = $t01801718086._2
514+ let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags)
515+ if ((validateArtwork != ""))
516+ then throw("Something went wrong!")
517+ else {
518+ let $t01831018352 = validatePayment(i)
519+ let amount = $t01831018352._1
520+ let assetId = $t01831018352._2
521+ if (!(isDefined(amount)))
522+ then throw("Something went wrong")
523+ else {
524+ let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
525+ if ((entryExist != ""))
526+ then throw("You already added it")
527+ else {
528+ let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
529+ if ((hashExist != ""))
530+ then throw("Hash already registered")
531+ else {
532+ let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
533+ if (!(isSignCertified))
534+ then throw("Sign Certificate not found for this address.")
535+ 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)]
536+ }
537+ }
538+ }
539+ }
540+ }
541+ }
542+
543+
544+
545+@Callable(i)
546+func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
547+ then throw(maintenanceMSG)
548+ else {
549+ let caller = toBase58String(i.caller.bytes)
550+ let $t02103921108 = setLIcence(cidLicence, sha256Licence)
551+ let licenceCID = $t02103921108._1
552+ let licenceHash = $t02103921108._2
553+ let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags)
554+ if ((validateArtwork != ""))
555+ then throw("Something went wrong!")
556+ else {
557+ let entryExist = getStringByKey(keyName(caller, txid))
558+ if ((entryExist == ""))
559+ then throw("Entry not found")
560+ else {
561+ let flag = getStringByKey(keyFlag(caller, txid))
562+ if ((flag == "ILLEGAL"))
563+ then throw("Cannot update ILLEGAL artwork")
564+ else if (!(isArtMinted(caller, txid)))
565+ 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)]
566+ else throw("Already minted")
567+ }
568+ }
569+ }
570+
571+
572+
573+@Callable(i)
574+func flagArtwork (artId,addr,flag) = {
575+ let $t02248122514 = idCallerDate(i)
576+ let id = $t02248122514._1
577+ let caller = $t02248122514._2
578+ if (containsElement([chris, joep, toString(this)], caller))
579+ then if ((flag == "CONSENT"))
580+ then [StringEntry(keyFlag(addr, artId), flag)]
581+ else if ((flag == ""))
582+ then [StringEntry(keyFlag(addr, artId), flag)]
583+ else if ((flag == "CHANGE_REQUIRED"))
584+ then [StringEntry(keyFlag(addr, artId), flag)]
585+ else if (if ((flag == "ILLEGAL"))
586+ then containsElement([chris, toString(this)], caller)
587+ else false)
588+ then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDisplayCid(addr, artId), ""), StringEntry(keyExportCid(addr, artId), ""), StringEntry(keyLicenceCid(addr, artId), "")]
589+ else throw(("Unknow status " + flag))
590+ else throw("You are not allowed")
591+ }
592+
593+
594+
595+@Callable(i)
596+func deleteArtwork (artId,addr) = {
597+ let $t02356423597 = idCallerDate(i)
598+ let id = $t02356423597._1
599+ let caller = $t02356423597._2
600+ let addrToUse = if (containsElement([chris, joep, toString(this)], caller))
601+ then addr
602+ else caller
603+ let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
604+ if ((entryExist == ""))
605+ then throw("No art matching for this address")
606+ else {
607+ let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
608+ if ((sha256Hash == ""))
609+ then throw("No art hash matching for this address")
610+ else {
611+ let signID = getStringByKey(keySignID(addrToUse, artId))
612+ if ((signID == ""))
613+ then throw("No SIGN ID matching")
614+ else {
615+ 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))]
616+ if (!(isArtMinted(addrToUse, artId)))
617+ then if (!(dappRunning))
618+ then throw(maintenanceMSG)
619+ else dataToDelete
620+ else if (containsElement([chris, toString(this)], caller))
621+ then dataToDelete
622+ else throw("Art already minted, you cannot delete it")
623+ }
624+ }
625+ }
626+ }
627+
628+
629+
630+@Callable(i)
631+func sellArtwork (artId,price,maxMint,assetId) = {
632+ let $t02601026043 = idCallerDate(i)
633+ let id = $t02601026043._1
634+ let caller = $t02601026043._2
635+ let artworkName = getStringByKey(keyName(caller, artId))
636+ if ((artworkName == ""))
637+ then throw("This art doesn't match your account")
638+ else {
639+ let exportCID = getStringByKey(keyExportCid(caller, artId))
640+ if ((size(split(exportCID, "/")[0]) != 59))
641+ then throw("You cannot sell art with no export file")
642+ else {
643+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
644+ if (!(acceptedAssetIds(assetId)))
645+ then throw("Something went wrong!")
646+ else if (!(validateMinSell(assetId, price)))
647+ then throw("Something went wrong!")
648+ else {
649+ let checkUser = validateUser(caller)
650+ if ((checkUser != ""))
651+ then throw(checkUser)
652+ else {
653+ let amountSold = getIntegerByKey(keyIssued(caller, artId))
654+ let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
655+ if ((maxMint > 10))
656+ then throw("10 editions max per artwork")
657+ else if (if ((amountSold != 0))
658+ then (amountSold == maxCanSell)
659+ else false)
660+ then throw("Max edition reached.")
661+ else if (if ((amountSold > 0))
662+ then (maxCanSell != maxMint)
663+ else false)
664+ then throw("Cannot change maximum issuable anymore")
665+ else if (if ((bidNbr > 0))
666+ then (maxCanSell != maxMint)
667+ else false)
668+ then throw("Cannot change maximum issuable with active orders")
669+ else {
670+ let sellStatus = if (if ((price > 0))
671+ then (maxMint > 0)
672+ else false)
673+ then true
674+ else false
675+[BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)]
676+ }
677+ }
678+ }
679+ }
680+ }
681+ }
682+
683+
684+
685+@Callable(i)
686+func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "")
687+
688+
689+
690+@Callable(i)
691+func setBid (artId,issuer) = {
692+ let $t02805428092 = idCallerDate(i)
693+ let id = $t02805428092._1
694+ let caller = $t02805428092._2
695+ let date = $t02805428092._3
696+ let $t02809828134 = isPayment(i)
697+ let payment = $t02809828134._1
698+ let amount = $t02809828134._2
699+ let assetId = if (!(isDefined(payment.assetId)))
700+ then "WAVES"
701+ else toBase58String(value(payment.assetId))
702+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
703+ if (!(acceptedAssetIds(assetId)))
704+ then throw("asset not accepted")
705+ else if (!(validateMinSell(assetId, amount)))
706+ then throw("Wrong min sell")
707+ else {
708+ let amountSold = getIntegerByKey(keyIssued(issuer, artId))
709+ let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
710+ if ((0 >= maxCanSell))
711+ then throw("No max edition set for this artwork")
712+ else if ((amountSold >= maxCanSell))
713+ then throw("Sold out, you cannot bid")
714+ else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
715+ }
716+ }
717+
718+
719+
720+@Callable(i)
721+func acceptBid (artId,issuer,bidId,bidOwner) = {
722+ let caller = toBase58String(i.caller.bytes)
723+ if ((caller != issuer))
724+ then throw("You cannot do this action")
725+ else buyMint(i, artId, issuer, bidId, bidOwner)
726+ }
727+
728+
729+
730+@Callable(i)
731+func cancelBid (artId,issuer,bidId) = {
732+ let $t02931529469 = idCallerDate(i)
733+ let id = $t02931529469._1
734+ let caller = $t02931529469._2
735+ let date = $t02931529469._3
736+ let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
737+ let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId)
738+ let bidData = getStringByKey((bidDataKey + "_OPEN"))
739+ if ((bidData == ""))
740+ then throw("Bid not found")
741+ else {
742+ let bidDataArr = split(bidData, "_")
743+ let assetId = getBidAssetId(bidDataArr[0])
744+ let bidStatus = "CANCELED"
745+[DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
746+ }
747+ }
748+
749+
750+
751+@Callable(i)
752+func deleteEntry (entry) = {
753+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
754+ if ((caller == chris))
755+ then [DeleteEntry(entry)]
756+ else throw("no")
757+ }
758+
759+

github/deemru/w8io/026f985 
62.01 ms