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