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