tx · 7tp6wEhFLksxVMsESns8uo2TYWWmmkjoC5kPRSVb9pXx 3NCuZRuz3X6CVcb8Q6WLnnZVXEsgRdfzyF5: -0.01000000 Waves 2021.01.05 10:10 [1339778] smart account 3NCuZRuz3X6CVcb8Q6WLnnZVXEsgRdfzyF5 > SELF 0.00000000 Waves
{ "type": 13, "id": "7tp6wEhFLksxVMsESns8uo2TYWWmmkjoC5kPRSVb9pXx", "fee": 1000000, "feeAssetId": null, "timestamp": 1609830624346, "version": 2, "chainId": 84, "sender": "3NCuZRuz3X6CVcb8Q6WLnnZVXEsgRdfzyF5", "senderPublicKey": "BuHoYs1cehzFjcsSv1rmmtNaRCfxW1wJTMtitHKXQrY1", "proofs": [ "2UqCFqrq6AFaX4ENv3pNULCdZa4LeLrvH5EcmDkzZB1p5mLuteZ5zM9sJjjbWy2nptFVeh5JrpKrvoDVaqRPMkeW" ], "script": "base64:AAIEAAAAAAAAADwIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgAAAA+AAAAAAh1bml0VGVzdAYAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGFZakUyN0FhNzlkNWhI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zcwAAAAEJAAJZAAAAAQUAAAALZmVlUmVjZWl2ZXIFAAAADWFtb3VudEZvclNpZ24FAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAAAdAgR4=", "height": 1339778, "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 (caller) = { | |
224 | + | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
225 | + | if (if ((userStatus == userUnregistered)) | |
226 | + | then true | |
227 | + | else (userStatus == userAllowed)) | |
228 | + | then "Register this account first with \"Account\" tab" | |
229 | + | else if ((userStatus == userSuspended)) | |
230 | + | then "Account suspended" | |
231 | + | else if ((userStatus == userRemoved)) | |
232 | + | then "Account removed" | |
233 | + | else "" | |
234 | + | } | |
235 | + | ||
236 | + | ||
237 | + | func setLIcenceCID (cidLicence) = if ((size(cidLicence) == 0)) | |
238 | + | then defaultLicence | |
239 | + | else cidLicence | |
240 | + | ||
241 | + | ||
242 | + | func setLIcenceHash (sha256Licence) = if ((size(sha256Licence) == 0)) | |
243 | + | then defaultHashLicence | |
244 | + | else sha256Licence | |
245 | + | ||
246 | + | ||
247 | + | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,maxmint) = { | |
248 | + | let checkUser = validateUser(caller) | |
249 | + | if ((checkUser != "")) | |
250 | + | then throw(checkUser) | |
251 | + | else if ((size(cidDisplay) == 0)) | |
252 | + | then throw("Display CID cannot be empty") | |
253 | + | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
254 | + | then throw("Problem with CID") | |
255 | + | else if (!(validateAllHash(sha256Export, licenceHash))) | |
256 | + | then throw("Problem with Hashes") | |
257 | + | else if (!(validateString(name, 100))) | |
258 | + | then throw("100 Char. max name") | |
259 | + | else if (!(validateString(description, 1000))) | |
260 | + | then throw("1000 Char. max description") | |
261 | + | else if ((size(split(tags, ",")) > 5)) | |
262 | + | then throw("5 tags max.") | |
263 | + | else if ((maxmint > 10)) | |
264 | + | then throw("10 editions max per artwork") | |
265 | + | else "" | |
266 | + | } | |
267 | + | ||
268 | + | ||
269 | + | func validatePayment (invoke) = if ((size(invoke.payments) == 0)) | |
270 | + | then throw("No payment attached") | |
271 | + | else { | |
272 | + | let payment = value(invoke.payments[0]) | |
273 | + | let amount = value(payment.amount) | |
274 | + | let assetId = if (if (isDefined(payment.assetId)) | |
275 | + | then (payment.assetId == signAssetId) | |
276 | + | else false) | |
277 | + | then payment.assetId | |
278 | + | else throw("Only SIGN token accepted as transaction fee") | |
279 | + | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
280 | + | if ((amount != currentCertificationPrice)) | |
281 | + | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
282 | + | else $Tuple2(amount, assetId) | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | func isArtMinted (addressToUse,artId) = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
287 | + | case b: Int => | |
288 | + | if ((b != 0)) | |
289 | + | then true | |
290 | + | else false | |
291 | + | case _ => | |
292 | + | false | |
293 | + | } | |
294 | + | ||
295 | + | ||
296 | + | @Callable(invoke) | |
297 | + | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
298 | + | then throw(maintenanceMSG) | |
299 | + | else { | |
300 | + | let artId = toBase58String(invoke.transactionId) | |
301 | + | let timestamp = lastBlock.timestamp | |
302 | + | let caller = toBase58String(invoke.caller.bytes) | |
303 | + | if (!(validateHash(sha256Hash))) | |
304 | + | then throw("Hash should be 64 characters maximum") | |
305 | + | else { | |
306 | + | let licenceCID = setLIcenceCID(cidLicence) | |
307 | + | let licenceHash = setLIcenceHash(sha256Licence) | |
308 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
309 | + | if ((validateArtwork != "")) | |
310 | + | then throw("Something went wrong!") | |
311 | + | else { | |
312 | + | let $t01111711164 = validatePayment(invoke) | |
313 | + | let amount = $t01111711164._1 | |
314 | + | let assetId = $t01111711164._2 | |
315 | + | if (!(isDefined(amount))) | |
316 | + | then throw("Something went wrong") | |
317 | + | else { | |
318 | + | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
319 | + | if ((entryExist != "")) | |
320 | + | then throw("You already added it") | |
321 | + | else { | |
322 | + | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
323 | + | if ((hashExist != "")) | |
324 | + | then throw("Hash already registered") | |
325 | + | else { | |
326 | + | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
327 | + | if (!(isSignCertified)) | |
328 | + | then throw("Sign Certificate not found for this address.") | |
329 | + | 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)] | |
330 | + | } | |
331 | + | } | |
332 | + | } | |
333 | + | } | |
334 | + | } | |
335 | + | } | |
336 | + | ||
337 | + | ||
338 | + | ||
339 | + | @Callable(invoke) | |
340 | + | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
341 | + | then throw(maintenanceMSG) | |
342 | + | else { | |
343 | + | let updateId = toBase58String(invoke.transactionId) | |
344 | + | let caller = toBase58String(invoke.caller.bytes) | |
345 | + | let licenceCID = setLIcenceCID(cidLicence) | |
346 | + | let licenceHash = setLIcenceHash(sha256Licence) | |
347 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
348 | + | if ((validateArtwork != "")) | |
349 | + | then throw("Something went wrong!") | |
350 | + | else { | |
351 | + | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
352 | + | if ((entryExist == "")) | |
353 | + | then throw("Entry not found") | |
354 | + | else { | |
355 | + | let flag = getStringByKey(keyArtFlag(caller, txid)) | |
356 | + | if ((flag == "ILLEGAL")) | |
357 | + | then throw("Cannot update ILLEGAL artwork") | |
358 | + | else { | |
359 | + | let artworkMinted = isArtMinted(caller, txid) | |
360 | + | if (!(artworkMinted)) | |
361 | + | 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)] | |
362 | + | else throw("Already minted") | |
363 | + | } | |
364 | + | } | |
365 | + | } | |
366 | + | } | |
367 | + | ||
368 | + | ||
369 | + | ||
370 | + | @Callable(i) | |
371 | + | func flagArtwork (artId,addr,flag) = { | |
372 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
373 | + | let id = toBase58String(i.transactionId) | |
374 | + | if (containsElement([chris, joep, toString(this)], caller)) | |
375 | + | then if ((flag == "CONSENT")) | |
376 | + | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
377 | + | else if ((flag == "")) | |
378 | + | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
379 | + | else if ((flag == "ILLEGAL")) | |
380 | + | 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), "")] | |
381 | + | else throw(("Unknow status " + flag)) | |
382 | + | else throw("You are not allowed") | |
383 | + | } | |
384 | + | ||
385 | + | ||
386 | + | ||
387 | + | @Callable(i) | |
388 | + | func deleteArtwork (artId,addr) = { | |
389 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
390 | + | let id = toBase58String(i.transactionId) | |
391 | + | let addressToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
392 | + | then addr | |
393 | + | else caller | |
394 | + | let entryExist = getStringByKey(keyArtName(addressToUse, artId)) | |
395 | + | if ((entryExist == "")) | |
396 | + | then throw("No art matching for this address") | |
397 | + | else { | |
398 | + | let sha256Hash = getStringByKey(keyArtHashByTxidAddr(addressToUse, artId)) | |
399 | + | if ((sha256Hash == "")) | |
400 | + | then throw("No art hash matching for this address") | |
401 | + | else { | |
402 | + | let signID = getStringByKey(keyArtSignID(addressToUse, artId)) | |
403 | + | if ((signID == "")) | |
404 | + | then throw("No SIGN ID matching") | |
405 | + | else { | |
406 | + | 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))] | |
407 | + | let artworkMinted = isArtMinted(addressToUse, artId) | |
408 | + | if (!(artworkMinted)) | |
409 | + | then if (!(dappRunning)) | |
410 | + | then throw(maintenanceMSG) | |
411 | + | else dataToDelete | |
412 | + | else if (containsElement([chris, toString(this)], caller)) | |
413 | + | then dataToDelete | |
414 | + | else throw("Art already minted, cannot delete") | |
415 | + | } | |
416 | + | } | |
417 | + | } | |
418 | + | } | |
419 | + | ||
420 | + | ||
421 | + | ||
422 | + | @Callable(i) | |
423 | + | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
424 | + | then throw(maintenanceMSG) | |
425 | + | else { | |
426 | + | let id = toBase58String(i.transactionId) | |
427 | + | let caller = toBase58String(i.caller.bytes) | |
428 | + | let sellDate = lastBlock.timestamp | |
429 | + | let artworkName = getStringByKey(keyArtName(caller, artId)) | |
430 | + | if ((artworkName == "")) | |
431 | + | then throw("This art doesn't match match your account") | |
432 | + | else { | |
433 | + | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
434 | + | if ((size(split(exportCID, "/")[0]) != 59)) | |
435 | + | then throw("You cannot sell art with no export file") | |
436 | + | else { | |
437 | + | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
438 | + | if ((size(exportHash) != 64)) | |
439 | + | then throw("You cannot sell art with no export hash") | |
440 | + | else if (if (if ((assetId != toBase58String(signAssetId))) | |
441 | + | then (assetId != toBase58String(wavesAssetId)) | |
442 | + | else false) | |
443 | + | then (assetId != toBase58String(usdnAssetId)) | |
444 | + | else false) | |
445 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
446 | + | else { | |
447 | + | let minSellWaves = if (unitTest) | |
448 | + | then 1 | |
449 | + | else getIntegerByKeyFromOracle("waves_min_sell") | |
450 | + | let minSellUsdn = 1000000 | |
451 | + | let minSellSign = if (unitTest) | |
452 | + | then 1 | |
453 | + | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
454 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
455 | + | then (minSellUsdn > price) | |
456 | + | else false) | |
457 | + | then (price != 0) | |
458 | + | else false) | |
459 | + | then true | |
460 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
461 | + | then (minSellSign > price) | |
462 | + | else false) | |
463 | + | then (price != 0) | |
464 | + | else false) | |
465 | + | then true | |
466 | + | else if (if ((assetId == toBase58String(wavesAssetId))) | |
467 | + | then (minSellWaves > price) | |
468 | + | else false) | |
469 | + | then (price != 0) | |
470 | + | else false) | |
471 | + | then throw("Wrong minimum sell price") | |
472 | + | else { | |
473 | + | let userIsRegistered = getStringByKeyFromUsers(keyUserStatus(caller)) | |
474 | + | if (if ((userIsRegistered == "")) | |
475 | + | then true | |
476 | + | else (userIsRegistered == userAllowed)) | |
477 | + | then throw("Register this account first") | |
478 | + | else if ((userIsRegistered == userSuspended)) | |
479 | + | then throw("Account suspended") | |
480 | + | else if ((userIsRegistered == userRemoved)) | |
481 | + | then throw("Account deleted") | |
482 | + | else { | |
483 | + | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
484 | + | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
485 | + | if ((maxMint > 10)) | |
486 | + | then throw("10 editions max per artwork") | |
487 | + | else if (if ((amountSold != 0)) | |
488 | + | then (amountSold == maxCanSell) | |
489 | + | else false) | |
490 | + | then throw("Max edition reached.") | |
491 | + | else if (if ((amountSold > 0)) | |
492 | + | then (maxCanSell != maxMint) | |
493 | + | else false) | |
494 | + | then throw("Cannot change maximum issuable anymore") | |
495 | + | else { | |
496 | + | let sellStatus = if (if ((price > 0)) | |
497 | + | then (maxMint > 0) | |
498 | + | else false) | |
499 | + | then true | |
500 | + | else false | |
501 | + | [BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId)] | |
502 | + | } | |
503 | + | } | |
504 | + | } | |
505 | + | } | |
506 | + | } | |
507 | + | } | |
508 | + | } | |
509 | + | ||
510 | + | ||
511 | + | ||
512 | + | @Callable(i) | |
513 | + | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
514 | + | then throw(maintenanceMSG) | |
515 | + | else { | |
516 | + | let id = toBase58String(i.transactionId) | |
517 | + | let caller = toBase58String(i.caller.bytes) | |
518 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
519 | + | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
520 | + | let artworkName = getStringByKey(keyArtName(issuer, artId)) | |
521 | + | if ((artworkName == "")) | |
522 | + | then throw("Art doesn't exist") | |
523 | + | else { | |
524 | + | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
525 | + | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
526 | + | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
527 | + | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
528 | + | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
529 | + | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
530 | + | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
531 | + | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
532 | + | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
533 | + | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
534 | + | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
535 | + | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
536 | + | if (if (if ((0 >= artworkPrice)) | |
537 | + | then true | |
538 | + | else !(isOnSale)) | |
539 | + | then true | |
540 | + | else (0 >= maxCanSell)) | |
541 | + | then throw("Art not for sale") | |
542 | + | else { | |
543 | + | let payment = value(i.payments[0]) | |
544 | + | let amount = value(payment.amount) | |
545 | + | let assetId = if (!(isDefined(payment.assetId))) | |
546 | + | then unit | |
547 | + | else if (if ((size(priceAssetId) > 0)) | |
548 | + | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
549 | + | else false) | |
550 | + | then payment.assetId | |
551 | + | else throw("Wrong asset id") | |
552 | + | if (if ((assetId == unit)) | |
553 | + | then (priceAssetId != "") | |
554 | + | else false) | |
555 | + | then throw("Wrong asset id") | |
556 | + | else { | |
557 | + | let isWhitelisted = checkWhitelist(issuer) | |
558 | + | let cut = if ((isWhitelisted == 1)) | |
559 | + | then 0 | |
560 | + | else if ((priceAssetId == toBase58String(signAssetId))) | |
561 | + | then 8 | |
562 | + | else 10 | |
563 | + | let amountForSign = fraction(amount, cut, 100) | |
564 | + | let amountForCreator = (amount - amountForSign) | |
565 | + | if ((amountSold == maxCanSell)) | |
566 | + | then throw("Art sold out") | |
567 | + | else if ((artworkPrice != amount)) | |
568 | + | then throw("Payment don't match") | |
569 | + | else { | |
570 | + | let newAmountSold = (amountSold + 1) | |
571 | + | let entryDate = lastBlock.timestamp | |
572 | + | let issueMeta = ((((((((((((((((((((((((((("Creator: " + issuer) + ", | |
573 | + | ArtID: ") + artId) + ", | |
574 | + | SignID: ") + signID) + ", | |
575 | + | Artwork name: ") + artworkName) + ", | |
576 | + | Artwork description: ") + description) + ", | |
577 | + | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + ", | |
578 | + | Max issuable: ") + toString(maxCanSell)) + ", | |
579 | + | Source hash: ") + sourceHash) + ", | |
580 | + | Display cid: ") + displayCID) + ", | |
581 | + | Export cid: ") + exportCID) + ", | |
582 | + | Export hash: ") + exportHash) + ", | |
583 | + | Licence cid: ") + licenceCID) + ", | |
584 | + | Licence hash: ") + licenceHash) | |
585 | + | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
586 | + | let idNFT = calculateAssetId(issueNFT) | |
587 | + | let sellStatus = if ((newAmountSold == maxCanSell)) | |
588 | + | then false | |
589 | + | else true | |
590 | + | [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)] | |
591 | + | } | |
592 | + | } | |
593 | + | } | |
594 | + | } | |
595 | + | } | |
596 | + | ||
597 | + |
github/deemru/w8io/026f985 57.96 ms ◑