tx · QHWUyteN1rbAacgq3qXZcFh6jhM4yH9UkUatKWfaQe1 3N1nsRMGF9SDL1JZ3MpRJEAsdH9Coc1dmT6: -0.01400000 Waves 2020.10.20 08:20 [1228462] smart account 3N1nsRMGF9SDL1JZ3MpRJEAsdH9Coc1dmT6 > SELF 0.00000000 Waves
{ "type": 13, "id": "QHWUyteN1rbAacgq3qXZcFh6jhM4yH9UkUatKWfaQe1", "fee": 1400000, "feeAssetId": null, "timestamp": 1603171248362, "version": 2, "chainId": 84, "sender": "3N1nsRMGF9SDL1JZ3MpRJEAsdH9Coc1dmT6", "senderPublicKey": "4zmkNyNNc3vmCuh6sV7WRWwGsUMaTFsTKFrB5R7J2ZRw", "proofs": [ "2td63UaLM8vK2oc1Sau8kyzV7XmHx5L7yjF2ghFu1EbQNGzv8xoNSjfvFRNVETPBJoaCpRwBDDzhqcjAYKh6aU6f" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIFCgMICAgSBAoCCAgSBgoECAEBCBIECgIICBIDCgEIAAAAOQAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldElkAQAA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AADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0X2ludm9rZV9pZAUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAAA+h0YR", "height": 1228462, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CBSd3Ah2vF39RZwMDuhPuQQKTsWjitMH7n1fwiibdHWH Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | + | ||
6 | + | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | + | ||
8 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | + | ||
10 | + | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | + | ||
12 | + | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | + | ||
14 | + | let wavesAssetId = base58'' | |
15 | + | ||
16 | + | let signCut = 8 | |
17 | + | ||
18 | + | let usdnCut = 10 | |
19 | + | ||
20 | + | let wavesCut = 10 | |
21 | + | ||
22 | + | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
23 | + | ||
24 | + | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
25 | + | ||
26 | + | let WHITELISTEDONLY = true | |
27 | + | ||
28 | + | let dappRunning = true | |
29 | + | ||
30 | + | let maintenanceMSG = "SIGN Art is under maintenance" | |
31 | + | ||
32 | + | let userAllowed = "ALLOWED" | |
33 | + | ||
34 | + | let userRegistered = "REGISTERED" | |
35 | + | ||
36 | + | let userVerified = "VERIFIED" | |
37 | + | ||
38 | + | let userSuspended = "SUSPENDED" | |
39 | + | ||
40 | + | let userRemoved = "REMOVED" | |
41 | + | ||
42 | + | let userUnregistered = "UNREGISTERED" | |
43 | + | ||
44 | + | let userReset = "RESET" | |
45 | + | ||
46 | + | func getStringByKey (key) = match getString(this, key) { | |
47 | + | case a: String => | |
48 | + | a | |
49 | + | case _ => | |
50 | + | "" | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | func getIntegerByKey (key) = match getInteger(this, key) { | |
55 | + | case i: Int => | |
56 | + | i | |
57 | + | case _ => | |
58 | + | 0 | |
59 | + | } | |
60 | + | ||
61 | + | ||
62 | + | func getBooleanByKey (key) = match getBoolean(this, key) { | |
63 | + | case i: Boolean => | |
64 | + | i | |
65 | + | case _ => | |
66 | + | false | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | + | case a: String => | |
72 | + | if (contains(a, sha256Hash)) | |
73 | + | then true | |
74 | + | else false | |
75 | + | case _ => | |
76 | + | false | |
77 | + | } | |
78 | + | ||
79 | + | ||
80 | + | func validateCID (cid) = if (if ((75 > size(cid))) | |
81 | + | then (60 > size(split(cid, "/")[0])) | |
82 | + | else false) | |
83 | + | then (16 > size(split(cid, "/")[1])) | |
84 | + | else false | |
85 | + | ||
86 | + | ||
87 | + | func validateHash (hash) = (65 > size(hash)) | |
88 | + | ||
89 | + | ||
90 | + | func keyUserAddr (caller) = ("user_" + caller) | |
91 | + | ||
92 | + | ||
93 | + | func keyUserName (caller) = ("user_name_" + caller) | |
94 | + | ||
95 | + | ||
96 | + | func keyUserDesc (caller) = ("user_desc_" + caller) | |
97 | + | ||
98 | + | ||
99 | + | func keyUserSocial (caller) = ("user_social_" + caller) | |
100 | + | ||
101 | + | ||
102 | + | func keyUserThumb (caller) = ("user_thumb_" + caller) | |
103 | + | ||
104 | + | ||
105 | + | func keyUserStatus (caller) = ("user_status_" + caller) | |
106 | + | ||
107 | + | ||
108 | + | func keyUserDate (caller) = ("user_date_" + caller) | |
109 | + | ||
110 | + | ||
111 | + | func keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
112 | + | ||
113 | + | ||
114 | + | func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
115 | + | ||
116 | + | ||
117 | + | func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
118 | + | ||
119 | + | ||
120 | + | func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
121 | + | ||
122 | + | ||
123 | + | func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
124 | + | ||
125 | + | ||
126 | + | func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
127 | + | ||
128 | + | ||
129 | + | func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
130 | + | ||
131 | + | ||
132 | + | func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
133 | + | ||
134 | + | ||
135 | + | func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
136 | + | ||
137 | + | ||
138 | + | func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
139 | + | ||
140 | + | ||
141 | + | func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
142 | + | ||
143 | + | ||
144 | + | func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
145 | + | ||
146 | + | ||
147 | + | func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
148 | + | ||
149 | + | ||
150 | + | func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
151 | + | ||
152 | + | ||
153 | + | func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
154 | + | ||
155 | + | ||
156 | + | func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
157 | + | ||
158 | + | ||
159 | + | func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
160 | + | ||
161 | + | ||
162 | + | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
163 | + | ||
164 | + | ||
165 | + | func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
166 | + | ||
167 | + | ||
168 | + | func keyArtTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
169 | + | ||
170 | + | ||
171 | + | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (if ((cidDisplay != "")) | |
172 | + | then !(validateCID(cidDisplay)) | |
173 | + | else false) | |
174 | + | then throw("Wrong Display CID") | |
175 | + | else if (if ((cidExport != "")) | |
176 | + | then !(validateCID(cidExport)) | |
177 | + | else false) | |
178 | + | then throw("Wrong Export CID") | |
179 | + | else if (if ((cidLicence != "")) | |
180 | + | then !(validateCID(cidLicence)) | |
181 | + | else false) | |
182 | + | then throw("Wrong Licence CID") | |
183 | + | else true | |
184 | + | ||
185 | + | ||
186 | + | func validateAllHash (sha256Export,sha256Licence) = if (if ((sha256Export != "")) | |
187 | + | then !(validateHash(sha256Export)) | |
188 | + | else false) | |
189 | + | then throw("Export Hash 64 char. max") | |
190 | + | else if (if ((sha256Licence != "")) | |
191 | + | then !(validateHash(sha256Licence)) | |
192 | + | else false) | |
193 | + | then throw("Licence Hash 64 char. max") | |
194 | + | else true | |
195 | + | ||
196 | + | ||
197 | + | func validateString (str,max) = if ((size(str) == 0)) | |
198 | + | then throw("Field cannot be is empty") | |
199 | + | else if ((size(str) > max)) | |
200 | + | then throw((str + " is too long")) | |
201 | + | else true | |
202 | + | ||
203 | + | ||
204 | + | @Callable(i) | |
205 | + | func registerUser (name,description,thumb,social) = if (!(dappRunning)) | |
206 | + | then throw(maintenanceMSG) | |
207 | + | else { | |
208 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
209 | + | let canRegister = getStringByKey(keyUserStatus(caller)) | |
210 | + | let id = toBase58String(i.transactionId) | |
211 | + | let timestamp = lastBlock.timestamp | |
212 | + | if (if ((canRegister == userSuspended)) | |
213 | + | then true | |
214 | + | else (canRegister == userRemoved)) | |
215 | + | then throw("Account suspended/ removed.") | |
216 | + | else if ((canRegister == userRegistered)) | |
217 | + | then throw("Already registered") | |
218 | + | else if (if ((canRegister == "")) | |
219 | + | then WHITELISTEDONLY | |
220 | + | else false) | |
221 | + | then throw("Can't register, get approved first.") | |
222 | + | else if (if ((name == "")) | |
223 | + | then true | |
224 | + | else (description == "")) | |
225 | + | then throw("Name and description cannot be empty") | |
226 | + | else if ((size(description) > 600)) | |
227 | + | then throw("600 Char. max description") | |
228 | + | 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)] | |
229 | + | } | |
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | @Callable(i) | |
234 | + | func deleteEntry (entry) = { | |
235 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
236 | + | if ((caller == admin)) | |
237 | + | then [DeleteEntry(entry)] | |
238 | + | else throw("no") | |
239 | + | } | |
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | @Callable(i) | |
244 | + | func updateUser (name,description,thumb,social) = if (!(dappRunning)) | |
245 | + | then throw(maintenanceMSG) | |
246 | + | else { | |
247 | + | let id = toBase58String(i.transactionId) | |
248 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
249 | + | let canUpdate = getStringByKey(keyUserStatus(caller)) | |
250 | + | if (if ((canUpdate == userSuspended)) | |
251 | + | then true | |
252 | + | else (canUpdate == userRemoved)) | |
253 | + | then throw("Account suspended/ removed.") | |
254 | + | else if (if ((canUpdate == "")) | |
255 | + | then true | |
256 | + | else (canUpdate == userAllowed)) | |
257 | + | then throw("Register first") | |
258 | + | else if (if ((name == "")) | |
259 | + | then true | |
260 | + | else (description == "")) | |
261 | + | then throw("Name & description cannot be empty") | |
262 | + | else if ((size(description) > 600)) | |
263 | + | then throw("600 Char. max for description") | |
264 | + | else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)] | |
265 | + | } | |
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | @Callable(i) | |
270 | + | func changeUserStatus (address,status) = if (!(dappRunning)) | |
271 | + | then throw(maintenanceMSG) | |
272 | + | else { | |
273 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
274 | + | let id = toBase58String(i.transactionId) | |
275 | + | let currentStatus = getStringByKey(keyUserStatus(address)) | |
276 | + | let statusToSet = if ((status == userVerified)) | |
277 | + | then userVerified | |
278 | + | else if ((status == userRegistered)) | |
279 | + | then userRegistered | |
280 | + | else if ((status == userSuspended)) | |
281 | + | then userSuspended | |
282 | + | else if ((status == userRemoved)) | |
283 | + | then userRemoved | |
284 | + | else if ((status == userAllowed)) | |
285 | + | then userAllowed | |
286 | + | else if (if ((status == userReset)) | |
287 | + | then (currentStatus == userAllowed) | |
288 | + | else false) | |
289 | + | then "" | |
290 | + | else throw("Unknown status") | |
291 | + | if (if ((currentStatus == userAllowed)) | |
292 | + | then (status == userAllowed) | |
293 | + | else false) | |
294 | + | then throw("User already allowed") | |
295 | + | else if (if ((currentStatus == userRegistered)) | |
296 | + | then (status == userAllowed) | |
297 | + | else false) | |
298 | + | then throw("User already allowed & registered") | |
299 | + | else if (if ((currentStatus == userVerified)) | |
300 | + | then (status == userAllowed) | |
301 | + | else false) | |
302 | + | then throw("User already allowed & verified") | |
303 | + | else if (if ((caller == admin)) | |
304 | + | then true | |
305 | + | else (caller == admin2)) | |
306 | + | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
307 | + | else throw(((("Not allowed to change user status " + caller) + " / ") + admin)) | |
308 | + | } | |
309 | + | ||
310 | + | ||
311 | + | ||
312 | + | @Callable(i) | |
313 | + | func creditUser (address) = { | |
314 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
315 | + | let id = toBase58String(i.transactionId) | |
316 | + | if (if ((caller == admin)) | |
317 | + | then true | |
318 | + | else (caller == admin2)) | |
319 | + | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
320 | + | else throw("Not allowed") | |
321 | + | } | |
322 | + | ||
323 | + | ||
324 | + | ||
325 | + | @Callable(invoke) | |
326 | + | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
327 | + | then throw(maintenanceMSG) | |
328 | + | else { | |
329 | + | let artId = toBase58String(invoke.transactionId) | |
330 | + | let caller = toBase58String(invoke.caller.bytes) | |
331 | + | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
332 | + | then throw("Problem with CID") | |
333 | + | else if (!(validateHash(sha256Hash))) | |
334 | + | then throw("Hash should be 64 characters maximum") | |
335 | + | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
336 | + | then throw("Problem with Hashes") | |
337 | + | else if ((size(invoke.payments) == 0)) | |
338 | + | then throw("No payment attached") | |
339 | + | else { | |
340 | + | let payment = value(invoke.payments[0]) | |
341 | + | let amount = value(payment.amount) | |
342 | + | let assetId = if (if (isDefined(payment.assetId)) | |
343 | + | then (payment.assetId == signAssetId) | |
344 | + | else false) | |
345 | + | then payment.assetId | |
346 | + | else throw("Only SIGN token accepted at the moment") | |
347 | + | let currentCertificationPrice = match getInteger(oracleFee, ("certification_fee_" + toBase58String(signAssetId))) { | |
348 | + | case price: Int => | |
349 | + | price | |
350 | + | case _ => | |
351 | + | throw("Price undefined in oracle") | |
352 | + | } | |
353 | + | if ((amount != currentCertificationPrice)) | |
354 | + | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
355 | + | else { | |
356 | + | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
357 | + | if ((entryExist != "")) | |
358 | + | then throw("You already added it") | |
359 | + | else { | |
360 | + | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
361 | + | if ((hashExist != "")) | |
362 | + | then throw("Hash already registered") | |
363 | + | else { | |
364 | + | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
365 | + | if (!(isSignCertified)) | |
366 | + | then throw("Sign Certificate not found for this address.") | |
367 | + | else if ((size(cidDisplay) == 0)) | |
368 | + | then throw("Display CID cannot be empty") | |
369 | + | else if (!(validateString(name, 100))) | |
370 | + | then throw("100 Char. max name") | |
371 | + | else if (!(validateString(description, 1000))) | |
372 | + | then throw("1000 Char. max description") | |
373 | + | else if ((size(split(tags, ",")) > 5)) | |
374 | + | then throw("5 tags max.") | |
375 | + | else { | |
376 | + | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
377 | + | case s: String => | |
378 | + | s | |
379 | + | case _ => | |
380 | + | userUnregistered | |
381 | + | } | |
382 | + | let timestamp = lastBlock.timestamp | |
383 | + | if (if (isDefined(userIsRegistered)) | |
384 | + | then (userIsRegistered == userUnregistered) | |
385 | + | else false) | |
386 | + | then throw("Register this account first with \"User infos\" tab") | |
387 | + | else if ((userIsRegistered == userSuspended)) | |
388 | + | then throw("Account suspended") | |
389 | + | else if ((userIsRegistered == userRemoved)) | |
390 | + | then throw("Account removed") | |
391 | + | else if ((maxmint > 10)) | |
392 | + | then throw("10 editions max") | |
393 | + | else if ((size(sha256Hash) != 64)) | |
394 | + | then throw("Hash 64 char. max") | |
395 | + | 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)] | |
396 | + | } | |
397 | + | } | |
398 | + | } | |
399 | + | } | |
400 | + | } | |
401 | + | } | |
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | @Callable(invoke) | |
406 | + | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
407 | + | then throw(maintenanceMSG) | |
408 | + | else { | |
409 | + | let updateId = toBase58String(invoke.transactionId) | |
410 | + | let caller = toBase58String(invoke.caller.bytes) | |
411 | + | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
412 | + | then throw("Problem with CID") | |
413 | + | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
414 | + | then throw("Problem with Hashes") | |
415 | + | else { | |
416 | + | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
417 | + | if ((entryExist == "")) | |
418 | + | then throw("Entry not found") | |
419 | + | else if (!(validateString(name, 100))) | |
420 | + | then throw("100 Char. max name") | |
421 | + | else if (!(validateString(description, 1000))) | |
422 | + | then throw("1000 Char. max description") | |
423 | + | else { | |
424 | + | let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) { | |
425 | + | case b: Int => | |
426 | + | if ((b == 0)) | |
427 | + | then false | |
428 | + | else true | |
429 | + | case _ => | |
430 | + | false | |
431 | + | } | |
432 | + | if ((size(split(tags, ",")) > 5)) | |
433 | + | then throw("5 tags max.") | |
434 | + | else { | |
435 | + | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
436 | + | case s: String => | |
437 | + | s | |
438 | + | case _ => | |
439 | + | userUnregistered | |
440 | + | } | |
441 | + | if (if (isDefined(userIsRegistered)) | |
442 | + | then (userIsRegistered == userUnregistered) | |
443 | + | else false) | |
444 | + | then throw("Register first with \"User infos\"") | |
445 | + | else if ((userIsRegistered == userSuspended)) | |
446 | + | then throw("Account suspended") | |
447 | + | else if ((userIsRegistered == userRemoved)) | |
448 | + | then throw("Account removed") | |
449 | + | else if ((maxmint > 10)) | |
450 | + | then throw("10 editions max per artwork") | |
451 | + | else if (!(artworkMinted)) | |
452 | + | 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)] | |
453 | + | else throw("Already minted") | |
454 | + | } | |
455 | + | } | |
456 | + | } | |
457 | + | } | |
458 | + | ||
459 | + | ||
460 | + | ||
461 | + | @Callable(i) | |
462 | + | func flagArtwork (artId,addr,flag) = { | |
463 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
464 | + | let id = toBase58String(i.transactionId) | |
465 | + | if (if ((caller == admin)) | |
466 | + | then true | |
467 | + | else (caller == admin2)) | |
468 | + | then if (if ((flag != "ILLEGAL")) | |
469 | + | then true | |
470 | + | else (flag != "CONSENT")) | |
471 | + | then throw("Unknow status") | |
472 | + | else if ((flag == "CONSENT")) | |
473 | + | then [StringEntry(((("art_flag_" + artId) + "_") + addr), flag), StringEntry("last_invoke_id", id)] | |
474 | + | else [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)] | |
475 | + | else throw("no") | |
476 | + | } | |
477 | + | ||
478 | + | ||
479 | + | ||
480 | + | @Callable(i) | |
481 | + | func deleteArtwork (artId,addr) = { | |
482 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
483 | + | let id = toBase58String(i.transactionId) | |
484 | + | let addressToUse = if (if ((caller == admin)) | |
485 | + | then true | |
486 | + | else (caller == admin2)) | |
487 | + | then addr | |
488 | + | else caller | |
489 | + | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
490 | + | case s: String => | |
491 | + | s | |
492 | + | case _ => | |
493 | + | throw("No art matching") | |
494 | + | } | |
495 | + | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
496 | + | case b: Int => | |
497 | + | if ((b != 0)) | |
498 | + | then true | |
499 | + | else false | |
500 | + | case _ => | |
501 | + | false | |
502 | + | } | |
503 | + | let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId)) | |
504 | + | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
505 | + | case s: String => | |
506 | + | s | |
507 | + | case _ => | |
508 | + | throw("No art hash matching") | |
509 | + | } | |
510 | + | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
511 | + | case s: String => | |
512 | + | s | |
513 | + | case _ => | |
514 | + | throw("No SIGN ID matching") | |
515 | + | } | |
516 | + | 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))] | |
517 | + | if (!(artworkMinted)) | |
518 | + | then if (!(dappRunning)) | |
519 | + | then throw(maintenanceMSG) | |
520 | + | else dataToDelete | |
521 | + | else throw("Art already minted, cannot delete") | |
522 | + | } | |
523 | + | ||
524 | + | ||
525 | + | ||
526 | + | @Callable(i) | |
527 | + | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
528 | + | then throw(maintenanceMSG) | |
529 | + | else { | |
530 | + | let id = toBase58String(i.transactionId) | |
531 | + | let caller = toBase58String(i.caller.bytes) | |
532 | + | let sellDate = lastBlock.timestamp | |
533 | + | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
534 | + | if ((size(split(exportCID, "/")[0]) != 59)) | |
535 | + | then throw("You cannot sell art with no export file") | |
536 | + | else { | |
537 | + | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
538 | + | if ((size(exportHash) != 64)) | |
539 | + | then throw("You cannot sell art with no export hash") | |
540 | + | else if (if (if ((assetId != toBase58String(signAssetId))) | |
541 | + | then (assetId != toBase58String(wavesAssetId)) | |
542 | + | else false) | |
543 | + | then (assetId != toBase58String(usdnAssetId)) | |
544 | + | else false) | |
545 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
546 | + | else { | |
547 | + | let artworkName = match getString(this, keyArtName(caller, artId)) { | |
548 | + | case s: String => | |
549 | + | s | |
550 | + | case _ => | |
551 | + | throw("This art doesn't match") | |
552 | + | } | |
553 | + | let userIsRegistered = match getString(this, keyUserStatus(caller)) { | |
554 | + | case s: String => | |
555 | + | s | |
556 | + | case _ => | |
557 | + | throw("Register this account first") | |
558 | + | } | |
559 | + | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
560 | + | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
561 | + | if (if ((amountSold != 0)) | |
562 | + | then (amountSold == maxCanSell) | |
563 | + | else false) | |
564 | + | then throw("Max edition reached.") | |
565 | + | else if (if ((amountSold > 0)) | |
566 | + | then (maxCanSell != maxMint) | |
567 | + | else false) | |
568 | + | then throw("Cannot change maximum issuable anymore") | |
569 | + | else if ((userIsRegistered == userSuspended)) | |
570 | + | then throw("Account suspended") | |
571 | + | else if ((userIsRegistered == userRemoved)) | |
572 | + | then throw("Account deleted") | |
573 | + | else { | |
574 | + | let sellStatus = if ((price > 0)) | |
575 | + | then true | |
576 | + | else false | |
577 | + | [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)] | |
578 | + | } | |
579 | + | } | |
580 | + | } | |
581 | + | } | |
582 | + | ||
583 | + | ||
584 | + | ||
585 | + | @Callable(i) | |
586 | + | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
587 | + | then throw(maintenanceMSG) | |
588 | + | else { | |
589 | + | let id = toBase58String(i.transactionId) | |
590 | + | let caller = toBase58String(i.caller.bytes) | |
591 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
592 | + | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
593 | + | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
594 | + | case s: String => | |
595 | + | s | |
596 | + | case _ => | |
597 | + | throw("Art doesn't exist") | |
598 | + | } | |
599 | + | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
600 | + | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
601 | + | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
602 | + | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
603 | + | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
604 | + | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
605 | + | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
606 | + | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
607 | + | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
608 | + | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
609 | + | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
610 | + | if ((artworkPrice == 0)) | |
611 | + | then throw("Art not for sell") | |
612 | + | else if (!(isOnSale)) | |
613 | + | then throw("Art not for sale") | |
614 | + | else { | |
615 | + | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
616 | + | let payment = value(i.payments[0]) | |
617 | + | let amount = value(payment.amount) | |
618 | + | let assetId = if (if (if (isDefined(payment.assetId)) | |
619 | + | then (size(fromBase58String(priceAssetId)) > 0) | |
620 | + | else false) | |
621 | + | then (payment.assetId == fromBase58String(priceAssetId)) | |
622 | + | else false) | |
623 | + | then payment.assetId | |
624 | + | else unit | |
625 | + | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
626 | + | then 8 | |
627 | + | else 10 | |
628 | + | let amountForSign = ((amount / 100) * cut) | |
629 | + | let amountForCreator = (amount - amountForSign) | |
630 | + | if ((amountSold == maxCanSell)) | |
631 | + | then throw("Art sold out") | |
632 | + | else if ((artworkPrice != amount)) | |
633 | + | then throw("Payment don't match") | |
634 | + | else { | |
635 | + | let newAmountSold = (amountSold + 1) | |
636 | + | let entryDate = lastBlock.timestamp | |
637 | + | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
638 | + | \"creator\": \"" + issuer) + "\", | |
639 | + | \"artID\": \"") + artId) + "\", | |
640 | + | \"signID\": \"") + signID) + "\", | |
641 | + | \"artwork_name\": \"") + artworkName) + "\", | |
642 | + | \"artwork_desc\": \"") + description) + "\", | |
643 | + | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
644 | + | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
645 | + | \"source_hash\": \"") + sourceHash) + "\", | |
646 | + | \"display_cid\": \"") + displayCID) + "\", | |
647 | + | \"export_cid\": \"") + exportCID) + "\", | |
648 | + | \"export_hash\": \"") + exportHash) + "\", | |
649 | + | \"licence_cid\": \"") + licenceCID) + "\", | |
650 | + | \"licence_hash\": \"") + licenceHash) + "\"}") | |
651 | + | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
652 | + | let idNFT = calculateAssetId(issueNFT) | |
653 | + | let sellStatus = if ((newAmountSold == maxCanSell)) | |
654 | + | then false | |
655 | + | else true | |
656 | + | [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)] | |
657 | + | } | |
658 | + | } | |
659 | + | } | |
660 | + | ||
661 | + | ||
662 | + | ||
663 | + | @Callable(i) | |
664 | + | func deleteUser (address) = { | |
665 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
666 | + | let id = toBase58String(i.transactionId) | |
667 | + | if (if ((caller == admin)) | |
668 | + | then true | |
669 | + | else (caller == admin2)) | |
670 | + | 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)] | |
671 | + | else throw("Not allowed") | |
672 | + | } | |
673 | + | ||
674 | + |
github/deemru/w8io/026f985 40.22 ms ◑