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