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