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