tx · A4DhteATfXY1q8JtKXQJbMJVdHHaNTmyD4xrmcTNqzuo

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.09 11:18 [1212785] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "A4DhteATfXY1q8JtKXQJbMJVdHHaNTmyD4xrmcTNqzuo", "fee": 1400000, "feeAssetId": null, "timestamp": 1602231510247, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "Ydb2JZ1oCfKckt2JfoTtFbcSqUD7yr3fTuJDGh2WGyV5ykhJTa53gZPiGy9tYwHVhXoTchkNpMRhZie3z86iGeu" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAAzAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3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AQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAObGFzdF9pbnZva2VfaWQFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAAeWW91IGFyZSBub3QgYWxsb3dlZCB0byBkbyB0aGF0AAAAAOXaO+Y=", "height": 1212785, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HfZShfd5gWLBf2JYBTEVPSM4YL4vUfpVi9wcNmeXMgiT Next: 3kDwNREmGKuU7DxZmDmvA4d3oM8iePJYLJL5cvnhP5jy Diff:
OldNewDifferences
482482 case _ =>
483483 0
484484 }
485- if (if ((maxCanSell == 0))
486- then (maxMint == 0)
485+ if (if ((amountSold != 0))
486+ then (amountSold == maxCanSell)
487487 else false)
488- then throw("You needs to set the maximum issuable greater than 0 to start the sale")
489- else if (if ((amountSold != 0))
490- then (amountSold == maxCanSell)
488+ then throw("You reached the max edition allowed to sell for this edition.")
489+ else if (if ((amountSold > 0))
490+ then (maxCanSell != maxMint)
491491 else false)
492- then throw("You reached the max edition allowed to sell for this edition.")
493- else if (if ((amountSold > 0))
494- then (maxCanSell != maxMint)
495- else false)
496- then throw("You cannot change the maximum issuable anymore")
497- else if ((userIsRegistered == userSuspended))
498- then throw("Your account is suspended")
499- else if ((userIsRegistered == userRemoved))
500- then throw("Your account have been deleted")
501- else {
502- let sellStatus = if ((price > 0))
503- then true
504- else throw("Selling price must be greater than 0")
492+ then throw("You cannot change the maximum issuable anymore")
493+ else if ((userIsRegistered == userSuspended))
494+ then throw("Your account is suspended")
495+ else if ((userIsRegistered == userRemoved))
496+ then throw("Your account have been deleted")
497+ else {
498+ let sellStatus = if ((price > 0))
499+ then true
500+ else false
505501 [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)]
506- }
502+ }
507503 }
508504 }
509505
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 usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1717
1818 let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
1919
2020 let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2121
2222 let WHITELISTEDONLY = true
2323
2424 let userAllowed = "ALLOWED"
2525
2626 let userRegistered = "REGISTERED"
2727
2828 let userVerified = "VERIFIED"
2929
3030 let userSuspended = "SUSPENDED"
3131
3232 let userRemoved = "REMOVED"
3333
3434 let userUnregistered = "UNREGISTERED"
3535
3636 let onSale = "ON_SALE"
3737
3838 let sold = "SOLD"
3939
4040 let canceled = "CANCELED"
4141
4242 func getStringByKey (key) = match getString(this, key) {
4343 case a: String =>
4444 a
4545 case _ =>
4646 ""
4747 }
4848
4949
5050 func getIntegerByKey (key) = match getInteger(this, key) {
5151 case i: Int =>
5252 i
5353 case _ =>
5454 0
5555 }
5656
5757
5858 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) {
5959 case a: String =>
6060 if (contains(a, sha256Hash))
6161 then true
6262 else false
6363 case _ =>
6464 false
6565 }
6666
6767
6868 func validateNFTs (accumulator,id) = {
6969 let assetDetails = value(assetInfo(fromBase58String(id)))
7070 if (if (if ((assetDetails.quantity != 1))
7171 then true
7272 else (assetDetails.decimals != 0))
7373 then true
7474 else (assetDetails.reissuable != false))
7575 then (accumulator + 0)
7676 else (accumulator + 1)
7777 }
7878
7979
8080 func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) {
8181 case b: String =>
8282 b
8383 case _ =>
8484 throw("Something went wrong.")
8585 }
8686
8787
8888 func keyUserAddr (callerAddr) = ("user_" + callerAddr)
8989
9090
9191 func keyUserName (callerAddr) = ("user_name_" + callerAddr)
9292
9393
9494 func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr)
9595
9696
9797 func keyUserSocial (callerAddr) = ("user_social_" + callerAddr)
9898
9999
100100 func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr)
101101
102102
103103 func keyUserStatus (callerAddr) = ("user_status_" + callerAddr)
104104
105105
106106 func keyUserDate (callerAddr) = ("user_date_" + callerAddr)
107107
108108
109109 func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr)
110110
111111
112112 func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr)
113113
114114
115115 func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr)
116116
117117
118118 func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr)
119119
120120
121121 func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr)
122122
123123
124124 func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr)
125125
126126
127127 func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr)
128128
129129
130130 func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr)
131131
132132
133133 func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr)
134134
135135
136136 func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr)
137137
138138
139139 func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr)
140140
141141
142142 func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr)
143143
144144
145145 func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr)
146146
147147
148148 func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr)
149149
150150
151151 func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr)
152152
153153
154154 func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr)
155155
156156
157157 func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr)
158158
159159
160160 func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
161161
162162
163163 func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr)
164164
165165
166166 func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr)))))
167167
168168
169169 @Callable(i)
170170 func registerUser (name,description,thumb,social) = {
171171 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
172172 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
173173 let id = toBase58String(i.transactionId)
174174 let timestamp = lastBlock.timestamp
175175 if (if ((userCanRegister == userSuspended))
176176 then true
177177 else (userCanRegister == userRemoved))
178178 then throw("You are now allowed to register, your account have been suspended/ removed.")
179179 else if ((userCanRegister == userRegistered))
180180 then throw("You are already registered, please use update method instead.")
181181 else if (if ((userCanRegister == ""))
182182 then WHITELISTEDONLY
183183 else false)
184184 then throw("You are now allowed to register yet, please contact us first to get approved.")
185185 else if (if ((name == ""))
186186 then true
187187 else (description == ""))
188188 then throw("Name and description cannot be empty")
189189 else if ((size(description) > 600))
190190 then throw("600 Characters maximum for the description")
191191 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)]
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func deleteEntry (entry) = {
198198 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
199199 if ((callerAddr == admin))
200200 then [DeleteEntry(entry)]
201201 else throw("no")
202202 }
203203
204204
205205
206206 @Callable(i)
207207 func updateUser (name,description,thumb,social) = {
208208 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
209209 let userCanRegister = getStringByKey(keyUserStatus(callerAddr))
210210 if (if ((userCanRegister == userSuspended))
211211 then true
212212 else (userCanRegister == userRemoved))
213213 then throw("You are now allowed to register, your account have been suspended/ removed.")
214214 else if (if ((userCanRegister == ""))
215215 then true
216216 else (userCanRegister == userAllowed))
217217 then throw("Please register first with registerUser")
218218 else {
219219 let id = toBase58String(i.transactionId)
220220 let timestamp = lastBlock.timestamp
221221 if (if ((name == ""))
222222 then true
223223 else (description == ""))
224224 then throw("Name and description cannot be empty")
225225 else if ((size(description) > 600))
226226 then throw("600 Characters maximum for the description")
227227 else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)]
228228 }
229229 }
230230
231231
232232
233233 @Callable(i)
234234 func changeUserStatus (address,status) = {
235235 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
236236 let id = toBase58String(i.transactionId)
237237 let statusToSet = if ((status == userVerified))
238238 then userVerified
239239 else if ((status == userRegistered))
240240 then userRegistered
241241 else if ((status == userSuspended))
242242 then userSuspended
243243 else if ((status == userRemoved))
244244 then userRemoved
245245 else if ((status == userAllowed))
246246 then userAllowed
247247 else throw("Unknown status")
248248 if (if ((callerAddr == admin))
249249 then true
250250 else (callerAddr == admin2))
251251 then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
252252 else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin))
253253 }
254254
255255
256256
257257 @Callable(i)
258258 func creditUser (address) = {
259259 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
260260 let id = toBase58String(i.transactionId)
261261 if (if ((callerAddr == admin))
262262 then true
263263 else (callerAddr == admin2))
264264 then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
265265 else throw("You are not allowed to do that")
266266 }
267267
268268
269269
270270 @Callable(invoke)
271271 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
272272 let artId = toBase58String(invoke.transactionId)
273273 let callerAddress = toBase58String(invoke.caller.bytes)
274274 if ((size(invoke.payments) == 0))
275275 then throw("No payment attached")
276276 else {
277277 let payment = value(invoke.payments[0])
278278 let amount = value(payment.amount)
279279 let assetId = if (if (isDefined(payment.assetId))
280280 then (payment.assetId == signAssetId)
281281 else false)
282282 then payment.assetId
283283 else throw("Only SIGN token accepted at the moment")
284284 let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) {
285285 case price: Int =>
286286 price
287287 case _ =>
288288 throw("Price undefined in oracle")
289289 }
290290 if ((amount != currentCertificationPrice))
291291 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
292292 else {
293293 let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress))
294294 if ((entryExist != ""))
295295 then throw("You already added this artwork on Sign Art")
296296 else {
297297 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
298298 if ((hashExist != ""))
299299 then throw("This artwork hash is already registered on Sign Art")
300300 else {
301301 let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash)
302302 if (!(isSignCertified))
303303 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
304304 else if ((size(cidDisplay) == 0))
305305 then throw("Display CID cannot be empty")
306306 else if ((size(name) == 0))
307307 then throw("Title cannot be empty")
308308 else if ((size(name) > 100))
309309 then throw("100 Characters maximum for the name")
310310 else if ((size(description) > 1000))
311311 then throw("1000 Characters maximum for the description")
312312 else if ((size(description) == 0))
313313 then throw("Description cannot be empty")
314314 else {
315315 let tagsList = split(tags, ",")
316316 if ((size(tagsList) > 5))
317317 then throw("Tags should be maximum 5 single word separated by space.")
318318 else {
319319 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
320320 case s: String =>
321321 s
322322 case _ =>
323323 userUnregistered
324324 }
325325 let timestamp = lastBlock.timestamp
326326 if (if (isDefined(userIsRegistered))
327327 then (userIsRegistered == userUnregistered)
328328 else false)
329329 then throw("Please register this account first with \"User infos\" tab")
330330 else if ((userIsRegistered == userSuspended))
331331 then throw("Your account is suspended")
332332 else if ((userIsRegistered == userRemoved))
333333 then throw("Your account have been removed")
334334 else if ((maxmint > 10))
335335 then throw("Maximum 10 editions per artwork")
336336 else if ((size(sha256Hash) != 64))
337337 then throw("Hash should be sha256 string composed of 64 char.")
338338 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)]
339339 }
340340 }
341341 }
342342 }
343343 }
344344 }
345345 }
346346
347347
348348
349349 @Callable(invoke)
350350 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = {
351351 let updateId = toBase58String(invoke.transactionId)
352352 let callerAddress = toBase58String(invoke.caller.bytes)
353353 let entryExist = getStringByKey(keyArtName(callerAddress, txid))
354354 if ((entryExist == ""))
355355 then throw("This entry doesn't exist or you are not the owner")
356356 else if ((size(name) == 0))
357357 then throw("Title cannot be empty")
358358 else if ((size(name) > 100))
359359 then throw("100 Characters maximum for the name")
360360 else if ((size(description) > 1000))
361361 then throw("1000 Characters maximum for the description")
362362 else if ((size(description) == 0))
363363 then throw("Description cannot be empty")
364364 else {
365365 let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) {
366366 case b: Int =>
367367 if ((b == 0))
368368 then false
369369 else true
370370 case _ =>
371371 false
372372 }
373373 let tagsList = split(tags, ",")
374374 if ((size(tagsList) > 5))
375375 then throw("Tags should be maximum 5 single word separated by space.")
376376 else {
377377 let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) {
378378 case s: String =>
379379 s
380380 case _ =>
381381 userUnregistered
382382 }
383383 if (if (isDefined(userIsRegistered))
384384 then (userIsRegistered == userUnregistered)
385385 else false)
386386 then throw("Please register this account first with \"User infos\" tab")
387387 else if ((userIsRegistered == userSuspended))
388388 then throw("Your account is suspended")
389389 else if ((userIsRegistered == userRemoved))
390390 then throw("Your account have been removed")
391391 else if ((maxmint > 10))
392392 then throw("Maximum 10 editions per artwork")
393393 else if (!(artworkMinted))
394394 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)]
395395 else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry("last_invoke_id", updateId)]
396396 }
397397 }
398398 }
399399
400400
401401
402402 @Callable(i)
403403 func deleteArtwork (artId,address) = {
404404 let callerAddress = toString(addressFromPublicKey(i.callerPublicKey))
405405 let id = toBase58String(i.transactionId)
406406 let addressToUse = if (if ((callerAddress == admin))
407407 then true
408408 else (callerAddress == admin2))
409409 then address
410410 else callerAddress
411411 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
412412 case s: String =>
413413 s
414414 case _ =>
415415 throw("No artwork matching this request or you are not allowed")
416416 }
417417 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
418418 case b: Int =>
419419 if ((b == 0))
420420 then false
421421 else true
422422 case _ =>
423423 false
424424 }
425425 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
426426 case s: String =>
427427 s
428428 case _ =>
429429 throw("No artwork hash matching this request")
430430 }
431431 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
432432 case s: String =>
433433 s
434434 case _ =>
435435 throw("No SIGN ID matching this request")
436436 }
437437 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))]
438438 if (if ((callerAddress == admin))
439439 then true
440440 else (callerAddress == admin2))
441441 then dataToDelete
442442 else if (!(artworkMinted))
443443 then dataToDelete
444444 else throw("This artwork already have minted NFT, you cannot delete it")
445445 }
446446
447447
448448
449449 @Callable(invoke)
450450 func sellArtwork (artId,price,maxMint,assetId) = {
451451 let id = toBase58String(invoke.transactionId)
452452 let callerAddress = toBase58String(invoke.caller.bytes)
453453 let sellDate = lastBlock.timestamp
454454 if (if (if ((assetId != toBase58String(signAssetId)))
455455 then (assetId != toBase58String(wavesAssetId))
456456 else false)
457457 then (assetId != toBase58String(usdnAssetId))
458458 else false)
459459 then throw("Only SIGN, USDN or WAVES currency accepted at the moment")
460460 else {
461461 let artworkName = match getString(this, keyArtName(callerAddress, artId)) {
462462 case s: String =>
463463 s
464464 case _ =>
465465 throw("This artwork doesn't exit or you are not the owner")
466466 }
467467 let userIsRegistered = match getString(this, keyUserStatus(("user_status_" + callerAddress))) {
468468 case s: String =>
469469 s
470470 case _ =>
471471 throw("Please register this account first")
472472 }
473473 let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) {
474474 case n: Int =>
475475 n
476476 case _ =>
477477 0
478478 }
479479 let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) {
480480 case n: Int =>
481481 n
482482 case _ =>
483483 0
484484 }
485- if (if ((maxCanSell == 0))
486- then (maxMint == 0)
485+ if (if ((amountSold != 0))
486+ then (amountSold == maxCanSell)
487487 else false)
488- then throw("You needs to set the maximum issuable greater than 0 to start the sale")
489- else if (if ((amountSold != 0))
490- then (amountSold == maxCanSell)
488+ then throw("You reached the max edition allowed to sell for this edition.")
489+ else if (if ((amountSold > 0))
490+ then (maxCanSell != maxMint)
491491 else false)
492- then throw("You reached the max edition allowed to sell for this edition.")
493- else if (if ((amountSold > 0))
494- then (maxCanSell != maxMint)
495- else false)
496- then throw("You cannot change the maximum issuable anymore")
497- else if ((userIsRegistered == userSuspended))
498- then throw("Your account is suspended")
499- else if ((userIsRegistered == userRemoved))
500- then throw("Your account have been deleted")
501- else {
502- let sellStatus = if ((price > 0))
503- then true
504- else throw("Selling price must be greater than 0")
492+ then throw("You cannot change the maximum issuable anymore")
493+ else if ((userIsRegistered == userSuspended))
494+ then throw("Your account is suspended")
495+ else if ((userIsRegistered == userRemoved))
496+ then throw("Your account have been deleted")
497+ else {
498+ let sellStatus = if ((price > 0))
499+ then true
500+ else false
505501 [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)]
506- }
502+ }
507503 }
508504 }
509505
510506
511507
512508 @Callable(invoke)
513509 func buyArtwork (hash,issuer) = {
514510 let id = toBase58String(invoke.transactionId)
515511 let callerAddress = toBase58String(invoke.caller.bytes)
516512 let totalNFT = getIntegerByKey("total_nft_issued")
517513 let entryID = getStringByKey(((hash + "_") + issuer))
518514 if ((entryID == ""))
519515 then throw("This artwork doesn't exit or you are not the owner")
520516 else {
521517 let userIsRegistered = getStringByKey(("user_status_" + callerAddress))
522518 if (!(isDefined(userIsRegistered)))
523519 then throw("Please register this account first")
524520 else {
525521 let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer))
526522 let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer))
527523 let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer))
528524 if ((artworkPrice == 0))
529525 then throw("This artwork is not for sell")
530526 else {
531527 let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer))
532528 let payment = value(invoke.payments[0])
533529 let amount = value(payment.amount)
534530 let assetId = if (isDefined(payment.assetId))
535531 then throw("Only Waves token accepted at the moment")
536532 else unit
537533 if ((amountSold == maxCanSell))
538534 then throw("Cannot buy this artwork anymore")
539535 else if ((artworkPrice != amount))
540536 then throw("Payment don't match seller price")
541537 else {
542538 let newAmountSold = (amountSold + 1)
543539 let entryDate = lastBlock.timestamp
544540 let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}")
545541 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
546542 let idNFT = calculateAssetId(issueNFT)
547543 let sellStatus = if ((newAmountSold == maxCanSell))
548544 then false
549545 else true
550546 [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)), StringEntry("last_invoke_id", id), issueNFT, BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)]
551547 }
552548 }
553549 }
554550 }
555551 }
556552
557553
558554
559555 @Callable(i)
560556 func deleteUser (address) = {
561557 let callerAddr = toString(addressFromPublicKey(i.callerPublicKey))
562558 let id = toBase58String(i.transactionId)
563559 if (if ((callerAddr == admin))
564560 then true
565561 else (callerAddr == admin2))
566562 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)]
567563 else throw("You are not allowed to do that")
568564 }
569565
570566

github/deemru/w8io/026f985 
97.48 ms