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