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