tx · 3kVjgKjfb7cyU8w995bP7RyEqEspig352PPSBmoYSHsk

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.15 12:57 [1221526] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "3kVjgKjfb7cyU8w995bP7RyEqEspig352PPSBmoYSHsk", "fee": 1400000, "feeAssetId": null, "timestamp": 1602755905997, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "5ihYhmKBQTQWpfu8WSjBL4xEbGx8kpkChpMykP46zpNnF6o8tdrKyYgHZjYaUG1e3PEBzBKUsaZKFis5jFRb77ag" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA5AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldElkAQAA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kZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAC2tleVVzZXJBZGRyAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlck5hbWUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGVzYwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADWtleVVzZXJTb2NpYWwAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAxrZXlVc2VyVGh1bWIAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAObGFzdF9pbnZva2VfaWQFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAAeWW91IGFyZSBub3QgYWxsb3dlZCB0byBkbyB0aGF0AAAAAEP0DjM=", "height": 1221526, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Go4CDKDQrKHTPefPSFojXkUhN36LtyYfRYqDCN37vdQW Next: HdEyAaGRNuY2Wixqq3D7um2AkTyxToZHmGie4tXScPBy Diff:
OldNewDifferences
497497 case s: String =>
498498 s
499499 case _ =>
500- throw(("No artwork matching this request or you are not allowed" + keyArtName(addressToUse, artId)))
500+ throw("No artwork matching this request or you are not allowed")
501501 }
502502 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
503503 case b: Int =>
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)
315315 if (if ((cidDisplay != ""))
316316 then !(validateCID(cidDisplay))
317317 else false)
318318 then throw("Wrong Display CID length")
319319 else if (if ((cidExport != ""))
320320 then !(validateCID(cidExport))
321321 else false)
322322 then throw("Wrong Export CID length")
323323 else if (if ((cidLicence != ""))
324324 then !(validateCID(cidLicence))
325325 else false)
326326 then throw("Wrong Licence CID length")
327327 else if (!(validateHash(sha256Hash)))
328328 then throw("Source Hash should be 64 characters maximum")
329329 else if (if ((sha256Export != ""))
330330 then !(validateHash(sha256Export))
331331 else false)
332332 then throw("Export Hash should be 64 characters maximum")
333333 else if (if ((sha256Licence != ""))
334334 then !(validateHash(sha256Licence))
335335 else false)
336336 then throw("Licence Hash should be 64 characters maximum")
337337 else if ((size(invoke.payments) == 0))
338338 then throw("No payment attached")
339339 else {
340340 let payment = value(invoke.payments[0])
341341 let amount = value(payment.amount)
342342 let assetId = if (if (isDefined(payment.assetId))
343343 then (payment.assetId == signAssetId)
344344 else false)
345345 then payment.assetId
346346 else throw("Only SIGN token accepted at the moment")
347347 let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) {
348348 case price: Int =>
349349 price
350350 case _ =>
351351 throw("Price undefined in oracle")
352352 }
353353 if ((amount != currentCertificationPrice))
354354 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
355355 else {
356356 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
357357 if ((entryExist != ""))
358358 then throw("You already added this artwork on Sign Art")
359359 else {
360360 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
361361 if ((hashExist != ""))
362362 then throw("This artwork hash is already registered on Sign Art")
363363 else {
364364 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
365365 if (!(isSignCertified))
366366 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
367367 else if ((size(cidDisplay) == 0))
368368 then throw("Display CID cannot be empty")
369369 else if ((size(name) == 0))
370370 then throw("Title cannot be empty")
371371 else if ((size(name) > 100))
372372 then throw("100 Characters maximum for the name")
373373 else if ((size(description) > 1000))
374374 then throw("1000 Characters maximum for the description")
375375 else if ((size(description) == 0))
376376 then throw("Description cannot be empty")
377377 else {
378378 let tagsList = split(tags, ",")
379379 if ((size(tagsList) > 5))
380380 then throw("Tags should be maximum 5 single word separated by space.")
381381 else {
382382 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
383383 case s: String =>
384384 s
385385 case _ =>
386386 userUnregistered
387387 }
388388 let timestamp = lastBlock.timestamp
389389 if (if (isDefined(userIsRegistered))
390390 then (userIsRegistered == userUnregistered)
391391 else false)
392392 then throw("Please register this account first with \"User infos\" tab")
393393 else if ((userIsRegistered == userSuspended))
394394 then throw("Your account is suspended")
395395 else if ((userIsRegistered == userRemoved))
396396 then throw("Your account have been removed")
397397 else if ((maxmint > 10))
398398 then throw("Maximum 10 editions per artwork")
399399 else if ((size(sha256Hash) != 64))
400400 then throw("Hash should be sha256 string composed of 64 char.")
401401 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)]
402402 }
403403 }
404404 }
405405 }
406406 }
407407 }
408408 }
409409
410410
411411
412412 @Callable(invoke)
413413 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
414414 let updateId = toBase58String(invoke.transactionId)
415415 let callerAddress = toBase58String(invoke.caller.bytes)
416416 if (if ((cidDisplay != ""))
417417 then !(validateCID(cidDisplay))
418418 else false)
419419 then throw("Wrong Display CID length")
420420 else if (if ((cidExport != ""))
421421 then !(validateCID(cidExport))
422422 else false)
423423 then throw("Wrong Export CID length")
424424 else if (if ((cidLicence != ""))
425425 then !(validateCID(cidLicence))
426426 else false)
427427 then throw("Wrong Licence CID length")
428428 else if (if ((sha256Export != ""))
429429 then !(validateHash(sha256Export))
430430 else false)
431431 then throw("Export Hash should be 64 characters maximum")
432432 else if (if ((sha256Licence != ""))
433433 then !(validateHash(sha256Licence))
434434 else false)
435435 then throw("Licence Hash should be 64 characters maximum")
436436 else {
437437 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
438438 if ((entryExist == ""))
439439 then throw("This entry doesn't exist or you are not the owner")
440440 else if ((size(name) == 0))
441441 then throw("Title cannot be empty")
442442 else if ((size(name) > 100))
443443 then throw("100 Characters maximum for the name")
444444 else if ((size(description) > 1000))
445445 then throw("1000 Characters maximum for the description")
446446 else if ((size(description) == 0))
447447 then throw("Description cannot be empty")
448448 else {
449449 let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) {
450450 case b: Int =>
451451 if ((b == 0))
452452 then false
453453 else true
454454 case _ =>
455455 false
456456 }
457457 let tagsList = split(tags, ",")
458458 if ((size(tagsList) > 5))
459459 then throw("Tags should be maximum 5 single word separated by space.")
460460 else {
461461 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
462462 case s: String =>
463463 s
464464 case _ =>
465465 userUnregistered
466466 }
467467 if (if (isDefined(userIsRegistered))
468468 then (userIsRegistered == userUnregistered)
469469 else false)
470470 then throw("Please register this account first with \"User infos\" tab")
471471 else if ((userIsRegistered == userSuspended))
472472 then throw("Your account is suspended")
473473 else if ((userIsRegistered == userRemoved))
474474 then throw("Your account have been removed")
475475 else if ((maxmint > 10))
476476 then throw("Maximum 10 editions per artwork")
477477 else if (!(artworkMinted))
478478 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)]
479479 else throw("You cannot edit artwork that have already minted NFT(s)")
480480 }
481481 }
482482 }
483483 }
484484
485485
486486
487487 @Callable(i)
488488 func deleteArtwork (artId,address) = {
489489 let callerAddress = toString(addressFromPublicKey(i.callerPublicKey))
490490 let id = toBase58String(i.transactionId)
491491 let addressToUse = if (if ((callerAddress == admin))
492492 then true
493493 else (callerAddress == admin2))
494494 then address
495495 else callerAddress
496496 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
497497 case s: String =>
498498 s
499499 case _ =>
500- throw(("No artwork matching this request or you are not allowed" + keyArtName(addressToUse, artId)))
500+ throw("No artwork matching this request or you are not allowed")
501501 }
502502 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
503503 case b: Int =>
504504 if ((b == 0))
505505 then false
506506 else true
507507 case _ =>
508508 false
509509 }
510510 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
511511 case s: String =>
512512 s
513513 case _ =>
514514 throw("No artwork hash matching this request")
515515 }
516516 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
517517 case s: String =>
518518 s
519519 case _ =>
520520 throw("No SIGN ID matching this request")
521521 }
522522 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_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_2_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_3_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_4_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_5_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_6_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_7_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_8_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_9_of_10_" + artId) + "_") + addressToUse)), DeleteEntry(((("art_sold_10_of_10_" + artId) + "_") + addressToUse))]
523523 if (if ((callerAddress == admin))
524524 then true
525525 else (callerAddress == admin2))
526526 then dataToDelete
527527 else if (!(artworkMinted))
528528 then dataToDelete
529529 else throw("This artwork already have minted NFT, you cannot delete it")
530530 }
531531
532532
533533
534534 @Callable(invoke)
535535 func sellArtwork (artId,price,maxMint,assetId) = {
536536 let id = toBase58String(invoke.transactionId)
537537 let callerAddress = toBase58String(invoke.caller.bytes)
538538 let sellDate = lastBlock.timestamp
539539 let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId))
540540 if ((size(split(exportCID, "/")[0]) != 59))
541541 then throw("You cannot sell artwork with no export file")
542542 else {
543543 let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId))
544544 if ((size(exportHash) != 64))
545545 then throw("You cannot sell artwork with no export hash")
546546 else if (if (if ((assetId != toBase58String(signAssetId)))
547547 then (assetId != toBase58String(wavesAssetId))
548548 else false)
549549 then (assetId != toBase58String(usdnAssetId))
550550 else false)
551551 then throw("Only SIGN, USDN or WAVES currency accepted at the moment")
552552 else {
553553 let artworkName = match getString(this, keyArtName(callerAddress, artId)) {
554554 case s: String =>
555555 s
556556 case _ =>
557557 throw("This artwork doesn't exit or you are not the owner")
558558 }
559559 let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) {
560560 case s: String =>
561561 s
562562 case _ =>
563563 throw("Please register this account first")
564564 }
565565 let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) {
566566 case n: Int =>
567567 n
568568 case _ =>
569569 0
570570 }
571571 let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) {
572572 case n: Int =>
573573 n
574574 case _ =>
575575 0
576576 }
577577 if (if ((amountSold != 0))
578578 then (amountSold == maxCanSell)
579579 else false)
580580 then throw("You reached the max edition allowed to sell for this edition.")
581581 else if (if ((amountSold > 0))
582582 then (maxCanSell != maxMint)
583583 else false)
584584 then throw("You cannot change the maximum issuable anymore")
585585 else if ((userIsRegistered == userSuspended))
586586 then throw("Your account is suspended")
587587 else if ((userIsRegistered == userRemoved))
588588 then throw("Your account have been deleted")
589589 else {
590590 let sellStatus = if ((price > 0))
591591 then true
592592 else false
593593 [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)]
594594 }
595595 }
596596 }
597597 }
598598
599599
600600
601601 @Callable(invoke)
602602 func buyArtwork (artId,issuer) = {
603603 let id = toBase58String(invoke.transactionId)
604604 let callerAddress = toBase58String(invoke.caller.bytes)
605605 let totalNFT = getIntegerByKey("total_nft_issued")
606606 let signID = getStringByKey(keyArtSignID(issuer, artId))
607607 let artworkName = match getString(this, keyArtName(issuer, artId)) {
608608 case s: String =>
609609 s
610610 case _ =>
611611 throw("This artwork doesn't exit")
612612 }
613613 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
614614 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
615615 let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
616616 let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
617617 let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
618618 let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
619619 let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
620620 let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
621621 let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
622622 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
623623 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
624624 if ((artworkPrice == 0))
625625 then throw("This artwork is not for sell")
626626 else if (!(isOnSale))
627627 then throw("This artwork is not for sale")
628628 else {
629629 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
630630 let payment = value(invoke.payments[0])
631631 let amount = value(payment.amount)
632632 let assetId = if (if (isDefined(payment.assetId))
633633 then (payment.assetId == fromBase58String(priceAssetId))
634634 else false)
635635 then payment.assetId
636636 else throw((("Only " + priceAssetId) + " token id accepted at the moment"))
637637 let cut = if ((priceAssetId == toBase58String(signAssetId)))
638638 then 8
639639 else 10
640640 let amountForSign = ((amount / 100) * cut)
641641 let amountForCreator = (amount - amountForSign)
642642 if ((amountSold == maxCanSell))
643643 then throw("Cannot buy this artwork anymore, maximum editions reached")
644644 else if ((artworkPrice != amount))
645645 then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount)))
646646 else {
647647 let newAmountSold = (amountSold + 1)
648648 let entryDate = lastBlock.timestamp
649649 let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1,
650650 \"creator\": \"" + issuer) + "\",
651651 \"artID\": \"") + artId) + "\",
652652 \"signID\": \"") + signID) + "\",
653653 \"artwork_name\": \"") + artworkName) + "\",
654654 \"artwork_desc\": \"") + description) + "\",
655655 \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\",
656656 \"maxIssuable\": \"") + toString(maxCanSell)) + "\",
657657 \"source_hash\": \"") + sourceHash) + "\",
658658 \"display_cid\": \"") + displayCID) + "\",
659659 \"export_cid\": \"") + exportCID) + "\",
660660 \"export_hash\": \"") + exportHash) + "\",
661661 \"licence_cid\": \"") + licenceCID) + "\",
662662 \"licence_hash\": \"") + licenceHash) + "\"}")
663663 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
664664 let idNFT = calculateAssetId(issueNFT)
665665 let sellStatus = if ((newAmountSold == maxCanSell))
666666 then false
667667 else true
668668 [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)]
669669 }
670670 }
671671 }
672672
673673
674674
675675 @Callable(i)
676676 func deleteUser (address) = {
677677 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
678678 let id = toBase58String(i.transactionId)
679679 if (if ((callerAddr == admin))
680680 then true
681681 else (callerAddr == admin2))
682682 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)]
683683 else throw("You are not allowed to do that")
684684 }
685685
686686

github/deemru/w8io/026f985 
97.94 ms