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