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