tx · DrKhdKdizg4UGzSA279boUe5MocRPQjM5GDTfYgKHMW

3N1PCAPFqn9AsgMypm9hS9C7MGThKikn86d:  -0.01000000 Waves

2020.12.11 11:43 [1303779] smart account 3N1PCAPFqn9AsgMypm9hS9C7MGThKikn86d > SELF 0.00000000 Waves

{ "type": 13, "id": "DrKhdKdizg4UGzSA279boUe5MocRPQjM5GDTfYgKHMW", "fee": 1000000, "feeAssetId": null, "timestamp": 1607676260399, "version": 2, "chainId": 84, "sender": "3N1PCAPFqn9AsgMypm9hS9C7MGThKikn86d", "senderPublicKey": "2MuhvaVDikPuY9oDP3TMeF15w8bc1GL6NTweAQQeuAJN", "proofs": [ "5a9m5sc3uZ9Zz9hxq3akPisZMWvKNYYqgtga77qBcbQYvVJSVtpZPemU4NyxDwgJeULccpBFgrnZb5gTqcEh83nL" ], "script": "base64:AAIEAAAAAAAAAEEIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSAwoBCAAAADYAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20AAAAADXdoaXRlbGlzdERhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NmpqMVdVWXFkN0RUN2RIRXViczlqRVRMVVhNY0FCOGsAAAAAC3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lkTkZUBQAAAANuaWwAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAA1i1Law==", "height": 1303779, "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 oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
5+
6+let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
7+
8+let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
9+
10+let userDapp = value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
11+
12+let whitelistDapp = value(addressFromString("3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k"))
13+
14+let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
15+
16+let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
17+
18+let wavesAssetId = base58''
19+
20+let signCut = 7
21+
22+let usdnCut = 10
23+
24+let wavesCut = 10
25+
26+let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
27+
28+let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
29+
30+let defaultLicence = "bafybeigisfqtyo2qdfsceh5fpcp7eeymrpeglp6edao2bmyhijbayvausy/licence.pdf"
31+
32+let defaultHashLicence = "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4"
33+
34+let dappRunning = match getBoolean(userDapp, "conf_dapp_is_running") {
35+ case a: Boolean =>
36+ a
37+ case _ =>
38+ true
39+}
40+
41+let maintenanceMSG = match getString(userDapp, "conf_maintenance_msg") {
42+ case a: String =>
43+ a
44+ case _ =>
45+ ""
46+}
47+
48+let userSuspended = "SUSPENDED"
49+
50+let userRemoved = "REMOVED"
51+
52+let userUnregistered = "UNREGISTERED"
53+
54+let userAllowed = "ALLOWED"
55+
56+func getStringByKey (key) = match getString(this, key) {
57+ case a: String =>
58+ a
59+ case _ =>
60+ ""
61+}
62+
63+
64+func getIntegerByKeyFromOracle (key) = match getInteger(oracleFee, key) {
65+ case a: Int =>
66+ a
67+ case _ =>
68+ throw("Integer undefine or 0 in oracle")
69+}
70+
71+
72+func getIntegerByKey (key) = match getInteger(this, key) {
73+ case i: Int =>
74+ i
75+ case _ =>
76+ 0
77+}
78+
79+
80+func checkWhitelist (key) = match getInteger(whitelistDapp, key) {
81+ case a: Int =>
82+ if ((a >= height))
83+ then 1
84+ else 0
85+ case _ =>
86+ 0
87+}
88+
89+
90+func getBooleanByKey (key) = match getBoolean(this, key) {
91+ case i: Boolean =>
92+ i
93+ case _ =>
94+ false
95+}
96+
97+
98+func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
99+ case a: String =>
100+ if (contains(a, sha256Hash))
101+ then true
102+ else false
103+ case _ =>
104+ false
105+}
106+
107+
108+func validateCID (cid) = if (contains(cid, "/"))
109+ then if (if ((75 > size(cid)))
110+ then (60 > size(split(cid, "/")[0]))
111+ else false)
112+ then (16 > size(split(cid, "/")[1]))
113+ else false
114+ else false
115+
116+
117+func validateHash (hash) = (65 > size(hash))
118+
119+
120+func keyUserStatus (caller) = ("user_status_" + caller)
121+
122+
123+func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
124+
125+
126+func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
127+
128+
129+func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
130+
131+
132+func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
133+
134+
135+func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
136+
137+
138+func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
139+
140+
141+func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
142+
143+
144+func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
145+
146+
147+func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
148+
149+
150+func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
151+
152+
153+func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
154+
155+
156+func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
157+
158+
159+func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
160+
161+
162+func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
163+
164+
165+func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
166+
167+
168+func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
169+
170+
171+func keyArtFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller)
172+
173+
174+func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
175+
176+
177+func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
178+
179+
180+func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
181+
182+
183+func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
184+
185+
186+func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay)))
187+ then throw("Wrong Display CID")
188+ else if (!(validateCID(cidExport)))
189+ then throw("Wrong Export CID")
190+ else if (if ((cidLicence != ""))
191+ then !(validateCID(cidLicence))
192+ else false)
193+ then throw("Wrong Licence CID")
194+ else true
195+
196+
197+func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export)))
198+ then throw("Export Hash 64 char. max")
199+ else if (!(validateHash(sha256Licence)))
200+ then throw("Licence Hash 64 char. max")
201+ else true
202+
203+
204+func validateString (str,max) = if ((size(str) == 0))
205+ then throw("Field cannot be is empty")
206+ else if ((size(str) > max))
207+ then throw((str + " is too long"))
208+ else true
209+
210+
211+@Callable(invoke)
212+func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
213+ then throw(maintenanceMSG)
214+ else {
215+ let artId = toBase58String(invoke.transactionId)
216+ let caller = toBase58String(invoke.caller.bytes)
217+ let timestamp = lastBlock.timestamp
218+ let licenceCID = if ((size(cidLicence) == 0))
219+ then defaultLicence
220+ else cidLicence
221+ let licenceHash = if ((size(sha256Licence) == 0))
222+ then defaultHashLicence
223+ else sha256Licence
224+ let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) {
225+ case s: String =>
226+ s
227+ case _ =>
228+ userUnregistered
229+ }
230+ if (if (isDefined(userIsRegistered))
231+ then if ((userIsRegistered == userUnregistered))
232+ then true
233+ else (userIsRegistered == userAllowed)
234+ else false)
235+ then throw("Register this account first with \"Account\" tab")
236+ else if ((userIsRegistered == userSuspended))
237+ then throw("Account suspended")
238+ else if ((userIsRegistered == userRemoved))
239+ then throw("Account removed")
240+ else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
241+ then throw("Problem with CID")
242+ else if (!(validateHash(sha256Hash)))
243+ then throw("Hash should be 64 characters maximum")
244+ else if (!(validateAllHash(sha256Export, licenceHash)))
245+ then throw("Problem with Hashes")
246+ else if ((size(invoke.payments) == 0))
247+ then throw("No payment attached")
248+ else {
249+ let payment = value(invoke.payments[0])
250+ let amount = value(payment.amount)
251+ let assetId = if (if (isDefined(payment.assetId))
252+ then (payment.assetId == signAssetId)
253+ else false)
254+ then payment.assetId
255+ else throw("Only SIGN token accepted")
256+ let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId)))
257+ if ((amount != currentCertificationPrice))
258+ then throw(("Payment amount should be " + toString(currentCertificationPrice)))
259+ else {
260+ let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller))
261+ if ((entryExist != ""))
262+ then throw("You already added it")
263+ else {
264+ let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
265+ if ((hashExist != ""))
266+ then throw("Hash already registered")
267+ else {
268+ let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
269+ if (!(isSignCertified))
270+ then throw("Sign Certificate not found for this address.")
271+ else if ((size(cidDisplay) == 0))
272+ then throw("Display CID cannot be empty")
273+ else if (!(validateString(name, 100)))
274+ then throw("100 Char. max name")
275+ else if (!(validateString(description, 1000)))
276+ then throw("1000 Char. max description")
277+ else if ((size(split(tags, ",")) > 5))
278+ then throw("5 tags max.")
279+ else if ((maxmint > 10))
280+ then throw("10 editions max")
281+ else [StringEntry(keyArtOwnerByHash(sha256Hash), caller), StringEntry(keyArtTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyArtDate(caller, artId), timestamp), StringEntry(keyArtName(caller, artId), name), StringEntry(keyArtDesc(caller, artId), description), StringEntry(keyArtDisplayCid(caller, artId), cidDisplay), StringEntry(keyArtExportCid(caller, artId), cidExport), StringEntry(keyArtExportHash(caller, artId), sha256Export), StringEntry(keyArtLicenceHash(caller, artId), licenceHash), StringEntry(keyArtLicenceCid(caller, artId), licenceCID), StringEntry(keyArtType(caller, artId), type), StringEntry(keyArtTags(caller, artId), tags), IntegerEntry(keyArtMaxMint(caller, artId), maxmint), StringEntry(keyArtSignID(caller, artId), signID), IntegerEntry(keyArtIssued(caller, artId), 0), BooleanEntry(keyArtOnSale(caller, artId), false), StringEntry(keyArtArtidBySignid(caller, signID), artId), StringEntry(keyArtHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
282+ }
283+ }
284+ }
285+ }
286+ }
287+
288+
289+
290+@Callable(invoke)
291+func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
292+ then throw(maintenanceMSG)
293+ else {
294+ let updateId = toBase58String(invoke.transactionId)
295+ let caller = toBase58String(invoke.caller.bytes)
296+ let licenceCID = if ((size(cidLicence) == 0))
297+ then defaultLicence
298+ else cidLicence
299+ let licenceHash = if ((size(sha256Licence) == 0))
300+ then defaultHashLicence
301+ else sha256Licence
302+ let userIsRegistered = match getString(userDapp, ("user_status_" + caller)) {
303+ case s: String =>
304+ s
305+ case _ =>
306+ userUnregistered
307+ }
308+ if (if (isDefined(userIsRegistered))
309+ then if ((userIsRegistered == userUnregistered))
310+ then true
311+ else (userIsRegistered == userAllowed)
312+ else false)
313+ then throw("Register first with \"User infos\"")
314+ else if ((userIsRegistered == userSuspended))
315+ then throw("Account suspended")
316+ else if ((userIsRegistered == userRemoved))
317+ then throw("Account removed")
318+ else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
319+ then throw("Problem with CID")
320+ else if (!(validateAllHash(sha256Export, licenceHash)))
321+ then throw("Problem with Hashes")
322+ else {
323+ let entryExist = getStringByKey(keyArtName(caller, txid))
324+ if ((entryExist == ""))
325+ then throw("Entry not found")
326+ else if (!(validateString(name, 100)))
327+ then throw("100 Char. max name")
328+ else if (!(validateString(description, 1000)))
329+ then throw("1000 Char. max description")
330+ else {
331+ let flag = getStringByKey(keyArtFlag(caller, txid))
332+ if ((flag == "ILLEGAL"))
333+ then throw("Cannot update ILLEGAL artwork")
334+ else {
335+ let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) {
336+ case b: Int =>
337+ if ((b == 0))
338+ then false
339+ else true
340+ case _ =>
341+ false
342+ }
343+ if ((size(split(tags, ",")) > 5))
344+ then throw("5 tags max.")
345+ else if ((maxmint > 10))
346+ then throw("10 editions max per artwork")
347+ else if (!(artworkMinted))
348+ then [StringEntry(keyArtName(caller, txid), name), StringEntry(keyArtDesc(caller, txid), description), StringEntry(keyArtDisplayCid(caller, txid), cidDisplay), StringEntry(keyArtExportCid(caller, txid), cidExport), StringEntry(keyArtExportHash(caller, txid), sha256Export), StringEntry(keyArtLicenceCid(caller, txid), licenceCID), StringEntry(keyArtLicenceHash(caller, txid), licenceHash), IntegerEntry(keyArtMaxMint(caller, txid), maxmint), StringEntry(keyArtTags(caller, txid), tags), StringEntry(keyArtType(caller, txid), type)]
349+ else throw("Already minted")
350+ }
351+ }
352+ }
353+ }
354+
355+
356+
357+@Callable(i)
358+func flagArtwork (artId,addr,flag) = {
359+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
360+ let id = toBase58String(i.transactionId)
361+ if (containsElement([chris, joep, toString(this)], caller))
362+ then if ((flag == "CONSENT"))
363+ then [StringEntry(keyArtFlag(addr, artId), flag)]
364+ else if ((flag == ""))
365+ then [StringEntry(keyArtFlag(addr, artId), flag)]
366+ else if ((flag == "ILLEGAL"))
367+ then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry(keyArtExportCid(addr, artId), ""), StringEntry(keyArtLicenceCid(addr, artId), "")]
368+ else throw(("Unknow status " + flag))
369+ else throw("You are not allowed")
370+ }
371+
372+
373+
374+@Callable(i)
375+func deleteArtwork (artId,addr) = {
376+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
377+ let id = toBase58String(i.transactionId)
378+ let addressToUse = if (containsElement([chris, joep, toString(this)], caller))
379+ then addr
380+ else caller
381+ let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
382+ case s: String =>
383+ s
384+ case _ =>
385+ throw("No art matching")
386+ }
387+ let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
388+ case b: Int =>
389+ if ((b != 0))
390+ then true
391+ else false
392+ case _ =>
393+ false
394+ }
395+ let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId))
396+ let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
397+ case s: String =>
398+ s
399+ case _ =>
400+ throw("No art hash matching for this address")
401+ }
402+ let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
403+ case s: String =>
404+ s
405+ case _ =>
406+ throw("No SIGN ID matching")
407+ }
408+ let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), DeleteEntry(keyArtFlag(addr, artId)), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse))]
409+ if (!(artworkMinted))
410+ then if (!(dappRunning))
411+ then throw(maintenanceMSG)
412+ else dataToDelete
413+ else if (containsElement([chris, joep, toString(this)], caller))
414+ then dataToDelete
415+ else throw("Art already minted, cannot delete")
416+ }
417+
418+
419+
420+@Callable(i)
421+func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning))
422+ then throw(maintenanceMSG)
423+ else {
424+ let id = toBase58String(i.transactionId)
425+ let caller = toBase58String(i.caller.bytes)
426+ let sellDate = lastBlock.timestamp
427+ let artworkName = match getString(this, keyArtName(caller, artId)) {
428+ case s: String =>
429+ s
430+ case _ =>
431+ ""
432+ }
433+ if ((artworkName == ""))
434+ then throw("This art doesn't match match your account")
435+ else {
436+ let exportCID = getStringByKey(keyArtExportCid(caller, artId))
437+ if ((size(split(exportCID, "/")[0]) != 59))
438+ then throw("You cannot sell art with no export file")
439+ else {
440+ let exportHash = getStringByKey(keyArtExportHash(caller, artId))
441+ if ((size(exportHash) != 64))
442+ then throw("You cannot sell art with no export hash")
443+ else if (if (if ((assetId != toBase58String(signAssetId)))
444+ then (assetId != toBase58String(wavesAssetId))
445+ else false)
446+ then (assetId != toBase58String(usdnAssetId))
447+ else false)
448+ then throw("Only SIGN, USDN or WAVES accepted")
449+ else {
450+ let minSellWaves = 1
451+ let minSellUsdn = 1000000
452+ let minSellSign = 1
453+ if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
454+ then (minSellUsdn > price)
455+ else false)
456+ then (price != 0)
457+ else false)
458+ then true
459+ else if (if ((assetId == toBase58String(signAssetId)))
460+ then (minSellSign > price)
461+ else false)
462+ then (price != 0)
463+ else false)
464+ then true
465+ else if (if ((assetId == toBase58String(wavesAssetId)))
466+ then (minSellWaves > price)
467+ else false)
468+ then (price != 0)
469+ else false)
470+ then throw("Wrong minimum sell price")
471+ else {
472+ let userIsRegistered = match getString(userDapp, keyUserStatus(caller)) {
473+ case s: String =>
474+ s
475+ case _ =>
476+ ""
477+ }
478+ if ((userIsRegistered == ""))
479+ then throw("Register this account first")
480+ else if ((userIsRegistered == userSuspended))
481+ then throw("Account suspended")
482+ else if ((userIsRegistered == userRemoved))
483+ then throw("Account deleted")
484+ else {
485+ let amountSold = getIntegerByKey(keyArtIssued(caller, artId))
486+ let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId))
487+ if ((maxMint > 10))
488+ then throw("10 editions max per artwork")
489+ else if (if ((amountSold != 0))
490+ then (amountSold == maxCanSell)
491+ else false)
492+ then throw("Max edition reached.")
493+ else if (if ((amountSold > 0))
494+ then (maxCanSell != maxMint)
495+ else false)
496+ then throw("Cannot change maximum issuable anymore")
497+ else {
498+ let sellStatus = if (if ((price > 0))
499+ then (maxMint > 0)
500+ else false)
501+ then true
502+ else false
503+[BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId)]
504+ }
505+ }
506+ }
507+ }
508+ }
509+ }
510+ }
511+
512+
513+
514+@Callable(i)
515+func buyArtwork (artId,issuer) = if (!(dappRunning))
516+ then throw(maintenanceMSG)
517+ else {
518+ let id = toBase58String(i.transactionId)
519+ let caller = toBase58String(i.caller.bytes)
520+ let totalNFT = getIntegerByKey("total_nft_issued")
521+ let signID = getStringByKey(keyArtSignID(issuer, artId))
522+ let artworkName = match getString(this, keyArtName(issuer, artId)) {
523+ case s: String =>
524+ s
525+ case _ =>
526+ ""
527+ }
528+ if ((artworkName == ""))
529+ then throw("Art doesn't exist")
530+ else {
531+ let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
532+ let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
533+ let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
534+ let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
535+ let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
536+ let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
537+ let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
538+ let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
539+ let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
540+ let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
541+ let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
542+ if ((artworkPrice == 0))
543+ then throw("Art not for sell")
544+ else if (!(isOnSale))
545+ then throw("Art not for sale")
546+ else {
547+ let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
548+ let payment = value(i.payments[0])
549+ let amount = value(payment.amount)
550+ let assetId = if (if (if (isDefined(payment.assetId))
551+ then (size(fromBase58String(priceAssetId)) > 0)
552+ else false)
553+ then (payment.assetId == fromBase58String(priceAssetId))
554+ else false)
555+ then payment.assetId
556+ else unit
557+ if (if ((assetId == unit))
558+ then (priceAssetId != "")
559+ else false)
560+ then throw("Wrong asset id")
561+ else {
562+ let isWhitelisted = checkWhitelist(issuer)
563+ let cut = if ((isWhitelisted == 1))
564+ then 0
565+ else if ((priceAssetId == toBase58String(signAssetId)))
566+ then 8
567+ else 10
568+ let amountForSign = fraction(amount, cut, 100)
569+ let amountForCreator = (amount - amountForSign)
570+ if ((amountSold == maxCanSell))
571+ then throw("Art sold out")
572+ else if ((artworkPrice != amount))
573+ then throw("Payment don't match")
574+ else {
575+ let newAmountSold = (amountSold + 1)
576+ let entryDate = lastBlock.timestamp
577+ let issueMeta = ((((((((((((((((((((((((((("Creator: " + issuer) + ",
578+ ArtID: ") + artId) + ",
579+ SignID: ") + signID) + ",
580+ Artwork name: ") + artworkName) + ",
581+ Artwork description: ") + description) + ",
582+ Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + ",
583+ Max issuable: ") + toString(maxCanSell)) + ",
584+ Source hash: ") + sourceHash) + ",
585+ Display cid: ") + displayCID) + ",
586+ Export cid: ") + exportCID) + ",
587+ Export hash: ") + exportHash) + ",
588+ Licence cid: ") + licenceCID) + ",
589+ Licence hash: ") + licenceHash)
590+ let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
591+ let idNFT = calculateAssetId(issueNFT)
592+ let sellStatus = if ((newAmountSold == maxCanSell))
593+ then false
594+ else true
595+[IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((((caller + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(i.caller, 1, idNFT)]
596+ }
597+ }
598+ }
599+ }
600+ }
601+
602+
603+
604+@Callable(i)
605+func deleteEntry (entry) = {
606+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
607+ if ((caller == chris))
608+ then [DeleteEntry(entry)]
609+ else throw("no")
610+ }
611+
612+

github/deemru/w8io/026f985 
36.42 ms