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