tx · 3eFHTHb1qYUbE4YyxMSAyKx8tL6cUUQoWj9tFvKrtrXx 3N3ZCErmvoGXynDsDVSYouNYr3p5LFJ6HMy: -0.01000000 Waves 2021.02.20 06:37 [1405927] smart account 3N3ZCErmvoGXynDsDVSYouNYr3p5LFJ6HMy > SELF 0.00000000 Waves
{ "type": 13, "id": "3eFHTHb1qYUbE4YyxMSAyKx8tL6cUUQoWj9tFvKrtrXx", "fee": 1000000, "feeAssetId": null, "timestamp": 1613792282395, "version": 2, "chainId": 84, "sender": "3N3ZCErmvoGXynDsDVSYouNYr3p5LFJ6HMy", "senderPublicKey": "5G6fj5QhxsFXvJeHiJ3bZyLJLNZhJkn49FL99AfKFXMZ", "proofs": [ "5FGVPGBZW8GhfYnpRRzGRVykUiwhiKw4nR4DJUjRTgAoEfR5J4SdwemGxuK3Vhkda7cmspLdPZ1Upp9xp3L1N2dU" ], "script": "base64:AAIEAAAAAAAAAFYIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIFCgMICAgSAwoBCAAAAEkAAAAACHVuaXRUZXN0BgAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECA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AAAdiaWREYXRhAgAAAAFfBAAAAAdhc3NldElkCQEAAAANZ2V0QmlkQXNzZXRJZAAAAAEJAAGRAAAAAgUAAAAKYmlkRGF0YUFycgAAAAAAAAAAAAQAAAAJYmlkU3RhdHVzAgAAAAhDQU5DRUxFRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmJpZERhdGFLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApiaWREYXRhS2V5AgAAAAFfBQAAAAliaWRTdGF0dXMJAAEsAAAAAgkAASwAAAACBQAAAAdiaWREYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmNhbGxlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAACne1h8", "height": 1405927, "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 $t090869122 = isPayment(i) | |
237 | + | let payment = $t090869122._1 | |
238 | + | let amount = $t090869122._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 $t098369872 = isPayment(i) | |
263 | + | let payment = $t098369872._1 | |
264 | + | let amount = $t098369872._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 (if ((assetId != toBase58String(signAssetId))) | |
283 | + | then (assetId != toBase58String(wavesAssetId)) | |
284 | + | else false) | |
285 | + | then (assetId != "WAVES") | |
286 | + | else false) | |
287 | + | then (assetId != toBase58String(usdnAssetId)) | |
288 | + | else false) | |
289 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
290 | + | else true | |
291 | + | ||
292 | + | ||
293 | + | func validateMinSell (assetId,price) = { | |
294 | + | let minSellWaves = if (unitTest) | |
295 | + | then 10 | |
296 | + | else getIntegerByKeyFromOracle("waves_min_sell") | |
297 | + | let minSellUsdn = 1000000 | |
298 | + | let minSellSign = if (unitTest) | |
299 | + | then 1 | |
300 | + | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
301 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
302 | + | then (minSellUsdn > price) | |
303 | + | else false) | |
304 | + | then (price != 0) | |
305 | + | else false) | |
306 | + | then true | |
307 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
308 | + | then (minSellSign > price) | |
309 | + | else false) | |
310 | + | then (price != 0) | |
311 | + | else false) | |
312 | + | then true | |
313 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
314 | + | then true | |
315 | + | else (assetId == "WAVES")) | |
316 | + | then (minSellWaves > price) | |
317 | + | else false) | |
318 | + | then (price != 0) | |
319 | + | else false) | |
320 | + | then throw("Wrong minimum sell price") | |
321 | + | else true | |
322 | + | } | |
323 | + | ||
324 | + | ||
325 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
326 | + | then unit | |
327 | + | else fromBase58String(assetId) | |
328 | + | ||
329 | + | ||
330 | + | func getPriceAssetIdFromBid (bidDataKey) = { | |
331 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
332 | + | if ((bidData == "")) | |
333 | + | then throw("Bid not found") | |
334 | + | else { | |
335 | + | let bidDataArr = split(bidData, "_") | |
336 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
337 | + | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
338 | + | if ((0 >= bidAmount)) | |
339 | + | then throw("Wrong amount") | |
340 | + | else $Tuple2(bidAmount, bidAssetId) | |
341 | + | } | |
342 | + | } | |
343 | + | ||
344 | + | ||
345 | + | func idCallerDate (i) = if (!(dappRunning)) | |
346 | + | then throw(maintenanceMSG) | |
347 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
348 | + | ||
349 | + | ||
350 | + | func getArtData (issuer,artId) = { | |
351 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
352 | + | let signID = getStringByKey(keySignID(issuer, artId)) | |
353 | + | let artworkName = getStringByKey(keyName(issuer, artId)) | |
354 | + | if ((artworkName == "")) | |
355 | + | then throw("Art doesn't exist") | |
356 | + | else { | |
357 | + | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
358 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
359 | + | let artworkPrice = getIntegerByKey(keyPrice(issuer, artId)) | |
360 | + | let priceAssetId = getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
361 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
362 | + | if (if (if ((0 >= artworkPrice)) | |
363 | + | then true | |
364 | + | else !(isOnSale)) | |
365 | + | then true | |
366 | + | else (0 >= maxCanSell)) | |
367 | + | then throw("Art not for sale") | |
368 | + | else $Tuple7(totalNFT, signID, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell) | |
369 | + | } | |
370 | + | } | |
371 | + | ||
372 | + | ||
373 | + | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice) = { | |
374 | + | let isBid = if (if (if ((caller == issuer)) | |
375 | + | then (bidOwner != "") | |
376 | + | else false) | |
377 | + | then (bidId != "") | |
378 | + | else false) | |
379 | + | then true | |
380 | + | else false | |
381 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
382 | + | let $t01322513354 = if (isBid) | |
383 | + | then getPriceAssetIdFromBid(bidDataKey) | |
384 | + | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
385 | + | let amount = $t01322513354._1 | |
386 | + | let assetId = $t01322513354._2 | |
387 | + | $Tuple4(isBid, bidDataKey, amount, assetId) | |
388 | + | } | |
389 | + | ||
390 | + | ||
391 | + | func getCommissionData (issuer,priceAssetId,amount,amountSold,maxCanSell) = { | |
392 | + | let isWhitelisted = checkWhitelist(issuer) | |
393 | + | let cut = if ((isWhitelisted > height)) | |
394 | + | then 0 | |
395 | + | else if ((priceAssetId == toBase58String(signAssetId))) | |
396 | + | then signCut | |
397 | + | else usdnWaveCut | |
398 | + | let amountForSign = fraction(amount, cut, 100) | |
399 | + | let amountForCreator = (amount - amountForSign) | |
400 | + | if ((amountSold == maxCanSell)) | |
401 | + | then throw("Art sold out") | |
402 | + | else { | |
403 | + | let newAmountSold = (amountSold + 1) | |
404 | + | $Tuple3(amountForSign, amountForCreator, newAmountSold) | |
405 | + | } | |
406 | + | } | |
407 | + | ||
408 | + | ||
409 | + | func getIssueData (issuer,artId,signID,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i) = { | |
410 | + | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
411 | + | ArtID: ") + artId) + ", | |
412 | + | SignID: ") + signID) + ", | |
413 | + | Artwork name: ") + artworkName) + ", | |
414 | + | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
415 | + | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
416 | + | let idNFT = calculateAssetId(issueNFT) | |
417 | + | let sellStatus = if ((newAmountSold == maxCanSell)) | |
418 | + | then false | |
419 | + | else true | |
420 | + | let receiveNFT = if (if (if ((caller == issuer)) | |
421 | + | then (bidOwner != "") | |
422 | + | else false) | |
423 | + | then (bidId != "") | |
424 | + | else false) | |
425 | + | then addressFromStringValue(bidOwner) | |
426 | + | else i.caller | |
427 | + | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
428 | + | } | |
429 | + | ||
430 | + | ||
431 | + | func getBidKeyVal (assetId,bidDataKey,date) = { | |
432 | + | let assetIdBid = if (!(isDefined(assetId))) | |
433 | + | then "WAVES" | |
434 | + | else toBase58String(value(assetId)) | |
435 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
436 | + | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
437 | + | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
438 | + | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
439 | + | } | |
440 | + | ||
441 | + | ||
442 | + | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
443 | + | let $t01524315302 = idCallerDate(i) | |
444 | + | let id = $t01524315302._1 | |
445 | + | let caller = $t01524315302._2 | |
446 | + | let date = $t01524315302._3 | |
447 | + | let $t01530715440 = getArtData(issuer, artId) | |
448 | + | let totalNFT = $t01530715440._1 | |
449 | + | let signID = $t01530715440._2 | |
450 | + | let artworkName = $t01530715440._3 | |
451 | + | let amountSold = $t01530715440._4 | |
452 | + | let artworkPrice = $t01530715440._5 | |
453 | + | let priceAssetId = $t01530715440._6 | |
454 | + | let maxCanSell = $t01530715440._7 | |
455 | + | let $t01544515593 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice) | |
456 | + | let isBid = $t01544515593._1 | |
457 | + | let bidDataKey = $t01544515593._2 | |
458 | + | let amount = $t01544515593._3 | |
459 | + | let assetId = $t01544515593._4 | |
460 | + | let $t01559815747 = getCommissionData(issuer, priceAssetId, amount, amountSold, maxCanSell) | |
461 | + | let amountForSign = $t01559815747._1 | |
462 | + | let amountForCreator = $t01559815747._2 | |
463 | + | let newAmountSold = $t01559815747._3 | |
464 | + | let $t01575215935 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i) | |
465 | + | let issueNFT = $t01575215935._1 | |
466 | + | let idNFT = $t01575215935._2 | |
467 | + | let sellStatus = $t01575215935._3 | |
468 | + | let receiveNFT = $t01575215935._4 | |
469 | + | let $t01594016041 = getBidKeyVal(assetId, bidDataKey, date) | |
470 | + | let assetIdBid = $t01594016041._1 | |
471 | + | let bidDelOld = $t01594016041._2 | |
472 | + | let bidUpdate = $t01594016041._3 | |
473 | + | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
474 | + | let soldValue = if (!(isBid)) | |
475 | + | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
476 | + | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
477 | + | let soldData = StringEntry(soldKey, soldValue) | |
478 | + | 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)] | |
479 | + | if (isBid) | |
480 | + | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
481 | + | else soldData :: buyRes | |
482 | + | } | |
483 | + | ||
484 | + | ||
485 | + | @Callable(i) | |
486 | + | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
487 | + | let $t01742517466 = idCallerDate(i) | |
488 | + | let artId = $t01742517466._1 | |
489 | + | let caller = $t01742517466._2 | |
490 | + | let date = $t01742517466._3 | |
491 | + | if (!(validateHash(sha256Hash))) | |
492 | + | then throw("Hash should be 64 characters maximum") | |
493 | + | else { | |
494 | + | let $t01757117640 = setLIcence(cidLicence, sha256Licence) | |
495 | + | let licenceCID = $t01757117640._1 | |
496 | + | let licenceHash = $t01757117640._2 | |
497 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
498 | + | if ((validateArtwork != "")) | |
499 | + | then throw("Something went wrong!") | |
500 | + | else { | |
501 | + | let $t01787317915 = validatePayment(i) | |
502 | + | let amount = $t01787317915._1 | |
503 | + | let assetId = $t01787317915._2 | |
504 | + | if (!(isDefined(amount))) | |
505 | + | then throw("Something went wrong") | |
506 | + | else { | |
507 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
508 | + | if ((entryExist != "")) | |
509 | + | then throw("You already added it") | |
510 | + | else { | |
511 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
512 | + | if ((hashExist != "")) | |
513 | + | then throw("Hash already registered") | |
514 | + | else { | |
515 | + | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
516 | + | if (!(isSignCertified)) | |
517 | + | then throw("Sign Certificate not found for this address.") | |
518 | + | 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)] | |
519 | + | } | |
520 | + | } | |
521 | + | } | |
522 | + | } | |
523 | + | } | |
524 | + | } | |
525 | + | ||
526 | + | ||
527 | + | ||
528 | + | @Callable(i) | |
529 | + | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
530 | + | then throw(maintenanceMSG) | |
531 | + | else { | |
532 | + | let caller = toBase58String(i.caller.bytes) | |
533 | + | let $t02068320752 = setLIcence(cidLicence, sha256Licence) | |
534 | + | let licenceCID = $t02068320752._1 | |
535 | + | let licenceHash = $t02068320752._2 | |
536 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
537 | + | if ((validateArtwork != "")) | |
538 | + | then throw("Something went wrong!") | |
539 | + | else { | |
540 | + | let entryExist = getStringByKey(keyName(caller, txid)) | |
541 | + | if ((entryExist == "")) | |
542 | + | then throw("Entry not found") | |
543 | + | else { | |
544 | + | let flag = getStringByKey(keyFlag(caller, txid)) | |
545 | + | if ((flag == "ILLEGAL")) | |
546 | + | then throw("Cannot update ILLEGAL artwork") | |
547 | + | else if (!(isArtMinted(caller, txid))) | |
548 | + | 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)] | |
549 | + | else throw("Already minted") | |
550 | + | } | |
551 | + | } | |
552 | + | } | |
553 | + | ||
554 | + | ||
555 | + | ||
556 | + | @Callable(i) | |
557 | + | func flagArtwork (artId,addr,flag) = { | |
558 | + | let $t02225722290 = idCallerDate(i) | |
559 | + | let id = $t02225722290._1 | |
560 | + | let caller = $t02225722290._2 | |
561 | + | if (containsElement([chris, joep, toString(this)], caller)) | |
562 | + | then if ((flag == "CONSENT")) | |
563 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
564 | + | else if ((flag == "")) | |
565 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
566 | + | else if ((flag == "CHANGE_REQUIRED")) | |
567 | + | then [StringEntry(keyFlag(addr, artId), flag)] | |
568 | + | else if (if ((flag == "ILLEGAL")) | |
569 | + | then containsElement([chris, toString(this)], caller) | |
570 | + | else false) | |
571 | + | 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), "")] | |
572 | + | else throw(("Unknow status " + flag)) | |
573 | + | else throw("You are not allowed") | |
574 | + | } | |
575 | + | ||
576 | + | ||
577 | + | ||
578 | + | @Callable(i) | |
579 | + | func deleteArtwork (artId,addr) = { | |
580 | + | let $t02334023373 = idCallerDate(i) | |
581 | + | let id = $t02334023373._1 | |
582 | + | let caller = $t02334023373._2 | |
583 | + | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
584 | + | then addr | |
585 | + | else caller | |
586 | + | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
587 | + | if ((entryExist == "")) | |
588 | + | then throw("No art matching for this address") | |
589 | + | else { | |
590 | + | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
591 | + | if ((sha256Hash == "")) | |
592 | + | then throw("No art hash matching for this address") | |
593 | + | else { | |
594 | + | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
595 | + | if ((signID == "")) | |
596 | + | then throw("No SIGN ID matching") | |
597 | + | else { | |
598 | + | 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))] | |
599 | + | if (!(isArtMinted(addrToUse, artId))) | |
600 | + | then if (!(dappRunning)) | |
601 | + | then throw(maintenanceMSG) | |
602 | + | else dataToDelete | |
603 | + | else if (containsElement([chris, toString(this)], caller)) | |
604 | + | then dataToDelete | |
605 | + | else throw("Art already minted, you cannot delete it") | |
606 | + | } | |
607 | + | } | |
608 | + | } | |
609 | + | } | |
610 | + | ||
611 | + | ||
612 | + | ||
613 | + | @Callable(i) | |
614 | + | func sellArtwork (artId,price,maxMint,assetId) = { | |
615 | + | let $t02578625819 = idCallerDate(i) | |
616 | + | let id = $t02578625819._1 | |
617 | + | let caller = $t02578625819._2 | |
618 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
619 | + | if ((artworkName == "")) | |
620 | + | then throw("This art doesn't match your account") | |
621 | + | else { | |
622 | + | let exportCID = getStringByKey(keyExportCid(caller, artId)) | |
623 | + | if ((size(split(exportCID, "/")[0]) != 59)) | |
624 | + | then throw("You cannot sell art with no export file") | |
625 | + | else if (!(acceptedAssetIds(assetId))) | |
626 | + | then throw("Something went wrong!") | |
627 | + | else if (!(validateMinSell(assetId, price))) | |
628 | + | then throw("Something went wrong!") | |
629 | + | else { | |
630 | + | let checkUser = validateUser(caller) | |
631 | + | if ((checkUser != "")) | |
632 | + | then throw(checkUser) | |
633 | + | else { | |
634 | + | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
635 | + | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
636 | + | if ((maxMint > 10)) | |
637 | + | then throw("10 editions max per artwork") | |
638 | + | else if (if ((amountSold != 0)) | |
639 | + | then (amountSold == maxCanSell) | |
640 | + | else false) | |
641 | + | then throw("Max edition reached.") | |
642 | + | else if (if ((amountSold > 0)) | |
643 | + | then (maxCanSell != maxMint) | |
644 | + | else false) | |
645 | + | then throw("Cannot change maximum issuable anymore") | |
646 | + | else { | |
647 | + | let sellStatus = if (if ((price > 0)) | |
648 | + | then (maxMint > 0) | |
649 | + | else false) | |
650 | + | then true | |
651 | + | else false | |
652 | + | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)] | |
653 | + | } | |
654 | + | } | |
655 | + | } | |
656 | + | } | |
657 | + | } | |
658 | + | ||
659 | + | ||
660 | + | ||
661 | + | @Callable(i) | |
662 | + | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
663 | + | ||
664 | + | ||
665 | + | ||
666 | + | @Callable(i) | |
667 | + | func setBid (artId,issuer) = { | |
668 | + | let $t02766227700 = idCallerDate(i) | |
669 | + | let id = $t02766227700._1 | |
670 | + | let caller = $t02766227700._2 | |
671 | + | let date = $t02766227700._3 | |
672 | + | let $t02770627742 = isPayment(i) | |
673 | + | let payment = $t02770627742._1 | |
674 | + | let amount = $t02770627742._2 | |
675 | + | let assetId = if (!(isDefined(payment.assetId))) | |
676 | + | then "WAVES" | |
677 | + | else toBase58String(value(payment.assetId)) | |
678 | + | if (!(acceptedAssetIds(assetId))) | |
679 | + | then throw("asset not accepted") | |
680 | + | else if (!(validateMinSell(assetId, amount))) | |
681 | + | then throw("Wrong min sell") | |
682 | + | else { | |
683 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
684 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
685 | + | if ((0 >= maxCanSell)) | |
686 | + | then throw("No max edition set for this artwork") | |
687 | + | else if ((amountSold >= maxCanSell)) | |
688 | + | then throw("Sold out, you cannot bid") | |
689 | + | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date)))] | |
690 | + | } | |
691 | + | } | |
692 | + | ||
693 | + | ||
694 | + | ||
695 | + | @Callable(i) | |
696 | + | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
697 | + | let caller = toBase58String(i.caller.bytes) | |
698 | + | if ((caller != issuer)) | |
699 | + | then throw("You cannot do this action") | |
700 | + | else buyMint(i, artId, issuer, bidId, bidOwner) | |
701 | + | } | |
702 | + | ||
703 | + | ||
704 | + | ||
705 | + | @Callable(i) | |
706 | + | func cancelBid (artId,issuer,bidId) = { | |
707 | + | let $t02879828952 = idCallerDate(i) | |
708 | + | let id = $t02879828952._1 | |
709 | + | let caller = $t02879828952._2 | |
710 | + | let date = $t02879828952._3 | |
711 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
712 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
713 | + | if ((bidData == "")) | |
714 | + | then throw("Bid not found") | |
715 | + | else { | |
716 | + | let bidDataArr = split(bidData, "_") | |
717 | + | let assetId = getBidAssetId(bidDataArr[0]) | |
718 | + | let bidStatus = "CANCELED" | |
719 | + | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
720 | + | } | |
721 | + | } | |
722 | + | ||
723 | + | ||
724 | + | ||
725 | + | @Callable(i) | |
726 | + | func deleteEntry (entry) = { | |
727 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
728 | + | if ((caller == chris)) | |
729 | + | then [DeleteEntry(entry)] | |
730 | + | else throw("no") | |
731 | + | } | |
732 | + | ||
733 | + |
github/deemru/w8io/026f985 40.38 ms ◑