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