tx · 9KEhtnAnMHKuCPaKpnbW6DhoeHLncuPN4vEYpp9r9tXF

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.20 08:34 [1228474] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "9KEhtnAnMHKuCPaKpnbW6DhoeHLncuPN4vEYpp9r9tXF", "fee": 1400000, "feeAssetId": null, "timestamp": 1603172094890, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4xdREgRTtd76XYQFSaTy4fhm6kwSfctz7BsTYUPMFXtQ7LoPFx2FykfcN46ZjyMZQwfmbvWFTwSiJpf8VWVwS3aw" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIFCgMICAgSBAoCCAgSBgoECAEBCBIECgIICBIDCgEIAAAAOQAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3Nld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ADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAF9IR1Q=", "height": 1228474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B5i1WfSfaApjJ5vRPcsgby1PbgxX9J6Gtz58abgefdN6 Next: 5udroBf7RFJSRZsxZ8N9VutgDPTJJDYx5Vg4FaK7f8ux Diff:
OldNewDifferences
465465 if (if ((caller == admin))
466466 then true
467467 else (caller == admin2))
468- then if (if ((flag != "ILLEGAL"))
469- then true
470- else (flag != "CONSENT"))
471- then throw("Unknow status")
472- else [StringEntry(((("art_flag_" + artId) + "_") + caller), flag), StringEntry("last_invoke_id", id)]
468+ then if ((flag == "CONSENT"))
469+ then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry("last_invoke_id", id)]
470+ else if ((flag == "ILLEGAL"))
471+ then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry("last_invoke_id", id)]
472+ else throw(("Unknow status" + flag))
473473 else throw("no")
474474 }
475475
511511 case _ =>
512512 throw("No SIGN ID matching")
513513 }
514- let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse)), DeleteEntry(keyArtPrice(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtAssetIdAccepted(addressToUse, artId)), DeleteEntry(((((("art_sold_1_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_2_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_3_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_4_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_5_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_6_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_7_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_8_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_9_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_10_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse))]
515- if (if ((caller == admin))
516- then true
517- else (caller == admin2))
518- then (dataToDelete ++ [StringEntry(((("ban_" + artId) + "_") + addressToUse), caller)])
519- else if (!(artworkMinted))
520- then if (!(dappRunning))
521- then throw(maintenanceMSG)
522- else dataToDelete
523- else throw("Art already minted, cannot delete")
514+ 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))]
515+ if (!(artworkMinted))
516+ then if (!(dappRunning))
517+ then throw(maintenanceMSG)
518+ else dataToDelete
519+ else throw("Art already minted, cannot delete")
524520 }
525521
526522
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let signDapp = 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 dappRunning = true
2929
3030 let maintenanceMSG = "SIGN Art is under maintenance"
3131
3232 let userAllowed = "ALLOWED"
3333
3434 let userRegistered = "REGISTERED"
3535
3636 let userVerified = "VERIFIED"
3737
3838 let userSuspended = "SUSPENDED"
3939
4040 let userRemoved = "REMOVED"
4141
4242 let userUnregistered = "UNREGISTERED"
4343
4444 let userReset = "RESET"
4545
4646 func getStringByKey (key) = match getString(this, key) {
4747 case a: String =>
4848 a
4949 case _ =>
5050 ""
5151 }
5252
5353
5454 func getIntegerByKey (key) = match getInteger(this, key) {
5555 case i: Int =>
5656 i
5757 case _ =>
5858 0
5959 }
6060
6161
6262 func getBooleanByKey (key) = match getBoolean(this, key) {
6363 case i: Boolean =>
6464 i
6565 case _ =>
6666 false
6767 }
6868
6969
7070 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
7171 case a: String =>
7272 if (contains(a, sha256Hash))
7373 then true
7474 else false
7575 case _ =>
7676 false
7777 }
7878
7979
8080 func validateCID (cid) = if (if ((75 > size(cid)))
8181 then (60 > size(split(cid, "/")[0]))
8282 else false)
8383 then (16 > size(split(cid, "/")[1]))
8484 else false
8585
8686
8787 func validateHash (hash) = (65 > size(hash))
8888
8989
9090 func keyUserAddr (caller) = ("user_" + caller)
9191
9292
9393 func keyUserName (caller) = ("user_name_" + caller)
9494
9595
9696 func keyUserDesc (caller) = ("user_desc_" + caller)
9797
9898
9999 func keyUserSocial (caller) = ("user_social_" + caller)
100100
101101
102102 func keyUserThumb (caller) = ("user_thumb_" + caller)
103103
104104
105105 func keyUserStatus (caller) = ("user_status_" + caller)
106106
107107
108108 func keyUserDate (caller) = ("user_date_" + caller)
109109
110110
111111 func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
112112
113113
114114 func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
115115
116116
117117 func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
118118
119119
120120 func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
121121
122122
123123 func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
124124
125125
126126 func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
127127
128128
129129 func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
130130
131131
132132 func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
133133
134134
135135 func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
136136
137137
138138 func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
139139
140140
141141 func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
142142
143143
144144 func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
145145
146146
147147 func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
148148
149149
150150 func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
151151
152152
153153 func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
154154
155155
156156 func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
157157
158158
159159 func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
160160
161161
162162 func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
163163
164164
165165 func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
166166
167167
168168 func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
169169
170170
171171 func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != ""))
172172 then !(validateCID(cidDisplay))
173173 else false)
174174 then throw("Wrong Display CID")
175175 else if (if ((cidExport != ""))
176176 then !(validateCID(cidExport))
177177 else false)
178178 then throw("Wrong Export CID")
179179 else if (if ((cidLicence != ""))
180180 then !(validateCID(cidLicence))
181181 else false)
182182 then throw("Wrong Licence CID")
183183 else true
184184
185185
186186 func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != ""))
187187 then !(validateHash(sha256Export))
188188 else false)
189189 then throw("Export Hash 64 char. max")
190190 else if (if ((sha256Licence != ""))
191191 then !(validateHash(sha256Licence))
192192 else false)
193193 then throw("Licence Hash 64 char. max")
194194 else true
195195
196196
197197 func validateString (str,max) = if ((size(str) == 0))
198198 then throw("Field cannot be is empty")
199199 else if ((size(str) > max))
200200 then throw((str + " is too long"))
201201 else true
202202
203203
204204 @Callable(i)
205205 func registerUser (name,description,thumb,social) = if (!(dappRunning))
206206 then throw(maintenanceMSG)
207207 else {
208208 let caller = toString(addressFromPublicKey(i.callerPublicKey))
209209 let canRegister = getStringByKey(keyUserStatus(caller))
210210 let id = toBase58String(i.transactionId)
211211 let timestamp = lastBlock.timestamp
212212 if (if ((canRegister == userSuspended))
213213 then true
214214 else (canRegister == userRemoved))
215215 then throw("Account suspended/ removed.")
216216 else if ((canRegister == userRegistered))
217217 then throw("Already registered")
218218 else if (if ((canRegister == ""))
219219 then WHITELISTEDONLY
220220 else false)
221221 then throw("Can't register, get approved first.")
222222 else if (if ((name == ""))
223223 then true
224224 else (description == ""))
225225 then throw("Name and description cannot be empty")
226226 else if ((size(description) > 600))
227227 then throw("600 Char. max description")
228228 else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry(keyUserStatus(caller), userRegistered), StringEntry("last_invoke_id", id)]
229229 }
230230
231231
232232
233233 @Callable(i)
234234 func deleteEntry (entry) = {
235235 let caller = toString(addressFromPublicKey(i.callerPublicKey))
236236 if ((caller == admin))
237237 then [DeleteEntry(entry)]
238238 else throw("no")
239239 }
240240
241241
242242
243243 @Callable(i)
244244 func updateUser (name,description,thumb,social) = if (!(dappRunning))
245245 then throw(maintenanceMSG)
246246 else {
247247 let id = toBase58String(i.transactionId)
248248 let caller = toString(addressFromPublicKey(i.callerPublicKey))
249249 let canUpdate = getStringByKey(keyUserStatus(caller))
250250 if (if ((canUpdate == userSuspended))
251251 then true
252252 else (canUpdate == userRemoved))
253253 then throw("Account suspended/ removed.")
254254 else if (if ((canUpdate == ""))
255255 then true
256256 else (canUpdate == userAllowed))
257257 then throw("Register first")
258258 else if (if ((name == ""))
259259 then true
260260 else (description == ""))
261261 then throw("Name & description cannot be empty")
262262 else if ((size(description) > 600))
263263 then throw("600 Char. max for description")
264264 else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)]
265265 }
266266
267267
268268
269269 @Callable(i)
270270 func changeUserStatus (address,status) = if (!(dappRunning))
271271 then throw(maintenanceMSG)
272272 else {
273273 let caller = toString(addressFromPublicKey(i.callerPublicKey))
274274 let id = toBase58String(i.transactionId)
275275 let currentStatus = getStringByKey(keyUserStatus(address))
276276 let statusToSet = if ((status == userVerified))
277277 then userVerified
278278 else if ((status == userRegistered))
279279 then userRegistered
280280 else if ((status == userSuspended))
281281 then userSuspended
282282 else if ((status == userRemoved))
283283 then userRemoved
284284 else if ((status == userAllowed))
285285 then userAllowed
286286 else if (if ((status == userReset))
287287 then (currentStatus == userAllowed)
288288 else false)
289289 then ""
290290 else throw("Unknown status")
291291 if (if ((currentStatus == userAllowed))
292292 then (status == userAllowed)
293293 else false)
294294 then throw("User already allowed")
295295 else if (if ((currentStatus == userRegistered))
296296 then (status == userAllowed)
297297 else false)
298298 then throw("User already allowed & registered")
299299 else if (if ((currentStatus == userVerified))
300300 then (status == userAllowed)
301301 else false)
302302 then throw("User already allowed & verified")
303303 else if (if ((caller == admin))
304304 then true
305305 else (caller == admin2))
306306 then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)]
307307 else throw(((("Not allowed to change user status " + caller) + " / ") + admin))
308308 }
309309
310310
311311
312312 @Callable(i)
313313 func creditUser (address) = {
314314 let caller = toString(addressFromPublicKey(i.callerPublicKey))
315315 let id = toBase58String(i.transactionId)
316316 if (if ((caller == admin))
317317 then true
318318 else (caller == admin2))
319319 then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)]
320320 else throw("Not allowed")
321321 }
322322
323323
324324
325325 @Callable(invoke)
326326 func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
327327 then throw(maintenanceMSG)
328328 else {
329329 let artId = toBase58String(invoke.transactionId)
330330 let caller = toBase58String(invoke.caller.bytes)
331331 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
332332 then throw("Problem with CID")
333333 else if (!(validateHash(sha256Hash)))
334334 then throw("Hash should be 64 characters maximum")
335335 else if (!(validateAllHash(sha256Export, sha256Licence)))
336336 then throw("Problem with Hashes")
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(oracleFee, ("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, caller))
357357 if ((entryExist != ""))
358358 then throw("You already added it")
359359 else {
360360 let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash))
361361 if ((hashExist != ""))
362362 then throw("Hash already registered")
363363 else {
364364 let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
365365 if (!(isSignCertified))
366366 then throw("Sign Certificate not found for this address.")
367367 else if ((size(cidDisplay) == 0))
368368 then throw("Display CID cannot be empty")
369369 else if (!(validateString(name, 100)))
370370 then throw("100 Char. max name")
371371 else if (!(validateString(description, 1000)))
372372 then throw("1000 Char. max description")
373373 else if ((size(split(tags, ",")) > 5))
374374 then throw("5 tags max.")
375375 else {
376376 let userIsRegistered = match getString(this, ("user_status_" + caller)) {
377377 case s: String =>
378378 s
379379 case _ =>
380380 userUnregistered
381381 }
382382 let timestamp = lastBlock.timestamp
383383 if (if (isDefined(userIsRegistered))
384384 then (userIsRegistered == userUnregistered)
385385 else false)
386386 then throw("Register this account first with \"User infos\" tab")
387387 else if ((userIsRegistered == userSuspended))
388388 then throw("Account suspended")
389389 else if ((userIsRegistered == userRemoved))
390390 then throw("Account removed")
391391 else if ((maxmint > 10))
392392 then throw("10 editions max")
393393 else if ((size(sha256Hash) != 64))
394394 then throw("Hash 64 char. max")
395395 else [StringEntry(keyArtOwnerByHash(sha256Hash), caller), StringEntry(keyArtTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyArtDate(caller, artId), timestamp), StringEntry(keyArtName(caller, artId), name), StringEntry(keyArtDesc(caller, artId), description), StringEntry(keyArtDisplayCid(caller, artId), cidDisplay), StringEntry(keyArtExportCid(caller, artId), cidExport), StringEntry(keyArtExportHash(caller, artId), sha256Export), StringEntry(keyArtLicenceHash(caller, artId), sha256Licence), StringEntry(keyArtLicenceCid(caller, artId), cidLicence), StringEntry(keyArtType(caller, artId), type), StringEntry(keyArtTags(caller, artId), tags), IntegerEntry(keyArtMaxMint(caller, artId), maxmint), StringEntry(keyArtSignID(caller, artId), signID), IntegerEntry(keyArtIssued(caller, artId), 0), BooleanEntry(keyArtOnSale(caller, artId), false), StringEntry(keyArtArtidBySignid(caller, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
396396 }
397397 }
398398 }
399399 }
400400 }
401401 }
402402
403403
404404
405405 @Callable(invoke)
406406 func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning))
407407 then throw(maintenanceMSG)
408408 else {
409409 let updateId = toBase58String(invoke.transactionId)
410410 let caller = toBase58String(invoke.caller.bytes)
411411 if (!(validateAllCID(cidDisplay, cidExport, cidLicence)))
412412 then throw("Problem with CID")
413413 else if (!(validateAllHash(sha256Export, sha256Licence)))
414414 then throw("Problem with Hashes")
415415 else {
416416 let entryExist = getStringByKey(keyArtName(caller, txid))
417417 if ((entryExist == ""))
418418 then throw("Entry not found")
419419 else if (!(validateString(name, 100)))
420420 then throw("100 Char. max name")
421421 else if (!(validateString(description, 1000)))
422422 then throw("1000 Char. max description")
423423 else {
424424 let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) {
425425 case b: Int =>
426426 if ((b == 0))
427427 then false
428428 else true
429429 case _ =>
430430 false
431431 }
432432 if ((size(split(tags, ",")) > 5))
433433 then throw("5 tags max.")
434434 else {
435435 let userIsRegistered = match getString(this, ("user_status_" + caller)) {
436436 case s: String =>
437437 s
438438 case _ =>
439439 userUnregistered
440440 }
441441 if (if (isDefined(userIsRegistered))
442442 then (userIsRegistered == userUnregistered)
443443 else false)
444444 then throw("Register first with \"User infos\"")
445445 else if ((userIsRegistered == userSuspended))
446446 then throw("Account suspended")
447447 else if ((userIsRegistered == userRemoved))
448448 then throw("Account removed")
449449 else if ((maxmint > 10))
450450 then throw("10 editions max per artwork")
451451 else if (!(artworkMinted))
452452 then [StringEntry(keyArtName(caller, txid), name), StringEntry(keyArtDesc(caller, txid), description), StringEntry(keyArtDisplayCid(caller, txid), cidDisplay), StringEntry(keyArtExportCid(caller, txid), cidExport), StringEntry(keyArtExportHash(caller, txid), sha256Export), StringEntry(keyArtLicenceCid(caller, txid), cidLicence), StringEntry(keyArtLicenceHash(caller, txid), sha256Licence), IntegerEntry(keyArtMaxMint(caller, txid), maxmint), StringEntry(keyArtTags(caller, txid), tags), StringEntry(keyArtType(caller, txid), type), StringEntry("last_invoke_id", updateId)]
453453 else throw("Already minted")
454454 }
455455 }
456456 }
457457 }
458458
459459
460460
461461 @Callable(i)
462462 func flagArtwork (artId,addr,flag) = {
463463 let caller = toString(addressFromPublicKey(i.callerPublicKey))
464464 let id = toBase58String(i.transactionId)
465465 if (if ((caller == admin))
466466 then true
467467 else (caller == admin2))
468- then if (if ((flag != "ILLEGAL"))
469- then true
470- else (flag != "CONSENT"))
471- then throw("Unknow status")
472- else [StringEntry(((("art_flag_" + artId) + "_") + caller), flag), StringEntry("last_invoke_id", id)]
468+ then if ((flag == "CONSENT"))
469+ then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry("last_invoke_id", id)]
470+ else if ((flag == "ILLEGAL"))
471+ then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry("last_invoke_id", id)]
472+ else throw(("Unknow status" + flag))
473473 else throw("no")
474474 }
475475
476476
477477
478478 @Callable(i)
479479 func deleteArtwork (artId,addr) = {
480480 let caller = toString(addressFromPublicKey(i.callerPublicKey))
481481 let id = toBase58String(i.transactionId)
482482 let addressToUse = if (if ((caller == admin))
483483 then true
484484 else (caller == admin2))
485485 then addr
486486 else caller
487487 let entryExist = match getString(this, keyArtName(addressToUse, artId)) {
488488 case s: String =>
489489 s
490490 case _ =>
491491 throw("No art matching")
492492 }
493493 let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) {
494494 case b: Int =>
495495 if ((b != 0))
496496 then true
497497 else false
498498 case _ =>
499499 false
500500 }
501501 let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId))
502502 let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) {
503503 case s: String =>
504504 s
505505 case _ =>
506506 throw("No art hash matching")
507507 }
508508 let signID = match getString(this, keyArtSignID(addressToUse, artId)) {
509509 case s: String =>
510510 s
511511 case _ =>
512512 throw("No SIGN ID matching")
513513 }
514- let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse)), DeleteEntry(keyArtPrice(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtAssetIdAccepted(addressToUse, artId)), DeleteEntry(((((("art_sold_1_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_2_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_3_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_4_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_5_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_6_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_7_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_8_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_9_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse)), DeleteEntry(((((("art_sold_10_of_" + toString(maxMint)) + "_") + artId) + "_") + addressToUse))]
515- if (if ((caller == admin))
516- then true
517- else (caller == admin2))
518- then (dataToDelete ++ [StringEntry(((("ban_" + artId) + "_") + addressToUse), caller)])
519- else if (!(artworkMinted))
520- then if (!(dappRunning))
521- then throw(maintenanceMSG)
522- else dataToDelete
523- else throw("Art already minted, cannot delete")
514+ 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))]
515+ if (!(artworkMinted))
516+ then if (!(dappRunning))
517+ then throw(maintenanceMSG)
518+ else dataToDelete
519+ else throw("Art already minted, cannot delete")
524520 }
525521
526522
527523
528524 @Callable(i)
529525 func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning))
530526 then throw(maintenanceMSG)
531527 else {
532528 let id = toBase58String(i.transactionId)
533529 let caller = toBase58String(i.caller.bytes)
534530 let sellDate = lastBlock.timestamp
535531 let exportCID = getStringByKey(keyArtExportCid(caller, artId))
536532 if ((size(split(exportCID, "/")[0]) != 59))
537533 then throw("You cannot sell art with no export file")
538534 else {
539535 let exportHash = getStringByKey(keyArtExportHash(caller, artId))
540536 if ((size(exportHash) != 64))
541537 then throw("You cannot sell art with no export hash")
542538 else if (if (if ((assetId != toBase58String(signAssetId)))
543539 then (assetId != toBase58String(wavesAssetId))
544540 else false)
545541 then (assetId != toBase58String(usdnAssetId))
546542 else false)
547543 then throw("Only SIGN, USDN or WAVES accepted")
548544 else {
549545 let artworkName = match getString(this, keyArtName(caller, artId)) {
550546 case s: String =>
551547 s
552548 case _ =>
553549 throw("This art doesn't match")
554550 }
555551 let userIsRegistered = match getString(this, keyUserStatus(caller)) {
556552 case s: String =>
557553 s
558554 case _ =>
559555 throw("Register this account first")
560556 }
561557 let amountSold = getIntegerByKey(keyArtIssued(caller, artId))
562558 let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId))
563559 if (if ((amountSold != 0))
564560 then (amountSold == maxCanSell)
565561 else false)
566562 then throw("Max edition reached.")
567563 else if (if ((amountSold > 0))
568564 then (maxCanSell != maxMint)
569565 else false)
570566 then throw("Cannot change maximum issuable anymore")
571567 else if ((userIsRegistered == userSuspended))
572568 then throw("Account suspended")
573569 else if ((userIsRegistered == userRemoved))
574570 then throw("Account deleted")
575571 else {
576572 let sellStatus = if ((price > 0))
577573 then true
578574 else false
579575 [BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId), StringEntry("last_invoke_id", id)]
580576 }
581577 }
582578 }
583579 }
584580
585581
586582
587583 @Callable(i)
588584 func buyArtwork (artId,issuer) = if (!(dappRunning))
589585 then throw(maintenanceMSG)
590586 else {
591587 let id = toBase58String(i.transactionId)
592588 let caller = toBase58String(i.caller.bytes)
593589 let totalNFT = getIntegerByKey("total_nft_issued")
594590 let signID = getStringByKey(keyArtSignID(issuer, artId))
595591 let artworkName = match getString(this, keyArtName(issuer, artId)) {
596592 case s: String =>
597593 s
598594 case _ =>
599595 throw("Art doesn't exist")
600596 }
601597 let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId))
602598 let exportCID = getStringByKey(keyArtExportCid(issuer, artId))
603599 let exportHash = getStringByKey(keyArtExportHash(issuer, artId))
604600 let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId))
605601 let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId))
606602 let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50)
607603 let amountSold = getIntegerByKey(keyArtIssued(issuer, artId))
608604 let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId))
609605 let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId))
610606 let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId))
611607 let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId))
612608 if ((artworkPrice == 0))
613609 then throw("Art not for sell")
614610 else if (!(isOnSale))
615611 then throw("Art not for sale")
616612 else {
617613 let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId))
618614 let payment = value(i.payments[0])
619615 let amount = value(payment.amount)
620616 let assetId = if (if (if (isDefined(payment.assetId))
621617 then (size(fromBase58String(priceAssetId)) > 0)
622618 else false)
623619 then (payment.assetId == fromBase58String(priceAssetId))
624620 else false)
625621 then payment.assetId
626622 else unit
627623 let cut = if ((priceAssetId == toBase58String(signAssetId)))
628624 then 8
629625 else 10
630626 let amountForSign = ((amount / 100) * cut)
631627 let amountForCreator = (amount - amountForSign)
632628 if ((amountSold == maxCanSell))
633629 then throw("Art sold out")
634630 else if ((artworkPrice != amount))
635631 then throw("Payment don't match")
636632 else {
637633 let newAmountSold = (amountSold + 1)
638634 let entryDate = lastBlock.timestamp
639635 let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1,
640636 \"creator\": \"" + issuer) + "\",
641637 \"artID\": \"") + artId) + "\",
642638 \"signID\": \"") + signID) + "\",
643639 \"artwork_name\": \"") + artworkName) + "\",
644640 \"artwork_desc\": \"") + description) + "\",
645641 \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\",
646642 \"maxIssuable\": \"") + toString(maxCanSell)) + "\",
647643 \"source_hash\": \"") + sourceHash) + "\",
648644 \"display_cid\": \"") + displayCID) + "\",
649645 \"export_cid\": \"") + exportCID) + "\",
650646 \"export_hash\": \"") + exportHash) + "\",
651647 \"licence_cid\": \"") + licenceCID) + "\",
652648 \"licence_hash\": \"") + licenceHash) + "\"}")
653649 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
654650 let idNFT = calculateAssetId(issueNFT)
655651 let sellStatus = if ((newAmountSold == maxCanSell))
656652 then false
657653 else true
658654 [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((caller + "_") + 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(i.caller, 1, idNFT)]
659655 }
660656 }
661657 }
662658
663659
664660
665661 @Callable(i)
666662 func deleteUser (address) = {
667663 let caller = toString(addressFromPublicKey(i.callerPublicKey))
668664 let id = toBase58String(i.transactionId)
669665 if (if ((caller == admin))
670666 then true
671667 else (caller == admin2))
672668 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)]
673669 else throw("Not allowed")
674670 }
675671
676672

github/deemru/w8io/026f985 
83.92 ms