tx · 9ayUsxopQQS1T4ArHaFdjEL3oGxH3fmcwwVm7z7Vedps

3My71eA5781UVppziZNzPzoaXoQ79XLfpou:  -0.01400000 Waves

2020.09.02 16:05 [1159805] smart account 3My71eA5781UVppziZNzPzoaXoQ79XLfpou > SELF 0.00000000 Waves

{ "type": 13, "id": "9ayUsxopQQS1T4ArHaFdjEL3oGxH3fmcwwVm7z7Vedps", "fee": 1400000, "feeAssetId": null, "timestamp": 1599051939564, "version": 2, "chainId": 84, "sender": "3My71eA5781UVppziZNzPzoaXoQ79XLfpou", "senderPublicKey": "xu7oh5A3xfh5PtSRAoZLCyetRFpcf6bq7bCzGtTCUyL", "proofs": [ "MGXJYiHBCiL6d9fYVyTHigVbvHbzwAvbS8u67ASWJDJgfGonLpTLabwiYHhf9zytr3uHM3epquc6qCBW8xmq582" ], "script": "base64:AAIEAAAAAAAAADcIAhIAEgYKBAgICAgSDgoMCAgICAgIAQgICAgIEg0KCwgICAgIAQgICAgIEgQKAggBEgQKAggIAAAAKgAAAAAPc3RvcmFnZVZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAA11c2VyV2hpdGVsaXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNcEpFYjM2WlF5azFoYUtub2NheUpjWU0zMWNOUFhQaUszAAAAAAxzaWduVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAZ1c2RuSUQCAAAALDNLRlhCR0dMQ2pBNVoyRHVXNERxOWZERHJIakpKUDFaRWthb2FqU3p1S3NDAAAAAAxWRVJJRklFRE9OTFkGAAAAAAt1c2VyQ3JlYX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QAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABB0b3RhbF9uZnRfaXNzdWVkCQAAZAAAAAIFAAAACHRvdGFsTkZUAAAAAAAAAAABCQAETAAAAAIFAAAACGlzc3VlTkZUCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAthcnRfb25zYWxlXwUAAAAHZW50cnlJRAIAAAABXwUAAAANY2FsbGVyQWRkcmVzcwUAAAAKc2VsbFN0YXR1cwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGaXNzdWVyBQAAAAZhbW91bnQFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAABmludm9rZQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAABWlkTkZUBQAAAANuaWwAAAAABpUYQA==", "height": 1159805, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FncVqjWnoBThv2opjhoi8XWuKQbH3zvVUMZWCndGMsWD Next: 8Vr7VuoUW8bxgcNgjGCnSWqXiAT5fmEGsDo5XfpHTce Diff:
OldNewDifferences
189189 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
190190 if (!(isSignCertified))
191191 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
192- else if ((size(name) > 100))
193- then throw("100 Characters maximum for the name")
194- else if ((size(description) > 1000))
195- then throw("1000 Characters maximum for the description")
196- else {
197- let tagsList = split(tags, ",")
198- if ((size(tagsList) > 5))
199- then throw("Tags should be maximum 5 single word separated by space.")
192+ else if ((size(name) == 0))
193+ then throw("Title cannot be empty")
194+ else if ((size(name) > 100))
195+ then throw("100 Characters maximum for the name")
196+ else if ((size(description) > 1000))
197+ then throw("1000 Characters maximum for the description")
198+ else if ((size(description) == 0))
199+ then throw("Description cannot be empty")
200200 else {
201- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
202- case s: String =>
203- s
204- case _ =>
205- userUnregistered
201+ let tagsList = split(tags, ",")
202+ if ((size(tagsList) > 5))
203+ then throw("Tags should be maximum 5 single word separated by space.")
204+ else {
205+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
206+ case s: String =>
207+ s
208+ case _ =>
209+ userUnregistered
210+ }
211+ let timestamp = lastBlock.timestamp
212+ if (if (isDefined(userIsRegistered))
213+ then (userIsRegistered == userUnregistered)
214+ else false)
215+ then throw("Please register this account first with \"User infos\" tab")
216+ else if ((userIsRegistered == userSuspended))
217+ then throw("Your account is suspended")
218+ else if ((maxmint > 10))
219+ then throw("Maximum 10 editions per artwork")
220+ else if ((size(sha256Hash) != 64))
221+ then throw("Hash should be sha256 string composed of 64 char.")
222+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), 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)]
223+ }
206224 }
207- let timestamp = lastBlock.timestamp
208- if (if (isDefined(userIsRegistered))
209- then (userIsRegistered == userUnregistered)
210- else false)
211- then throw("Please register this account first with \"User infos\" tab")
212- else if ((userIsRegistered == userSuspended))
213- then throw("Your account is suspended")
214- else if ((maxmint > 10))
215- then throw("Maximum 10 editions per artwork")
216- else if ((size(sha256Hash) != 64))
217- then throw("Hash should be sha256 string composed of 64 char.")
218- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), 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)]
219- }
220- }
221225 }
222226 }
223227 }
227231 @Callable(invoke)
228232 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
229233 let callerAddress = toBase58String(invoke.caller.bytes)
230- let entryExist = getStringByKey(((("art_export_cid_" + txid) + "_") + callerAddress))
234+ let entryExist = getStringByKey(((("art_name_" + txid) + "_") + callerAddress))
231235 if ((entryExist == ""))
232236 then throw("This entry doesn't exist or you are not the owner")
233- else if ((size(name) > 100))
234- then throw("100 Characters maximum for the name")
235- else if ((size(description) > 1000))
236- then throw("1000 Characters maximum for the description")
237- else {
238- let tagsList = split(tags, ",")
239- if ((size(tagsList) > 5))
240- then throw("Tags should be maximum 5 single word separated by space.")
237+ else if ((size(name) == 0))
238+ then throw("Title cannot be empty")
239+ else if ((size(name) > 100))
240+ then throw("100 Characters maximum for the name")
241+ else if ((size(description) > 1000))
242+ then throw("1000 Characters maximum for the description")
243+ else if ((size(description) == 0))
244+ then throw("Description cannot be empty")
241245 else {
242- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
243- case s: String =>
244- s
245- case _ =>
246- userUnregistered
246+ let tagsList = split(tags, ",")
247+ if ((size(tagsList) > 5))
248+ then throw("Tags should be maximum 5 single word separated by space.")
249+ else {
250+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
251+ case s: String =>
252+ s
253+ case _ =>
254+ userUnregistered
255+ }
256+ if (if (isDefined(userIsRegistered))
257+ then (userIsRegistered == userUnregistered)
258+ else false)
259+ then throw("Please register this account first with \"User infos\" tab")
260+ else if ((userIsRegistered == userSuspended))
261+ then throw("Your account is suspended")
262+ else if ((maxmint > 10))
263+ then throw("Maximum 10 editions per artwork")
264+ else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags)]
265+ }
247266 }
248- if (if (isDefined(userIsRegistered))
249- then (userIsRegistered == userUnregistered)
250- else false)
251- then throw("Please register this account first with \"User infos\" tab")
252- else if ((userIsRegistered == userSuspended))
253- then throw("Your account is suspended")
254- else if ((maxmint > 10))
255- then throw("Maximum 10 editions per artwork")
256- else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags)]
257- }
258- }
259267 }
260268
261269
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let userWhitelist = value(addressFromString("3MpJEb36ZQyk1haKnocayJcYM31cNPXPiK3"))
77
88 let signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1111
1212 let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1313
1414 let VERIFIEDONLY = true
1515
1616 let userCreated = "CREATED"
1717
1818 let userVerified = "VERIFIED"
1919
2020 let userSuspended = "SUSPENDED"
2121
2222 let userUnregistered = "UNREGISTERED"
2323
2424 let onSale = "ON_SALE"
2525
2626 let sold = "SOLD"
2727
2828 let canceled = "CANCELED"
2929
3030 func getStringByKey (key) = match getString(this, key) {
3131 case a: String =>
3232 a
3333 case _ =>
3434 ""
3535 }
3636
3737
3838 func getIntegerByKey (key) = match getInteger(this, key) {
3939 case i: Int =>
4040 i
4141 case _ =>
4242 0
4343 }
4444
4545
4646 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) {
4747 case a: String =>
4848 if (contains(a, sha256Hash))
4949 then true
5050 else false
5151 case _ =>
5252 false
5353 }
5454
5555
5656 func validateNFTs (accumulator,id) = {
5757 let assetDetails = value(assetInfo(fromBase58String(id)))
5858 if (if (if ((assetDetails.quantity != 1))
5959 then true
6060 else (assetDetails.decimals != 0))
6161 then true
6262 else (assetDetails.reissuable != false))
6363 then (accumulator + 0)
6464 else (accumulator + 1)
6565 }
6666
6767
6868 func verifyAddress (addr) = if (!(VERIFIEDONLY))
6969 then true
7070 else match getBoolean(userWhitelist, addr) {
7171 case b: Boolean =>
7272 b
7373 case _ =>
7474 throw("You are not white listed, please contact first.")
7575 }
7676
7777
7878 func keyUserAddr (callerAddr) = ("user_" + callerAddr)
7979
8080
8181 func keyUserName (callerAddr) = ("user_name_" + callerAddr)
8282
8383
8484 func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr)
8585
8686
8787 func keyUserSocial (callerAddr) = ("user_social_" + callerAddr)
8888
8989
9090 func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr)
9191
9292
9393 func keyUserIsArtist (callerAddr) = ("user_isartist_" + callerAddr)
9494
9595
9696 func keyUserStatus (callerAddr) = ("user_status_" + callerAddr)
9797
9898
9999 func keyUserDate (callerAddr) = ("user_date_" + callerAddr)
100100
101101
102102 func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr)
103103
104104
105105 func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr)
106106
107107
108108 func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr)
109109
110110
111111 func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr)
112112
113113
114114 func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr)
115115
116116
117117 func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr)
118118
119119
120120 func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr)
121121
122122
123123 func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr)
124124
125125
126126 func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr)
127127
128128
129129 func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr)
130130
131131
132132 func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr)
133133
134134
135135 func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr)
136136
137137
138138 func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr)
139139
140140
141141 func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr)
142142
143143
144144 func keyArtOwnerByHash (sha256Hash) = ("art_owner_by_hash_" + sha256Hash)
145145
146146
147147 func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr)))))
148148
149149
150150 @Callable(i)
151151 func resetStorage () = [DeleteEntry("143494f3fbd2cf319626f7ddc25de133910cb1080121bca96347185c9cs25aa2")]
152152
153153
154154
155155 @Callable(i)
156156 func registerUpdateUser (name,description,thumb,social) = {
157157 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
158158 let userAllowed = verifyAddress(callerAddr)
159159 let id = toBase58String(i.transactionId)
160160 let newUser = getStringByKey(("user_" + callerAddr))
161161 let timestamp = lastBlock.timestamp
162162 if (!(userAllowed))
163163 then throw("You are now allowed to register yet, please contact us first to get approved.")
164164 else if (if ((name == ""))
165165 then true
166166 else (description == ""))
167167 then throw("Name and description cannot be empty")
168168 else if ((size(description) > 600))
169169 then throw("600 Characters maximum for the description")
170170 else if ((newUser == ""))
171171 then [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), BooleanEntry(keyUserIsArtist(callerAddr), false), StringEntry(keyUserStatus(callerAddr), userCreated)]
172172 else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb)]
173173 }
174174
175175
176176
177177 @Callable(invoke)
178178 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
179179 let artId = toBase58String(invoke.transactionId)
180180 let callerAddress = toBase58String(invoke.caller.bytes)
181181 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
182182 if ((entryExist != ""))
183183 then throw("You already added this artwork on Sign Art")
184184 else {
185185 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
186186 if ((hashExist != ""))
187187 then throw("This artwork hash is already registered on Sign Art")
188188 else {
189189 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
190190 if (!(isSignCertified))
191191 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
192- else if ((size(name) > 100))
193- then throw("100 Characters maximum for the name")
194- else if ((size(description) > 1000))
195- then throw("1000 Characters maximum for the description")
196- else {
197- let tagsList = split(tags, ",")
198- if ((size(tagsList) > 5))
199- then throw("Tags should be maximum 5 single word separated by space.")
192+ else if ((size(name) == 0))
193+ then throw("Title cannot be empty")
194+ else if ((size(name) > 100))
195+ then throw("100 Characters maximum for the name")
196+ else if ((size(description) > 1000))
197+ then throw("1000 Characters maximum for the description")
198+ else if ((size(description) == 0))
199+ then throw("Description cannot be empty")
200200 else {
201- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
202- case s: String =>
203- s
204- case _ =>
205- userUnregistered
201+ let tagsList = split(tags, ",")
202+ if ((size(tagsList) > 5))
203+ then throw("Tags should be maximum 5 single word separated by space.")
204+ else {
205+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
206+ case s: String =>
207+ s
208+ case _ =>
209+ userUnregistered
210+ }
211+ let timestamp = lastBlock.timestamp
212+ if (if (isDefined(userIsRegistered))
213+ then (userIsRegistered == userUnregistered)
214+ else false)
215+ then throw("Please register this account first with \"User infos\" tab")
216+ else if ((userIsRegistered == userSuspended))
217+ then throw("Your account is suspended")
218+ else if ((maxmint > 10))
219+ then throw("Maximum 10 editions per artwork")
220+ else if ((size(sha256Hash) != 64))
221+ then throw("Hash should be sha256 string composed of 64 char.")
222+ else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), 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)]
223+ }
206224 }
207- let timestamp = lastBlock.timestamp
208- if (if (isDefined(userIsRegistered))
209- then (userIsRegistered == userUnregistered)
210- else false)
211- then throw("Please register this account first with \"User infos\" tab")
212- else if ((userIsRegistered == userSuspended))
213- then throw("Your account is suspended")
214- else if ((maxmint > 10))
215- then throw("Maximum 10 editions per artwork")
216- else if ((size(sha256Hash) != 64))
217- then throw("Hash should be sha256 string composed of 64 char.")
218- else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), 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)]
219- }
220- }
221225 }
222226 }
223227 }
224228
225229
226230
227231 @Callable(invoke)
228232 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
229233 let callerAddress = toBase58String(invoke.caller.bytes)
230- let entryExist = getStringByKey(((("art_export_cid_" + txid) + "_") + callerAddress))
234+ let entryExist = getStringByKey(((("art_name_" + txid) + "_") + callerAddress))
231235 if ((entryExist == ""))
232236 then throw("This entry doesn't exist or you are not the owner")
233- else if ((size(name) > 100))
234- then throw("100 Characters maximum for the name")
235- else if ((size(description) > 1000))
236- then throw("1000 Characters maximum for the description")
237- else {
238- let tagsList = split(tags, ",")
239- if ((size(tagsList) > 5))
240- then throw("Tags should be maximum 5 single word separated by space.")
237+ else if ((size(name) == 0))
238+ then throw("Title cannot be empty")
239+ else if ((size(name) > 100))
240+ then throw("100 Characters maximum for the name")
241+ else if ((size(description) > 1000))
242+ then throw("1000 Characters maximum for the description")
243+ else if ((size(description) == 0))
244+ then throw("Description cannot be empty")
241245 else {
242- let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
243- case s: String =>
244- s
245- case _ =>
246- userUnregistered
246+ let tagsList = split(tags, ",")
247+ if ((size(tagsList) > 5))
248+ then throw("Tags should be maximum 5 single word separated by space.")
249+ else {
250+ let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
251+ case s: String =>
252+ s
253+ case _ =>
254+ userUnregistered
255+ }
256+ if (if (isDefined(userIsRegistered))
257+ then (userIsRegistered == userUnregistered)
258+ else false)
259+ then throw("Please register this account first with \"User infos\" tab")
260+ else if ((userIsRegistered == userSuspended))
261+ then throw("Your account is suspended")
262+ else if ((maxmint > 10))
263+ then throw("Maximum 10 editions per artwork")
264+ else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags)]
265+ }
247266 }
248- if (if (isDefined(userIsRegistered))
249- then (userIsRegistered == userUnregistered)
250- else false)
251- then throw("Please register this account first with \"User infos\" tab")
252- else if ((userIsRegistered == userSuspended))
253- then throw("Your account is suspended")
254- else if ((maxmint > 10))
255- then throw("Maximum 10 editions per artwork")
256- else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags)]
257- }
258- }
259267 }
260268
261269
262270
263271 @Callable(invoke)
264272 func sellArtwork (hash,price) = {
265273 let id = toBase58String(invoke.transactionId)
266274 let callerAddress = toBase58String(invoke.caller.bytes)
267275 let entryDate = lastBlock.timestamp
268276 let entryID = getStringByKey(((hash + "_") + callerAddress))
269277 if (!(isDefined(entryID)))
270278 then throw("This artwork doesn't exit or you are not the owner")
271279 else {
272280 let userIsRegistered = getStringByKey(("user_status_" + callerAddress))
273281 if ((userIsRegistered == ""))
274282 then throw("Please register this account first")
275283 else {
276284 let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + callerAddress))
277285 let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + callerAddress))
278286 if ((amountSold == maxCanSell))
279287 then throw("You reached the max edition allowed to sell for this edition.")
280288 else if ((userIsRegistered == userSuspended))
281289 then throw("Your account is suspended")
282290 else if (!(isDefined(entryID)))
283291 then throw("This artwork desn't exist")
284292 else if ((size(hash) != 64))
285293 then throw("This hash is incorrect.")
286294 else {
287295 let sellStatus = if ((price > 0))
288296 then true
289297 else false
290298 [BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), IntegerEntry(((("art_price_" + entryID) + "_") + callerAddress), price)]
291299 }
292300 }
293301 }
294302 }
295303
296304
297305
298306 @Callable(invoke)
299307 func buyArtwork (hash,issuer) = {
300308 let id = toBase58String(invoke.transactionId)
301309 let callerAddress = toBase58String(invoke.caller.bytes)
302310 let totalNFT = getIntegerByKey("total_nft_issued")
303311 let entryID = getStringByKey(((hash + "_") + issuer))
304312 if ((entryID == ""))
305313 then throw("This artwork doesn't exit or you are not the owner")
306314 else {
307315 let userIsRegistered = getStringByKey(("user_status_" + callerAddress))
308316 if (!(isDefined(userIsRegistered)))
309317 then throw("Please register this account first")
310318 else {
311319 let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer))
312320 let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer))
313321 let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer))
314322 if ((artworkPrice == 0))
315323 then throw("This artwork is not for sell")
316324 else {
317325 let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer))
318326 let payment = value(invoke.payments[0])
319327 let amount = value(payment.amount)
320328 let assetId = if (isDefined(payment.assetId))
321329 then throw("Only Waves token accepted at the moment")
322330 else unit
323331 if ((amountSold == maxCanSell))
324332 then throw("Cannot buy this artwork anymore")
325333 else if ((artworkPrice != amount))
326334 then throw("Payment don't match seller price")
327335 else {
328336 let newAmountSold = (amountSold + 1)
329337 let entryDate = lastBlock.timestamp
330338 let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}")
331339 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
332340 let idNFT = calculateAssetId(issueNFT)
333341 let sellStatus = if ((newAmountSold == maxCanSell))
334342 then false
335343 else true
336344 [IntegerEntry(((("art_issued_" + entryID) + "_") + issuer), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + entryID) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), issueNFT, BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)]
337345 }
338346 }
339347 }
340348 }
341349 }
342350
343351

github/deemru/w8io/169f3d6 
80.84 ms