tx · 5edtGPhDbChCvu7GZip6kPoW8TmrrpS5Zd3eN8S8Ydkr 3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS: -0.01400000 Waves 2021.06.10 11:50 [1564059] smart account 3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS > SELF 0.00000000 Waves
{ "type": 13, "id": "5edtGPhDbChCvu7GZip6kPoW8TmrrpS5Zd3eN8S8Ydkr", "fee": 1400000, "feeAssetId": null, "timestamp": 1623315051686, "version": 2, "chainId": 84, "sender": "3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS", "senderPublicKey": "13faG9aVtHrshQAeoSAHp3R8DJ6dQnG7aa4ctzpT35uM", "proofs": [ "2d2W2HTSVyE8oAjKVocSw6ZS3kCZwPtyHtGHaQR92szAK4CktvQtoT2Tau5uzL5Gr3XDjJt8E96emaRpw5tiA8vp" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAAKwAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAxhcnR3b3Jrc0RhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYA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AAAAAQUAAAAMcmVxdWVzdE93bmVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAAA5yZXF1ZXN0RGF0YUFycgAAAAAAAAAAAgUAAAADbmlsAAAAACwf7r0=", "height": 1564059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5PL4fFfwRtte1TpTQUjc3YcvrFLfDgCFrqXaH55TuMaA Next: none Diff:
Old | New | Differences | |
---|---|---|---|
162 | 162 | func checkNFTInfo (assetId) = { | |
163 | 163 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
164 | 164 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
165 | - | if ((size(artSignID) == 0)) | |
166 | - | then throw("Artwork not found on SIGN Art") | |
167 | - | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
168 | - | then !(checkArtistStatus(nftData[6])) | |
169 | - | else false) | |
170 | - | then $Tuple3(false, nftData[5], nftData[6]) | |
171 | - | else $Tuple3(true, nftData[5], nftData[6]) | |
165 | + | if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
166 | + | then !(checkArtistStatus(nftData[6])) | |
167 | + | else false) | |
168 | + | then $Tuple4(false, nftData[5], nftData[6], artSignID) | |
169 | + | else $Tuple4(true, nftData[5], nftData[6], artSignID) | |
172 | 170 | } | |
173 | 171 | ||
174 | 172 | ||
191 | 189 | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
192 | 190 | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
193 | 191 | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
194 | - | let | |
195 | - | $Tuple4(signFee, creatorFee, ownerFee, | |
192 | + | let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
193 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorNFT) | |
196 | 194 | } | |
197 | 195 | ||
198 | 196 | ||
230 | 228 | ||
231 | 229 | @Callable(i) | |
232 | 230 | func sellNFT (price,asset) = { | |
233 | - | let $t078967935 = idCallerDate(i) | |
234 | - | let id = $t078967935._1 | |
235 | - | let caller = $t078967935._2 | |
236 | - | let date = $t078967935._3 | |
237 | - | let $t079407976 = isPayment(i) | |
238 | - | let payment = $t079407976._1 | |
239 | - | let amount = $t079407976._2 | |
240 | - | if (!(acceptedAssetIds(asset))) | |
241 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
242 | - | else if (!(validateMinSell(asset, price))) | |
243 | - | then throw("Wrong minimum sell price") | |
231 | + | let $t081048143 = idCallerDate(i) | |
232 | + | let id = $t081048143._1 | |
233 | + | let caller = $t081048143._2 | |
234 | + | let date = $t081048143._3 | |
235 | + | let $t081498185 = isPayment(i) | |
236 | + | let payment = $t081498185._1 | |
237 | + | let amount = $t081498185._2 | |
238 | + | let nftId = if (if (isDefined(payment.assetId)) | |
239 | + | then isSignArtNFT(value(payment.assetId)) | |
240 | + | else false) | |
241 | + | then toBase58String(value(payment.assetId)) | |
242 | + | else throw("Only SIGN Art NFT accepted.") | |
243 | + | let $t083648433 = checkNFTInfo(nftId) | |
244 | + | let isValidNFT = $t083648433._1 | |
245 | + | let artId = $t083648433._2 | |
246 | + | let creatorAddr = $t083648433._3 | |
247 | + | let artSignID = $t083648433._4 | |
248 | + | if ((size(artSignID) == 0)) | |
249 | + | then throw("Artwork not found on SIGN Art") | |
250 | + | else if (!(isValidNFT)) | |
251 | + | then throw("Something went wrong") | |
252 | + | else if (!(acceptedAssetIds(asset))) | |
253 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
254 | + | else if ((price == 0)) | |
255 | + | then throw("Wrong minimum sell price") | |
256 | + | else if (!(validateMinSell(asset, price))) | |
257 | + | then throw("Wrong minimum sell price") | |
258 | + | else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
259 | + | } | |
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | @Callable(i) | |
264 | + | func updateSalePrice (nftid,price,asset) = { | |
265 | + | let $t093259364 = idCallerDate(i) | |
266 | + | let id = $t093259364._1 | |
267 | + | let caller = $t093259364._2 | |
268 | + | let date = $t093259364._3 | |
269 | + | let $t093709439 = checkNFTInfo(nftid) | |
270 | + | let isValidNFT = $t093709439._1 | |
271 | + | let artId = $t093709439._2 | |
272 | + | let creatorAddr = $t093709439._3 | |
273 | + | let artSignID = $t093709439._4 | |
274 | + | if ((size(artSignID) == 0)) | |
275 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
276 | + | else if (!(isValidNFT)) | |
277 | + | then throw("Something went wrong") | |
244 | 278 | else { | |
245 | - | let nftId = if (if (isDefined(payment.assetId)) | |
246 | - | then isSignArtNFT(value(payment.assetId)) | |
247 | - | else false) | |
248 | - | then toBase58String(value(payment.assetId)) | |
249 | - | else throw("Only SIGN Art NFT accepted.") | |
250 | - | let $t083868444 = checkNFTInfo(nftId) | |
251 | - | let isValidNFT = $t083868444._1 | |
252 | - | let artId = $t083868444._2 | |
253 | - | let creatorAddr = $t083868444._3 | |
254 | - | if (!(isValidNFT)) | |
255 | - | then throw("Something went wrong") | |
256 | - | else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
279 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
280 | + | if ((saleOwner != caller)) | |
281 | + | then throw("You don't own this NFT") | |
282 | + | else { | |
283 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
284 | + | if ((saleStatus != "OPEN")) | |
285 | + | then throw("Sale not active") | |
286 | + | else if (!(acceptedAssetIds(asset))) | |
287 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
288 | + | else if ((price == 0)) | |
289 | + | then throw("Wrong minimum sell price") | |
290 | + | else if (!(validateMinSell(asset, price))) | |
291 | + | then throw("Wrong minimum sell price") | |
292 | + | else { | |
293 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
294 | + | let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_") | |
295 | + | [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
296 | + | } | |
297 | + | } | |
257 | 298 | } | |
258 | 299 | } | |
259 | 300 | ||
260 | 301 | ||
261 | 302 | ||
262 | 303 | @Callable(i) | |
263 | - | func updateSalePrice (nftid,price,asset) = { | |
264 | - | let $t089608999 = idCallerDate(i) | |
265 | - | let id = $t089608999._1 | |
266 | - | let caller = $t089608999._2 | |
267 | - | let date = $t089608999._3 | |
268 | - | let $t090049062 = checkNFTInfo(nftid) | |
269 | - | let isValidNFT = $t090049062._1 | |
270 | - | let artId = $t090049062._2 | |
271 | - | let creatorAddr = $t090049062._3 | |
272 | - | if (!(isValidNFT)) | |
273 | - | then throw("Something went wrong") | |
274 | - | else { | |
275 | - | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
276 | - | if ((saleOwner != caller)) | |
277 | - | then throw("You don't own this NFT") | |
278 | - | else { | |
279 | - | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
280 | - | if ((saleStatus != "OPEN")) | |
281 | - | then throw("Sale not active") | |
282 | - | else if (!(acceptedAssetIds(asset))) | |
283 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
284 | - | else if (!(validateMinSell(asset, price))) | |
285 | - | then throw("Wrong minimum sell price") | |
286 | - | else { | |
287 | - | let saleInfo = split(getStrByK(((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + saleStatus)), "_") | |
288 | - | [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
289 | - | } | |
290 | - | } | |
291 | - | } | |
292 | - | } | |
293 | - | ||
294 | - | ||
295 | - | ||
296 | - | @Callable(i) | |
297 | 304 | func cancelSale (nftid) = { | |
298 | - | let $t01007910118 = idCallerDate(i) | |
299 | - | let id = $t01007910118._1 | |
300 | - | let caller = $t01007910118._2 | |
301 | - | let date = $t01007910118._3 | |
305 | + | let $t01058910628 = idCallerDate(i) | |
306 | + | let id = $t01058910628._1 | |
307 | + | let caller = $t01058910628._2 | |
308 | + | let date = $t01058910628._3 | |
309 | + | let $t01063410856 = checkNFTInfo(nftid) | |
310 | + | let isValidNFT = $t01063410856._1 | |
311 | + | let artId = $t01063410856._2 | |
312 | + | let creatorAddr = $t01063410856._3 | |
313 | + | let artSignID = $t01063410856._4 | |
302 | 314 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
303 | 315 | if ((saleOwner != caller)) | |
304 | 316 | then throw("You don't own this NFT") | |
307 | 319 | if ((saleStatus != "OPEN")) | |
308 | 320 | then throw("Sale not active") | |
309 | 321 | else { | |
310 | - | let $t01041010468 = checkNFTInfo(nftid) | |
311 | - | let isValidNFT = $t01041010468._1 | |
312 | - | let artId = $t01041010468._2 | |
313 | - | let creatorAddr = $t01041010468._3 | |
314 | - | if (!(isValidNFT)) | |
315 | - | then throw("Something went wrong") | |
316 | - | else { | |
317 | - | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
318 | - | [DeleteEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
319 | - | } | |
322 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
323 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
324 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
320 | 325 | } | |
321 | 326 | } | |
322 | 327 | } | |
325 | 330 | ||
326 | 331 | @Callable(i) | |
327 | 332 | func buyNFT (nftid) = { | |
328 | - | let $ | |
329 | - | let id = $ | |
330 | - | let caller = $ | |
331 | - | let date = $ | |
333 | + | let $t01166911708 = idCallerDate(i) | |
334 | + | let id = $t01166911708._1 | |
335 | + | let caller = $t01166911708._2 | |
336 | + | let date = $t01166911708._3 | |
332 | 337 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
333 | - | let $t01143211490 = checkNFTInfo(nftid) | |
334 | - | let isValidNFT = $t01143211490._1 | |
335 | - | let artId = $t01143211490._2 | |
336 | - | let creatorAddr = $t01143211490._3 | |
337 | - | if (!(isValidNFT)) | |
338 | - | then throw("Something went wrong") | |
339 | - | else { | |
340 | - | let saleInfo = getStrByK((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")) | |
341 | - | if ((size(saleInfo) == 0)) | |
342 | - | then throw("Sale Not found!") | |
343 | - | else { | |
344 | - | let saleInfoArray = split(saleInfo, "_") | |
345 | - | if ((parseInt(saleInfoArray[1]) == 0)) | |
346 | - | then throw("Offer only") | |
347 | - | else { | |
348 | - | let $t01183411870 = isPayment(i) | |
349 | - | let payment = $t01183411870._1 | |
350 | - | let amount = $t01183411870._2 | |
351 | - | let paymentAssetStr = if (isDefined(payment.assetId)) | |
352 | - | then toBase58String(value(payment.assetId)) | |
353 | - | else "" | |
354 | - | if (if ((saleInfoArray[1] != toString(amount))) | |
355 | - | then true | |
356 | - | else (saleInfoArray[2] != paymentAssetStr)) | |
357 | - | then throw("Payment infos don't match.") | |
358 | - | else { | |
359 | - | let amountForSign = fraction(amount, signCut, 100) | |
360 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
361 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
362 | - | let $t01237312501 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
363 | - | let signFee = $t01237312501._1 | |
364 | - | let creatorFee = $t01237312501._2 | |
365 | - | let ownerFee = $t01237312501._3 | |
366 | - | let collectorFee = $t01237312501._4 | |
367 | - | [DeleteEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee] | |
368 | - | } | |
369 | - | } | |
370 | - | } | |
371 | - | } | |
338 | + | let $t01176211831 = checkNFTInfo(nftid) | |
339 | + | let isValidNFT = $t01176211831._1 | |
340 | + | let artId = $t01176211831._2 | |
341 | + | let creatorAddr = $t01176211831._3 | |
342 | + | let artSignID = $t01176211831._4 | |
343 | + | if ((size(artSignID) == 0)) | |
344 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
345 | + | else if (!(isValidNFT)) | |
346 | + | then throw("Something went wrong") | |
347 | + | else { | |
348 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
349 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
350 | + | if ((size(saleInfo) == 0)) | |
351 | + | then throw("Sale Not found!") | |
352 | + | else { | |
353 | + | let saleInfoArray = split(saleInfo, "_") | |
354 | + | if ((parseInt(saleInfoArray[1]) == 0)) | |
355 | + | then throw("Offer only") | |
356 | + | else { | |
357 | + | let $t01229912335 = isPayment(i) | |
358 | + | let payment = $t01229912335._1 | |
359 | + | let amount = $t01229912335._2 | |
360 | + | let paymentAssetStr = if (isDefined(payment.assetId)) | |
361 | + | then toBase58String(value(payment.assetId)) | |
362 | + | else "" | |
363 | + | if (if ((saleInfoArray[1] != toString(amount))) | |
364 | + | then true | |
365 | + | else (saleInfoArray[2] != paymentAssetStr)) | |
366 | + | then throw("Payment infos don't match.") | |
367 | + | else { | |
368 | + | let amountForSign = fraction(amount, signCut, 100) | |
369 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
370 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
371 | + | let $t01283812966 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
372 | + | let signFee = $t01283812966._1 | |
373 | + | let creatorFee = $t01283812966._2 | |
374 | + | let ownerFee = $t01283812966._3 | |
375 | + | let collectorNFT = $t01283812966._4 | |
376 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT] | |
377 | + | } | |
378 | + | } | |
379 | + | } | |
380 | + | } | |
372 | 381 | } | |
373 | 382 | ||
374 | 383 | ||
375 | 384 | ||
376 | 385 | @Callable(i) | |
377 | 386 | func setOffer (nftid) = { | |
378 | - | let $ | |
379 | - | let id = $ | |
380 | - | let offerOwner = $ | |
381 | - | let date = $ | |
382 | - | let $ | |
383 | - | let payment = $ | |
384 | - | let amount = $ | |
387 | + | let $t01336913411 = idCallerDate(i) | |
388 | + | let id = $t01336913411._1 | |
389 | + | let offerOwner = $t01336913411._2 | |
390 | + | let date = $t01336913411._3 | |
391 | + | let $t01341713453 = isPayment(i) | |
392 | + | let payment = $t01341713453._1 | |
393 | + | let amount = $t01341713453._2 | |
385 | 394 | let assetId = if (!(isDefined(payment.assetId))) | |
386 | 395 | then "WAVES" | |
387 | 396 | else toBase58String(value(payment.assetId)) | |
392 | 401 | else if (!(validateMinSell(assetId, amount))) | |
393 | 402 | then throw("Wrong minimum sell price") | |
394 | 403 | else { | |
395 | - | let $ | |
396 | - | let isValidNFT = $ | |
397 | - | let artId = $ | |
398 | - | let creatorAddr = $ | |
404 | + | let $t01378713845 = checkNFTInfo(nftid) | |
405 | + | let isValidNFT = $t01378713845._1 | |
406 | + | let artId = $t01378713845._2 | |
407 | + | let creatorAddr = $t01378713845._3 | |
399 | 408 | if (!(isValidNFT)) | |
400 | 409 | then throw("Something went wrong") | |
401 | 410 | else { | |
409 | 418 | ||
410 | 419 | @Callable(i) | |
411 | 420 | func acceptOffer (nftid,offerId,offerOwner) = { | |
412 | - | let $ | |
413 | - | let id = $ | |
414 | - | let caller = $ | |
415 | - | let date = $ | |
421 | + | let $t01437814447 = idCallerDate(i) | |
422 | + | let id = $t01437814447._1 | |
423 | + | let caller = $t01437814447._2 | |
424 | + | let date = $t01437814447._3 | |
416 | 425 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
417 | 426 | if ((caller != saleOwner)) | |
418 | 427 | then throw("You cannot do this action") | |
422 | 431 | if ((bidValue == "")) | |
423 | 432 | then throw("Offer not found or not for sale") | |
424 | 433 | else { | |
425 | - | let $ | |
426 | - | let isValidNFT = $ | |
427 | - | let artId = $ | |
428 | - | let creatorAddr = $ | |
434 | + | let $t01477114829 = checkNFTInfo(nftid) | |
435 | + | let isValidNFT = $t01477114829._1 | |
436 | + | let artId = $t01477114829._2 | |
437 | + | let creatorAddr = $t01477114829._3 | |
429 | 438 | if (!(isValidNFT)) | |
430 | 439 | then throw("Something went wrong") | |
431 | 440 | else { | |
432 | - | let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) | |
441 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
433 | 442 | let saleValue = getStrByK((saleKey + "_OPEN")) | |
434 | 443 | if ((size(saleValue) == 0)) | |
435 | 444 | then throw("Sale Not found!") | |
436 | 445 | else { | |
437 | 446 | let saleValArr = split(saleValue, "_") | |
438 | - | let $ | |
439 | - | let bidDataArr = $ | |
440 | - | let assetId = $ | |
441 | - | let bidData = $ | |
447 | + | let $t01517415229 = getBidData(bidKey) | |
448 | + | let bidDataArr = $t01517415229._1 | |
449 | + | let assetId = $t01517415229._2 | |
450 | + | let bidData = $t01517415229._3 | |
442 | 451 | let amount = value(parseInt(bidDataArr[1])) | |
443 | - | let $ | |
444 | - | let signFee = $ | |
445 | - | let creatorFee = $ | |
446 | - | let ownerFee = $ | |
447 | - | let | |
448 | - | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, | |
452 | + | let $t01528315410 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6]) | |
453 | + | let signFee = $t01528315410._1 | |
454 | + | let creatorFee = $t01528315410._2 | |
455 | + | let ownerFee = $t01528315410._3 | |
456 | + | let collectorNFT = $t01528315410._4 | |
457 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorNFT] | |
449 | 458 | } | |
450 | 459 | } | |
451 | 460 | } | |
456 | 465 | ||
457 | 466 | @Callable(i) | |
458 | 467 | func cancelOffer (nftid,offerId,saleOwner) = { | |
459 | - | let $ | |
460 | - | let id = $ | |
461 | - | let caller = $ | |
462 | - | let date = $ | |
468 | + | let $t01605916120 = idCallerDate(i) | |
469 | + | let id = $t01605916120._1 | |
470 | + | let caller = $t01605916120._2 | |
471 | + | let date = $t01605916120._3 | |
463 | 472 | let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
464 | - | let $ | |
465 | - | let bidDataArr = $ | |
466 | - | let assetId = $ | |
467 | - | let bidData = $ | |
473 | + | let $t01619716252 = getBidData(bidKey) | |
474 | + | let bidDataArr = $t01619716252._1 | |
475 | + | let assetId = $t01619716252._2 | |
476 | + | let bidData = $t01619716252._3 | |
468 | 477 | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
469 | 478 | } | |
470 | 479 | ||
472 | 481 | ||
473 | 482 | @Callable(i) | |
474 | 483 | func makeRequest (artId,creatorAddr) = { | |
475 | - | let $ | |
476 | - | let id = $ | |
477 | - | let requestOwner = $ | |
478 | - | let date = $ | |
479 | - | let $ | |
480 | - | let payment = $ | |
481 | - | let amount = $ | |
484 | + | let $t01657716621 = idCallerDate(i) | |
485 | + | let id = $t01657716621._1 | |
486 | + | let requestOwner = $t01657716621._2 | |
487 | + | let date = $t01657716621._3 | |
488 | + | let $t01662716663 = isPayment(i) | |
489 | + | let payment = $t01662716663._1 | |
490 | + | let amount = $t01662716663._2 | |
482 | 491 | let assetId = if (!(isDefined(payment.assetId))) | |
483 | 492 | then "WAVES" | |
484 | 493 | else toBase58String(value(payment.assetId)) | |
498 | 507 | ||
499 | 508 | @Callable(i) | |
500 | 509 | func fillRequest (artId,requestOwner,offerId) = { | |
501 | - | let $ | |
502 | - | let id = $ | |
503 | - | let saleOwner = $ | |
504 | - | let date = $ | |
505 | - | let $ | |
506 | - | let payment = $ | |
507 | - | let amountAttached = $ | |
510 | + | let $t01747017512 = idCallerDate(i) | |
511 | + | let id = $t01747017512._1 | |
512 | + | let saleOwner = $t01747017512._2 | |
513 | + | let date = $t01747017512._3 | |
514 | + | let $t01751717561 = isPayment(i) | |
515 | + | let payment = $t01751717561._1 | |
516 | + | let amountAttached = $t01751717561._2 | |
508 | 517 | let NFTid = if (if (isDefined(payment.assetId)) | |
509 | 518 | then isSignArtNFT(value(payment.assetId)) | |
510 | 519 | else false) | |
521 | 530 | then throw("This NFT don't match the requested artwork") | |
522 | 531 | else { | |
523 | 532 | let amount = value(parseInt(requestData[1])) | |
524 | - | let $ | |
525 | - | let signFee = $ | |
526 | - | let creatorFee = $ | |
527 | - | let ownerFee = $ | |
528 | - | let | |
529 | - | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, | |
533 | + | let $t01828118456 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
534 | + | let signFee = $t01828118456._1 | |
535 | + | let creatorFee = $t01828118456._2 | |
536 | + | let ownerFee = $t01828118456._3 | |
537 | + | let collectorNFT = $t01828118456._4 | |
538 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorNFT] | |
530 | 539 | } | |
531 | 540 | } | |
532 | 541 | } | |
535 | 544 | ||
536 | 545 | @Callable(i) | |
537 | 546 | func cancelRequest (artId,creatorAddr,requestId) = { | |
538 | - | let $ | |
539 | - | let id = $ | |
540 | - | let requestOwner = $ | |
541 | - | let date = $ | |
547 | + | let $t01900819052 = idCallerDate(i) | |
548 | + | let id = $t01900819052._1 | |
549 | + | let requestOwner = $t01900819052._2 | |
550 | + | let date = $t01900819052._3 | |
542 | 551 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
543 | 552 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
544 | 553 | if ((size(requestData) == 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let userDapp = if (unitTest) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let wavesAssetId = base58'' | |
25 | 25 | ||
26 | 26 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | 29 | ||
30 | 30 | let signCut = 3 | |
31 | 31 | ||
32 | 32 | let creatorCut = 10 | |
33 | 33 | ||
34 | 34 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
35 | 35 | ||
36 | 36 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
37 | 37 | ||
38 | 38 | let userSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let userRemoved = "REMOVED" | |
41 | 41 | ||
42 | 42 | let artIllegal = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | let artSuspended = "SUSPENDED" | |
45 | 45 | ||
46 | 46 | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyUserStatus (addr) = ("user_status_" + addr) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyNFTData (id) = ("nft_" + id) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
74 | 74 | ||
75 | 75 | func idCallerDate (i) = if (!(dappRunning)) | |
76 | 76 | then throw(maintenanceMSG) | |
77 | 77 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func isPayment (i) = if ((size(i.payments) == 0)) | |
81 | 81 | then throw("No payment attached") | |
82 | 82 | else { | |
83 | 83 | let payment = value(i.payments[0]) | |
84 | 84 | let amount = value(payment.amount) | |
85 | 85 | $Tuple2(payment, amount) | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func isSignArtNFT (id) = { | |
90 | 90 | let assetDetails = value(assetInfo(id)) | |
91 | 91 | if (if (if (if ((assetDetails.quantity != 1)) | |
92 | 92 | then true | |
93 | 93 | else (assetDetails.decimals != 0)) | |
94 | 94 | then true | |
95 | 95 | else (assetDetails.reissuable != false)) | |
96 | 96 | then true | |
97 | 97 | else (assetDetails.issuer != artworksDapp)) | |
98 | 98 | then false | |
99 | 99 | else true | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
104 | 104 | then (assetId != toBase58String(wavesAssetId)) | |
105 | 105 | else false) | |
106 | 106 | then (assetId != "WAVES") | |
107 | 107 | else false) | |
108 | 108 | then (assetId != toBase58String(usdnAssetId)) | |
109 | 109 | else false) | |
110 | 110 | then false | |
111 | 111 | else true | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
115 | 115 | then unit | |
116 | 116 | else fromBase58String(assetId) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getSaleOwnerAndStatus (nftid) = { | |
120 | 120 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
121 | 121 | if ((size(saleOwner) == 0)) | |
122 | 122 | then throw("NFT not found") | |
123 | 123 | else { | |
124 | 124 | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
125 | 125 | if ((saleStatus != "OPEN")) | |
126 | 126 | then throw("NFT not for sale") | |
127 | 127 | else saleOwner | |
128 | 128 | } | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getBidData (key) = { | |
133 | 133 | let bidData = getStrByK((key + "_OPEN")) | |
134 | 134 | if ((bidData == "")) | |
135 | 135 | then throw("Offer not found") | |
136 | 136 | else { | |
137 | 137 | let bidDataArr = split(bidData, "_") | |
138 | 138 | let assetId = getBidAssetId(bidDataArr[2]) | |
139 | 139 | $Tuple3(bidDataArr, assetId, bidData) | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func checkArtStatus (addr,id) = { | |
145 | 145 | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
146 | 146 | if (if ((artStatus == artIllegal)) | |
147 | 147 | then true | |
148 | 148 | else (artStatus == artSuspended)) | |
149 | 149 | then throw(("Original Artwork flagged as " + artStatus)) | |
150 | 150 | else true | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func checkArtistStatus (addr) = { | |
155 | 155 | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
156 | 156 | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
157 | 157 | then throw(("Original Artist " + artistStatus)) | |
158 | 158 | else true | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func checkNFTInfo (assetId) = { | |
163 | 163 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
164 | 164 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
165 | - | if ((size(artSignID) == 0)) | |
166 | - | then throw("Artwork not found on SIGN Art") | |
167 | - | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
168 | - | then !(checkArtistStatus(nftData[6])) | |
169 | - | else false) | |
170 | - | then $Tuple3(false, nftData[5], nftData[6]) | |
171 | - | else $Tuple3(true, nftData[5], nftData[6]) | |
165 | + | if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
166 | + | then !(checkArtistStatus(nftData[6])) | |
167 | + | else false) | |
168 | + | then $Tuple4(false, nftData[5], nftData[6], artSignID) | |
169 | + | else $Tuple4(true, nftData[5], nftData[6], artSignID) | |
172 | 170 | } | |
173 | 171 | ||
174 | 172 | ||
175 | 173 | func checkARTExist (artId,creatorAddr) = { | |
176 | 174 | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
177 | 175 | if ((size(artSignID) == 0)) | |
178 | 176 | then throw("Artwork not found on SIGN Art") | |
179 | 177 | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
180 | 178 | then !(checkArtistStatus(creatorAddr)) | |
181 | 179 | else false) | |
182 | 180 | then false | |
183 | 181 | else true | |
184 | 182 | } | |
185 | 183 | ||
186 | 184 | ||
187 | 185 | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
188 | 186 | let amountForSign = fraction(amount, signCut, 100) | |
189 | 187 | let amountForCreator = fraction(amount, creatorCut, 100) | |
190 | 188 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
191 | 189 | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
192 | 190 | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
193 | 191 | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
194 | - | let | |
195 | - | $Tuple4(signFee, creatorFee, ownerFee, | |
192 | + | let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
193 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorNFT) | |
196 | 194 | } | |
197 | 195 | ||
198 | 196 | ||
199 | 197 | func validateMinSell (assetId,price) = { | |
200 | 198 | let minSellWaves = if (unitTest) | |
201 | 199 | then 10 | |
202 | 200 | else getIntByKFromOracle("waves_min_sell") | |
203 | 201 | let minSellUsdn = 1000000 | |
204 | 202 | let minSellSign = if (unitTest) | |
205 | 203 | then 1 | |
206 | 204 | else (currentCertificationPrice * 2) | |
207 | 205 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
208 | 206 | then (minSellUsdn > price) | |
209 | 207 | else false) | |
210 | 208 | then (price != 0) | |
211 | 209 | else false) | |
212 | 210 | then true | |
213 | 211 | else if (if ((assetId == toBase58String(signAssetId))) | |
214 | 212 | then (minSellSign > price) | |
215 | 213 | else false) | |
216 | 214 | then (price != 0) | |
217 | 215 | else false) | |
218 | 216 | then true | |
219 | 217 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
220 | 218 | then true | |
221 | 219 | else (assetId == "WAVES")) | |
222 | 220 | then (minSellWaves > price) | |
223 | 221 | else false) | |
224 | 222 | then (price != 0) | |
225 | 223 | else false) | |
226 | 224 | then false | |
227 | 225 | else true | |
228 | 226 | } | |
229 | 227 | ||
230 | 228 | ||
231 | 229 | @Callable(i) | |
232 | 230 | func sellNFT (price,asset) = { | |
233 | - | let $t078967935 = idCallerDate(i) | |
234 | - | let id = $t078967935._1 | |
235 | - | let caller = $t078967935._2 | |
236 | - | let date = $t078967935._3 | |
237 | - | let $t079407976 = isPayment(i) | |
238 | - | let payment = $t079407976._1 | |
239 | - | let amount = $t079407976._2 | |
240 | - | if (!(acceptedAssetIds(asset))) | |
241 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
242 | - | else if (!(validateMinSell(asset, price))) | |
243 | - | then throw("Wrong minimum sell price") | |
231 | + | let $t081048143 = idCallerDate(i) | |
232 | + | let id = $t081048143._1 | |
233 | + | let caller = $t081048143._2 | |
234 | + | let date = $t081048143._3 | |
235 | + | let $t081498185 = isPayment(i) | |
236 | + | let payment = $t081498185._1 | |
237 | + | let amount = $t081498185._2 | |
238 | + | let nftId = if (if (isDefined(payment.assetId)) | |
239 | + | then isSignArtNFT(value(payment.assetId)) | |
240 | + | else false) | |
241 | + | then toBase58String(value(payment.assetId)) | |
242 | + | else throw("Only SIGN Art NFT accepted.") | |
243 | + | let $t083648433 = checkNFTInfo(nftId) | |
244 | + | let isValidNFT = $t083648433._1 | |
245 | + | let artId = $t083648433._2 | |
246 | + | let creatorAddr = $t083648433._3 | |
247 | + | let artSignID = $t083648433._4 | |
248 | + | if ((size(artSignID) == 0)) | |
249 | + | then throw("Artwork not found on SIGN Art") | |
250 | + | else if (!(isValidNFT)) | |
251 | + | then throw("Something went wrong") | |
252 | + | else if (!(acceptedAssetIds(asset))) | |
253 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
254 | + | else if ((price == 0)) | |
255 | + | then throw("Wrong minimum sell price") | |
256 | + | else if (!(validateMinSell(asset, price))) | |
257 | + | then throw("Wrong minimum sell price") | |
258 | + | else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
259 | + | } | |
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | @Callable(i) | |
264 | + | func updateSalePrice (nftid,price,asset) = { | |
265 | + | let $t093259364 = idCallerDate(i) | |
266 | + | let id = $t093259364._1 | |
267 | + | let caller = $t093259364._2 | |
268 | + | let date = $t093259364._3 | |
269 | + | let $t093709439 = checkNFTInfo(nftid) | |
270 | + | let isValidNFT = $t093709439._1 | |
271 | + | let artId = $t093709439._2 | |
272 | + | let creatorAddr = $t093709439._3 | |
273 | + | let artSignID = $t093709439._4 | |
274 | + | if ((size(artSignID) == 0)) | |
275 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
276 | + | else if (!(isValidNFT)) | |
277 | + | then throw("Something went wrong") | |
244 | 278 | else { | |
245 | - | let nftId = if (if (isDefined(payment.assetId)) | |
246 | - | then isSignArtNFT(value(payment.assetId)) | |
247 | - | else false) | |
248 | - | then toBase58String(value(payment.assetId)) | |
249 | - | else throw("Only SIGN Art NFT accepted.") | |
250 | - | let $t083868444 = checkNFTInfo(nftId) | |
251 | - | let isValidNFT = $t083868444._1 | |
252 | - | let artId = $t083868444._2 | |
253 | - | let creatorAddr = $t083868444._3 | |
254 | - | if (!(isValidNFT)) | |
255 | - | then throw("Something went wrong") | |
256 | - | else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
279 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
280 | + | if ((saleOwner != caller)) | |
281 | + | then throw("You don't own this NFT") | |
282 | + | else { | |
283 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
284 | + | if ((saleStatus != "OPEN")) | |
285 | + | then throw("Sale not active") | |
286 | + | else if (!(acceptedAssetIds(asset))) | |
287 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
288 | + | else if ((price == 0)) | |
289 | + | then throw("Wrong minimum sell price") | |
290 | + | else if (!(validateMinSell(asset, price))) | |
291 | + | then throw("Wrong minimum sell price") | |
292 | + | else { | |
293 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
294 | + | let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_") | |
295 | + | [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
296 | + | } | |
297 | + | } | |
257 | 298 | } | |
258 | 299 | } | |
259 | 300 | ||
260 | 301 | ||
261 | 302 | ||
262 | 303 | @Callable(i) | |
263 | - | func updateSalePrice (nftid,price,asset) = { | |
264 | - | let $t089608999 = idCallerDate(i) | |
265 | - | let id = $t089608999._1 | |
266 | - | let caller = $t089608999._2 | |
267 | - | let date = $t089608999._3 | |
268 | - | let $t090049062 = checkNFTInfo(nftid) | |
269 | - | let isValidNFT = $t090049062._1 | |
270 | - | let artId = $t090049062._2 | |
271 | - | let creatorAddr = $t090049062._3 | |
272 | - | if (!(isValidNFT)) | |
273 | - | then throw("Something went wrong") | |
274 | - | else { | |
275 | - | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
276 | - | if ((saleOwner != caller)) | |
277 | - | then throw("You don't own this NFT") | |
278 | - | else { | |
279 | - | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
280 | - | if ((saleStatus != "OPEN")) | |
281 | - | then throw("Sale not active") | |
282 | - | else if (!(acceptedAssetIds(asset))) | |
283 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
284 | - | else if (!(validateMinSell(asset, price))) | |
285 | - | then throw("Wrong minimum sell price") | |
286 | - | else { | |
287 | - | let saleInfo = split(getStrByK(((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + saleStatus)), "_") | |
288 | - | [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
289 | - | } | |
290 | - | } | |
291 | - | } | |
292 | - | } | |
293 | - | ||
294 | - | ||
295 | - | ||
296 | - | @Callable(i) | |
297 | 304 | func cancelSale (nftid) = { | |
298 | - | let $t01007910118 = idCallerDate(i) | |
299 | - | let id = $t01007910118._1 | |
300 | - | let caller = $t01007910118._2 | |
301 | - | let date = $t01007910118._3 | |
305 | + | let $t01058910628 = idCallerDate(i) | |
306 | + | let id = $t01058910628._1 | |
307 | + | let caller = $t01058910628._2 | |
308 | + | let date = $t01058910628._3 | |
309 | + | let $t01063410856 = checkNFTInfo(nftid) | |
310 | + | let isValidNFT = $t01063410856._1 | |
311 | + | let artId = $t01063410856._2 | |
312 | + | let creatorAddr = $t01063410856._3 | |
313 | + | let artSignID = $t01063410856._4 | |
302 | 314 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
303 | 315 | if ((saleOwner != caller)) | |
304 | 316 | then throw("You don't own this NFT") | |
305 | 317 | else { | |
306 | 318 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
307 | 319 | if ((saleStatus != "OPEN")) | |
308 | 320 | then throw("Sale not active") | |
309 | 321 | else { | |
310 | - | let $t01041010468 = checkNFTInfo(nftid) | |
311 | - | let isValidNFT = $t01041010468._1 | |
312 | - | let artId = $t01041010468._2 | |
313 | - | let creatorAddr = $t01041010468._3 | |
314 | - | if (!(isValidNFT)) | |
315 | - | then throw("Something went wrong") | |
316 | - | else { | |
317 | - | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
318 | - | [DeleteEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
319 | - | } | |
322 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
323 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
324 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
320 | 325 | } | |
321 | 326 | } | |
322 | 327 | } | |
323 | 328 | ||
324 | 329 | ||
325 | 330 | ||
326 | 331 | @Callable(i) | |
327 | 332 | func buyNFT (nftid) = { | |
328 | - | let $ | |
329 | - | let id = $ | |
330 | - | let caller = $ | |
331 | - | let date = $ | |
333 | + | let $t01166911708 = idCallerDate(i) | |
334 | + | let id = $t01166911708._1 | |
335 | + | let caller = $t01166911708._2 | |
336 | + | let date = $t01166911708._3 | |
332 | 337 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
333 | - | let $t01143211490 = checkNFTInfo(nftid) | |
334 | - | let isValidNFT = $t01143211490._1 | |
335 | - | let artId = $t01143211490._2 | |
336 | - | let creatorAddr = $t01143211490._3 | |
337 | - | if (!(isValidNFT)) | |
338 | - | then throw("Something went wrong") | |
339 | - | else { | |
340 | - | let saleInfo = getStrByK((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")) | |
341 | - | if ((size(saleInfo) == 0)) | |
342 | - | then throw("Sale Not found!") | |
343 | - | else { | |
344 | - | let saleInfoArray = split(saleInfo, "_") | |
345 | - | if ((parseInt(saleInfoArray[1]) == 0)) | |
346 | - | then throw("Offer only") | |
347 | - | else { | |
348 | - | let $t01183411870 = isPayment(i) | |
349 | - | let payment = $t01183411870._1 | |
350 | - | let amount = $t01183411870._2 | |
351 | - | let paymentAssetStr = if (isDefined(payment.assetId)) | |
352 | - | then toBase58String(value(payment.assetId)) | |
353 | - | else "" | |
354 | - | if (if ((saleInfoArray[1] != toString(amount))) | |
355 | - | then true | |
356 | - | else (saleInfoArray[2] != paymentAssetStr)) | |
357 | - | then throw("Payment infos don't match.") | |
358 | - | else { | |
359 | - | let amountForSign = fraction(amount, signCut, 100) | |
360 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
361 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
362 | - | let $t01237312501 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
363 | - | let signFee = $t01237312501._1 | |
364 | - | let creatorFee = $t01237312501._2 | |
365 | - | let ownerFee = $t01237312501._3 | |
366 | - | let collectorFee = $t01237312501._4 | |
367 | - | [DeleteEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee] | |
368 | - | } | |
369 | - | } | |
370 | - | } | |
371 | - | } | |
338 | + | let $t01176211831 = checkNFTInfo(nftid) | |
339 | + | let isValidNFT = $t01176211831._1 | |
340 | + | let artId = $t01176211831._2 | |
341 | + | let creatorAddr = $t01176211831._3 | |
342 | + | let artSignID = $t01176211831._4 | |
343 | + | if ((size(artSignID) == 0)) | |
344 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
345 | + | else if (!(isValidNFT)) | |
346 | + | then throw("Something went wrong") | |
347 | + | else { | |
348 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
349 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
350 | + | if ((size(saleInfo) == 0)) | |
351 | + | then throw("Sale Not found!") | |
352 | + | else { | |
353 | + | let saleInfoArray = split(saleInfo, "_") | |
354 | + | if ((parseInt(saleInfoArray[1]) == 0)) | |
355 | + | then throw("Offer only") | |
356 | + | else { | |
357 | + | let $t01229912335 = isPayment(i) | |
358 | + | let payment = $t01229912335._1 | |
359 | + | let amount = $t01229912335._2 | |
360 | + | let paymentAssetStr = if (isDefined(payment.assetId)) | |
361 | + | then toBase58String(value(payment.assetId)) | |
362 | + | else "" | |
363 | + | if (if ((saleInfoArray[1] != toString(amount))) | |
364 | + | then true | |
365 | + | else (saleInfoArray[2] != paymentAssetStr)) | |
366 | + | then throw("Payment infos don't match.") | |
367 | + | else { | |
368 | + | let amountForSign = fraction(amount, signCut, 100) | |
369 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
370 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
371 | + | let $t01283812966 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
372 | + | let signFee = $t01283812966._1 | |
373 | + | let creatorFee = $t01283812966._2 | |
374 | + | let ownerFee = $t01283812966._3 | |
375 | + | let collectorNFT = $t01283812966._4 | |
376 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT] | |
377 | + | } | |
378 | + | } | |
379 | + | } | |
380 | + | } | |
372 | 381 | } | |
373 | 382 | ||
374 | 383 | ||
375 | 384 | ||
376 | 385 | @Callable(i) | |
377 | 386 | func setOffer (nftid) = { | |
378 | - | let $ | |
379 | - | let id = $ | |
380 | - | let offerOwner = $ | |
381 | - | let date = $ | |
382 | - | let $ | |
383 | - | let payment = $ | |
384 | - | let amount = $ | |
387 | + | let $t01336913411 = idCallerDate(i) | |
388 | + | let id = $t01336913411._1 | |
389 | + | let offerOwner = $t01336913411._2 | |
390 | + | let date = $t01336913411._3 | |
391 | + | let $t01341713453 = isPayment(i) | |
392 | + | let payment = $t01341713453._1 | |
393 | + | let amount = $t01341713453._2 | |
385 | 394 | let assetId = if (!(isDefined(payment.assetId))) | |
386 | 395 | then "WAVES" | |
387 | 396 | else toBase58String(value(payment.assetId)) | |
388 | 397 | if (!(acceptedAssetIds(assetId))) | |
389 | 398 | then throw("asset not accepted") | |
390 | 399 | else if ((amount == 0)) | |
391 | 400 | then throw("Offer of 0 not allowed") | |
392 | 401 | else if (!(validateMinSell(assetId, amount))) | |
393 | 402 | then throw("Wrong minimum sell price") | |
394 | 403 | else { | |
395 | - | let $ | |
396 | - | let isValidNFT = $ | |
397 | - | let artId = $ | |
398 | - | let creatorAddr = $ | |
404 | + | let $t01378713845 = checkNFTInfo(nftid) | |
405 | + | let isValidNFT = $t01378713845._1 | |
406 | + | let artId = $t01378713845._2 | |
407 | + | let creatorAddr = $t01378713845._3 | |
399 | 408 | if (!(isValidNFT)) | |
400 | 409 | then throw("Something went wrong") | |
401 | 410 | else { | |
402 | 411 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
403 | 412 | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))] | |
404 | 413 | } | |
405 | 414 | } | |
406 | 415 | } | |
407 | 416 | ||
408 | 417 | ||
409 | 418 | ||
410 | 419 | @Callable(i) | |
411 | 420 | func acceptOffer (nftid,offerId,offerOwner) = { | |
412 | - | let $ | |
413 | - | let id = $ | |
414 | - | let caller = $ | |
415 | - | let date = $ | |
421 | + | let $t01437814447 = idCallerDate(i) | |
422 | + | let id = $t01437814447._1 | |
423 | + | let caller = $t01437814447._2 | |
424 | + | let date = $t01437814447._3 | |
416 | 425 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
417 | 426 | if ((caller != saleOwner)) | |
418 | 427 | then throw("You cannot do this action") | |
419 | 428 | else { | |
420 | 429 | let bidKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
421 | 430 | let bidValue = getStrByK((bidKey + "_OPEN")) | |
422 | 431 | if ((bidValue == "")) | |
423 | 432 | then throw("Offer not found or not for sale") | |
424 | 433 | else { | |
425 | - | let $ | |
426 | - | let isValidNFT = $ | |
427 | - | let artId = $ | |
428 | - | let creatorAddr = $ | |
434 | + | let $t01477114829 = checkNFTInfo(nftid) | |
435 | + | let isValidNFT = $t01477114829._1 | |
436 | + | let artId = $t01477114829._2 | |
437 | + | let creatorAddr = $t01477114829._3 | |
429 | 438 | if (!(isValidNFT)) | |
430 | 439 | then throw("Something went wrong") | |
431 | 440 | else { | |
432 | - | let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) | |
441 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
433 | 442 | let saleValue = getStrByK((saleKey + "_OPEN")) | |
434 | 443 | if ((size(saleValue) == 0)) | |
435 | 444 | then throw("Sale Not found!") | |
436 | 445 | else { | |
437 | 446 | let saleValArr = split(saleValue, "_") | |
438 | - | let $ | |
439 | - | let bidDataArr = $ | |
440 | - | let assetId = $ | |
441 | - | let bidData = $ | |
447 | + | let $t01517415229 = getBidData(bidKey) | |
448 | + | let bidDataArr = $t01517415229._1 | |
449 | + | let assetId = $t01517415229._2 | |
450 | + | let bidData = $t01517415229._3 | |
442 | 451 | let amount = value(parseInt(bidDataArr[1])) | |
443 | - | let $ | |
444 | - | let signFee = $ | |
445 | - | let creatorFee = $ | |
446 | - | let ownerFee = $ | |
447 | - | let | |
448 | - | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, | |
452 | + | let $t01528315410 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6]) | |
453 | + | let signFee = $t01528315410._1 | |
454 | + | let creatorFee = $t01528315410._2 | |
455 | + | let ownerFee = $t01528315410._3 | |
456 | + | let collectorNFT = $t01528315410._4 | |
457 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorNFT] | |
449 | 458 | } | |
450 | 459 | } | |
451 | 460 | } | |
452 | 461 | } | |
453 | 462 | } | |
454 | 463 | ||
455 | 464 | ||
456 | 465 | ||
457 | 466 | @Callable(i) | |
458 | 467 | func cancelOffer (nftid,offerId,saleOwner) = { | |
459 | - | let $ | |
460 | - | let id = $ | |
461 | - | let caller = $ | |
462 | - | let date = $ | |
468 | + | let $t01605916120 = idCallerDate(i) | |
469 | + | let id = $t01605916120._1 | |
470 | + | let caller = $t01605916120._2 | |
471 | + | let date = $t01605916120._3 | |
463 | 472 | let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
464 | - | let $ | |
465 | - | let bidDataArr = $ | |
466 | - | let assetId = $ | |
467 | - | let bidData = $ | |
473 | + | let $t01619716252 = getBidData(bidKey) | |
474 | + | let bidDataArr = $t01619716252._1 | |
475 | + | let assetId = $t01619716252._2 | |
476 | + | let bidData = $t01619716252._3 | |
468 | 477 | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
469 | 478 | } | |
470 | 479 | ||
471 | 480 | ||
472 | 481 | ||
473 | 482 | @Callable(i) | |
474 | 483 | func makeRequest (artId,creatorAddr) = { | |
475 | - | let $ | |
476 | - | let id = $ | |
477 | - | let requestOwner = $ | |
478 | - | let date = $ | |
479 | - | let $ | |
480 | - | let payment = $ | |
481 | - | let amount = $ | |
484 | + | let $t01657716621 = idCallerDate(i) | |
485 | + | let id = $t01657716621._1 | |
486 | + | let requestOwner = $t01657716621._2 | |
487 | + | let date = $t01657716621._3 | |
488 | + | let $t01662716663 = isPayment(i) | |
489 | + | let payment = $t01662716663._1 | |
490 | + | let amount = $t01662716663._2 | |
482 | 491 | let assetId = if (!(isDefined(payment.assetId))) | |
483 | 492 | then "WAVES" | |
484 | 493 | else toBase58String(value(payment.assetId)) | |
485 | 494 | if (!(acceptedAssetIds(assetId))) | |
486 | 495 | then throw("asset not accepted") | |
487 | 496 | else if (!(validateMinSell(assetId, amount))) | |
488 | 497 | then throw("Wrong minimum sell price") | |
489 | 498 | else { | |
490 | 499 | let isValidART = checkARTExist(artId, creatorAddr) | |
491 | 500 | if (!(isValidART)) | |
492 | 501 | then throw("Something went wrong") | |
493 | 502 | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
494 | 503 | } | |
495 | 504 | } | |
496 | 505 | ||
497 | 506 | ||
498 | 507 | ||
499 | 508 | @Callable(i) | |
500 | 509 | func fillRequest (artId,requestOwner,offerId) = { | |
501 | - | let $ | |
502 | - | let id = $ | |
503 | - | let saleOwner = $ | |
504 | - | let date = $ | |
505 | - | let $ | |
506 | - | let payment = $ | |
507 | - | let amountAttached = $ | |
510 | + | let $t01747017512 = idCallerDate(i) | |
511 | + | let id = $t01747017512._1 | |
512 | + | let saleOwner = $t01747017512._2 | |
513 | + | let date = $t01747017512._3 | |
514 | + | let $t01751717561 = isPayment(i) | |
515 | + | let payment = $t01751717561._1 | |
516 | + | let amountAttached = $t01751717561._2 | |
508 | 517 | let NFTid = if (if (isDefined(payment.assetId)) | |
509 | 518 | then isSignArtNFT(value(payment.assetId)) | |
510 | 519 | else false) | |
511 | 520 | then payment.assetId | |
512 | 521 | else throw("No NFT found") | |
513 | 522 | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
514 | 523 | if ((size(NFTdata) == 0)) | |
515 | 524 | then throw("No NFT found") | |
516 | 525 | else { | |
517 | 526 | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
518 | 527 | if ((size(requestData) == 1)) | |
519 | 528 | then throw("No request found") | |
520 | 529 | else if ((requestData[3] != NFTdata[5])) | |
521 | 530 | then throw("This NFT don't match the requested artwork") | |
522 | 531 | else { | |
523 | 532 | let amount = value(parseInt(requestData[1])) | |
524 | - | let $ | |
525 | - | let signFee = $ | |
526 | - | let creatorFee = $ | |
527 | - | let ownerFee = $ | |
528 | - | let | |
529 | - | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, | |
533 | + | let $t01828118456 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
534 | + | let signFee = $t01828118456._1 | |
535 | + | let creatorFee = $t01828118456._2 | |
536 | + | let ownerFee = $t01828118456._3 | |
537 | + | let collectorNFT = $t01828118456._4 | |
538 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorNFT] | |
530 | 539 | } | |
531 | 540 | } | |
532 | 541 | } | |
533 | 542 | ||
534 | 543 | ||
535 | 544 | ||
536 | 545 | @Callable(i) | |
537 | 546 | func cancelRequest (artId,creatorAddr,requestId) = { | |
538 | - | let $ | |
539 | - | let id = $ | |
540 | - | let requestOwner = $ | |
541 | - | let date = $ | |
547 | + | let $t01900819052 = idCallerDate(i) | |
548 | + | let id = $t01900819052._1 | |
549 | + | let requestOwner = $t01900819052._2 | |
550 | + | let date = $t01900819052._3 | |
542 | 551 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
543 | 552 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
544 | 553 | if ((size(requestData) == 0)) | |
545 | 554 | then throw("Request not found") | |
546 | 555 | else { | |
547 | 556 | let requestDataArr = split(requestData, "_") | |
548 | 557 | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
549 | 558 | } | |
550 | 559 | } | |
551 | 560 | ||
552 | 561 |
github/deemru/w8io/026f985 118.79 ms ◑