tx · CH8RfwJeTC1dHRFUwk69MJEmoxNgvnTX5hrUpKBLRDFa

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.15 12:15 [1221479] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "CH8RfwJeTC1dHRFUwk69MJEmoxNgvnTX5hrUpKBLRDFa", "fee": 1400000, "feeAssetId": null, "timestamp": 1602753358746, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4H1om6KcNCYba8koUtXkUCp6a28H37bWfLEMoCsVsbMJ77W9ucbBpyBV5LrKMb7aCzZLgRjKZPnxZzdjA6TnETVi" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA5AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3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AAQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0X2ludm9rZV9pZAUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGRvIHRoYXQAAAAAooWYYQ==", "height": 1221479, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5uZnCPwUarrGz2LEibga1H8sxL5tGvNHf989xrJj5V2K Next: 56MYmwbemRvZyvpFLYRLUh2oJg54KSqjLFNo9rn9mdHV Diff:
OldNewDifferences
312312 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
313313 let artId = toBase58String(invoke.transactionId)
314314 let callerAddress = toBase58String(invoke.caller.bytes)
315- if (!(validateCID(cidDisplay)))
315+ if (if ((cidDisplay != ""))
316+ then !(validateCID(cidDisplay))
317+ else false)
316318 then throw("Wrong Display CID length")
317- else if (!(validateCID(cidExport)))
319+ else if (if ((cidExport != ""))
320+ then !(validateCID(cidExport))
321+ else false)
318322 then throw("Wrong Export CID length")
319- else if (!(validateCID(cidLicence)))
323+ else if (if ((cidLicence != ""))
324+ then !(validateCID(cidLicence))
325+ else false)
320326 then throw("Wrong Licence CID length")
321327 else if (!(validateHash(sha256Hash)))
322328 then throw("Source Hash should be 64 characters maximum")
323- else if (!(validateHash(sha256Export)))
329+ else if (if ((sha256Export != ""))
330+ then !(validateHash(sha256Export))
331+ else false)
324332 then throw("Export Hash should be 64 characters maximum")
325- else if (!(validateHash(sha256Licence)))
333+ else if (if ((sha256Licence != ""))
334+ then !(validateHash(sha256Licence))
335+ else false)
326336 then throw("Licence Hash should be 64 characters maximum")
327337 else if ((size(invoke.payments) == 0))
328338 then throw("No payment attached")
403413 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
404414 let updateId = toBase58String(invoke.transactionId)
405415 let callerAddress = toBase58String(invoke.caller.bytes)
406- if (!(validateCID(cidDisplay)))
416+ if (if ((cidDisplay != ""))
417+ then !(validateCID(cidDisplay))
418+ else false)
407419 then throw("Wrong Display CID length")
408- else if (!(validateCID(cidExport)))
420+ else if (if ((cidExport != ""))
421+ then !(validateCID(cidExport))
422+ else false)
409423 then throw("Wrong Export CID length")
410- else if (!(validateCID(cidLicence)))
424+ else if (if ((cidLicence != ""))
425+ then !(validateCID(cidLicence))
426+ else false)
411427 then throw("Wrong Licence CID length")
412- else if (!(validateHash(sha256Export)))
428+ else if (if ((sha256Export != ""))
429+ then !(validateHash(sha256Export))
430+ else false)
413431 then throw("Export Hash should be 64 characters maximum")
414- else if (!(validateHash(sha256Licence)))
432+ else if (if ((sha256Licence != ""))
433+ then !(validateHash(sha256Licence))
434+ else false)
415435 then throw("Licence Hash should be 64 characters maximum")
416436 else {
417437 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
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 validateNFTs (accumulator,id) = {
8383 let assetDetails = value(assetInfo(fromBase58String(id)))
8484 if (if (if ((assetDetails.quantity != 1))
8585 then true
8686 else (assetDetails.decimals != 0))
8787 then true
8888 else (assetDetails.reissuable != false))
8989 then (accumulator + 0)
9090 else (accumulator + 1)
9191 }
9292
9393
9494 func validateCID (cid) = if (if ((75 > size(cid)))
9595 then (60 > size(split(cid, "/")[0]))
9696 else false)
9797 then (16 > size(split(cid, "/")[1]))
9898 else false
9999
100100
101101 func validateHash (hash) = (65 > size(hash))
102102
103103
104104 func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) {
105105 case b: String =>
106106 b
107107 case _ =>
108108 throw("Something went wrong.")
109109 }
110110
111111
112112 func keyUserAddr (callerAddr) = ("user_" + callerAddr)
113113
114114
115115 func keyUserName (callerAddr) = ("user_name_" + callerAddr)
116116
117117
118118 func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr)
119119
120120
121121 func keyUserSocial (callerAddr) = ("user_social_" + callerAddr)
122122
123123
124124 func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr)
125125
126126
127127 func keyUserStatus (callerAddr) = ("user_status_" + callerAddr)
128128
129129
130130 func keyUserDate (callerAddr) = ("user_date_" + callerAddr)
131131
132132
133133 func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr)
134134
135135
136136 func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr)
137137
138138
139139 func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr)
140140
141141
142142 func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr)
143143
144144
145145 func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr)
146146
147147
148148 func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr)
149149
150150
151151 func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr)
152152
153153
154154 func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr)
155155
156156
157157 func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr)
158158
159159
160160 func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr)
161161
162162
163163 func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr)
164164
165165
166166 func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr)
167167
168168
169169 func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr)
170170
171171
172172 func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr)
173173
174174
175175 func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr)
176176
177177
178178 func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr)
179179
180180
181181 func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr)
182182
183183
184184 func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
185185
186186
187187 func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr)
188188
189189
190190 func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr)))))
191191
192192
193193 @Callable(i)
194194 func registerUser (name,description,thumb,social) = {
195195 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
196196 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
197197 let id = toBase58String(i.transactionId)
198198 let timestamp = lastBlock.timestamp
199199 if (if ((userCanRegister == userSuspended))
200200 then true
201201 else (userCanRegister == userRemoved))
202202 then throw("You are now allowed to register, your account have been suspended/ removed.")
203203 else if ((userCanRegister == userRegistered))
204204 then throw("You are already registered, please use update method instead.")
205205 else if (if ((userCanRegister == ""))
206206 then WHITELISTEDONLY
207207 else false)
208208 then throw("You are now allowed to register yet, please contact us first to get approved.")
209209 else if (if ((name == ""))
210210 then true
211211 else (description == ""))
212212 then throw("Name and description cannot be empty")
213213 else if ((size(description) > 600))
214214 then throw("600 Characters maximum for the description")
215215 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)]
216216 }
217217
218218
219219
220220 @Callable(i)
221221 func deleteEntry (entry) = {
222222 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
223223 if ((callerAddr == admin))
224224 then [DeleteEntry(entry)]
225225 else throw("no")
226226 }
227227
228228
229229
230230 @Callable(i)
231231 func updateUser (name,description,thumb,social) = {
232232 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
233233 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
234234 if (if ((userCanRegister == userSuspended))
235235 then true
236236 else (userCanRegister == userRemoved))
237237 then throw("You are now allowed to register, your account have been suspended/ removed.")
238238 else if (if ((userCanRegister == ""))
239239 then true
240240 else (userCanRegister == userAllowed))
241241 then throw("Please register first with registerUser")
242242 else {
243243 let id = toBase58String(i.transactionId)
244244 let timestamp = lastBlock.timestamp
245245 if (if ((name == ""))
246246 then true
247247 else (description == ""))
248248 then throw("Name and description cannot be empty")
249249 else if ((size(description) > 600))
250250 then throw("600 Characters maximum for the description")
251251 else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)]
252252 }
253253 }
254254
255255
256256
257257 @Callable(i)
258258 func changeUserStatus (address,status) = {
259259 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
260260 let id = toBase58String(i.transactionId)
261261 let currentStatus = getStringByKey(keyUserStatus(address))
262262 let statusToSet = if ((status == userVerified))
263263 then userVerified
264264 else if ((status == userRegistered))
265265 then userRegistered
266266 else if ((status == userSuspended))
267267 then userSuspended
268268 else if ((status == userRemoved))
269269 then userRemoved
270270 else if ((status == userAllowed))
271271 then userAllowed
272272 else if (if ((status == userReset))
273273 then (currentStatus == userAllowed)
274274 else false)
275275 then ""
276276 else throw("Unknown status")
277277 if (if ((currentStatus == userAllowed))
278278 then (status == userAllowed)
279279 else false)
280280 then throw("This user is already allowed")
281281 else if (if ((currentStatus == userRegistered))
282282 then (status == userAllowed)
283283 else false)
284284 then throw("This user is already allowed and registered")
285285 else if (if ((currentStatus == userVerified))
286286 then (status == userAllowed)
287287 else false)
288288 then throw("This user is already allowed and verified")
289289 else if (if ((callerAddr == admin))
290290 then true
291291 else (callerAddr == admin2))
292292 then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
293293 else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin))
294294 }
295295
296296
297297
298298 @Callable(i)
299299 func creditUser (address) = {
300300 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
301301 let id = toBase58String(i.transactionId)
302302 if (if ((callerAddr == admin))
303303 then true
304304 else (callerAddr == admin2))
305305 then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
306306 else throw("You are not allowed to do that")
307307 }
308308
309309
310310
311311 @Callable(invoke)
312312 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
313313 let artId = toBase58String(invoke.transactionId)
314314 let callerAddress = toBase58String(invoke.caller.bytes)
315- if (!(validateCID(cidDisplay)))
315+ if (if ((cidDisplay != ""))
316+ then !(validateCID(cidDisplay))
317+ else false)
316318 then throw("Wrong Display CID length")
317- else if (!(validateCID(cidExport)))
319+ else if (if ((cidExport != ""))
320+ then !(validateCID(cidExport))
321+ else false)
318322 then throw("Wrong Export CID length")
319- else if (!(validateCID(cidLicence)))
323+ else if (if ((cidLicence != ""))
324+ then !(validateCID(cidLicence))
325+ else false)
320326 then throw("Wrong Licence CID length")
321327 else if (!(validateHash(sha256Hash)))
322328 then throw("Source Hash should be 64 characters maximum")
323- else if (!(validateHash(sha256Export)))
329+ else if (if ((sha256Export != ""))
330+ then !(validateHash(sha256Export))
331+ else false)
324332 then throw("Export Hash should be 64 characters maximum")
325- else if (!(validateHash(sha256Licence)))
333+ else if (if ((sha256Licence != ""))
334+ then !(validateHash(sha256Licence))
335+ else false)
326336 then throw("Licence Hash should be 64 characters maximum")
327337 else if ((size(invoke.payments) == 0))
328338 then throw("No payment attached")
329339 else {
330340 let payment = value(invoke.payments[0])
331341 let amount = value(payment.amount)
332342 let assetId = if (if (isDefined(payment.assetId))
333343 then (payment.assetId == signAssetId)
334344 else false)
335345 then payment.assetId
336346 else throw("Only SIGN token accepted at the moment")
337347 let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) {
338348 case price: Int =>
339349 price
340350 case _ =>
341351 throw("Price undefined in oracle")
342352 }
343353 if ((amount != currentCertificationPrice))
344354 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
345355 else {
346356 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
347357 if ((entryExist != ""))
348358 then throw("You already added this artwork on Sign Art")
349359 else {
350360 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
351361 if ((hashExist != ""))
352362 then throw("This artwork hash is already registered on Sign Art")
353363 else {
354364 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
355365 if (!(isSignCertified))
356366 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
357367 else if ((size(cidDisplay) == 0))
358368 then throw("Display CID cannot be empty")
359369 else if ((size(name) == 0))
360370 then throw("Title cannot be empty")
361371 else if ((size(name) > 100))
362372 then throw("100 Characters maximum for the name")
363373 else if ((size(description) > 1000))
364374 then throw("1000 Characters maximum for the description")
365375 else if ((size(description) == 0))
366376 then throw("Description cannot be empty")
367377 else {
368378 let tagsList = split(tags, ",")
369379 if ((size(tagsList) > 5))
370380 then throw("Tags should be maximum 5 single word separated by space.")
371381 else {
372382 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
373383 case s: String =>
374384 s
375385 case _ =>
376386 userUnregistered
377387 }
378388 let timestamp = lastBlock.timestamp
379389 if (if (isDefined(userIsRegistered))
380390 then (userIsRegistered == userUnregistered)
381391 else false)
382392 then throw("Please register this account first with \"User infos\" tab")
383393 else if ((userIsRegistered == userSuspended))
384394 then throw("Your account is suspended")
385395 else if ((userIsRegistered == userRemoved))
386396 then throw("Your account have been removed")
387397 else if ((maxmint > 10))
388398 then throw("Maximum 10 editions per artwork")
389399 else if ((size(sha256Hash) != 64))
390400 then throw("Hash should be sha256 string composed of 64 char.")
391401 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)]
392402 }
393403 }
394404 }
395405 }
396406 }
397407 }
398408 }
399409
400410
401411
402412 @Callable(invoke)
403413 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
404414 let updateId = toBase58String(invoke.transactionId)
405415 let callerAddress = toBase58String(invoke.caller.bytes)
406- if (!(validateCID(cidDisplay)))
416+ if (if ((cidDisplay != ""))
417+ then !(validateCID(cidDisplay))
418+ else false)
407419 then throw("Wrong Display CID length")
408- else if (!(validateCID(cidExport)))
420+ else if (if ((cidExport != ""))
421+ then !(validateCID(cidExport))
422+ else false)
409423 then throw("Wrong Export CID length")
410- else if (!(validateCID(cidLicence)))
424+ else if (if ((cidLicence != ""))
425+ then !(validateCID(cidLicence))
426+ else false)
411427 then throw("Wrong Licence CID length")
412- else if (!(validateHash(sha256Export)))
428+ else if (if ((sha256Export != ""))
429+ then !(validateHash(sha256Export))
430+ else false)
413431 then throw("Export Hash should be 64 characters maximum")
414- else if (!(validateHash(sha256Licence)))
432+ else if (if ((sha256Licence != ""))
433+ then !(validateHash(sha256Licence))
434+ else false)
415435 then throw("Licence Hash should be 64 characters maximum")
416436 else {
417437 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
418438 if ((entryExist == ""))
419439 then throw("This entry doesn't exist or you are not the owner")
420440 else if ((size(name) == 0))
421441 then throw("Title cannot be empty")
422442 else if ((size(name) > 100))
423443 then throw("100 Characters maximum for the name")
424444 else if ((size(description) > 1000))
425445 then throw("1000 Characters maximum for the description")
426446 else if ((size(description) == 0))
427447 then throw("Description cannot be empty")
428448 else {
429449 let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) {
430450 case b: Int =>
431451 if ((b == 0))
432452 then false
433453 else true
434454 case _ =>
435455 false
436456 }
437457 let tagsList = split(tags, ",")
438458 if ((size(tagsList) > 5))
439459 then throw("Tags should be maximum 5 single word separated by space.")
440460 else {
441461 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
442462 case s: String =>
443463 s
444464 case _ =>
445465 userUnregistered
446466 }
447467 if (if (isDefined(userIsRegistered))
448468 then (userIsRegistered == userUnregistered)
449469 else false)
450470 then throw("Please register this account first with \"User infos\" tab")
451471 else if ((userIsRegistered == userSuspended))
452472 then throw("Your account is suspended")
453473 else if ((userIsRegistered == userRemoved))
454474 then throw("Your account have been removed")
455475 else if ((maxmint > 10))
456476 then throw("Maximum 10 editions per artwork")
457477 else if (!(artworkMinted))
458478 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)]
459479 else throw("You cannot edit artwork that have already minted NFT(s)")
460480 }
461481 }
462482 }
463483 }
464484
465485
466486
467487 @Callable(i)
468488 func deleteArtwork (artId,address) = {
469489 let callerAddress = toString(addressFromPublicKey(i.callerPublicKey))
470490 let id = toBase58String(i.transactionId)
471491 let addressToUse = if (if ((callerAddress == admin))
472492 then true
473493 else (callerAddress == admin2))
474494 then address
475495 else callerAddress
476496 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
477497 case s: String =>
478498 s
479499 case _ =>
480500 throw("No artwork matching this request or you are not allowed")
481501 }
482502 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
483503 case b: Int =>
484504 if ((b == 0))
485505 then false
486506 else true
487507 case _ =>
488508 false
489509 }
490510 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
491511 case s: String =>
492512 s
493513 case _ =>
494514 throw("No artwork hash matching this request")
495515 }
496516 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
497517 case s: String =>
498518 s
499519 case _ =>
500520 throw("No SIGN ID matching this request")
501521 }
502522 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))]
503523 if (if ((callerAddress == admin))
504524 then true
505525 else (callerAddress == admin2))
506526 then dataToDelete
507527 else if (!(artworkMinted))
508528 then dataToDelete
509529 else throw("This artwork already have minted NFT, you cannot delete it")
510530 }
511531
512532
513533
514534 @Callable(invoke)
515535 func sellArtwork (artId,price,maxMint,assetId) = {
516536 let id = toBase58String(invoke.transactionId)
517537 let callerAddress = toBase58String(invoke.caller.bytes)
518538 let sellDate = lastBlock.timestamp
519539 let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId))
520540 if ((size(split(exportCID, "/")[0]) != 59))
521541 then throw("You cannot sell artwork with no export file")
522542 else {
523543 let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId))
524544 if ((size(exportHash) != 64))
525545 then throw("You cannot sell artwork with no export hash")
526546 else if (if (if ((assetId != toBase58String(signAssetId)))
527547 then (assetId != toBase58String(wavesAssetId))
528548 else false)
529549 then (assetId != toBase58String(usdnAssetId))
530550 else false)
531551 then throw("Only SIGN, USDN or WAVES currency accepted at the moment")
532552 else {
533553 let artworkName = match getString(this, keyArtName(callerAddress, artId)) {
534554 case s: String =>
535555 s
536556 case _ =>
537557 throw("This artwork doesn't exit or you are not the owner")
538558 }
539559 let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) {
540560 case s: String =>
541561 s
542562 case _ =>
543563 throw("Please register this account first")
544564 }
545565 let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) {
546566 case n: Int =>
547567 n
548568 case _ =>
549569 0
550570 }
551571 let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) {
552572 case n: Int =>
553573 n
554574 case _ =>
555575 0
556576 }
557577 if (if ((amountSold != 0))
558578 then (amountSold == maxCanSell)
559579 else false)
560580 then throw("You reached the max edition allowed to sell for this edition.")
561581 else if (if ((amountSold > 0))
562582 then (maxCanSell != maxMint)
563583 else false)
564584 then throw("You cannot change the maximum issuable anymore")
565585 else if ((userIsRegistered == userSuspended))
566586 then throw("Your account is suspended")
567587 else if ((userIsRegistered == userRemoved))
568588 then throw("Your account have been deleted")
569589 else {
570590 let sellStatus = if ((price > 0))
571591 then true
572592 else false
573593 [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)]
574594 }
575595 }
576596 }
577597 }
578598
579599
580600
581601 @Callable(invoke)
582602 func buyArtwork (artId,issuer) = {
583603 let id = toBase58String(invoke.transactionId)
584604 let callerAddress = toBase58String(invoke.caller.bytes)
585605 let totalNFT = getIntegerByKey("total_nft_issued")
586606 let signID = getStringByKey(keyArtSignID(issuer, artId))
587607 let artworkName = match getString(this, keyArtName(issuer, artId)) {
588608 case s: String =>
589609 s
590610 case _ =>
591611 throw("This artwork doesn't exit")
592612 }
593613 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
594614 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
595615 let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
596616 let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
597617 let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
598618 let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
599619 let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
600620 let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
601621 let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
602622 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
603623 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
604624 if ((artworkPrice == 0))
605625 then throw("This artwork is not for sell")
606626 else if (!(isOnSale))
607627 then throw("This artwork is not for sale")
608628 else {
609629 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
610630 let payment = value(invoke.payments[0])
611631 let amount = value(payment.amount)
612632 let assetId = if (if (isDefined(payment.assetId))
613633 then (payment.assetId == fromBase58String(priceAssetId))
614634 else false)
615635 then payment.assetId
616636 else throw((("Only " + priceAssetId) + " token id accepted at the moment"))
617637 let cut = if ((priceAssetId == toBase58String(signAssetId)))
618638 then 8
619639 else 10
620640 let amountForSign = ((amount / 100) * cut)
621641 let amountForCreator = (amount - amountForSign)
622642 if ((amountSold == maxCanSell))
623643 then throw("Cannot buy this artwork anymore, maximum editions reached")
624644 else if ((artworkPrice != amount))
625645 then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount)))
626646 else {
627647 let newAmountSold = (amountSold + 1)
628648 let entryDate = lastBlock.timestamp
629649 let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1,
630650 \"creator\": \"" + issuer) + "\",
631651 \"artID\": \"") + artId) + "\",
632652 \"signID\": \"") + signID) + "\",
633653 \"artwork_name\": \"") + artworkName) + "\",
634654 \"artwork_desc\": \"") + description) + "\",
635655 \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\",
636656 \"maxIssuable\": \"") + toString(maxCanSell)) + "\",
637657 \"source_hash\": \"") + sourceHash) + "\",
638658 \"display_cid\": \"") + displayCID) + "\",
639659 \"export_cid\": \"") + exportCID) + "\",
640660 \"export_hash\": \"") + exportHash) + "\",
641661 \"licence_cid\": \"") + licenceCID) + "\",
642662 \"licence_hash\": \"") + licenceHash) + "\"}")
643663 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
644664 let idNFT = calculateAssetId(issueNFT)
645665 let sellStatus = if ((newAmountSold == maxCanSell))
646666 then false
647667 else true
648668 [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)]
649669 }
650670 }
651671 }
652672
653673
654674
655675 @Callable(i)
656676 func deleteUser (address) = {
657677 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
658678 let id = toBase58String(i.transactionId)
659679 if (if ((callerAddr == admin))
660680 then true
661681 else (callerAddr == admin2))
662682 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)]
663683 else throw("You are not allowed to do that")
664684 }
665685
666686

github/deemru/w8io/026f985 
71.71 ms