tx · 8LRQEFo4Cwm31y9gBV7fodrGKRLc5cFBnzasDu2aunCT 3MsAdAWuTDYMhihTcKmVkQCFAskcDVkPF3J: -0.01000000 Waves 2021.12.20 13:36 [1842470] smart account 3MsAdAWuTDYMhihTcKmVkQCFAskcDVkPF3J > SELF 0.00000000 Waves
{ "type": 13, "id": "8LRQEFo4Cwm31y9gBV7fodrGKRLc5cFBnzasDu2aunCT", "fee": 1000000, "feeAssetId": null, "timestamp": 1639996611817, "version": 2, "chainId": 84, "sender": "3MsAdAWuTDYMhihTcKmVkQCFAskcDVkPF3J", "senderPublicKey": "2PSVc6fTaVepCW2TZFeFaMV4zsBtHp25G6N9Gibu6tTq", "proofs": [ "2yBPwtiGTPNQ4sjCWjG93xTXADxdyUqEDSQyXutEtpgpwnePHxTsZGt2oMk3yxepxewtvsa8e1LZbRJfsjSSLKHr" ], "script": "base64:AAIFAAAAAAAAAEkIAhIFCgMBCAgSDAoKCAgICAgICAgICBIJCgcIAQEICAEBEgQKAggIEgUKAwgICBIDCgEIEgQKAggIEgYKBAgICAgSBQoDCAgIAAAAUgAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM01wWlFqekdvZ21pZmNFS2U4bURkNnJpYkw3bnhUOUFDeWUAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjY1eExxOEpjQ2VhRWlSMVRKUTdkQnFYQnZFeTZFNDhXegAAAAAIY2VydERhcHACAAAAIzNNeGNYck5iTVpLWWFTcmhjZmVNbTJoWm5CZUN1M3lSV3N3AAAAAAh1c2VyRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXp2NFVIR1JDQzVLa25aYjh4NXdmRlVRenpwWTlHNEduNAAAAAANd2hpdGVsaXN0RGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjl4WllHcHpNRkRYdlh1Y3RtVTZ6VjhxU3ptMlpmRjMxZgAAAA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mVyCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABZVbmtub3duIGF1Y3Rpb24gdHlwZSA6BQAAAAthdWN0aW9uVHlwZQIAAAAbLCBwbGVhc2UgY29udGFjdCB0aGUgYWRtaW5zAAAAAWkBAAAACWNhbmNlbEJpZAAAAAMAAAAFYXJ0SWQAAAAGaXNzdWVyAAAABWJpZElkBAAAAAthdWN0aW9uVHlwZQkBAAAADmdldFN0cmluZ0J5S2V5AAAAAQkBAAAADmtleUF1Y3Rpb25UeXBlAAAAAgUAAAAGaXNzdWVyBQAAAAVhcnRJZAMJAAAAAAAAAgUAAAALYXVjdGlvblR5cGUFAAAADGF1Y3Rpb25UeXBlMQkBAAAADWNhbmNlbEJpZEltcGwAAAAEBQAAAAFpBQAAAAVhcnRJZAUAAAAGaXNzdWVyBQAAAAViaWRJZAkBAAAAGGNhbmNlbEJpZEltcGxUcmFkaXRpb25hbAAAAAQFAAAAAWkFAAAABWFydElkBQAAAAZpc3N1ZXIFAAAABWJpZElkAAAAAC/Gl+M=", "height": 1842470, "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 = false | |
5 | + | ||
6 | + | let oracleFee = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye")) | |
7 | + | ||
8 | + | let feeReceiver = "3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz" | |
9 | + | ||
10 | + | let certDapp = "3MxcXrNbMZKYaSrhcfeMm2hZnBeCu3yRWsw" | |
11 | + | ||
12 | + | let userDapp = value(addressFromString("3Mzv4UHGRCC5KknZb8x5wfFUQzzpY9G4Gn4")) | |
13 | + | ||
14 | + | let whitelistDapp = value(addressFromString("3N9xZYGpzMFDXvXuctmU6zV8qSzm2ZfF31f")) | |
15 | + | ||
16 | + | let USDNAssetId = base58'132maRL3uF35tc2bpRih9D6MYq5DR6H28zkop786dKyu' | |
17 | + | ||
18 | + | let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")] | |
19 | + | ||
20 | + | let types = ["IMAGE", "PDF", "VIDEO"] | |
21 | + | ||
22 | + | let Previewtypes = ["PDF"] | |
23 | + | ||
24 | + | let USDNFirstSellCut = 150 | |
25 | + | ||
26 | + | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
27 | + | ||
28 | + | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
29 | + | ||
30 | + | let userSuspended = "SUSPENDED" | |
31 | + | ||
32 | + | let userRemoved = "REMOVED" | |
33 | + | ||
34 | + | let userUnregistered = "UNREGISTERED" | |
35 | + | ||
36 | + | let auctionType1 = "BIDTYPE" | |
37 | + | ||
38 | + | let auctionType2 = "TRADITIONAL" | |
39 | + | ||
40 | + | let auctionType3 = "DIRECT" | |
41 | + | ||
42 | + | func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "") | |
43 | + | ||
44 | + | ||
45 | + | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
46 | + | ||
47 | + | ||
48 | + | func getStringByKeyOrError (key,error) = valueOrErrorMessage(getString(this, key), error) | |
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 | + | func validateHash (hash) = (size(hash) == 64) | |
64 | + | ||
65 | + | ||
66 | + | func keyUserStatus (caller) = ("user_status_" + caller) | |
67 | + | ||
68 | + | ||
69 | + | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
70 | + | ||
71 | + | ||
72 | + | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
73 | + | ||
74 | + | ||
75 | + | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
76 | + | ||
77 | + | ||
78 | + | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
79 | + | ||
80 | + | ||
81 | + | func keyPreviewCid (caller,artId) = ((("art_preview_cid_" + artId) + "_") + caller) | |
82 | + | ||
83 | + | ||
84 | + | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
85 | + | ||
86 | + | ||
87 | + | func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId) | |
88 | + | ||
89 | + | ||
90 | + | func keyBidId (bidId) = ("bid_" + bidId) | |
91 | + | ||
92 | + | ||
93 | + | func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller) | |
94 | + | ||
95 | + | ||
96 | + | func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller) | |
97 | + | ||
98 | + | ||
99 | + | func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller) | |
100 | + | ||
101 | + | ||
102 | + | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
103 | + | ||
104 | + | ||
105 | + | func KeyNftIssuer (nftId) = ("nft_issued_" + nftId) | |
106 | + | ||
107 | + | ||
108 | + | func KeyNftArtId (nftId) = ("nft_artId_" + nftId) | |
109 | + | ||
110 | + | ||
111 | + | func keyRoyalty (caller,artId) = ((("art_royalty_" + artId) + "_") + caller) | |
112 | + | ||
113 | + | ||
114 | + | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
115 | + | ||
116 | + | ||
117 | + | func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller) | |
118 | + | ||
119 | + | ||
120 | + | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
121 | + | ||
122 | + | ||
123 | + | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
124 | + | ||
125 | + | ||
126 | + | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
127 | + | ||
128 | + | ||
129 | + | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
130 | + | ||
131 | + | ||
132 | + | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
133 | + | ||
134 | + | ||
135 | + | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
136 | + | ||
137 | + | ||
138 | + | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
139 | + | ||
140 | + | ||
141 | + | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId))) | |
142 | + | ||
143 | + | func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0) | |
144 | + | ||
145 | + | ||
146 | + | func getAmountHighestBidByArtId (artId) = { | |
147 | + | let bidId = getStringByKey(keyHighestBidBidId(artId)) | |
148 | + | if ((bidId == "")) | |
149 | + | then 0 | |
150 | + | else getAmountByBidId(bidId) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func validateString (str,max) = if ((size(str) == 0)) | |
155 | + | then throw("Field cannot be is empty") | |
156 | + | else if ((size(str) > max)) | |
157 | + | then throw((str + " is too long")) | |
158 | + | else true | |
159 | + | ||
160 | + | ||
161 | + | func validateUser (caller) = { | |
162 | + | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
163 | + | if ((userStatus == userUnregistered)) | |
164 | + | then "Register this account first with 'Account' tab" | |
165 | + | else if ((userStatus == userSuspended)) | |
166 | + | then "Account suspended" | |
167 | + | else if ((userStatus == userRemoved)) | |
168 | + | then "Account removed" | |
169 | + | else "" | |
170 | + | } | |
171 | + | ||
172 | + | ||
173 | + | func validateArtworkData (caller,cidDisplay,name,description,tags) = { | |
174 | + | let checkUser = validateUser(caller) | |
175 | + | if ((checkUser != "")) | |
176 | + | then throw(checkUser) | |
177 | + | else if ((size(cidDisplay) == 0)) | |
178 | + | then throw("Display CID cannot be empty") | |
179 | + | else if ((size(cidDisplay) != 46)) | |
180 | + | then throw("This doesn't seem a valid CID!") | |
181 | + | else if (!(validateString(name, 100))) | |
182 | + | then throw("100 Char. max name") | |
183 | + | else if (!(validateString(description, 1000))) | |
184 | + | then throw("1000 Char. max description") | |
185 | + | else if ((size(split(tags, ",")) > 5)) | |
186 | + | then throw("5 tags max.") | |
187 | + | else "" | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
192 | + | then throw("No payment attached") | |
193 | + | else { | |
194 | + | let payment = value(i.payments[0]) | |
195 | + | let amount = value(payment.amount) | |
196 | + | $Tuple2(payment, amount) | |
197 | + | } | |
198 | + | ||
199 | + | ||
200 | + | func validatePayment (i) = { | |
201 | + | let t089829018 = isPayment(i) | |
202 | + | let payment = t089829018._1 | |
203 | + | let amount = t089829018._2 | |
204 | + | let assetId = if (if (isDefined(payment.assetId)) | |
205 | + | then (payment.assetId == USDNAssetId) | |
206 | + | else false) | |
207 | + | then payment.assetId | |
208 | + | else throw("Only USDN token accepted as transaction fee") | |
209 | + | if ((amount != currentCertificationPrice)) | |
210 | + | then throw(((("Payment amount should be " + toString(currentCertificationPrice)) + " but is: ") + toString(amount))) | |
211 | + | else $Tuple2(amount, assetId) | |
212 | + | } | |
213 | + | ||
214 | + | ||
215 | + | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
216 | + | case b: Int => | |
217 | + | if ((b != 0)) | |
218 | + | then true | |
219 | + | else false | |
220 | + | case _ => | |
221 | + | false | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
226 | + | let t096119647 = isPayment(i) | |
227 | + | let payment = t096119647._1 | |
228 | + | let amount = t096119647._2 | |
229 | + | let assetId = if (!(isDefined(payment.assetId))) | |
230 | + | then throw("Wrong asset id") | |
231 | + | else if (if ((size(priceAssetId) > 0)) | |
232 | + | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
233 | + | else false) | |
234 | + | then payment.assetId | |
235 | + | else throw("Wrong asset id") | |
236 | + | if (if ((assetId == unit)) | |
237 | + | then (priceAssetId != "") | |
238 | + | else false) | |
239 | + | then throw("Wrong asset id") | |
240 | + | else if ((artworkPrice != amount)) | |
241 | + | then throw(((("Payment don't match " + toString(artworkPrice)) + " ") + toString(amount))) | |
242 | + | else $Tuple2(amount, assetId) | |
243 | + | } | |
244 | + | ||
245 | + | ||
246 | + | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId))) | |
247 | + | then throw("Only USDN accepted") | |
248 | + | else true | |
249 | + | ||
250 | + | ||
251 | + | func validateMinSell (assetId,price) = { | |
252 | + | let minSellSconex = if (unitTest) | |
253 | + | then 1 | |
254 | + | else (currentCertificationPrice * 2) | |
255 | + | if (if (if ((assetId == toBase58String(USDNAssetId))) | |
256 | + | then (minSellSconex > price) | |
257 | + | else false) | |
258 | + | then (price != 0) | |
259 | + | else false) | |
260 | + | then throw(("Wrong minimum sell price " + toString(minSellSconex))) | |
261 | + | else true | |
262 | + | } | |
263 | + | ||
264 | + | ||
265 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
266 | + | then throw("Only USDN is accepted!") | |
267 | + | else fromBase58String(assetId) | |
268 | + | ||
269 | + | ||
270 | + | func getPriceAssetIdFromBid (bidDataKey) = { | |
271 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
272 | + | if ((bidData == "")) | |
273 | + | then throw("Bid not found") | |
274 | + | else { | |
275 | + | let bidDataArr = split(bidData, "_") | |
276 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
277 | + | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
278 | + | if ((0 >= bidAmount)) | |
279 | + | then throw("Wrong amount") | |
280 | + | else $Tuple2(bidAmount, bidAssetId) | |
281 | + | } | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | func idCallerDate (i) = if (!(dappRunning)) | |
286 | + | then throw(maintenanceMSG) | |
287 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
288 | + | ||
289 | + | ||
290 | + | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
291 | + | then (bidOwner != "") | |
292 | + | else false) | |
293 | + | then (bidId != "") | |
294 | + | else false) | |
295 | + | then true | |
296 | + | else false | |
297 | + | ||
298 | + | ||
299 | + | func getArtData (i,issuer,artId,isBid) = { | |
300 | + | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
301 | + | let totalNFT = getIntegerByKey("total_nft_issued") | |
302 | + | let artworkName = getStringByKey(keyName(issuer, artId)) | |
303 | + | if ((artworkName == "")) | |
304 | + | then throw("Art doesn't exist") | |
305 | + | else { | |
306 | + | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
307 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
308 | + | let artworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
309 | + | let priceAssetId = if (callerIsIssuer) | |
310 | + | then toBase58String(USDNAssetId) | |
311 | + | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
312 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
313 | + | if (if (if (!(isBid)) | |
314 | + | then !(callerIsIssuer) | |
315 | + | else false) | |
316 | + | then if (if ((0 >= artworkPrice)) | |
317 | + | then true | |
318 | + | else !(isOnSale)) | |
319 | + | then true | |
320 | + | else (0 >= maxCanSell) | |
321 | + | else false) | |
322 | + | then throw("Art not for sale") | |
323 | + | else if (if (if (!(isBid)) | |
324 | + | then callerIsIssuer | |
325 | + | else false) | |
326 | + | then (0 >= maxCanSell) | |
327 | + | else false) | |
328 | + | then throw("Max issuable not set") | |
329 | + | else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
330 | + | } | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
335 | + | let checkUser = validateUser(issuer) | |
336 | + | if (if (isBid) | |
337 | + | then (checkUser != "") | |
338 | + | else false) | |
339 | + | then throw(checkUser) | |
340 | + | else { | |
341 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
342 | + | let t01351913648 = if (isBid) | |
343 | + | then getPriceAssetIdFromBid(bidDataKey) | |
344 | + | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
345 | + | let amount = t01351913648._1 | |
346 | + | let assetId = t01351913648._2 | |
347 | + | $Tuple3(bidDataKey, amount, assetId) | |
348 | + | } | |
349 | + | } | |
350 | + | ||
351 | + | ||
352 | + | func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = { | |
353 | + | let isWhitelisted = checkWhitelist(issuer) | |
354 | + | let cut = if ((isWhitelisted > height)) | |
355 | + | then 0 | |
356 | + | else if ((assetId == USDNAssetId)) | |
357 | + | then USDNFirstSellCut | |
358 | + | else throw("Only USDN is accepted!") | |
359 | + | let amountForSconex = fraction(amount, cut, 1000) | |
360 | + | let amountForCreator = (amount - amountForSconex) | |
361 | + | if ((amountSold == maxCanSell)) | |
362 | + | then throw("Art sold out") | |
363 | + | else { | |
364 | + | let newAmountSold = (amountSold + 1) | |
365 | + | $Tuple3(amountForSconex, amountForCreator, newAmountSold) | |
366 | + | } | |
367 | + | } | |
368 | + | ||
369 | + | ||
370 | + | func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
371 | + | let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
372 | + | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
373 | + | then true | |
374 | + | else !(isOnSale)) | |
375 | + | then false | |
376 | + | else true | |
377 | + | let receiveNFT = if ((bidOwner != "")) | |
378 | + | then addressFromStringValue(bidOwner) | |
379 | + | else i.caller | |
380 | + | $Tuple3(sellStatus, receiveNFT, issueMeta) | |
381 | + | } | |
382 | + | ||
383 | + | ||
384 | + | func calculateRarity (mintIndex) = if ((4 > mintIndex)) | |
385 | + | then "SSR" | |
386 | + | else if ((11 > mintIndex)) | |
387 | + | then "SR" | |
388 | + | else if ((101 > mintIndex)) | |
389 | + | then "R" | |
390 | + | else "N" | |
391 | + | ||
392 | + | ||
393 | + | func getBidKeyVal (assetId,bidDataKey,date) = { | |
394 | + | let assetIdBid = if (!(isDefined(assetId))) | |
395 | + | then throw("Only USDN is accepted") | |
396 | + | else toBase58String(value(assetId)) | |
397 | + | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
398 | + | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
399 | + | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
400 | + | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
401 | + | } | |
402 | + | ||
403 | + | ||
404 | + | func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = { | |
405 | + | let callerData = idCallerDate(i) | |
406 | + | let id = callerData._1 | |
407 | + | let caller = callerData._2 | |
408 | + | let date = callerData._3 | |
409 | + | let artData = getArtData(i, issuer, artId, isBid) | |
410 | + | let totalNFT = artData._1 | |
411 | + | let artworkName = artData._2 | |
412 | + | let amountSold = artData._3 | |
413 | + | let artworkPrice = artData._4 | |
414 | + | let priceAssetId = artData._5 | |
415 | + | let maxCanSell = artData._6 | |
416 | + | let isOnSale = artData._7 | |
417 | + | let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
418 | + | let bidDataKey = bidData._1 | |
419 | + | let amount = bidData._2 | |
420 | + | let assetId = bidData._3 | |
421 | + | let commisionData = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
422 | + | let amountForSconex = commisionData._1 | |
423 | + | let amountForCreator = commisionData._2 | |
424 | + | let newAmountSold = commisionData._3 | |
425 | + | let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
426 | + | let sellStatus = issuerData._1 | |
427 | + | let receiveNFT = issuerData._2 | |
428 | + | let issueMeta = issuerData._3 | |
429 | + | let idNFTInvoke = invoke(this, "mintNft", [totalNFT, issueMeta, toString(receiveNFT)], nil) | |
430 | + | if ((idNFTInvoke == idNFTInvoke)) | |
431 | + | then { | |
432 | + | let idNFT = match idNFTInvoke { | |
433 | + | case r: String => | |
434 | + | r | |
435 | + | case _ => | |
436 | + | throw("Incorrect invoke result") | |
437 | + | } | |
438 | + | let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date) | |
439 | + | let assetIdBid = bidKeyValue._1 | |
440 | + | let bidDelOld = bidKeyValue._2 | |
441 | + | let bidUpdate = bidKeyValue._3 | |
442 | + | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
443 | + | let rarity = calculateRarity(newAmountSold) | |
444 | + | let soldValue = if (!(isBid)) | |
445 | + | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + idNFT) | |
446 | + | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + idNFT) | |
447 | + | let soldData = StringEntry(soldKey, soldValue) | |
448 | + | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), StringEntry(("nft_rarity_" + idNFT), rarity), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSconex, assetId), StringEntry(KeyNftIssuer(idNFT), issuer), StringEntry(KeyNftArtId(idNFT), artId)] | |
449 | + | let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil) | |
450 | + | if ((res == res)) | |
451 | + | then if (isBid) | |
452 | + | then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld) | |
453 | + | else soldData :: buyRes | |
454 | + | else throw("Strict value is not equal to itself.") | |
455 | + | } | |
456 | + | else throw("Strict value is not equal to itself.") | |
457 | + | } | |
458 | + | ||
459 | + | ||
460 | + | func setBidNonTraditional (i,artId,issuer) = { | |
461 | + | let t02770927747 = idCallerDate(i) | |
462 | + | let id = t02770927747._1 | |
463 | + | let caller = t02770927747._2 | |
464 | + | let date = t02770927747._3 | |
465 | + | let t02775227788 = isPayment(i) | |
466 | + | let payment = t02775227788._1 | |
467 | + | let amount = t02775227788._2 | |
468 | + | let assetId = if (!(isDefined(payment.assetId))) | |
469 | + | then throw("Only USDN is accepted!") | |
470 | + | else toBase58String(value(payment.assetId)) | |
471 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
472 | + | let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
473 | + | if (!(acceptedAssetIds(assetId))) | |
474 | + | then throw("asset not accepted") | |
475 | + | else if ((minArtworkPrice > amount)) | |
476 | + | then throw("Bid is below min price!") | |
477 | + | else { | |
478 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
479 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
480 | + | if ((0 >= maxCanSell)) | |
481 | + | then throw("No max edition set for this artwork") | |
482 | + | else if ((amountSold >= maxCanSell)) | |
483 | + | then throw("Sold out, you cannot bid") | |
484 | + | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
485 | + | } | |
486 | + | } | |
487 | + | ||
488 | + | ||
489 | + | func setBidTraditional (i,artId,issuer) = { | |
490 | + | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
491 | + | let highestBid = getAmountHighestBidByArtId(artId) | |
492 | + | if ((height > endHeight)) | |
493 | + | then throw("This auction is finished already!") | |
494 | + | else { | |
495 | + | let callderData = idCallerDate(i) | |
496 | + | let id = callderData._1 | |
497 | + | let caller = callderData._2 | |
498 | + | let date = callderData._3 | |
499 | + | let isPaymentVar = isPayment(i) | |
500 | + | let payment = isPaymentVar._1 | |
501 | + | let amount = isPaymentVar._2 | |
502 | + | if ((highestBid >= amount)) | |
503 | + | then throw(("Please place a bid higher than: " + toString(highestBid))) | |
504 | + | else { | |
505 | + | let assetId = if (!(isDefined(payment.assetId))) | |
506 | + | then throw("Only USDN is accepted!") | |
507 | + | else toBase58String(value(payment.assetId)) | |
508 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
509 | + | let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
510 | + | if (!(acceptedAssetIds(assetId))) | |
511 | + | then throw("asset not accepted") | |
512 | + | else if ((minArtworkPrice > amount)) | |
513 | + | then throw("Bid is below min price!") | |
514 | + | else { | |
515 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
516 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
517 | + | if ((0 >= maxCanSell)) | |
518 | + | then throw("No max edition set for this artwork") | |
519 | + | else if ((amountSold >= maxCanSell)) | |
520 | + | then throw("Sold out, you cannot bid") | |
521 | + | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1)), StringEntry(keyHighestBidBidId(artId), toBase58String(i.transactionId)), IntegerEntry(keyBidId(toBase58String(i.transactionId)), amount)] | |
522 | + | } | |
523 | + | } | |
524 | + | } | |
525 | + | } | |
526 | + | ||
527 | + | ||
528 | + | func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = { | |
529 | + | let caller = toBase58String(i.caller.bytes) | |
530 | + | if ((caller != issuer)) | |
531 | + | then throw("You cannot do this action") | |
532 | + | else buyMint(i, artId, issuer, bidId, bidOwner, true) | |
533 | + | } | |
534 | + | ||
535 | + | ||
536 | + | func restartAuction (artId,issuer) = { | |
537 | + | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
538 | + | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
539 | + | let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
540 | + | let duration = getIntegerByKey(keyDuration(issuer, artId)) | |
541 | + | let endHeight = (duration + height) | |
542 | + | if ((height > oldEndHeight)) | |
543 | + | then if ((amountSold == maxCanSell)) | |
544 | + | then throw("Can't restart auction, max amount sold") | |
545 | + | else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))] | |
546 | + | else throw("Previous auction isn't completed yet") | |
547 | + | } | |
548 | + | ||
549 | + | ||
550 | + | func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = { | |
551 | + | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
552 | + | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
553 | + | if ((height > endHeight)) | |
554 | + | then if ((bidId == highestBidId)) | |
555 | + | then { | |
556 | + | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true) | |
557 | + | let restartAuctionData = restartAuction(artId, issuer) | |
558 | + | (restartAuctionData ++ buyMintData) | |
559 | + | } | |
560 | + | else throw("This is not the winning bid!") | |
561 | + | else throw("This auction is not yet finished!") | |
562 | + | } | |
563 | + | ||
564 | + | ||
565 | + | func cancelBidImpl (i,artId,issuer,bidId) = { | |
566 | + | let t02894229094 = idCallerDate(i) | |
567 | + | let id = t02894229094._1 | |
568 | + | let caller = t02894229094._2 | |
569 | + | let date = t02894229094._3 | |
570 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
571 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
572 | + | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
573 | + | let bidDataArr = split(bidData, "_") | |
574 | + | let assetId = getBidAssetId(bidDataArr[0]) | |
575 | + | let bidStatus = "CANCELED" | |
576 | + | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
577 | + | } | |
578 | + | ||
579 | + | ||
580 | + | func cancelBidImplTraditional (i,artId,issuer,bidId) = { | |
581 | + | let t02894229094 = idCallerDate(i) | |
582 | + | let id = t02894229094._1 | |
583 | + | let caller = t02894229094._2 | |
584 | + | let date = t02894229094._3 | |
585 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
586 | + | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
587 | + | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
588 | + | let bidDataArr = split(bidData, "_") | |
589 | + | let assetId = getBidAssetId(bidDataArr[0]) | |
590 | + | let bidStatus = "CANCELED" | |
591 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
592 | + | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
593 | + | if ((bidId == highestBidId)) | |
594 | + | then throw("You can't cancel the highest bid!") | |
595 | + | else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)] | |
596 | + | } | |
597 | + | ||
598 | + | ||
599 | + | @Callable(i) | |
600 | + | func mintNft (totalNFT,issueMeta,receiveNFT) = if ((i.caller == this)) | |
601 | + | then { | |
602 | + | let receiveNFTAddy = Address(fromBase58String(receiveNFT)) | |
603 | + | let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
604 | + | let idNFT = calculateAssetId(issueNFT) | |
605 | + | $Tuple2([issueNFT, ScriptTransfer(receiveNFTAddy, 1, idNFT)], toBase58String(idNFT)) | |
606 | + | } | |
607 | + | else throw("Only the dApp can mint NFT's") | |
608 | + | ||
609 | + | ||
610 | + | ||
611 | + | @Callable(i) | |
612 | + | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement,preview,collection,subCollection) = { | |
613 | + | let t01774017781 = idCallerDate(i) | |
614 | + | let artId = t01774017781._1 | |
615 | + | let caller = t01774017781._2 | |
616 | + | let date = t01774017781._3 | |
617 | + | if (containsElement(types, type)) | |
618 | + | then { | |
619 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags) | |
620 | + | if ((validateArtwork != "")) | |
621 | + | then throw("Something went wrong!") | |
622 | + | else { | |
623 | + | let t01817018212 = validatePayment(i) | |
624 | + | let amount = t01817018212._1 | |
625 | + | let assetId = t01817018212._2 | |
626 | + | if (!(isDefined(amount))) | |
627 | + | then throw("Something went wrong") | |
628 | + | else { | |
629 | + | let previewData = if (containsElement(Previewtypes, type)) | |
630 | + | then [StringEntry(keyPreviewCid(caller, artId), preview)] | |
631 | + | else nil | |
632 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
633 | + | if ((entryExist != "")) | |
634 | + | then throw("You already added it") | |
635 | + | else { | |
636 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
637 | + | if ((hashExist != "")) | |
638 | + | then throw("This hash is already registered") | |
639 | + | else (previewData ++ [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(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]) | |
640 | + | } | |
641 | + | } | |
642 | + | } | |
643 | + | } | |
644 | + | else throw("Unknown type") | |
645 | + | } | |
646 | + | ||
647 | + | ||
648 | + | ||
649 | + | @Callable(i) | |
650 | + | func sellArtwork (artId,price,maxMint,assetId,auctionType,duration,royalty) = { | |
651 | + | let t02571425747 = idCallerDate(i) | |
652 | + | let id = t02571425747._1 | |
653 | + | let caller = t02571425747._2 | |
654 | + | let artworkName = getStringByKey(keyName(caller, artId)) | |
655 | + | if ((0 > royalty)) | |
656 | + | then throw("Royalty percentage should be above 0") | |
657 | + | else if ((royalty > 85)) | |
658 | + | then throw("Royalty percentage should be below 85") | |
659 | + | else if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
660 | + | then throw("We don't know this auction type") | |
661 | + | else if ((artworkName == "")) | |
662 | + | then throw("This art doesn't match your account") | |
663 | + | else { | |
664 | + | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
665 | + | if (!(acceptedAssetIds(assetId))) | |
666 | + | then throw("Something went wrong!") | |
667 | + | else if (!(validateMinSell(assetId, price))) | |
668 | + | then throw("Something went wrong!") | |
669 | + | else { | |
670 | + | let checkUser = validateUser(caller) | |
671 | + | if ((checkUser != "")) | |
672 | + | then throw(checkUser) | |
673 | + | else { | |
674 | + | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
675 | + | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
676 | + | if ((maxMint > 10000)) | |
677 | + | then throw("10000 editions max per artwork") | |
678 | + | else if (if ((amountSold != 0)) | |
679 | + | then (amountSold == maxCanSell) | |
680 | + | else false) | |
681 | + | then throw("Max edition reached.") | |
682 | + | else if (if ((amountSold > 0)) | |
683 | + | then (maxCanSell != maxMint) | |
684 | + | else false) | |
685 | + | then throw("Cannot change maximum issuable anymore") | |
686 | + | else if (if ((bidNbr > 0)) | |
687 | + | then (maxCanSell != maxMint) | |
688 | + | else false) | |
689 | + | then throw("Cannot change maximum issuable with active orders") | |
690 | + | else { | |
691 | + | let sellStatus = if (if ((price > 0)) | |
692 | + | then (maxMint > 0) | |
693 | + | else false) | |
694 | + | then true | |
695 | + | else false | |
696 | + | let endHeight = (duration + height) | |
697 | + | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType), IntegerEntry(keyRoyalty(caller, artId), royalty)] | |
698 | + | } | |
699 | + | } | |
700 | + | } | |
701 | + | } | |
702 | + | } | |
703 | + | ||
704 | + | ||
705 | + | ||
706 | + | @Callable(i) | |
707 | + | func buyArtwork (artId,issuer) = { | |
708 | + | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
709 | + | if ((auctionType == auctionType3)) | |
710 | + | then buyMint(i, artId, issuer, "", "", false) | |
711 | + | else throw("Direct buy only allowed when no auction type is set!") | |
712 | + | } | |
713 | + | ||
714 | + | ||
715 | + | ||
716 | + | @Callable(i) | |
717 | + | func updateTags (artist,artId,tags) = { | |
718 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
719 | + | if (containsElement(owners, caller)) | |
720 | + | then if ((size(split(tags, ",")) > 5)) | |
721 | + | then throw("5 tags max.") | |
722 | + | else { | |
723 | + | let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!") | |
724 | + | if ((tags == tagsOld)) | |
725 | + | then throw("Tags are the same as old tags!") | |
726 | + | else [StringEntry(keyTags(artist, artId), tags)] | |
727 | + | } | |
728 | + | else throw("no") | |
729 | + | } | |
730 | + | ||
731 | + | ||
732 | + | ||
733 | + | @Callable(i) | |
734 | + | func deleteEntry (entry) = { | |
735 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
736 | + | if (containsElement(owners, caller)) | |
737 | + | then [DeleteEntry(entry)] | |
738 | + | else throw("no") | |
739 | + | } | |
740 | + | ||
741 | + | ||
742 | + | ||
743 | + | @Callable(i) | |
744 | + | func setBid (artId,issuer) = { | |
745 | + | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
746 | + | if ((auctionType == auctionType1)) | |
747 | + | then setBidNonTraditional(i, artId, issuer) | |
748 | + | else if ((auctionType == auctionType2)) | |
749 | + | then setBidTraditional(i, artId, issuer) | |
750 | + | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
751 | + | } | |
752 | + | ||
753 | + | ||
754 | + | ||
755 | + | @Callable(i) | |
756 | + | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
757 | + | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
758 | + | if ((auctionType == auctionType1)) | |
759 | + | then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner) | |
760 | + | else if ((auctionType == auctionType2)) | |
761 | + | then acceptBidTraditional(i, artId, issuer, bidId, bidOwner) | |
762 | + | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
763 | + | } | |
764 | + | ||
765 | + | ||
766 | + | ||
767 | + | @Callable(i) | |
768 | + | func cancelBid (artId,issuer,bidId) = { | |
769 | + | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
770 | + | if ((auctionType == auctionType1)) | |
771 | + | then cancelBidImpl(i, artId, issuer, bidId) | |
772 | + | else cancelBidImplTraditional(i, artId, issuer, bidId) | |
773 | + | } | |
774 | + | ||
775 | + |
github/deemru/w8io/026f985 45.16 ms ◑