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