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