tx · FsJYPzUKCnL19cDrVh95dg15y1KPSAWZQ6mBPMdHQMPu 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p: -0.01400000 Waves 2022.02.02 15:03 [1905945] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves
{ "type": 13, "id": "FsJYPzUKCnL19cDrVh95dg15y1KPSAWZQ6mBPMdHQMPu", "fee": 1400000, "feeAssetId": null, "timestamp": 1643803497755, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "39QvdaeXCbi6QjH4ziRRDvn5VdtfZu2vQA4ut5jhi87wdUxKzB761fSSQrDzhT8fHavYtSuhjvKh9a77VPNXYGY7" ], "script": "base64:AAIFAAAAAAAAADMIAhIECgIECBIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgYKBAgICAgAAAAzAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUU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9AAAAAgUAAAAGY2FsbGVyBQAAAAlzYWxlT3duZXIHCQAAAgAAAAECAAAAHVlvdSBjYW5ub3QgY2FuY2VsIHRoaXMgb2ZmZXIuBAAAAAZiaWRLZXkJAQAAAAlnZXRCaWRLZXkAAAAEBQAAAApvZmZlck93bmVyBQAAAAVuZnRJZAUAAAAJc2FsZU93bmVyBQAAAAdvZmZlcklkBAAAAA0kdDAxNzQwNDE3NDU5CQEAAAAKZ2V0QmlkRGF0YQAAAAEFAAAABmJpZEtleQQAAAAKYmlkRGF0YUFycggFAAAADSR0MDE3NDA0MTc0NTkAAAACXzEEAAAAB2Fzc2V0SWQIBQAAAA0kdDAxNzQwNDE3NDU5AAAAAl8yBAAAAAdiaWREYXRhCAUAAAANJHQwMTc0MDQxNzQ1OQAAAAJfMwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAABmJpZEtleQIAAAAFX09QRU4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAZiaWRLZXkCAAAACl9DQU5DRUxMRUQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHYmlkRGF0YQIAAAALX0NBTkNFTExFRF8JAAGkAAAAAQUAAAAEZGF0ZQIAAAABXwUAAAACaWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmNhbGxlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAABVR00u", "height": 1905945, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ePUitvYZnPRjox4Bx9zCJDuyqzDtKvop3DeRG7goJEE Next: 2JxtmcDZGopstmYjUg5n3QDFwBvANp7cgSrjk9RnTpGG Diff:
Old | New | Differences | |
---|---|---|---|
276 | 276 | let $t094019437 = isPayment(i) | |
277 | 277 | let payment = $t094019437._1 | |
278 | 278 | let amount = $t094019437._2 | |
279 | - | let nftId = if (if (isDefined(payment.assetId)) | |
280 | - | then isSignArtNFT(value(payment.assetId)) | |
281 | - | else false) | |
282 | - | then toBase58String(value(payment.assetId)) | |
283 | - | else throw("Only SIGN Art NFT accepted.") | |
284 | - | let $t096169708 = provideBaseData(i, nftId) | |
285 | - | let id = $t096169708._1 | |
286 | - | let caller = $t096169708._2 | |
287 | - | let date = $t096169708._3 | |
288 | - | let isValidNFT = $t096169708._4 | |
289 | - | let artId = $t096169708._5 | |
290 | - | let creatorAddr = $t096169708._6 | |
291 | - | let artSignID = $t096169708._7 | |
292 | - | if ((size(artSignID) == 0)) | |
293 | - | then throw("Artwork not found on SIGN Art") | |
294 | - | else if (!(isValidNFT)) | |
295 | - | then throw("Not a valid nft") | |
296 | - | else if (!(acceptedAssetIds(asset))) | |
297 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
298 | - | else if (!(validateMinSell(asset, price))) | |
299 | - | then throw("Wrong minimum sell price") | |
300 | - | else [StringEntry((getSaleKey(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 | + | if ((amount != 1)) | |
280 | + | then throw("No NFT attached") | |
281 | + | else { | |
282 | + | let nftId = if (if (isDefined(payment.assetId)) | |
283 | + | then isSignArtNFT(value(payment.assetId)) | |
284 | + | else false) | |
285 | + | then toBase58String(value(payment.assetId)) | |
286 | + | else throw("Only SIGN Art NFT accepted.") | |
287 | + | let $t096699761 = provideBaseData(i, nftId) | |
288 | + | let id = $t096699761._1 | |
289 | + | let caller = $t096699761._2 | |
290 | + | let date = $t096699761._3 | |
291 | + | let isValidNFT = $t096699761._4 | |
292 | + | let artId = $t096699761._5 | |
293 | + | let creatorAddr = $t096699761._6 | |
294 | + | let artSignID = $t096699761._7 | |
295 | + | if ((size(artSignID) == 0)) | |
296 | + | then throw("Artwork not found on SIGN Art") | |
297 | + | else if (!(isValidNFT)) | |
298 | + | then throw("Not a valid nft") | |
299 | + | else if (!(acceptedAssetIds(asset))) | |
300 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
301 | + | else if (!(validateMinSell(asset, price))) | |
302 | + | then throw("Wrong minimum sell price") | |
303 | + | else [StringEntry((getSaleKey(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)] | |
304 | + | } | |
301 | 305 | } | |
302 | 306 | ||
303 | 307 | ||
304 | 308 | ||
305 | 309 | @Callable(i) | |
306 | 310 | func updateSalePrice (nftId,price,asset) = { | |
307 | - | let $ | |
308 | - | let id = $ | |
309 | - | let caller = $ | |
310 | - | let date = $ | |
311 | - | let isValidNFT = $ | |
312 | - | let artId = $ | |
313 | - | let creatorAddr = $ | |
314 | - | let artSignID = $ | |
311 | + | let $t01063510727 = provideBaseData(i, nftId) | |
312 | + | let id = $t01063510727._1 | |
313 | + | let caller = $t01063510727._2 | |
314 | + | let date = $t01063510727._3 | |
315 | + | let isValidNFT = $t01063510727._4 | |
316 | + | let artId = $t01063510727._5 | |
317 | + | let creatorAddr = $t01063510727._6 | |
318 | + | let artSignID = $t01063510727._7 | |
315 | 319 | if ((size(artSignID) == 0)) | |
316 | 320 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
317 | 321 | else if (!(isValidNFT)) | |
341 | 345 | ||
342 | 346 | @Callable(i) | |
343 | 347 | func cancelSale (nftId) = { | |
344 | - | let $ | |
345 | - | let id = $ | |
346 | - | let caller = $ | |
347 | - | let date = $ | |
348 | - | let isValidNFT = $ | |
349 | - | let artId = $ | |
350 | - | let creatorAddr = $ | |
351 | - | let artSignID = $ | |
348 | + | let $t01186912109 = provideBaseData(i, nftId) | |
349 | + | let id = $t01186912109._1 | |
350 | + | let caller = $t01186912109._2 | |
351 | + | let date = $t01186912109._3 | |
352 | + | let isValidNFT = $t01186912109._4 | |
353 | + | let artId = $t01186912109._5 | |
354 | + | let creatorAddr = $t01186912109._6 | |
355 | + | let artSignID = $t01186912109._7 | |
352 | 356 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId)) | |
353 | 357 | if ((saleOwner != caller)) | |
354 | 358 | then throw("You don't own this NFT") | |
368 | 372 | ||
369 | 373 | @Callable(i) | |
370 | 374 | func buyNFT (nftId) = { | |
371 | - | let $ | |
372 | - | let id = $ | |
373 | - | let caller = $ | |
374 | - | let date = $ | |
375 | - | let isValidNFT = $ | |
376 | - | let artId = $ | |
377 | - | let creatorAddr = $ | |
378 | - | let artSignID = $ | |
375 | + | let $t01294013032 = provideBaseData(i, nftId) | |
376 | + | let id = $t01294013032._1 | |
377 | + | let caller = $t01294013032._2 | |
378 | + | let date = $t01294013032._3 | |
379 | + | let isValidNFT = $t01294013032._4 | |
380 | + | let artId = $t01294013032._5 | |
381 | + | let creatorAddr = $t01294013032._6 | |
382 | + | let artSignID = $t01294013032._7 | |
379 | 383 | if ((size(artSignID) == 0)) | |
380 | 384 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
381 | 385 | else if (!(isValidNFT)) | |
391 | 395 | if ((parseInt(saleInfoArray[1]) == 0)) | |
392 | 396 | then throw("Offer only") | |
393 | 397 | else { | |
394 | - | let $ | |
395 | - | let payment = $ | |
396 | - | let amount = $ | |
398 | + | let $t01352913565 = isPayment(i) | |
399 | + | let payment = $t01352913565._1 | |
400 | + | let amount = $t01352913565._2 | |
397 | 401 | let paymentAssetStr = if (isDefined(payment.assetId)) | |
398 | 402 | then toBase58String(value(payment.assetId)) | |
399 | 403 | else "" | |
405 | 409 | let amountForSign = fraction(amount, signCut, 100) | |
406 | 410 | let amountForCreator = fraction(amount, creatorCut, 100) | |
407 | 411 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
408 | - | let $ | |
409 | - | let signFee = $ | |
410 | - | let creatorFee = $ | |
411 | - | let ownerFee = $ | |
412 | - | let collectorNFT = $ | |
412 | + | let $t01406814196 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller) | |
413 | + | let signFee = $t01406814196._1 | |
414 | + | let creatorFee = $t01406814196._2 | |
415 | + | let ownerFee = $t01406814196._3 | |
416 | + | let collectorNFT = $t01406814196._4 | |
413 | 417 | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((saleInfo + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT] | |
414 | 418 | } | |
415 | 419 | } | |
421 | 425 | ||
422 | 426 | @Callable(i) | |
423 | 427 | func setOffer (nftId) = { | |
424 | - | let $ | |
425 | - | let id = $ | |
426 | - | let offerOwner = $ | |
427 | - | let date = $ | |
428 | - | let isValidNFT = $ | |
429 | - | let artId = $ | |
430 | - | let creatorAddr = $ | |
431 | - | let artSignID = $ | |
428 | + | let $t01460414700 = provideBaseData(i, nftId) | |
429 | + | let id = $t01460414700._1 | |
430 | + | let offerOwner = $t01460414700._2 | |
431 | + | let date = $t01460414700._3 | |
432 | + | let isValidNFT = $t01460414700._4 | |
433 | + | let artId = $t01460414700._5 | |
434 | + | let creatorAddr = $t01460414700._6 | |
435 | + | let artSignID = $t01460414700._7 | |
432 | 436 | if (!(isValidNFT)) | |
433 | 437 | then throw("Not a valid nft") | |
434 | 438 | else { | |
435 | - | let $ | |
436 | - | let payment = $ | |
437 | - | let amount = $ | |
439 | + | let $t01476114797 = isPayment(i) | |
440 | + | let payment = $t01476114797._1 | |
441 | + | let amount = $t01476114797._2 | |
438 | 442 | let assetId = if (!(isDefined(payment.assetId))) | |
439 | 443 | then "WAVES" | |
440 | 444 | else toBase58String(value(payment.assetId)) | |
455 | 459 | ||
456 | 460 | @Callable(i) | |
457 | 461 | func acceptOffer (nftId,offerId,offerOwner) = { | |
458 | - | let $ | |
459 | - | let id = $ | |
460 | - | let caller = $ | |
461 | - | let date = $ | |
462 | - | let isValidNFT = $ | |
463 | - | let artId = $ | |
464 | - | let creatorAddr = $ | |
465 | - | let artSignID = $ | |
462 | + | let $t01559915691 = provideBaseData(i, nftId) | |
463 | + | let id = $t01559915691._1 | |
464 | + | let caller = $t01559915691._2 | |
465 | + | let date = $t01559915691._3 | |
466 | + | let isValidNFT = $t01559915691._4 | |
467 | + | let artId = $t01559915691._5 | |
468 | + | let creatorAddr = $t01559915691._6 | |
469 | + | let artSignID = $t01559915691._7 | |
466 | 470 | if (!(isValidNFT)) | |
467 | 471 | then throw("Not a valid nft") | |
468 | 472 | else { | |
471 | 475 | then throw("Only sale owner can accept offer") | |
472 | 476 | else { | |
473 | 477 | let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId) | |
474 | - | let $ | |
475 | - | let bidDataArr = $ | |
476 | - | let assetId = $ | |
477 | - | let bidData = $ | |
478 | + | let $t01594516000 = getBidData(bidKey) | |
479 | + | let bidDataArr = $t01594516000._1 | |
480 | + | let assetId = $t01594516000._2 | |
481 | + | let bidData = $t01594516000._3 | |
478 | 482 | let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr) | |
479 | 483 | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
480 | 484 | if ((size(saleInfo) == 0)) | |
481 | 485 | then throw("Sale Not found!") | |
482 | 486 | else { | |
483 | 487 | let amount = value(parseInt(bidDataArr[1])) | |
484 | - | let $ | |
485 | - | let signFee = $ | |
486 | - | let creatorFee = $ | |
487 | - | let ownerFee = $ | |
488 | - | let collectorNFT = $ | |
488 | + | let $t01623616363 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6]) | |
489 | + | let signFee = $t01623616363._1 | |
490 | + | let creatorFee = $t01623616363._2 | |
491 | + | let ownerFee = $t01623616363._3 | |
492 | + | let collectorNFT = $t01623616363._4 | |
489 | 493 | let assetIdStr = if (isDefined(assetId)) | |
490 | 494 | then toBase58String(value(assetId)) | |
491 | 495 | else "WAVES" | |
499 | 503 | ||
500 | 504 | @Callable(i) | |
501 | 505 | func cancelOffer (nftId,offerId,offerOwner,saleOwner) = { | |
502 | - | let $ | |
503 | - | let id = $ | |
504 | - | let caller = $ | |
505 | - | let date = $ | |
506 | + | let $t01716017232 = idCallerDate(i) | |
507 | + | let id = $t01716017232._1 | |
508 | + | let caller = $t01716017232._2 | |
509 | + | let date = $t01716017232._3 | |
506 | 510 | if (if ((caller != offerOwner)) | |
507 | 511 | then (caller != saleOwner) | |
508 | 512 | else false) | |
509 | 513 | then throw("You cannot cancel this offer.") | |
510 | 514 | else { | |
511 | 515 | let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId) | |
512 | - | let $ | |
513 | - | let bidDataArr = $ | |
514 | - | let assetId = $ | |
515 | - | let bidData = $ | |
516 | + | let $t01740417459 = getBidData(bidKey) | |
517 | + | let bidDataArr = $t01740417459._1 | |
518 | + | let assetId = $t01740417459._2 | |
519 | + | let bidData = $t01740417459._3 | |
516 | 520 | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
517 | 521 | } | |
518 | 522 | } |
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("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 signCut = 3 | |
29 | 29 | ||
30 | 30 | let creatorCut = 10 | |
31 | 31 | ||
32 | 32 | let userSuspended = "SUSPENDED" | |
33 | 33 | ||
34 | 34 | let userRemoved = "REMOVED" | |
35 | 35 | ||
36 | 36 | let artIllegal = "ILLEGAL" | |
37 | 37 | ||
38 | 38 | let artSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let dappRunningKey = "conf_dapp_is_running" | |
41 | 41 | ||
42 | 42 | let maintenanceMSGKey = "conf_maintenance_msg" | |
43 | 43 | ||
44 | 44 | let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true) | |
45 | 45 | ||
46 | 46 | let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "") | |
47 | 47 | ||
48 | 48 | let numSalesK = "num_sales" | |
49 | 49 | ||
50 | 50 | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyUserStatus (addr) = ("user_status_" + addr) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyNFTData (id) = ("nft_" + id) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getSaleKey (caller,nftId,artId,creatorAddr) = ((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getBidKey (offerOwner,nftId,saleOwner,offerId) = ((((((("offer2nd_" + offerOwner) + "_") + nftId) + "_") + saleOwner) + "_") + offerId) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
84 | 84 | ||
85 | 85 | func idCallerDate (i) = if (!(dappRunning)) | |
86 | 86 | then throw(maintenanceMSG) | |
87 | 87 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func isPayment (i) = if ((size(i.payments) == 0)) | |
91 | 91 | then throw("No payment attached") | |
92 | 92 | else { | |
93 | 93 | let payment = value(i.payments[0]) | |
94 | 94 | let amount = value(payment.amount) | |
95 | 95 | $Tuple2(payment, amount) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1)) | |
100 | 100 | then (assetDetails.decimals == 0) | |
101 | 101 | else false) | |
102 | 102 | then (assetDetails.reissuable == false) | |
103 | 103 | else false) | |
104 | 104 | then (assetDetails.issuer == artworksDapp) | |
105 | 105 | else false | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func isSignArtNFT (id) = { | |
109 | 109 | let assetDetails = value(assetInfo(id)) | |
110 | 110 | assetIsValid(assetDetails) | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
115 | 115 | then (assetId != toBase58String(wavesAssetId)) | |
116 | 116 | else false) | |
117 | 117 | then (assetId != "WAVES") | |
118 | 118 | else false) | |
119 | 119 | then (assetId != toBase58String(usdnAssetId)) | |
120 | 120 | else false) | |
121 | 121 | then false | |
122 | 122 | else true | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
126 | 126 | then unit | |
127 | 127 | else fromBase58String(assetId) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getSaleOwnerAndStatus (nftid) = { | |
131 | 131 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
132 | 132 | if ((size(saleOwner) == 0)) | |
133 | 133 | then throw("NFT not found") | |
134 | 134 | else { | |
135 | 135 | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
136 | 136 | if ((saleStatus != "OPEN")) | |
137 | 137 | then throw("NFT not for sale") | |
138 | 138 | else saleOwner | |
139 | 139 | } | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getBidData (key) = { | |
144 | 144 | let bidData = getStrByK((key + "_OPEN")) | |
145 | 145 | if ((bidData == "")) | |
146 | 146 | then throw("Offer not found") | |
147 | 147 | else { | |
148 | 148 | let bidDataArr = split(bidData, "_") | |
149 | 149 | let assetId = getBidAssetId(bidDataArr[2]) | |
150 | 150 | $Tuple3(bidDataArr, assetId, bidData) | |
151 | 151 | } | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func artIsValid (artStatus) = if ((artStatus != artIllegal)) | |
156 | 156 | then (artStatus != artSuspended) | |
157 | 157 | else false | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func checkArtStatus (addr,id) = { | |
161 | 161 | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
162 | 162 | if (artIsValid(artStatus)) | |
163 | 163 | then true | |
164 | 164 | else throw(("Original Artwork flagged as " + artStatus)) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func checkArtistStatus (addr) = { | |
169 | 169 | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
170 | 170 | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
171 | 171 | then throw(("Original Artist " + artistStatus)) | |
172 | 172 | else true | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func checkNFTInfo (assetId) = { | |
177 | 177 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
178 | 178 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
179 | 179 | if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
180 | 180 | then !(checkArtistStatus(nftData[6])) | |
181 | 181 | else false) | |
182 | 182 | then $Tuple4(false, nftData[5], nftData[6], artSignID) | |
183 | 183 | else $Tuple4(true, nftData[5], nftData[6], artSignID) | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func checkARTExist (artId,creatorAddr) = { | |
188 | 188 | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
189 | 189 | if ((size(artSignID) == 0)) | |
190 | 190 | then throw("Artwork not found on SIGN Art") | |
191 | 191 | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
192 | 192 | then !(checkArtistStatus(creatorAddr)) | |
193 | 193 | else false) | |
194 | 194 | then false | |
195 | 195 | else true | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
200 | 200 | let amountForSign = fraction(amount, signCut, 100) | |
201 | 201 | let amountForCreator = fraction(amount, creatorCut, 100) | |
202 | 202 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
203 | 203 | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
204 | 204 | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
205 | 205 | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
206 | 206 | let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
207 | 207 | $Tuple4(signFee, creatorFee, ownerFee, collectorNFT) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func validateMinSell (assetId,price) = { | |
212 | 212 | let minSellWaves = if (unitTest) | |
213 | 213 | then 10 | |
214 | 214 | else getIntByKFromOracle("waves_min_sell") | |
215 | 215 | let minSellUsdn = 1000000 | |
216 | 216 | let minSellSign = if (unitTest) | |
217 | 217 | then 1 | |
218 | 218 | else (currentCertificationPrice * 2) | |
219 | 219 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
220 | 220 | then (minSellUsdn > price) | |
221 | 221 | else false) | |
222 | 222 | then (price != 0) | |
223 | 223 | else false) | |
224 | 224 | then true | |
225 | 225 | else if (if ((assetId == toBase58String(signAssetId))) | |
226 | 226 | then (minSellSign > price) | |
227 | 227 | else false) | |
228 | 228 | then (price != 0) | |
229 | 229 | else false) | |
230 | 230 | then true | |
231 | 231 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
232 | 232 | then true | |
233 | 233 | else (assetId == "WAVES")) | |
234 | 234 | then (minSellWaves > price) | |
235 | 235 | else false) | |
236 | 236 | then (price != 0) | |
237 | 237 | else false) | |
238 | 238 | then false | |
239 | 239 | else true | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func provideBaseData (i,nftId) = { | |
244 | 244 | let $t085778616 = idCallerDate(i) | |
245 | 245 | let id = $t085778616._1 | |
246 | 246 | let caller = $t085778616._2 | |
247 | 247 | let date = $t085778616._3 | |
248 | 248 | let $t086198688 = checkNFTInfo(nftId) | |
249 | 249 | let isValidNFT = $t086198688._1 | |
250 | 250 | let artId = $t086198688._2 | |
251 | 251 | let creatorAddr = $t086198688._3 | |
252 | 252 | let artSignID = $t086198688._4 | |
253 | 253 | $Tuple7(id, caller, date, isValidNFT, artId, creatorAddr, artSignID) | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func updateNumSales () = { | |
258 | 258 | let numSales = getIntByK(numSalesK) | |
259 | 259 | IntegerEntry(numSalesK, (numSales + 1)) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(invoke) | |
264 | 264 | func appRunning (isLive,message) = { | |
265 | 265 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
266 | 266 | let id = toBase58String(invoke.transactionId) | |
267 | 267 | if (containsElement([chris, toString(this)], caller)) | |
268 | 268 | then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)] | |
269 | 269 | else throw("You are not allowed to change this") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(i) | |
275 | 275 | func sellNFT (price,asset) = { | |
276 | 276 | let $t094019437 = isPayment(i) | |
277 | 277 | let payment = $t094019437._1 | |
278 | 278 | let amount = $t094019437._2 | |
279 | - | let nftId = if (if (isDefined(payment.assetId)) | |
280 | - | then isSignArtNFT(value(payment.assetId)) | |
281 | - | else false) | |
282 | - | then toBase58String(value(payment.assetId)) | |
283 | - | else throw("Only SIGN Art NFT accepted.") | |
284 | - | let $t096169708 = provideBaseData(i, nftId) | |
285 | - | let id = $t096169708._1 | |
286 | - | let caller = $t096169708._2 | |
287 | - | let date = $t096169708._3 | |
288 | - | let isValidNFT = $t096169708._4 | |
289 | - | let artId = $t096169708._5 | |
290 | - | let creatorAddr = $t096169708._6 | |
291 | - | let artSignID = $t096169708._7 | |
292 | - | if ((size(artSignID) == 0)) | |
293 | - | then throw("Artwork not found on SIGN Art") | |
294 | - | else if (!(isValidNFT)) | |
295 | - | then throw("Not a valid nft") | |
296 | - | else if (!(acceptedAssetIds(asset))) | |
297 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
298 | - | else if (!(validateMinSell(asset, price))) | |
299 | - | then throw("Wrong minimum sell price") | |
300 | - | else [StringEntry((getSaleKey(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 | + | if ((amount != 1)) | |
280 | + | then throw("No NFT attached") | |
281 | + | else { | |
282 | + | let nftId = if (if (isDefined(payment.assetId)) | |
283 | + | then isSignArtNFT(value(payment.assetId)) | |
284 | + | else false) | |
285 | + | then toBase58String(value(payment.assetId)) | |
286 | + | else throw("Only SIGN Art NFT accepted.") | |
287 | + | let $t096699761 = provideBaseData(i, nftId) | |
288 | + | let id = $t096699761._1 | |
289 | + | let caller = $t096699761._2 | |
290 | + | let date = $t096699761._3 | |
291 | + | let isValidNFT = $t096699761._4 | |
292 | + | let artId = $t096699761._5 | |
293 | + | let creatorAddr = $t096699761._6 | |
294 | + | let artSignID = $t096699761._7 | |
295 | + | if ((size(artSignID) == 0)) | |
296 | + | then throw("Artwork not found on SIGN Art") | |
297 | + | else if (!(isValidNFT)) | |
298 | + | then throw("Not a valid nft") | |
299 | + | else if (!(acceptedAssetIds(asset))) | |
300 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
301 | + | else if (!(validateMinSell(asset, price))) | |
302 | + | then throw("Wrong minimum sell price") | |
303 | + | else [StringEntry((getSaleKey(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)] | |
304 | + | } | |
301 | 305 | } | |
302 | 306 | ||
303 | 307 | ||
304 | 308 | ||
305 | 309 | @Callable(i) | |
306 | 310 | func updateSalePrice (nftId,price,asset) = { | |
307 | - | let $ | |
308 | - | let id = $ | |
309 | - | let caller = $ | |
310 | - | let date = $ | |
311 | - | let isValidNFT = $ | |
312 | - | let artId = $ | |
313 | - | let creatorAddr = $ | |
314 | - | let artSignID = $ | |
311 | + | let $t01063510727 = provideBaseData(i, nftId) | |
312 | + | let id = $t01063510727._1 | |
313 | + | let caller = $t01063510727._2 | |
314 | + | let date = $t01063510727._3 | |
315 | + | let isValidNFT = $t01063510727._4 | |
316 | + | let artId = $t01063510727._5 | |
317 | + | let creatorAddr = $t01063510727._6 | |
318 | + | let artSignID = $t01063510727._7 | |
315 | 319 | if ((size(artSignID) == 0)) | |
316 | 320 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
317 | 321 | else if (!(isValidNFT)) | |
318 | 322 | then throw("Not a valid nft") | |
319 | 323 | else { | |
320 | 324 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId)) | |
321 | 325 | if ((saleOwner != caller)) | |
322 | 326 | then throw("You don't own this NFT") | |
323 | 327 | else { | |
324 | 328 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId)) | |
325 | 329 | if ((saleStatus != "OPEN")) | |
326 | 330 | then throw("Sale not active") | |
327 | 331 | else if (!(acceptedAssetIds(asset))) | |
328 | 332 | then throw("Only SIGN, USDN or WAVES accepted") | |
329 | 333 | else if (!(validateMinSell(asset, price))) | |
330 | 334 | then throw("Wrong minimum sell price") | |
331 | 335 | else { | |
332 | 336 | let saleKey = getSaleKey(caller, nftId, artId, creatorAddr) | |
333 | 337 | let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_") | |
334 | 338 | [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
335 | 339 | } | |
336 | 340 | } | |
337 | 341 | } | |
338 | 342 | } | |
339 | 343 | ||
340 | 344 | ||
341 | 345 | ||
342 | 346 | @Callable(i) | |
343 | 347 | func cancelSale (nftId) = { | |
344 | - | let $ | |
345 | - | let id = $ | |
346 | - | let caller = $ | |
347 | - | let date = $ | |
348 | - | let isValidNFT = $ | |
349 | - | let artId = $ | |
350 | - | let creatorAddr = $ | |
351 | - | let artSignID = $ | |
348 | + | let $t01186912109 = provideBaseData(i, nftId) | |
349 | + | let id = $t01186912109._1 | |
350 | + | let caller = $t01186912109._2 | |
351 | + | let date = $t01186912109._3 | |
352 | + | let isValidNFT = $t01186912109._4 | |
353 | + | let artId = $t01186912109._5 | |
354 | + | let creatorAddr = $t01186912109._6 | |
355 | + | let artSignID = $t01186912109._7 | |
352 | 356 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId)) | |
353 | 357 | if ((saleOwner != caller)) | |
354 | 358 | then throw("You don't own this NFT") | |
355 | 359 | else { | |
356 | 360 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId)) | |
357 | 361 | if ((saleStatus != "OPEN")) | |
358 | 362 | then throw("Sale not active") | |
359 | 363 | else { | |
360 | 364 | let saleKey = getSaleKey(caller, nftId, artId, creatorAddr) | |
361 | 365 | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
362 | 366 | [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))] | |
363 | 367 | } | |
364 | 368 | } | |
365 | 369 | } | |
366 | 370 | ||
367 | 371 | ||
368 | 372 | ||
369 | 373 | @Callable(i) | |
370 | 374 | func buyNFT (nftId) = { | |
371 | - | let $ | |
372 | - | let id = $ | |
373 | - | let caller = $ | |
374 | - | let date = $ | |
375 | - | let isValidNFT = $ | |
376 | - | let artId = $ | |
377 | - | let creatorAddr = $ | |
378 | - | let artSignID = $ | |
375 | + | let $t01294013032 = provideBaseData(i, nftId) | |
376 | + | let id = $t01294013032._1 | |
377 | + | let caller = $t01294013032._2 | |
378 | + | let date = $t01294013032._3 | |
379 | + | let isValidNFT = $t01294013032._4 | |
380 | + | let artId = $t01294013032._5 | |
381 | + | let creatorAddr = $t01294013032._6 | |
382 | + | let artSignID = $t01294013032._7 | |
379 | 383 | if ((size(artSignID) == 0)) | |
380 | 384 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
381 | 385 | else if (!(isValidNFT)) | |
382 | 386 | then throw("Not a valid nft") | |
383 | 387 | else { | |
384 | 388 | let saleOwner = getSaleOwnerAndStatus(nftId) | |
385 | 389 | let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr) | |
386 | 390 | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
387 | 391 | if ((size(saleInfo) == 0)) | |
388 | 392 | then throw("Sale Not found!") | |
389 | 393 | else { | |
390 | 394 | let saleInfoArray = split(saleInfo, "_") | |
391 | 395 | if ((parseInt(saleInfoArray[1]) == 0)) | |
392 | 396 | then throw("Offer only") | |
393 | 397 | else { | |
394 | - | let $ | |
395 | - | let payment = $ | |
396 | - | let amount = $ | |
398 | + | let $t01352913565 = isPayment(i) | |
399 | + | let payment = $t01352913565._1 | |
400 | + | let amount = $t01352913565._2 | |
397 | 401 | let paymentAssetStr = if (isDefined(payment.assetId)) | |
398 | 402 | then toBase58String(value(payment.assetId)) | |
399 | 403 | else "" | |
400 | 404 | if (if ((saleInfoArray[1] != toString(amount))) | |
401 | 405 | then true | |
402 | 406 | else (saleInfoArray[2] != paymentAssetStr)) | |
403 | 407 | then throw("Payment infos don't match.") | |
404 | 408 | else { | |
405 | 409 | let amountForSign = fraction(amount, signCut, 100) | |
406 | 410 | let amountForCreator = fraction(amount, creatorCut, 100) | |
407 | 411 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
408 | - | let $ | |
409 | - | let signFee = $ | |
410 | - | let creatorFee = $ | |
411 | - | let ownerFee = $ | |
412 | - | let collectorNFT = $ | |
412 | + | let $t01406814196 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller) | |
413 | + | let signFee = $t01406814196._1 | |
414 | + | let creatorFee = $t01406814196._2 | |
415 | + | let ownerFee = $t01406814196._3 | |
416 | + | let collectorNFT = $t01406814196._4 | |
413 | 417 | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((saleInfo + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT] | |
414 | 418 | } | |
415 | 419 | } | |
416 | 420 | } | |
417 | 421 | } | |
418 | 422 | } | |
419 | 423 | ||
420 | 424 | ||
421 | 425 | ||
422 | 426 | @Callable(i) | |
423 | 427 | func setOffer (nftId) = { | |
424 | - | let $ | |
425 | - | let id = $ | |
426 | - | let offerOwner = $ | |
427 | - | let date = $ | |
428 | - | let isValidNFT = $ | |
429 | - | let artId = $ | |
430 | - | let creatorAddr = $ | |
431 | - | let artSignID = $ | |
428 | + | let $t01460414700 = provideBaseData(i, nftId) | |
429 | + | let id = $t01460414700._1 | |
430 | + | let offerOwner = $t01460414700._2 | |
431 | + | let date = $t01460414700._3 | |
432 | + | let isValidNFT = $t01460414700._4 | |
433 | + | let artId = $t01460414700._5 | |
434 | + | let creatorAddr = $t01460414700._6 | |
435 | + | let artSignID = $t01460414700._7 | |
432 | 436 | if (!(isValidNFT)) | |
433 | 437 | then throw("Not a valid nft") | |
434 | 438 | else { | |
435 | - | let $ | |
436 | - | let payment = $ | |
437 | - | let amount = $ | |
439 | + | let $t01476114797 = isPayment(i) | |
440 | + | let payment = $t01476114797._1 | |
441 | + | let amount = $t01476114797._2 | |
438 | 442 | let assetId = if (!(isDefined(payment.assetId))) | |
439 | 443 | then "WAVES" | |
440 | 444 | else toBase58String(value(payment.assetId)) | |
441 | 445 | if (!(acceptedAssetIds(assetId))) | |
442 | 446 | then throw("asset not accepted") | |
443 | 447 | else if ((amount == 0)) | |
444 | 448 | then throw("Offer of 0 not allowed") | |
445 | 449 | else if (!(validateMinSell(assetId, amount))) | |
446 | 450 | then throw("Wrong minimum sell price") | |
447 | 451 | else { | |
448 | 452 | let saleOwner = getSaleOwnerAndStatus(nftId) | |
449 | 453 | [StringEntry((getBidKey(offerOwner, nftId, saleOwner, id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))] | |
450 | 454 | } | |
451 | 455 | } | |
452 | 456 | } | |
453 | 457 | ||
454 | 458 | ||
455 | 459 | ||
456 | 460 | @Callable(i) | |
457 | 461 | func acceptOffer (nftId,offerId,offerOwner) = { | |
458 | - | let $ | |
459 | - | let id = $ | |
460 | - | let caller = $ | |
461 | - | let date = $ | |
462 | - | let isValidNFT = $ | |
463 | - | let artId = $ | |
464 | - | let creatorAddr = $ | |
465 | - | let artSignID = $ | |
462 | + | let $t01559915691 = provideBaseData(i, nftId) | |
463 | + | let id = $t01559915691._1 | |
464 | + | let caller = $t01559915691._2 | |
465 | + | let date = $t01559915691._3 | |
466 | + | let isValidNFT = $t01559915691._4 | |
467 | + | let artId = $t01559915691._5 | |
468 | + | let creatorAddr = $t01559915691._6 | |
469 | + | let artSignID = $t01559915691._7 | |
466 | 470 | if (!(isValidNFT)) | |
467 | 471 | then throw("Not a valid nft") | |
468 | 472 | else { | |
469 | 473 | let saleOwner = getSaleOwnerAndStatus(nftId) | |
470 | 474 | if ((caller != saleOwner)) | |
471 | 475 | then throw("Only sale owner can accept offer") | |
472 | 476 | else { | |
473 | 477 | let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId) | |
474 | - | let $ | |
475 | - | let bidDataArr = $ | |
476 | - | let assetId = $ | |
477 | - | let bidData = $ | |
478 | + | let $t01594516000 = getBidData(bidKey) | |
479 | + | let bidDataArr = $t01594516000._1 | |
480 | + | let assetId = $t01594516000._2 | |
481 | + | let bidData = $t01594516000._3 | |
478 | 482 | let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr) | |
479 | 483 | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
480 | 484 | if ((size(saleInfo) == 0)) | |
481 | 485 | then throw("Sale Not found!") | |
482 | 486 | else { | |
483 | 487 | let amount = value(parseInt(bidDataArr[1])) | |
484 | - | let $ | |
485 | - | let signFee = $ | |
486 | - | let creatorFee = $ | |
487 | - | let ownerFee = $ | |
488 | - | let collectorNFT = $ | |
488 | + | let $t01623616363 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6]) | |
489 | + | let signFee = $t01623616363._1 | |
490 | + | let creatorFee = $t01623616363._2 | |
491 | + | let ownerFee = $t01623616363._3 | |
492 | + | let collectorNFT = $t01623616363._4 | |
489 | 493 | let assetIdStr = if (isDefined(assetId)) | |
490 | 494 | then toBase58String(value(assetId)) | |
491 | 495 | else "WAVES" | |
492 | 496 | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((bidKey + "_CLOSED"), ((((bidData + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((saleInfo + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + assetIdStr)), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT] | |
493 | 497 | } | |
494 | 498 | } | |
495 | 499 | } | |
496 | 500 | } | |
497 | 501 | ||
498 | 502 | ||
499 | 503 | ||
500 | 504 | @Callable(i) | |
501 | 505 | func cancelOffer (nftId,offerId,offerOwner,saleOwner) = { | |
502 | - | let $ | |
503 | - | let id = $ | |
504 | - | let caller = $ | |
505 | - | let date = $ | |
506 | + | let $t01716017232 = idCallerDate(i) | |
507 | + | let id = $t01716017232._1 | |
508 | + | let caller = $t01716017232._2 | |
509 | + | let date = $t01716017232._3 | |
506 | 510 | if (if ((caller != offerOwner)) | |
507 | 511 | then (caller != saleOwner) | |
508 | 512 | else false) | |
509 | 513 | then throw("You cannot cancel this offer.") | |
510 | 514 | else { | |
511 | 515 | let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId) | |
512 | - | let $ | |
513 | - | let bidDataArr = $ | |
514 | - | let assetId = $ | |
515 | - | let bidData = $ | |
516 | + | let $t01740417459 = getBidData(bidKey) | |
517 | + | let bidDataArr = $t01740417459._1 | |
518 | + | let assetId = $t01740417459._2 | |
519 | + | let bidData = $t01740417459._3 | |
516 | 520 | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
517 | 521 | } | |
518 | 522 | } | |
519 | 523 | ||
520 | 524 |
github/deemru/w8io/169f3d6 75.58 ms ◑