tx · Ddz2ikkiFQvioUvFMYsWURB2UapyHRb6vUPxJBN6TRzL 3NAUK3dbxTT2SrRus8GpBMc7FnK8tSEUDbm: -0.01000000 Waves 2022.02.02 09:59 [1905648] smart account 3NAUK3dbxTT2SrRus8GpBMc7FnK8tSEUDbm > SELF 0.00000000 Waves
{ "type": 13, "id": "Ddz2ikkiFQvioUvFMYsWURB2UapyHRb6vUPxJBN6TRzL", "fee": 1000000, "feeAssetId": null, "timestamp": 1643785170897, "version": 2, "chainId": 84, "sender": "3NAUK3dbxTT2SrRus8GpBMc7FnK8tSEUDbm", "senderPublicKey": "D16NDB7R6TjQA9KSEEyvkjuZDCCogGEuVPfm6uWKPyKH", "proofs": [ "4UrVWo7MTgJCuUdVRNxSuBrG7qio1Duo2jzAQqvmQnPkTUDKEGkaM3UDh2aYeNa92RDGmqWe3223WK6eCtNBAwvD" ], "script": "base64:AAIEAAAAAAAAAFQIAhINCgsICAgICAgICAgICBIMCgoICAgICAgICAgIEgUKAwgICBIECgIICBIGCgQIAQEIEgQKAggIEgQKAggIEgYKBAgICAgSBQoDCAgIEgMKAQgAAABKAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGF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0VMRUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAApiaWREYXRhS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAKYmlkRGF0YUtleQIAAAABXwUAAAAJYmlkU3RhdHVzCQABLAAAAAIJAAEsAAAAAgUAAAAHYmlkRGF0YQIAAAABXwkAAaQAAAABBQAAAARkYXRlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEmN1cnJlbnRfYmlkYW1vdW50XwUAAAAFYXJ0SWQJAABlAAAAAgUAAAAGYmlkTmJyAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAA6lq9DA==", "height": 1905648, "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 = false | |
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("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
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 usdnWaveCut = 10 | |
31 | + | ||
32 | + | let defaultLicence = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf" | |
33 | + | ||
34 | + | let defaultHashLicence = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639" | |
35 | + | ||
36 | + | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
37 | + | ||
38 | + | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
39 | + | ||
40 | + | let userSuspended = "SUSPENDED" | |
41 | + | ||
42 | + | let userRemoved = "REMOVED" | |
43 | + | ||
44 | + | let userUnregistered = "UNREGISTERED" | |
45 | + | ||
46 | + | let userAllowed = "ALLOWED" | |
47 | + | ||
48 | + | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
49 | + | ||
50 | + | ||
51 | + | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
52 | + | ||
53 | + | ||
54 | + | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
55 | + | ||
56 | + | ||
57 | + | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
58 | + | ||
59 | + | ||
60 | + | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
61 | + | ||
62 | + | ||
63 | + | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
64 | + | ||
65 | + | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
66 | + | case a: String => | |
67 | + | if (contains(a, sha256Hash)) | |
68 | + | then true | |
69 | + | else false | |
70 | + | case _ => | |
71 | + | false | |
72 | + | } | |
73 | + | ||
74 | + | ||
75 | + | func validateCID (cid) = if (contains(cid, "/")) | |
76 | + | then if (if ((76 > size(cid))) | |
77 | + | then (size(split(cid, "/")[0]) == 59) | |
78 | + | else false) | |
79 | + | then (16 > size(split(cid, "/")[1])) | |
80 | + | else false | |
81 | + | else false | |
82 | + | ||
83 | + | ||
84 | + | func validateHash (hash) = (size(hash) == 64) | |
85 | + | ||
86 | + | ||
87 | + | func keyUserStatus (caller) = ("user_status_" + caller) | |
88 | + | ||
89 | + | ||
90 | + | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
91 | + | ||
92 | + | ||
93 | + | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
94 | + | ||
95 | + | ||
96 | + | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
97 | + | ||
98 | + | ||
99 | + | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
100 | + | ||
101 | + | ||
102 | + | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
103 | + | ||
104 | + | ||
105 | + | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
106 | + | ||
107 | + | ||
108 | + | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
109 | + | ||
110 | + | ||
111 | + | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
112 | + | ||
113 | + | ||
114 | + | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
115 | + | ||
116 | + | ||
117 | + | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
118 | + | ||
119 | + | ||
120 | + | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
121 | + | ||
122 | + | ||
123 | + | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
124 | + | ||
125 | + | ||
126 | + | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
127 | + | ||
128 | + | ||
129 | + | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
130 | + | ||
131 | + | ||
132 | + | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
133 | + | ||
134 | + | ||
135 | + | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
136 | + | ||
137 | + | ||
138 | + | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
139 | + | ||
140 | + | ||
141 | + | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
142 | + | ||
143 | + | ||
144 | + | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
145 | + | ||
146 | + | ||
147 | + | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
148 | + | ||
149 | + | ||
150 | + | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
151 | + | ||
152 | + | ||
153 | + | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
154 | + | then throw("Wrong Display CID") | |
155 | + | else if (!(validateCID(cidExport))) | |
156 | + | then throw("Wrong Export CID") | |
157 | + | else if (if ((cidLicence != "")) | |
158 | + | then !(validateCID(cidLicence)) | |
159 | + | else false) | |
160 | + | then throw("Wrong Licence CID") | |
161 | + | else true | |
162 | + | ||
163 | + | ||
164 | + | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
165 | + | then throw("Export Hash 64 char. max") | |
166 | + | else if (!(validateHash(sha256Licence))) | |
167 | + | then throw("Licence Hash 64 char. max") | |
168 | + | else true | |
169 | + | ||
170 | + | ||
171 | + | func validateString (str,max) = if ((size(str) == 0)) | |
172 | + | then throw("Field cannot be is empty") | |
173 | + | else if ((size(str) > max)) | |
174 | + | then throw((str + " is too long")) | |
175 | + | else true | |
176 | + | ||
177 | + | ||
178 | + | func validateUser (caller) = { | |
179 | + | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
180 | + | if (if ((userStatus == userUnregistered)) | |
181 | + | then true | |
182 | + | else (userStatus == userAllowed)) | |
183 | + | then "Register this account first with \"Account\" tab" | |
184 | + | else if ((userStatus == userSuspended)) | |
185 | + | then "Account suspended" | |
186 | + | else if ((userStatus == userRemoved)) | |
187 | + | then "Account removed" | |
188 | + | else "" | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | func setLIcence (cidLicence,sha256Licence) = { | |
193 | + | let cid = if ((size(cidLicence) == 0)) | |
194 | + | then defaultLicence | |
195 | + | else cidLicence | |
196 | + | let hash = if ((size(sha256Licence) == 0)) | |
197 | + | then defaultHashLicence | |
198 | + | else sha256Licence | |
199 | + | $Tuple2(cid, hash) | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags) = { | |
204 | + | let checkUser = validateUser(caller) | |
205 | + | if ((checkUser != "")) | |
206 | + | then throw(checkUser) | |
207 | + | else if ((size(cidDisplay) == 0)) | |
208 | + | then throw("Display CID cannot be empty") | |
209 | + | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
210 | + | then throw("Problem with CID") | |
211 | + | else if (!(validateAllHash(sha256Export, licenceHash))) | |
212 | + | then throw("Problem with Hashes") | |
213 | + | else if (!(validateString(name, 100))) | |
214 | + | then throw("100 Char. max name") | |
215 | + | else if (!(validateString(description, 1000))) | |
216 | + | then throw("1000 Char. max description") | |
217 | + | else if ((size(split(tags, ",")) > 5)) | |
218 | + | then throw("5 tags max.") | |
219 | + | else "" | |
220 | + | } | |
221 | + | ||
222 | + | ||
223 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
224 | + | then throw("No payment attached") | |
225 | + | else { | |
226 | + | let payment = value(i.payments[0]) | |
227 | + | let amount = value(payment.amount) | |
228 | + | $Tuple2(payment, amount) | |
229 | + | } | |
230 | + | ||
231 | + | ||
232 | + | func validatePayment (i) = { | |
233 | + | let $t091649200 = isPayment(i) | |
234 | + | let payment = $t091649200._1 | |
235 | + | let amount = $t091649200._2 | |
236 | + | let assetId = if (if (isDefined(payment.assetId)) | |
237 | + | then (payment.assetId == signAssetId) | |
238 | + | else false) | |
239 | + | then payment.assetId | |
240 | + | else throw("Only SIGN token accepted as transaction fee") | |
241 | + | if ((amount != currentCertificationPrice)) | |
242 | + | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
243 | + | else $Tuple2(amount, assetId) | |
244 | + | } | |
245 | + | ||
246 | + | ||
247 | + | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
248 | + | case b: Int => | |
249 | + | if ((b != 0)) | |
250 | + | then true | |
251 | + | else false | |
252 | + | case _ => | |
253 | + | false | |
254 | + | } | |
255 | + | ||
256 | + | ||
257 | + | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
258 | + | let $t098079843 = isPayment(i) | |
259 | + | let payment = $t098079843._1 | |
260 | + | let amount = $t098079843._2 | |
261 | + | let assetId = if (!(isDefined(payment.assetId))) | |
262 | + | then unit | |
263 | + | else if (if ((size(priceAssetId) > 0)) | |
264 | + | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
265 | + | else false) | |
266 | + | then payment.assetId | |
267 | + | else throw("Wrong asset id") | |
268 | + | if (if ((assetId == unit)) | |
269 | + | then (priceAssetId != "") | |
270 | + | else false) | |
271 | + | then throw("Wrong asset id") | |
272 | + | else if ((artworkPrice != amount)) | |
273 | + | then throw("Payment don't match") | |
274 | + | else $Tuple2(amount, assetId) | |
275 | + | } | |
276 | + | ||
277 | + | ||
278 | + | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
279 | + | then (assetId != toBase58String(wavesAssetId)) | |
280 | + | else false) | |
281 | + | then (assetId != "WAVES") | |
282 | + | else false) | |
283 | + | then (assetId != toBase58String(usdnAssetId)) | |
284 | + | else false) | |
285 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
286 | + | else true | |
287 | + | ||
288 | + | ||
289 | + | func validateMinSell (assetId,price) = { | |
290 | + | let minSellWaves = if (unitTest) | |
291 | + | then 10 | |
292 | + | else getIntegerByKeyFromOracle("waves_min_sell") | |
293 | + | let minSellUsdn = 1000000 | |
294 | + | let minSellSign = if (unitTest) | |
295 | + | then 1 | |
296 | + | else (currentCertificationPrice * 2) | |
297 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
298 | + | then (minSellUsdn > price) | |
299 | + | else false) | |
300 | + | then (price != 0) | |
301 | + | else false) | |
302 | + | then true | |
303 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
304 | + | then (minSellSign > price) | |
305 | + | else false) | |
306 | + | then (price != 0) | |
307 | + | else false) | |
308 | + | then true | |
309 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
310 | + | then true | |
311 | + | else (assetId == "WAVES")) | |
312 | + | then (minSellWaves > price) | |
313 | + | else false) | |
314 | + | then (price != 0) | |
315 | + | else false) | |
316 | + | then throw("Wrong minimum sell price") | |
317 | + | else true | |
318 | + | } | |
319 | + | ||
320 | + | ||
321 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
322 | + | then unit | |
323 | + | else fromBase58String(assetId) | |
324 | + | ||
325 | + | ||
326 | + | func getPriceAssetIdFromBid (bidDataKey) = { | |
327 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
328 | + | if ((bidData == "")) | |
329 | + | then throw("Bid not found") | |
330 | + | else { | |
331 | + | let bidDataArr = split(bidData, "_") | |
332 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
333 | + | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
334 | + | if ((0 >= bidAmount)) | |
335 | + | then throw("Wrong amount") | |
336 | + | else $Tuple2(bidAmount, bidAssetId) | |
337 | + | } | |
338 | + | } | |
339 | + | ||
340 | + | ||
341 | + | func idCallerDate (i) = if (!(dappRunning)) | |
342 | + | then throw(maintenanceMSG) | |
343 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
344 | + | ||
345 | + | ||
346 | + | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
347 | + | then (bidOwner != "") | |
348 | + | else false) | |
349 | + | then (bidId != "") | |
350 | + | else false) | |
351 | + | then true | |
352 | + | else false | |
353 | + | ||
354 | + | ||
355 | + | func getArtData (i,issuer,artId,isBid) = { | |
356 | + | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
357 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
358 | + | let signID = getStringByKey(keySignID(issuer, artId)) | |
359 | + | let artworkName = getStringByKey(keyName(issuer, artId)) | |
360 | + | if ((artworkName == "")) | |
361 | + | then throw("Art doesn't exist") | |
362 | + | else { | |
363 | + | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
364 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
365 | + | let artworkPrice = if (callerIsIssuer) | |
366 | + | then (currentCertificationPrice * 2) | |
367 | + | else getIntegerByKey(keyPrice(issuer, artId)) | |
368 | + | let priceAssetId = if (callerIsIssuer) | |
369 | + | then toBase58String(signAssetId) | |
370 | + | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
371 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
372 | + | if (if (if (!(isBid)) | |
373 | + | then !(callerIsIssuer) | |
374 | + | else false) | |
375 | + | then if (if ((0 >= artworkPrice)) | |
376 | + | then true | |
377 | + | else !(isOnSale)) | |
378 | + | then true | |
379 | + | else (0 >= maxCanSell) | |
380 | + | else false) | |
381 | + | then throw("Art not for sale") | |
382 | + | else if (if (if (!(isBid)) | |
383 | + | then callerIsIssuer | |
384 | + | else false) | |
385 | + | then (0 >= maxCanSell) | |
386 | + | else false) | |
387 | + | then throw("Max issuable not set") | |
388 | + | else $Tuple8(totalNFT, signID, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
389 | + | } | |
390 | + | } | |
391 | + | ||
392 | + | ||
393 | + | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
394 | + | let checkUser = validateUser(issuer) | |
395 | + | if (if (isBid) | |
396 | + | then (checkUser != "") | |
397 | + | else false) | |
398 | + | then throw(checkUser) | |
399 | + | else { | |
400 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
401 | + | let $t01378013909 = if (isBid) | |
402 | + | then getPriceAssetIdFromBid(bidDataKey) | |
403 | + | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
404 | + | let amount = $t01378013909._1 | |
405 | + | let assetId = $t01378013909._2 | |
406 | + | $Tuple3(bidDataKey, amount, assetId) | |
407 | + | } | |
408 | + | } | |
409 | + | ||
410 | + | ||
411 | + | func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = { | |
412 | + | let isWhitelisted = checkWhitelist(issuer) | |
413 | + | let cut = if ((isWhitelisted > height)) | |
414 | + | then 0 | |
415 | + | else if ((assetId == signAssetId)) | |
416 | + | then signCut | |
417 | + | else usdnWaveCut | |
418 | + | let amountForSign = fraction(amount, cut, 100) | |
419 | + | let amountForCreator = (amount - amountForSign) | |
420 | + | if ((amountSold == maxCanSell)) | |
421 | + | then throw("Art sold out") | |
422 | + | else { | |
423 | + | let newAmountSold = (amountSold + 1) | |
424 | + | $Tuple3(amountForSign, amountForCreator, newAmountSold) | |
425 | + | } | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | func getIssueData (issuer,artId,signID,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
430 | + | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
431 | + | ArtID: ") + artId) + ", | |
432 | + | SignID: ") + signID) + ", | |
433 | + | Artwork name: ") + artworkName) + ", | |
434 | + | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
435 | + | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
436 | + | let idNFT = calculateAssetId(issueNFT) | |
437 | + | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
438 | + | then true | |
439 | + | else !(isOnSale)) | |
440 | + | then false | |
441 | + | else true | |
442 | + | let receiveNFT = if (if (if ((caller == issuer)) | |
443 | + | then (bidOwner != "") | |
444 | + | else false) | |
445 | + | then (bidId != "") | |
446 | + | else false) | |
447 | + | then addressFromStringValue(bidOwner) | |
448 | + | else i.caller | |
449 | + | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | func getBidKeyVal (assetId,bidDataKey,date) = { | |
454 | + | let assetIdBid = if (!(isDefined(assetId))) | |
455 | + | then "WAVES" | |
456 | + | else toBase58String(value(assetId)) | |
457 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
458 | + | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
459 | + | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
460 | + | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
461 | + | } | |
462 | + | ||
463 | + | ||
464 | + | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
465 | + | let $t01580615859 = idCallerDate(i) | |
466 | + | let id = $t01580615859._1 | |
467 | + | let caller = $t01580615859._2 | |
468 | + | let date = $t01580615859._3 | |
469 | + | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
470 | + | let $t01594216095 = getArtData(i, issuer, artId, isBid) | |
471 | + | let totalNFT = $t01594216095._1 | |
472 | + | let signID = $t01594216095._2 | |
473 | + | let artworkName = $t01594216095._3 | |
474 | + | let amountSold = $t01594216095._4 | |
475 | + | let artworkPrice = $t01594216095._5 | |
476 | + | let priceAssetId = $t01594216095._6 | |
477 | + | let maxCanSell = $t01594216095._7 | |
478 | + | let isOnSale = $t01594216095._8 | |
479 | + | let $t01610016248 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
480 | + | let bidDataKey = $t01610016248._1 | |
481 | + | let amount = $t01610016248._2 | |
482 | + | let assetId = $t01610016248._3 | |
483 | + | let $t01625316397 = getCommissionData(issuer, assetId, amount, amountSold, maxCanSell) | |
484 | + | let amountForSign = $t01625316397._1 | |
485 | + | let amountForCreator = $t01625316397._2 | |
486 | + | let newAmountSold = $t01625316397._3 | |
487 | + | let $t01640216595 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
488 | + | let issueNFT = $t01640216595._1 | |
489 | + | let idNFT = $t01640216595._2 | |
490 | + | let sellStatus = $t01640216595._3 | |
491 | + | let receiveNFT = $t01640216595._4 | |
492 | + | let $t01660016701 = getBidKeyVal(assetId, bidDataKey, date) | |
493 | + | let assetIdBid = $t01660016701._1 | |
494 | + | let bidDelOld = $t01660016701._2 | |
495 | + | let bidUpdate = $t01660016701._3 | |
496 | + | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
497 | + | let soldValue = if (!(isBid)) | |
498 | + | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
499 | + | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
500 | + | let soldData = StringEntry(soldKey, soldValue) | |
501 | + | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] | |
502 | + | if (isBid) | |
503 | + | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
504 | + | else soldData :: buyRes | |
505 | + | } | |
506 | + | ||
507 | + | ||
508 | + | @Callable(i) | |
509 | + | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
510 | + | let $t01807118112 = idCallerDate(i) | |
511 | + | let artId = $t01807118112._1 | |
512 | + | let caller = $t01807118112._2 | |
513 | + | let date = $t01807118112._3 | |
514 | + | if (!(validateHash(sha256Hash))) | |
515 | + | then throw("Hash should be 64 characters maximum") | |
516 | + | else { | |
517 | + | let $t01821718286 = setLIcence(cidLicence, sha256Licence) | |
518 | + | let licenceCID = $t01821718286._1 | |
519 | + | let licenceHash = $t01821718286._2 | |
520 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags) | |
521 | + | if ((validateArtwork != "")) | |
522 | + | then throw("Something went wrong!") | |
523 | + | else { | |
524 | + | let $t01851018552 = validatePayment(i) | |
525 | + | let amount = $t01851018552._1 | |
526 | + | let assetId = $t01851018552._2 | |
527 | + | if (!(isDefined(amount))) | |
528 | + | then throw("Something went wrong") | |
529 | + | else { | |
530 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
531 | + | if ((entryExist != "")) | |
532 | + | then throw("You already added it") | |
533 | + | else { | |
534 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
535 | + | if ((hashExist != "")) | |
536 | + | then throw("Hash already registered") | |
537 | + | else { | |
538 | + | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
539 | + | if (!(isSignCertified)) | |
540 | + | then throw("Sign Certificate not found for this address.") | |
541 | + | else [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
542 | + | } | |
543 | + | } | |
544 | + | } | |
545 | + | } | |
546 | + | } | |
547 | + | } | |
548 | + | ||
549 | + | ||
550 | + | ||
551 | + | @Callable(i) | |
552 | + | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
553 | + | then throw(maintenanceMSG) | |
554 | + | else { | |
555 | + | let caller = toBase58String(i.caller.bytes) | |
556 | + | let $t02123921308 = setLIcence(cidLicence, sha256Licence) | |
557 | + | let licenceCID = $t02123921308._1 | |
558 | + | let licenceHash = $t02123921308._2 | |
559 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags) | |
560 | + | if ((validateArtwork != "")) | |
561 | + | then throw("Something went wrong!") | |
562 | + | else { | |
563 | + | let entryExist = getStringByKey(keyName(caller, txid)) | |
564 | + | if ((entryExist == "")) | |
565 | + | then throw("Entry not found") | |
566 | + | else { | |
567 | + | let flag = getStringByKey(keyFlag(caller, txid)) | |
568 | + | if ((flag == "ILLEGAL")) | |
569 | + | then throw("Cannot update ILLEGAL artwork") | |
570 | + | else if (!(isArtMinted(caller, txid))) | |
571 | + | then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type)] | |
572 | + | else throw("Already minted") | |
573 | + | } | |
574 | + | } | |
575 | + | } | |
576 | + | ||
577 | + | ||
578 | + | ||
579 | + | @Callable(i) | |
580 | + | func flagArtwork (artId,addr,flag) = { | |
581 | + | let $t02268122714 = idCallerDate(i) | |
582 | + | let id = $t02268122714._1 | |
583 | + | let caller = $t02268122714._2 | |
584 | + | if (containsElement([chris, joep, toString(this)], caller)) | |
585 | + | then if ((flag == "CONSENT")) | |
586 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
587 | + | else if ((flag == "")) | |
588 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
589 | + | else if ((flag == "CHANGE_REQUIRED")) | |
590 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
591 | + | else if (if ((flag == "ILLEGAL")) | |
592 | + | then containsElement([chris, toString(this)], caller) | |
593 | + | else false) | |
594 | + | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDisplayCid(addr, artId), ""), StringEntry(keyExportCid(addr, artId), ""), StringEntry(keyLicenceCid(addr, artId), "")] | |
595 | + | else throw(("Unknow status " + flag)) | |
596 | + | else throw("You are not allowed") | |
597 | + | } | |
598 | + | ||
599 | + | ||
600 | + | ||
601 | + | @Callable(i) | |
602 | + | func deleteArtwork (artId,addr) = { | |
603 | + | let $t02376423797 = idCallerDate(i) | |
604 | + | let id = $t02376423797._1 | |
605 | + | let caller = $t02376423797._2 | |
606 | + | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
607 | + | then addr | |
608 | + | else caller | |
609 | + | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
610 | + | if ((entryExist == "")) | |
611 | + | then throw("No art matching for this address") | |
612 | + | else { | |
613 | + | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
614 | + | if ((sha256Hash == "")) | |
615 | + | then throw("No art hash matching for this address") | |
616 | + | else { | |
617 | + | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
618 | + | if ((signID == "")) | |
619 | + | then throw("No SIGN ID matching") | |
620 | + | else { | |
621 | + | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addr, artId)), DeleteEntry(keyPrice(addr, artId)), DeleteEntry(keyAssetIdAccepted(addr, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse))] | |
622 | + | if (!(isArtMinted(addrToUse, artId))) | |
623 | + | then if (!(dappRunning)) | |
624 | + | then throw(maintenanceMSG) | |
625 | + | else dataToDelete | |
626 | + | else if (containsElement([chris, toString(this)], caller)) | |
627 | + | then dataToDelete | |
628 | + | else throw("Art already minted, you cannot delete it") | |
629 | + | } | |
630 | + | } | |
631 | + | } | |
632 | + | } | |
633 | + | ||
634 | + | ||
635 | + | ||
636 | + | @Callable(i) | |
637 | + | func sellArtwork (artId,price,maxMint,assetId) = { | |
638 | + | let $t02621026243 = idCallerDate(i) | |
639 | + | let id = $t02621026243._1 | |
640 | + | let caller = $t02621026243._2 | |
641 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
642 | + | if ((artworkName == "")) | |
643 | + | then throw("This art doesn't match your account") | |
644 | + | else { | |
645 | + | let exportCID = getStringByKey(keyExportCid(caller, artId)) | |
646 | + | if ((size(split(exportCID, "/")[0]) != 59)) | |
647 | + | then throw("You cannot sell art with no export file") | |
648 | + | else { | |
649 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
650 | + | if (!(acceptedAssetIds(assetId))) | |
651 | + | then throw("Something went wrong!") | |
652 | + | else if (!(validateMinSell(assetId, price))) | |
653 | + | then throw("Something went wrong!") | |
654 | + | else { | |
655 | + | let checkUser = validateUser(caller) | |
656 | + | if ((checkUser != "")) | |
657 | + | then throw(checkUser) | |
658 | + | else { | |
659 | + | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
660 | + | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
661 | + | if ((maxMint > 10)) | |
662 | + | then throw("10 editions max per artwork") | |
663 | + | else if (if ((amountSold != 0)) | |
664 | + | then (amountSold == maxCanSell) | |
665 | + | else false) | |
666 | + | then throw("Max edition reached.") | |
667 | + | else if (if ((amountSold > 0)) | |
668 | + | then (maxCanSell != maxMint) | |
669 | + | else false) | |
670 | + | then throw("Cannot change maximum issuable anymore") | |
671 | + | else if (if ((bidNbr > 0)) | |
672 | + | then (maxCanSell != maxMint) | |
673 | + | else false) | |
674 | + | then throw("Cannot change maximum issuable with active orders") | |
675 | + | else { | |
676 | + | let sellStatus = if (if ((price > 0)) | |
677 | + | then (maxMint > 0) | |
678 | + | else false) | |
679 | + | then true | |
680 | + | else false | |
681 | + | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)] | |
682 | + | } | |
683 | + | } | |
684 | + | } | |
685 | + | } | |
686 | + | } | |
687 | + | } | |
688 | + | ||
689 | + | ||
690 | + | ||
691 | + | @Callable(i) | |
692 | + | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
693 | + | ||
694 | + | ||
695 | + | ||
696 | + | @Callable(i) | |
697 | + | func setBid (artId,issuer) = { | |
698 | + | let $t02825428292 = idCallerDate(i) | |
699 | + | let id = $t02825428292._1 | |
700 | + | let caller = $t02825428292._2 | |
701 | + | let date = $t02825428292._3 | |
702 | + | let $t02829828334 = isPayment(i) | |
703 | + | let payment = $t02829828334._1 | |
704 | + | let amount = $t02829828334._2 | |
705 | + | let assetId = if (!(isDefined(payment.assetId))) | |
706 | + | then "WAVES" | |
707 | + | else toBase58String(value(payment.assetId)) | |
708 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
709 | + | if (!(acceptedAssetIds(assetId))) | |
710 | + | then throw("asset not accepted") | |
711 | + | else if (!(validateMinSell(assetId, amount))) | |
712 | + | then throw("Wrong min sell") | |
713 | + | else { | |
714 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
715 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
716 | + | if ((0 >= maxCanSell)) | |
717 | + | then throw("No max edition set for this artwork") | |
718 | + | else if ((amountSold >= maxCanSell)) | |
719 | + | then throw("Sold out, you cannot bid") | |
720 | + | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
721 | + | } | |
722 | + | } | |
723 | + | ||
724 | + | ||
725 | + | ||
726 | + | @Callable(i) | |
727 | + | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
728 | + | let caller = toBase58String(i.caller.bytes) | |
729 | + | if ((caller != issuer)) | |
730 | + | then throw("You cannot do this action") | |
731 | + | else buyMint(i, artId, issuer, bidId, bidOwner) | |
732 | + | } | |
733 | + | ||
734 | + | ||
735 | + | ||
736 | + | @Callable(i) | |
737 | + | func cancelBid (artId,issuer,bidId) = { | |
738 | + | let $t02951529669 = idCallerDate(i) | |
739 | + | let id = $t02951529669._1 | |
740 | + | let caller = $t02951529669._2 | |
741 | + | let date = $t02951529669._3 | |
742 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
743 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
744 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
745 | + | if ((bidData == "")) | |
746 | + | then throw("Bid not found") | |
747 | + | else { | |
748 | + | let bidDataArr = split(bidData, "_") | |
749 | + | let assetId = getBidAssetId(bidDataArr[0]) | |
750 | + | let bidStatus = "CANCELED" | |
751 | + | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
752 | + | } | |
753 | + | } | |
754 | + | ||
755 | + | ||
756 | + | ||
757 | + | @Callable(i) | |
758 | + | func deleteEntry (entry) = { | |
759 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
760 | + | if ((caller == chris)) | |
761 | + | then [DeleteEntry(entry)] | |
762 | + | else throw("no") | |
763 | + | } | |
764 | + | ||
765 | + |
github/deemru/w8io/026f985 37.24 ms ◑