tx · 3Zsny5HErKdSyZXBHfVaD5EXPsX12byHfp9fok4bGU5v 3N2birEqgvLjX9HpZ2e4wwWHLxQmv6c11co: -0.01000000 Waves 2022.02.15 06:43 [1924222] smart account 3N2birEqgvLjX9HpZ2e4wwWHLxQmv6c11co > SELF 0.00000000 Waves
{ "type": 13, "id": "3Zsny5HErKdSyZXBHfVaD5EXPsX12byHfp9fok4bGU5v", "fee": 1000000, "feeAssetId": null, "timestamp": 1644896625714, "version": 2, "chainId": 84, "sender": "3N2birEqgvLjX9HpZ2e4wwWHLxQmv6c11co", "senderPublicKey": "3AdBvW5b33qStuPhuWAsejmF1TJS4CW5BR4Zc1ZcghkY", "proofs": [ "2nzzLDRH37jW8bSRnGYNLrdgkT1ihG8R8MXZ96izGLxYEY3kv2czg4vF5hhjnhFx2sjtjZgV1Ub2SMYnaPStki6R" ], "script": "base64:AAIFAAAAAAAAAFQIAhIOCgwICAgICAgICAgICAgSDQoLCAgICAgICAgICAgSBgoECAgICBIECgIICBIHCgUIAQEIARIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAgAAABHAAAAAAh1bml0VGVzdAYAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGFZakUyN0FhNzlkN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AAAAEFAAAADXJldHVybk1vbmV5VG8JAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAieoNcQ==", "height": 1924222, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
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("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 keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller) | |
133 | + | ||
134 | + | ||
135 | + | func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller) | |
136 | + | ||
137 | + | ||
138 | + | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
139 | + | ||
140 | + | ||
141 | + | func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller) | |
142 | + | ||
143 | + | ||
144 | + | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
145 | + | ||
146 | + | ||
147 | + | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
148 | + | ||
149 | + | ||
150 | + | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
151 | + | ||
152 | + | ||
153 | + | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
154 | + | ||
155 | + | ||
156 | + | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
157 | + | ||
158 | + | ||
159 | + | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
160 | + | ||
161 | + | ||
162 | + | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
163 | + | then throw("Wrong Display CID") | |
164 | + | else if (!(validateCID(cidExport))) | |
165 | + | then throw("Wrong Export CID") | |
166 | + | else if (if ((cidLicence != "")) | |
167 | + | then !(validateCID(cidLicence)) | |
168 | + | else false) | |
169 | + | then throw("Wrong Licence CID") | |
170 | + | else true | |
171 | + | ||
172 | + | ||
173 | + | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
174 | + | then throw("Export Hash 64 char. max") | |
175 | + | else if (!(validateHash(sha256Licence))) | |
176 | + | then throw("Licence Hash 64 char. max") | |
177 | + | else true | |
178 | + | ||
179 | + | ||
180 | + | func validateString (str,max) = if ((size(str) == 0)) | |
181 | + | then throw("Field cannot be is empty") | |
182 | + | else if ((size(str) > max)) | |
183 | + | then throw((str + " is too long")) | |
184 | + | else true | |
185 | + | ||
186 | + | ||
187 | + | func validateUser (caller) = { | |
188 | + | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
189 | + | if (if ((userStatus == userUnregistered)) | |
190 | + | then true | |
191 | + | else (userStatus == userAllowed)) | |
192 | + | then "Register this account first with \"Account\" tab" | |
193 | + | else if ((userStatus == userSuspended)) | |
194 | + | then "Account suspended" | |
195 | + | else if ((userStatus == userRemoved)) | |
196 | + | then "Account removed" | |
197 | + | else "" | |
198 | + | } | |
199 | + | ||
200 | + | ||
201 | + | func setLIcence (cidLicence,sha256Licence) = { | |
202 | + | let cid = if ((size(cidLicence) == 0)) | |
203 | + | then defaultLicence | |
204 | + | else cidLicence | |
205 | + | let hash = if ((size(sha256Licence) == 0)) | |
206 | + | then defaultHashLicence | |
207 | + | else sha256Licence | |
208 | + | $Tuple2(cid, hash) | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags) = { | |
213 | + | let checkUser = validateUser(caller) | |
214 | + | if ((checkUser != "")) | |
215 | + | then throw(checkUser) | |
216 | + | else if ((size(cidDisplay) == 0)) | |
217 | + | then throw("Display CID cannot be empty") | |
218 | + | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
219 | + | then throw("Problem with CID") | |
220 | + | else if (!(validateAllHash(sha256Export, licenceHash))) | |
221 | + | then throw("Problem with Hashes") | |
222 | + | else if (!(validateString(name, 100))) | |
223 | + | then throw("100 Char. max name") | |
224 | + | else if (!(validateString(description, 1000))) | |
225 | + | then throw("1000 Char. max description") | |
226 | + | else if ((size(split(tags, ",")) > 5)) | |
227 | + | then throw("5 tags max.") | |
228 | + | else "" | |
229 | + | } | |
230 | + | ||
231 | + | ||
232 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
233 | + | then throw("No payment attached") | |
234 | + | else { | |
235 | + | let payment = value(i.payments[0]) | |
236 | + | let amount = value(payment.amount) | |
237 | + | $Tuple2(payment, amount) | |
238 | + | } | |
239 | + | ||
240 | + | ||
241 | + | func validatePayment (i) = { | |
242 | + | let $t093789414 = isPayment(i) | |
243 | + | let payment = $t093789414._1 | |
244 | + | let amount = $t093789414._2 | |
245 | + | let assetId = if (if (isDefined(payment.assetId)) | |
246 | + | then (payment.assetId == signAssetId) | |
247 | + | else false) | |
248 | + | then payment.assetId | |
249 | + | else throw("Only SIGN token accepted as transaction fee") | |
250 | + | if ((amount != currentCertificationPrice)) | |
251 | + | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
252 | + | else $Tuple2(amount, assetId) | |
253 | + | } | |
254 | + | ||
255 | + | ||
256 | + | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
257 | + | case b: Int => | |
258 | + | if ((b != 0)) | |
259 | + | then true | |
260 | + | else false | |
261 | + | case _ => | |
262 | + | false | |
263 | + | } | |
264 | + | ||
265 | + | ||
266 | + | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
267 | + | let $t01002110057 = isPayment(i) | |
268 | + | let payment = $t01002110057._1 | |
269 | + | let amount = $t01002110057._2 | |
270 | + | let assetId = if (!(isDefined(payment.assetId))) | |
271 | + | then unit | |
272 | + | else if (if ((size(priceAssetId) > 0)) | |
273 | + | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
274 | + | else false) | |
275 | + | then payment.assetId | |
276 | + | else throw("Wrong asset id") | |
277 | + | if (if ((assetId == unit)) | |
278 | + | then (priceAssetId != "") | |
279 | + | else false) | |
280 | + | then throw("Wrong asset id") | |
281 | + | else if ((artworkPrice != amount)) | |
282 | + | then throw("Payment don't match") | |
283 | + | else $Tuple2(amount, assetId) | |
284 | + | } | |
285 | + | ||
286 | + | ||
287 | + | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
288 | + | then (assetId != toBase58String(wavesAssetId)) | |
289 | + | else false) | |
290 | + | then (assetId != "WAVES") | |
291 | + | else false) | |
292 | + | then (assetId != toBase58String(usdnAssetId)) | |
293 | + | else false) | |
294 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
295 | + | else true | |
296 | + | ||
297 | + | ||
298 | + | func validateMinSell (assetId,price) = { | |
299 | + | let minSellWaves = if (unitTest) | |
300 | + | then 10 | |
301 | + | else getIntegerByKeyFromOracle("waves_min_sell") | |
302 | + | let minSellUsdn = 1000000 | |
303 | + | let minSellSign = if (unitTest) | |
304 | + | then 1 | |
305 | + | else (currentCertificationPrice * 2) | |
306 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
307 | + | then (minSellUsdn > price) | |
308 | + | else false) | |
309 | + | then (price != 0) | |
310 | + | else false) | |
311 | + | then true | |
312 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
313 | + | then (minSellSign > price) | |
314 | + | else false) | |
315 | + | then (price != 0) | |
316 | + | else false) | |
317 | + | then true | |
318 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
319 | + | then true | |
320 | + | else (assetId == "WAVES")) | |
321 | + | then (minSellWaves > price) | |
322 | + | else false) | |
323 | + | then (price != 0) | |
324 | + | else false) | |
325 | + | then throw("Wrong minimum sell price") | |
326 | + | else true | |
327 | + | } | |
328 | + | ||
329 | + | ||
330 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
331 | + | then unit | |
332 | + | else fromBase58String(assetId) | |
333 | + | ||
334 | + | ||
335 | + | func getPriceAssetIdFromBid (bidDataKey) = { | |
336 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
337 | + | if ((bidData == "")) | |
338 | + | then throw("Bid not found") | |
339 | + | else { | |
340 | + | let bidDataArr = split(bidData, "_") | |
341 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
342 | + | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
343 | + | if ((0 >= bidAmount)) | |
344 | + | then throw("Wrong amount") | |
345 | + | else $Tuple2(bidAmount, bidAssetId) | |
346 | + | } | |
347 | + | } | |
348 | + | ||
349 | + | ||
350 | + | func idCallerDate (i) = if (!(dappRunning)) | |
351 | + | then throw(maintenanceMSG) | |
352 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
353 | + | ||
354 | + | ||
355 | + | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
356 | + | let $t01232412384 = idCallerDate(i) | |
357 | + | let id = $t01232412384._1 | |
358 | + | let caller = $t01232412384._2 | |
359 | + | let date = $t01232412384._3 | |
360 | + | let isBid = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
361 | + | then (bidOwner != "") | |
362 | + | else false) | |
363 | + | then (bidId != "") | |
364 | + | else false) | |
365 | + | then true | |
366 | + | else false | |
367 | + | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
368 | + | if (if (if ((blockEnd != 0)) | |
369 | + | then (height >= blockEnd) | |
370 | + | else false) | |
371 | + | then !(isBid) | |
372 | + | else false) | |
373 | + | then throw("Sale ended.") | |
374 | + | else { | |
375 | + | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
376 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
377 | + | let signID = getStringByKey(keySignID(issuer, artId)) | |
378 | + | let artworkName = getStringByKey(keyName(issuer, artId)) | |
379 | + | if ((artworkName == "")) | |
380 | + | then throw("Art doesn't exist") | |
381 | + | else { | |
382 | + | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
383 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
384 | + | let artworkPrice = if (callerIsIssuer) | |
385 | + | then (currentCertificationPrice * 2) | |
386 | + | else getIntegerByKey(keyPrice(issuer, artId)) | |
387 | + | let priceAssetId = if (callerIsIssuer) | |
388 | + | then toBase58String(signAssetId) | |
389 | + | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
390 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
391 | + | if (if (if (!(isBid)) | |
392 | + | then !(callerIsIssuer) | |
393 | + | else false) | |
394 | + | then if (if ((0 >= artworkPrice)) | |
395 | + | then true | |
396 | + | else !(isOnSale)) | |
397 | + | then true | |
398 | + | else (0 >= maxCanSell) | |
399 | + | else false) | |
400 | + | then throw("Art not for sale") | |
401 | + | else if (if (if (!(isBid)) | |
402 | + | then callerIsIssuer | |
403 | + | else false) | |
404 | + | then (0 >= maxCanSell) | |
405 | + | else false) | |
406 | + | then throw("Max issuable not set") | |
407 | + | else { | |
408 | + | let checkUser = validateUser(issuer) | |
409 | + | if (if (isBid) | |
410 | + | then (checkUser != "") | |
411 | + | else false) | |
412 | + | then throw(checkUser) | |
413 | + | else { | |
414 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
415 | + | let $t01416314322 = if (isBid) | |
416 | + | then getPriceAssetIdFromBid(bidDataKey) | |
417 | + | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
418 | + | let amount = $t01416314322._1 | |
419 | + | let assetId = $t01416314322._2 | |
420 | + | let isWhitelisted = checkWhitelist(issuer) | |
421 | + | let cut = if ((isWhitelisted > height)) | |
422 | + | then 0 | |
423 | + | else if ((assetId == signAssetId)) | |
424 | + | then signCut | |
425 | + | else usdnWaveCut | |
426 | + | let amountForSign = fraction(amount, cut, 100) | |
427 | + | let amountForCreator = (amount - amountForSign) | |
428 | + | if ((amountSold == maxCanSell)) | |
429 | + | then throw("Art sold out") | |
430 | + | else { | |
431 | + | let newAmountSold = (amountSold + 1) | |
432 | + | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
433 | + | ArtID: ") + artId) + ", | |
434 | + | SignID: ") + signID) + ", | |
435 | + | Artwork name: ") + artworkName) + ", | |
436 | + | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
437 | + | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
438 | + | let idNFT = calculateAssetId(issueNFT) | |
439 | + | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
440 | + | then true | |
441 | + | else !(isOnSale)) | |
442 | + | then false | |
443 | + | else true | |
444 | + | let receiveNFT = if (if (if ((caller == issuer)) | |
445 | + | then (bidOwner != "") | |
446 | + | else false) | |
447 | + | then (bidId != "") | |
448 | + | else false) | |
449 | + | then addressFromStringValue(bidOwner) | |
450 | + | else i.caller | |
451 | + | let assetIdBid = if (!(isDefined(assetId))) | |
452 | + | then "WAVES" | |
453 | + | else toBase58String(value(assetId)) | |
454 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
455 | + | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
456 | + | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
457 | + | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
458 | + | let soldValue = if (!(isBid)) | |
459 | + | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
460 | + | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
461 | + | let soldData = StringEntry(soldKey, soldValue) | |
462 | + | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] | |
463 | + | if (isBid) | |
464 | + | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
465 | + | else soldData :: buyRes | |
466 | + | } | |
467 | + | } | |
468 | + | } | |
469 | + | } | |
470 | + | } | |
471 | + | } | |
472 | + | ||
473 | + | ||
474 | + | @Callable(i) | |
475 | + | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler) = { | |
476 | + | let $t01699617037 = idCallerDate(i) | |
477 | + | let artId = $t01699617037._1 | |
478 | + | let caller = $t01699617037._2 | |
479 | + | let date = $t01699617037._3 | |
480 | + | if (!(validateHash(sha256Hash))) | |
481 | + | then throw("Hash should be 64 characters maximum") | |
482 | + | else { | |
483 | + | let $t01714217211 = setLIcence(cidLicence, sha256Licence) | |
484 | + | let licenceCID = $t01714217211._1 | |
485 | + | let licenceHash = $t01714217211._2 | |
486 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags) | |
487 | + | if ((validateArtwork != "")) | |
488 | + | then throw("Something went wrong!") | |
489 | + | else { | |
490 | + | let $t01743517477 = validatePayment(i) | |
491 | + | let amount = $t01743517477._1 | |
492 | + | let assetId = $t01743517477._2 | |
493 | + | if (!(isDefined(amount))) | |
494 | + | then throw("Something went wrong") | |
495 | + | else { | |
496 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
497 | + | if ((entryExist != "")) | |
498 | + | then throw("You already added it") | |
499 | + | else { | |
500 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
501 | + | if ((hashExist != "")) | |
502 | + | then throw("Hash already registered") | |
503 | + | else { | |
504 | + | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
505 | + | if (!(isSignCertified)) | |
506 | + | then throw("Sign Certificate not found for this address.") | |
507 | + | 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), StringEntry(keyCrawler(caller, artId), crawler), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
508 | + | } | |
509 | + | } | |
510 | + | } | |
511 | + | } | |
512 | + | } | |
513 | + | } | |
514 | + | ||
515 | + | ||
516 | + | ||
517 | + | @Callable(i) | |
518 | + | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler) = if (!(dappRunning)) | |
519 | + | then throw(maintenanceMSG) | |
520 | + | else { | |
521 | + | let caller = toBase58String(i.caller.bytes) | |
522 | + | let $t02025720326 = setLIcence(cidLicence, sha256Licence) | |
523 | + | let licenceCID = $t02025720326._1 | |
524 | + | let licenceHash = $t02025720326._2 | |
525 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags) | |
526 | + | if ((validateArtwork != "")) | |
527 | + | then throw("Something went wrong!") | |
528 | + | else { | |
529 | + | let entryExist = getStringByKey(keyName(caller, txid)) | |
530 | + | if ((entryExist == "")) | |
531 | + | then throw("Entry not found") | |
532 | + | else { | |
533 | + | let flag = getStringByKey(keyFlag(caller, txid)) | |
534 | + | if ((flag == "ILLEGAL")) | |
535 | + | then throw("Cannot update ILLEGAL artwork") | |
536 | + | else if (!(isArtMinted(caller, txid))) | |
537 | + | 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), StringEntry(keyCrawler(caller, txid), crawler)] | |
538 | + | else throw("Already minted") | |
539 | + | } | |
540 | + | } | |
541 | + | } | |
542 | + | ||
543 | + | ||
544 | + | ||
545 | + | @Callable(i) | |
546 | + | func flagArtwork (artId,addr,flag,note) = { | |
547 | + | let $t02178221815 = idCallerDate(i) | |
548 | + | let id = $t02178221815._1 | |
549 | + | let caller = $t02178221815._2 | |
550 | + | if (containsElement([chris, toString(this)], caller)) | |
551 | + | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
552 | + | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
553 | + | else throw(("Unknow status " + flag)) | |
554 | + | else throw("You are not allowed") | |
555 | + | } | |
556 | + | ||
557 | + | ||
558 | + | ||
559 | + | @Callable(i) | |
560 | + | func deleteArtwork (artId,addr) = { | |
561 | + | let $t02226522298 = idCallerDate(i) | |
562 | + | let id = $t02226522298._1 | |
563 | + | let caller = $t02226522298._2 | |
564 | + | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
565 | + | then addr | |
566 | + | else caller | |
567 | + | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
568 | + | if ((entryExist == "")) | |
569 | + | then throw("No art matching for this address") | |
570 | + | else { | |
571 | + | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
572 | + | if ((sha256Hash == "")) | |
573 | + | then throw("No art hash matching for this address") | |
574 | + | else { | |
575 | + | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
576 | + | if ((signID == "")) | |
577 | + | then throw("No SIGN ID matching") | |
578 | + | else { | |
579 | + | 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(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId))] | |
580 | + | if (!(isArtMinted(addrToUse, artId))) | |
581 | + | then if (!(dappRunning)) | |
582 | + | then throw(maintenanceMSG) | |
583 | + | else dataToDelete | |
584 | + | else if (containsElement([chris, toString(this)], caller)) | |
585 | + | then dataToDelete | |
586 | + | else throw("Art already minted, you cannot delete it") | |
587 | + | } | |
588 | + | } | |
589 | + | } | |
590 | + | } | |
591 | + | ||
592 | + | ||
593 | + | ||
594 | + | @Callable(i) | |
595 | + | func sellArtwork (artId,price,maxMint,assetId,blockEnd) = { | |
596 | + | let $t02512525158 = idCallerDate(i) | |
597 | + | let id = $t02512525158._1 | |
598 | + | let caller = $t02512525158._2 | |
599 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
600 | + | if ((artworkName == "")) | |
601 | + | then throw("This art doesn't match your account") | |
602 | + | else { | |
603 | + | let flag = getStringByKey(keyFlag(caller, artId)) | |
604 | + | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
605 | + | then throw("Flagged artwork") | |
606 | + | else { | |
607 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
608 | + | if ((0 > blockEnd)) | |
609 | + | then throw("Negative end") | |
610 | + | else if (if ((blockEnd > 0)) | |
611 | + | then if ((maxMint != 1)) | |
612 | + | then true | |
613 | + | else (price != 0) | |
614 | + | else false) | |
615 | + | then throw("Timed offer only allowed for unique edition and offer only") | |
616 | + | else { | |
617 | + | let baseHeight = if ((blockEnd == 0)) | |
618 | + | then 0 | |
619 | + | else height | |
620 | + | if (!(acceptedAssetIds(assetId))) | |
621 | + | then throw("Something went wrong!") | |
622 | + | else if (!(validateMinSell(assetId, price))) | |
623 | + | then throw("Something went wrong!") | |
624 | + | else { | |
625 | + | let checkUser = validateUser(caller) | |
626 | + | if ((checkUser != "")) | |
627 | + | then throw(checkUser) | |
628 | + | else { | |
629 | + | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
630 | + | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
631 | + | if ((maxMint > 100)) | |
632 | + | then throw("100 editions max per artwork") | |
633 | + | else if (if ((amountSold != 0)) | |
634 | + | then (amountSold == maxCanSell) | |
635 | + | else false) | |
636 | + | then throw("Max edition reached.") | |
637 | + | else if (if ((amountSold > 0)) | |
638 | + | then (maxCanSell != maxMint) | |
639 | + | else false) | |
640 | + | then throw("Cannot change maximum issuable anymore") | |
641 | + | else if (if ((bidNbr > 0)) | |
642 | + | then (maxCanSell != maxMint) | |
643 | + | else false) | |
644 | + | then throw("Cannot change maximum issuable with active orders") | |
645 | + | else { | |
646 | + | let sellStatus = if (if ((price > 0)) | |
647 | + | then (maxMint > 0) | |
648 | + | else false) | |
649 | + | then true | |
650 | + | else false | |
651 | + | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] | |
652 | + | } | |
653 | + | } | |
654 | + | } | |
655 | + | } | |
656 | + | } | |
657 | + | } | |
658 | + | } | |
659 | + | ||
660 | + | ||
661 | + | ||
662 | + | @Callable(i) | |
663 | + | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
664 | + | ||
665 | + | ||
666 | + | ||
667 | + | @Callable(i) | |
668 | + | func setBid (artId,issuer) = { | |
669 | + | let $t02746827506 = idCallerDate(i) | |
670 | + | let id = $t02746827506._1 | |
671 | + | let caller = $t02746827506._2 | |
672 | + | let date = $t02746827506._3 | |
673 | + | let $t02751227548 = isPayment(i) | |
674 | + | let payment = $t02751227548._1 | |
675 | + | let amount = $t02751227548._2 | |
676 | + | let assetId = if (!(isDefined(payment.assetId))) | |
677 | + | then "WAVES" | |
678 | + | else toBase58String(value(payment.assetId)) | |
679 | + | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
680 | + | if (if ((blockEnd != 0)) | |
681 | + | then (height >= blockEnd) | |
682 | + | else false) | |
683 | + | then throw("Sale ended.") | |
684 | + | else { | |
685 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
686 | + | if (!(acceptedAssetIds(assetId))) | |
687 | + | then throw("asset not accepted") | |
688 | + | else if (!(validateMinSell(assetId, amount))) | |
689 | + | then throw("Wrong min sell") | |
690 | + | else { | |
691 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
692 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
693 | + | if ((0 >= maxCanSell)) | |
694 | + | then throw("No max edition set for this artwork") | |
695 | + | else if ((amountSold >= maxCanSell)) | |
696 | + | then throw("Sold out, you cannot bid") | |
697 | + | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
698 | + | } | |
699 | + | } | |
700 | + | } | |
701 | + | ||
702 | + | ||
703 | + | ||
704 | + | @Callable(i) | |
705 | + | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
706 | + | let caller = toBase58String(i.caller.bytes) | |
707 | + | if ((caller != issuer)) | |
708 | + | then throw("You cannot do this action") | |
709 | + | else buyMint(i, artId, issuer, bidId, bidOwner) | |
710 | + | } | |
711 | + | ||
712 | + | ||
713 | + | ||
714 | + | @Callable(i) | |
715 | + | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
716 | + | let $t02900829068 = idCallerDate(i) | |
717 | + | let id = $t02900829068._1 | |
718 | + | let caller = $t02900829068._2 | |
719 | + | let date = $t02900829068._3 | |
720 | + | if (if ((caller != bidOwner)) | |
721 | + | then (caller != issuer) | |
722 | + | else false) | |
723 | + | then throw("You cannot do this action") | |
724 | + | else { | |
725 | + | let returnMoneyTo = if ((caller == issuer)) | |
726 | + | then bidOwner | |
727 | + | else caller | |
728 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
729 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
730 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
731 | + | if ((bidData == "")) | |
732 | + | then throw("Bid not found") | |
733 | + | else { | |
734 | + | let bidDataArr = split(bidData, "_") | |
735 | + | let assetId = getBidAssetId(bidDataArr[0]) | |
736 | + | let bidStatus = "CANCELED" | |
737 | + | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
738 | + | } | |
739 | + | } | |
740 | + | } | |
741 | + | ||
742 | + |
github/deemru/w8io/026f985 39.63 ms ◑