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