tx · CxHg64HGcYtsbZ9MTpLG2yaupKsd14esi2545sDP313B

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.15 14:06 [1221591] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "CxHg64HGcYtsbZ9MTpLG2yaupKsd14esi2545sDP313B", "fee": 1400000, "feeAssetId": null, "timestamp": 1602760004454, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4ktaNhvpVc4sJtdSAGF8PdyrTZk4soYbVHCcnAnrGGRFEwqMgxNh3idRVxTCXLVnA6PmkxHL5KB67nyw7ZKG8Ebz" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA6AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldElkAQA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AAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlckRhdGUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyQWRkcgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAC2tleVVzZXJOYW1lAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlckRlc2MAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAA1rZXlVc2VyU29jaWFsAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAMa2V5VXNlclRodW1iAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAE1lvdSBhcmUgbm90IGFsbG93ZWQAAAAAImKY0A==", "height": 1221591, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3b8EK6QdA3wvsyzRcUHwXuu341SWRCW3Ehmh6u4Lix7o Next: Dx9vfNH8Yn9kaTyA6kX3LEkrdu5ocbuSeUVzKJNj3LFT Diff:
OldNewDifferences
352352 else {
353353 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
354354 if ((entryExist != ""))
355- then throw("You already added this artwork on Sign Art")
355+ then throw("You already added it on Sign Art")
356356 else {
357357 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
358358 if ((hashExist != ""))
359- then throw("This artwork hash is already registered on Sign Art")
359+ then throw("Hash already registered on Sign Art")
360360 else {
361361 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
362362 if (!(isSignCertified))
363- then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
363+ then throw("Sign Certificate not found for this address.")
364364 else if ((size(cidDisplay) == 0))
365365 then throw("Display CID cannot be empty")
366366 else if (!(validateString(name, 100)))
367- then throw("100 Characters maximum for the name")
367+ then throw("100 Char. max for the name")
368368 else if (!(validateString(description, 1000)))
369- then throw("1000 Characters maximum for the description")
370- else {
371- let tagsList = split(tags, ",")
372- if ((size(tagsList) > 5))
373- then throw("Tags should be maximum 5 single word separated by space.")
374- else {
375- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
376- case s: String =>
377- s
378- case _ =>
379- userUnregistered
380- }
381- let timestamp = lastBlock.timestamp
382- if (if (isDefined(userIsRegistered))
383- then (userIsRegistered == userUnregistered)
384- else false)
385- then throw("Please register this account first with \"User infos\" tab")
386- else if ((userIsRegistered == userSuspended))
387- then throw("Your account is suspended")
388- else if ((userIsRegistered == userRemoved))
389- then throw("Your account have been removed")
390- else if ((maxmint > 10))
391- then throw("Maximum 10 editions per artwork")
392- else if ((size(sha256Hash) != 64))
393- then throw("Hash should be sha256 string composed of 64 char.")
394- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
395- }
396- }
369+ then throw("1000 Char. max for the description")
370+ else if ((size(split(tags, ",")) > 5))
371+ then throw("5 tags max.")
372+ else {
373+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
374+ case s: String =>
375+ s
376+ case _ =>
377+ userUnregistered
378+ }
379+ let timestamp = lastBlock.timestamp
380+ if (if (isDefined(userIsRegistered))
381+ then (userIsRegistered == userUnregistered)
382+ else false)
383+ then throw("Register this account first with \"User infos\" tab")
384+ else if ((userIsRegistered == userSuspended))
385+ then throw("Account suspended")
386+ else if ((userIsRegistered == userRemoved))
387+ then throw("Account removed")
388+ else if ((maxmint > 10))
389+ then throw("10 editions max per artwork")
390+ else if ((size(sha256Hash) != 64))
391+ then throw("Hash should be 64 char.")
392+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
393+ }
397394 }
398395 }
399396 }
439436 if (if (isDefined(userIsRegistered))
440437 then (userIsRegistered == userUnregistered)
441438 else false)
442- then throw("Please register this account first with \"User infos\" tab")
439+ then throw("Register this account first with \"User infos\" tab")
443440 else if ((userIsRegistered == userSuspended))
444- then throw("Your account is suspended")
441+ then throw("Account suspended")
445442 else if ((userIsRegistered == userRemoved))
446- then throw("Your account have been removed")
443+ then throw("Account removed")
447444 else if ((maxmint > 10))
448- then throw("Maximum 10 editions per artwork")
445+ then throw("M10 editions max per artwork")
449446 else if (!(artworkMinted))
450447 then [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), IntegerEntry(keyArtMaxMint(callerAddress, txid), maxmint), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry(keyArtType(callerAddress, txid), type), StringEntry("last_invoke_id", updateId)]
451- else throw("You cannot edit artwork that have already minted NFT(s)")
448+ else throw("Artwork already minted")
452449 }
453450 }
454451 }
469466 case s: String =>
470467 s
471468 case _ =>
472- throw("No artwork matching this request or you are not allowed")
469+ throw("No artwork matching")
473470 }
474471 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
475472 case b: Int =>
484481 case s: String =>
485482 s
486483 case _ =>
487- throw("No artwork hash matching this request")
484+ throw("No artwork hash matching")
488485 }
489486 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
490487 case s: String =>
491488 s
492489 case _ =>
493- throw("No SIGN ID matching this request")
490+ throw("No SIGN ID matching")
494491 }
495492 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)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse)), DeleteEntry(keyArtPrice(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtAssetIdAccepted(addressToUse, artId)), DeleteEntry(((((("art_sold_1_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_2_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_3_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_4_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_5_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_6_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_7_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_8_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_9_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_10_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse))]
496493 if (if ((callerAddress == admin))
499496 then dataToDelete
500497 else if (!(artworkMinted))
501498 then dataToDelete
502- else throw("This artwork already have minted NFT, you cannot delete it")
499+ else throw("Artwork already minted, you cannot delete it")
503500 }
504501
505502
581578 case s: String =>
582579 s
583580 case _ =>
584- throw("This artwork doesn't exit")
581+ throw("Artwork doesn't exit")
585582 }
586583 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
587584 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
595592 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
596593 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
597594 if ((artworkPrice == 0))
598- then throw("This artwork is not for sell")
595+ then throw("Artwork not for sell")
599596 else if (!(isOnSale))
600- then throw("This artwork is not for sale")
597+ then throw("Artwork not for sale")
601598 else {
602599 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
603600 let payment = value(invoke.payments[0])
613610 let amountForSign = ((amount / 100) * cut)
614611 let amountForCreator = (amount - amountForSign)
615612 if ((amountSold == maxCanSell))
616- then throw("Cannot buy this artwork anymore, maximum editions reached")
613+ then throw("Artwork sold out")
617614 else if ((artworkPrice != amount))
618- then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount)))
615+ then throw("Payment don't match")
619616 else {
620617 let newAmountSold = (amountSold + 1)
621618 let entryDate = lastBlock.timestamp
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
77
88 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1111
1212 let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
1313
1414 let wavesAssetId = base58''
1515
1616 let signCut = 8
1717
1818 let usdnCut = 10
1919
2020 let wavesCut = 10
2121
2222 let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2323
2424 let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2525
2626 let WHITELISTEDONLY = true
2727
2828 let userAllowed = "ALLOWED"
2929
3030 let userRegistered = "REGISTERED"
3131
3232 let userVerified = "VERIFIED"
3333
3434 let userSuspended = "SUSPENDED"
3535
3636 let userRemoved = "REMOVED"
3737
3838 let userUnregistered = "UNREGISTERED"
3939
4040 let userReset = "RESET"
4141
4242 let onSale = "ON_SALE"
4343
4444 let sold = "SOLD"
4545
4646 let canceled = "CANCELED"
4747
4848 func getStringByKey (key) = match getString(this, key) {
4949 case a: String =>
5050 a
5151 case _ =>
5252 ""
5353 }
5454
5555
5656 func getIntegerByKey (key) = match getInteger(this, key) {
5757 case i: Int =>
5858 i
5959 case _ =>
6060 0
6161 }
6262
6363
6464 func getBooleanByKey (key) = match getBoolean(this, key) {
6565 case i: Boolean =>
6666 i
6767 case _ =>
6868 false
6969 }
7070
7171
7272 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) {
7373 case a: String =>
7474 if (contains(a, sha256Hash))
7575 then true
7676 else false
7777 case _ =>
7878 false
7979 }
8080
8181
8282 func validateCID (cid) = if (if ((75 > size(cid)))
8383 then (60 > size(split(cid, "/")[0]))
8484 else false)
8585 then (16 > size(split(cid, "/")[1]))
8686 else false
8787
8888
8989 func validateHash (hash) = (65 > size(hash))
9090
9191
9292 func keyUserAddr (callerAddr) = ("user_" + callerAddr)
9393
9494
9595 func keyUserName (callerAddr) = ("user_name_" + callerAddr)
9696
9797
9898 func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr)
9999
100100
101101 func keyUserSocial (callerAddr) = ("user_social_" + callerAddr)
102102
103103
104104 func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr)
105105
106106
107107 func keyUserStatus (callerAddr) = ("user_status_" + callerAddr)
108108
109109
110110 func keyUserDate (callerAddr) = ("user_date_" + callerAddr)
111111
112112
113113 func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr)
114114
115115
116116 func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr)
117117
118118
119119 func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr)
120120
121121
122122 func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr)
123123
124124
125125 func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr)
126126
127127
128128 func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr)
129129
130130
131131 func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr)
132132
133133
134134 func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr)
135135
136136
137137 func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr)
138138
139139
140140 func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr)
141141
142142
143143 func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr)
144144
145145
146146 func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr)
147147
148148
149149 func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr)
150150
151151
152152 func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr)
153153
154154
155155 func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr)
156156
157157
158158 func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr)
159159
160160
161161 func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr)
162162
163163
164164 func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
165165
166166
167167 func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr)
168168
169169
170170 func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr)))))
171171
172172
173173 func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != ""))
174174 then !(validateCID(cidDisplay))
175175 else false)
176176 then throw("Wrong Display CID length")
177177 else if (if ((cidExport != ""))
178178 then !(validateCID(cidExport))
179179 else false)
180180 then throw("Wrong Export CID length")
181181 else if (if ((cidLicence != ""))
182182 then !(validateCID(cidLicence))
183183 else false)
184184 then throw("Wrong Licence CID length")
185185 else true
186186
187187
188188 func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != ""))
189189 then !(validateHash(sha256Export))
190190 else false)
191191 then throw("Export Hash should be 64 characters maximum")
192192 else if (if ((sha256Licence != ""))
193193 then !(validateHash(sha256Licence))
194194 else false)
195195 then throw("Licence Hash should be 64 characters maximum")
196196 else true
197197
198198
199199 func validateString (str,max) = if ((size(str) == 0))
200200 then throw("Field cannot be is empty")
201201 else if ((size(str) > max))
202202 then throw((str + " is too long"))
203203 else true
204204
205205
206206 @Callable(i)
207207 func registerUser (name,description,thumb,social) = {
208208 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
209209 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
210210 let id = toBase58String(i.transactionId)
211211 let timestamp = lastBlock.timestamp
212212 if (if ((userCanRegister == userSuspended))
213213 then true
214214 else (userCanRegister == userRemoved))
215215 then throw("You are now allowed to register, your account have been suspended/ removed.")
216216 else if ((userCanRegister == userRegistered))
217217 then throw("You are already registered, please use update method instead.")
218218 else if (if ((userCanRegister == ""))
219219 then WHITELISTEDONLY
220220 else false)
221221 then throw("You are now allowed to register yet, please contact us first to get approved.")
222222 else if (if ((name == ""))
223223 then true
224224 else (description == ""))
225225 then throw("Name and description cannot be empty")
226226 else if ((size(description) > 600))
227227 then throw("600 Characters maximum for the description")
228228 else [IntegerEntry(keyUserDate(callerAddr), timestamp), StringEntry(keyUserAddr(callerAddr), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry(keyUserStatus(callerAddr), userRegistered), StringEntry("last_invoke_id", id)]
229229 }
230230
231231
232232
233233 @Callable(i)
234234 func deleteEntry (entry) = {
235235 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
236236 if ((callerAddr == admin))
237237 then [DeleteEntry(entry)]
238238 else throw("no")
239239 }
240240
241241
242242
243243 @Callable(i)
244244 func updateUser (name,description,thumb,social) = {
245245 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
246246 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
247247 if (if ((userCanRegister == userSuspended))
248248 then true
249249 else (userCanRegister == userRemoved))
250250 then throw("You are now allowed to register, your account have been suspended/ removed.")
251251 else if (if ((userCanRegister == ""))
252252 then true
253253 else (userCanRegister == userAllowed))
254254 then throw("Please register first with registerUser")
255255 else {
256256 let id = toBase58String(i.transactionId)
257257 let timestamp = lastBlock.timestamp
258258 if (if ((name == ""))
259259 then true
260260 else (description == ""))
261261 then throw("Name and description cannot be empty")
262262 else if ((size(description) > 600))
263263 then throw("600 Characters maximum for the description")
264264 else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)]
265265 }
266266 }
267267
268268
269269
270270 @Callable(i)
271271 func changeUserStatus (address,status) = {
272272 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
273273 let id = toBase58String(i.transactionId)
274274 let currentStatus = getStringByKey(keyUserStatus(address))
275275 let statusToSet = if ((status == userVerified))
276276 then userVerified
277277 else if ((status == userRegistered))
278278 then userRegistered
279279 else if ((status == userSuspended))
280280 then userSuspended
281281 else if ((status == userRemoved))
282282 then userRemoved
283283 else if ((status == userAllowed))
284284 then userAllowed
285285 else if (if ((status == userReset))
286286 then (currentStatus == userAllowed)
287287 else false)
288288 then ""
289289 else throw("Unknown status")
290290 if (if ((currentStatus == userAllowed))
291291 then (status == userAllowed)
292292 else false)
293293 then throw("This user is already allowed")
294294 else if (if ((currentStatus == userRegistered))
295295 then (status == userAllowed)
296296 else false)
297297 then throw("This user is already allowed and registered")
298298 else if (if ((currentStatus == userVerified))
299299 then (status == userAllowed)
300300 else false)
301301 then throw("This user is already allowed and verified")
302302 else if (if ((callerAddr == admin))
303303 then true
304304 else (callerAddr == admin2))
305305 then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
306306 else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin))
307307 }
308308
309309
310310
311311 @Callable(i)
312312 func creditUser (address) = {
313313 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
314314 let id = toBase58String(i.transactionId)
315315 if (if ((callerAddr == admin))
316316 then true
317317 else (callerAddr == admin2))
318318 then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
319319 else throw("You are not allowed to do that")
320320 }
321321
322322
323323
324324 @Callable(invoke)
325325 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
326326 let artId = toBase58String(invoke.transactionId)
327327 let callerAddress = toBase58String(invoke.caller.bytes)
328328 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
329329 then throw("Problem with CID")
330330 else if (!(validateHash(sha256Hash)))
331331 then throw("Hash should be 64 characters maximum")
332332 else if (!(validateAllHash(sha256Export, sha256Licence)))
333333 then throw("Problem with Hashes")
334334 else if ((size(invoke.payments) == 0))
335335 then throw("No payment attached")
336336 else {
337337 let payment = value(invoke.payments[0])
338338 let amount = value(payment.amount)
339339 let assetId = if (if (isDefined(payment.assetId))
340340 then (payment.assetId == signAssetId)
341341 else false)
342342 then payment.assetId
343343 else throw("Only SIGN token accepted at the moment")
344344 let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) {
345345 case price: Int =>
346346 price
347347 case _ =>
348348 throw("Price undefined in oracle")
349349 }
350350 if ((amount != currentCertificationPrice))
351351 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
352352 else {
353353 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
354354 if ((entryExist != ""))
355- then throw("You already added this artwork on Sign Art")
355+ then throw("You already added it on Sign Art")
356356 else {
357357 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
358358 if ((hashExist != ""))
359- then throw("This artwork hash is already registered on Sign Art")
359+ then throw("Hash already registered on Sign Art")
360360 else {
361361 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
362362 if (!(isSignCertified))
363- then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
363+ then throw("Sign Certificate not found for this address.")
364364 else if ((size(cidDisplay) == 0))
365365 then throw("Display CID cannot be empty")
366366 else if (!(validateString(name, 100)))
367- then throw("100 Characters maximum for the name")
367+ then throw("100 Char. max for the name")
368368 else if (!(validateString(description, 1000)))
369- then throw("1000 Characters maximum for the description")
370- else {
371- let tagsList = split(tags, ",")
372- if ((size(tagsList) > 5))
373- then throw("Tags should be maximum 5 single word separated by space.")
374- else {
375- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
376- case s: String =>
377- s
378- case _ =>
379- userUnregistered
380- }
381- let timestamp = lastBlock.timestamp
382- if (if (isDefined(userIsRegistered))
383- then (userIsRegistered == userUnregistered)
384- else false)
385- then throw("Please register this account first with \"User infos\" tab")
386- else if ((userIsRegistered == userSuspended))
387- then throw("Your account is suspended")
388- else if ((userIsRegistered == userRemoved))
389- then throw("Your account have been removed")
390- else if ((maxmint > 10))
391- then throw("Maximum 10 editions per artwork")
392- else if ((size(sha256Hash) != 64))
393- then throw("Hash should be sha256 string composed of 64 char.")
394- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
395- }
396- }
369+ then throw("1000 Char. max for the description")
370+ else if ((size(split(tags, ",")) > 5))
371+ then throw("5 tags max.")
372+ else {
373+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
374+ case s: String =>
375+ s
376+ case _ =>
377+ userUnregistered
378+ }
379+ let timestamp = lastBlock.timestamp
380+ if (if (isDefined(userIsRegistered))
381+ then (userIsRegistered == userUnregistered)
382+ else false)
383+ then throw("Register this account first with \"User infos\" tab")
384+ else if ((userIsRegistered == userSuspended))
385+ then throw("Account suspended")
386+ else if ((userIsRegistered == userRemoved))
387+ then throw("Account removed")
388+ else if ((maxmint > 10))
389+ then throw("10 editions max per artwork")
390+ else if ((size(sha256Hash) != 64))
391+ then throw("Hash should be 64 char.")
392+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
393+ }
397394 }
398395 }
399396 }
400397 }
401398 }
402399
403400
404401
405402 @Callable(invoke)
406403 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
407404 let updateId = toBase58String(invoke.transactionId)
408405 let callerAddress = toBase58String(invoke.caller.bytes)
409406 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
410407 then throw("Problem with CID")
411408 else if (!(validateAllHash(sha256Export, sha256Licence)))
412409 then throw("Problem with Hashes")
413410 else {
414411 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
415412 if ((entryExist == ""))
416413 then throw("Entry not found")
417414 else if (!(validateString(name, 100)))
418415 then throw("100 Char. max for the name")
419416 else if (!(validateString(description, 1000)))
420417 then throw("1000 Char. max for the description")
421418 else {
422419 let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) {
423420 case b: Int =>
424421 if ((b == 0))
425422 then false
426423 else true
427424 case _ =>
428425 false
429426 }
430427 if ((size(split(tags, ",")) > 5))
431428 then throw("5 tags max.")
432429 else {
433430 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
434431 case s: String =>
435432 s
436433 case _ =>
437434 userUnregistered
438435 }
439436 if (if (isDefined(userIsRegistered))
440437 then (userIsRegistered == userUnregistered)
441438 else false)
442- then throw("Please register this account first with \"User infos\" tab")
439+ then throw("Register this account first with \"User infos\" tab")
443440 else if ((userIsRegistered == userSuspended))
444- then throw("Your account is suspended")
441+ then throw("Account suspended")
445442 else if ((userIsRegistered == userRemoved))
446- then throw("Your account have been removed")
443+ then throw("Account removed")
447444 else if ((maxmint > 10))
448- then throw("Maximum 10 editions per artwork")
445+ then throw("M10 editions max per artwork")
449446 else if (!(artworkMinted))
450447 then [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), IntegerEntry(keyArtMaxMint(callerAddress, txid), maxmint), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry(keyArtType(callerAddress, txid), type), StringEntry("last_invoke_id", updateId)]
451- else throw("You cannot edit artwork that have already minted NFT(s)")
448+ else throw("Artwork already minted")
452449 }
453450 }
454451 }
455452 }
456453
457454
458455
459456 @Callable(i)
460457 func deleteArtwork (artId,address) = {
461458 let callerAddress = toString(addressFromPublicKey(i.callerPublicKey))
462459 let id = toBase58String(i.transactionId)
463460 let addressToUse = if (if ((callerAddress == admin))
464461 then true
465462 else (callerAddress == admin2))
466463 then address
467464 else callerAddress
468465 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
469466 case s: String =>
470467 s
471468 case _ =>
472- throw("No artwork matching this request or you are not allowed")
469+ throw("No artwork matching")
473470 }
474471 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
475472 case b: Int =>
476473 if ((b != 0))
477474 then true
478475 else false
479476 case _ =>
480477 false
481478 }
482479 let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId))
483480 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
484481 case s: String =>
485482 s
486483 case _ =>
487- throw("No artwork hash matching this request")
484+ throw("No artwork hash matching")
488485 }
489486 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
490487 case s: String =>
491488 s
492489 case _ =>
493- throw("No SIGN ID matching this request")
490+ throw("No SIGN ID matching")
494491 }
495492 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)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse)), DeleteEntry(keyArtPrice(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtAssetIdAccepted(addressToUse, artId)), DeleteEntry(((((("art_sold_1_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_2_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_3_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_4_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_5_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_6_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_7_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_8_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_9_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_10_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse))]
496493 if (if ((callerAddress == admin))
497494 then true
498495 else (callerAddress == admin2))
499496 then dataToDelete
500497 else if (!(artworkMinted))
501498 then dataToDelete
502- else throw("This artwork already have minted NFT, you cannot delete it")
499+ else throw("Artwork already minted, you cannot delete it")
503500 }
504501
505502
506503
507504 @Callable(invoke)
508505 func sellArtwork (artId,price,maxMint,assetId) = {
509506 let id = toBase58String(invoke.transactionId)
510507 let callerAddress = toBase58String(invoke.caller.bytes)
511508 let sellDate = lastBlock.timestamp
512509 let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId))
513510 if ((size(split(exportCID, "/")[0]) != 59))
514511 then throw("You cannot sell artwork with no export file")
515512 else {
516513 let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId))
517514 if ((size(exportHash) != 64))
518515 then throw("You cannot sell artwork with no export hash")
519516 else if (if (if ((assetId != toBase58String(signAssetId)))
520517 then (assetId != toBase58String(wavesAssetId))
521518 else false)
522519 then (assetId != toBase58String(usdnAssetId))
523520 else false)
524521 then throw("Only SIGN, USDN or WAVES currency accepted at the moment")
525522 else {
526523 let artworkName = match getString(this, keyArtName(callerAddress, artId)) {
527524 case s: String =>
528525 s
529526 case _ =>
530527 throw("This artwork doesn't exit or you are not the owner")
531528 }
532529 let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) {
533530 case s: String =>
534531 s
535532 case _ =>
536533 throw("Please register this account first")
537534 }
538535 let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) {
539536 case n: Int =>
540537 n
541538 case _ =>
542539 0
543540 }
544541 let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) {
545542 case n: Int =>
546543 n
547544 case _ =>
548545 0
549546 }
550547 if (if ((amountSold != 0))
551548 then (amountSold == maxCanSell)
552549 else false)
553550 then throw("You reached the max edition allowed to sell for this edition.")
554551 else if (if ((amountSold > 0))
555552 then (maxCanSell != maxMint)
556553 else false)
557554 then throw("You cannot change the maximum issuable anymore")
558555 else if ((userIsRegistered == userSuspended))
559556 then throw("Your account is suspended")
560557 else if ((userIsRegistered == userRemoved))
561558 then throw("Your account have been deleted")
562559 else {
563560 let sellStatus = if ((price > 0))
564561 then true
565562 else false
566563 [BooleanEntry(keyArtOnSale(callerAddress, artId), sellStatus), IntegerEntry(keyArtPrice(callerAddress, artId), price), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxMint), StringEntry(keyArtAssetIdAccepted(callerAddress, artId), assetId), StringEntry("last_invoke_id", id)]
567564 }
568565 }
569566 }
570567 }
571568
572569
573570
574571 @Callable(invoke)
575572 func buyArtwork (artId,issuer) = {
576573 let id = toBase58String(invoke.transactionId)
577574 let callerAddress = toBase58String(invoke.caller.bytes)
578575 let totalNFT = getIntegerByKey("total_nft_issued")
579576 let signID = getStringByKey(keyArtSignID(issuer, artId))
580577 let artworkName = match getString(this, keyArtName(issuer, artId)) {
581578 case s: String =>
582579 s
583580 case _ =>
584- throw("This artwork doesn't exit")
581+ throw("Artwork doesn't exit")
585582 }
586583 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
587584 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
588585 let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
589586 let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
590587 let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
591588 let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
592589 let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
593590 let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
594591 let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
595592 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
596593 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
597594 if ((artworkPrice == 0))
598- then throw("This artwork is not for sell")
595+ then throw("Artwork not for sell")
599596 else if (!(isOnSale))
600- then throw("This artwork is not for sale")
597+ then throw("Artwork not for sale")
601598 else {
602599 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
603600 let payment = value(invoke.payments[0])
604601 let amount = value(payment.amount)
605602 let assetId = if (if (isDefined(payment.assetId))
606603 then (payment.assetId == fromBase58String(priceAssetId))
607604 else false)
608605 then payment.assetId
609606 else throw((("Only " + priceAssetId) + " token id accepted at the moment"))
610607 let cut = if ((priceAssetId == toBase58String(signAssetId)))
611608 then 8
612609 else 10
613610 let amountForSign = ((amount / 100) * cut)
614611 let amountForCreator = (amount - amountForSign)
615612 if ((amountSold == maxCanSell))
616- then throw("Cannot buy this artwork anymore, maximum editions reached")
613+ then throw("Artwork sold out")
617614 else if ((artworkPrice != amount))
618- then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount)))
615+ then throw("Payment don't match")
619616 else {
620617 let newAmountSold = (amountSold + 1)
621618 let entryDate = lastBlock.timestamp
622619 let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1,
623620 \"creator\": \"" + issuer) + "\",
624621 \"artID\": \"") + artId) + "\",
625622 \"signID\": \"") + signID) + "\",
626623 \"artwork_name\": \"") + artworkName) + "\",
627624 \"artwork_desc\": \"") + description) + "\",
628625 \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\",
629626 \"maxIssuable\": \"") + toString(maxCanSell)) + "\",
630627 \"source_hash\": \"") + sourceHash) + "\",
631628 \"display_cid\": \"") + displayCID) + "\",
632629 \"export_cid\": \"") + exportCID) + "\",
633630 \"export_hash\": \"") + exportHash) + "\",
634631 \"licence_cid\": \"") + licenceCID) + "\",
635632 \"licence_hash\": \"") + licenceHash) + "\"}")
636633 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
637634 let idNFT = calculateAssetId(issueNFT)
638635 let sellStatus = if ((newAmountSold == maxCanSell))
639636 then false
640637 else true
641638 [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId)), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), StringEntry("last_invoke_id", id), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(invoke.caller, 1, idNFT)]
642639 }
643640 }
644641 }
645642
646643
647644
648645 @Callable(i)
649646 func deleteUser (address) = {
650647 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
651648 let id = toBase58String(i.transactionId)
652649 if (if ((callerAddr == admin))
653650 then true
654651 else (callerAddr == admin2))
655652 then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved), StringEntry("last_invoke_id", id)]
656653 else throw("You are not allowed")
657654 }
658655
659656

github/deemru/w8io/026f985 
89.69 ms