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