tx · AfV4MxfWoXrjs1iETDZYeXTCRwBe1jqP2SFdxLmqr54Z 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01400000 Waves 2021.02.25 07:56 [1413168] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "AfV4MxfWoXrjs1iETDZYeXTCRwBe1jqP2SFdxLmqr54Z", "fee": 1400000, "feeAssetId": null, "timestamp": 1614229029947, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "3gjgohV3Uq5wSxZotYgPuSgdbF6cAD3kqABqoK9yWeT5x7FYCwwhrtBRtcrx31d7ftHEVeCTyPw8Q6jStnSDM56W" ], "script": "base64:AAIEAAAAAAAAAFYIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIFCgMICAgSAwoBCAAAAEoAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNd0RaYWdvWUV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LAAAAAIFAAAACmJpZERhdGFLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApiaWREYXRhS2V5AgAAAAFfBQAAAAliaWRTdGF0dXMJAAEsAAAAAgkAASwAAAACBQAAAAdiaWREYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmNhbGxlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAApsM4z", "height": 1413168, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fm6QjPp4aeGD2s8svM4jBeFrW7DDn5hbLjL1r1fhaAHP Next: FDutFZvooHcAM1K4uNm92qUGfZDWptXBxYbw8sZNB183 Diff:
Old | New | Differences | |
---|---|---|---|
367 | 367 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
368 | 368 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
369 | 369 | let artworkPrice = if (callerIsIssuer) | |
370 | - | then getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
370 | + | then (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
371 | 371 | else getIntegerByKey(keyPrice(issuer, artId)) | |
372 | 372 | let priceAssetId = if (callerIsIssuer) | |
373 | 373 | then toBase58String(signAssetId) | |
402 | 402 | then throw(checkUser) | |
403 | 403 | else { | |
404 | 404 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
405 | - | let $ | |
405 | + | let $t01363513764 = if (isBid) | |
406 | 406 | then getPriceAssetIdFromBid(bidDataKey) | |
407 | 407 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
408 | - | let amount = $ | |
409 | - | let assetId = $ | |
408 | + | let amount = $t01363513764._1 | |
409 | + | let assetId = $t01363513764._2 | |
410 | 410 | $Tuple3(bidDataKey, amount, assetId) | |
411 | 411 | } | |
412 | 412 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
467 | - | let $ | |
468 | - | let id = $ | |
469 | - | let caller = $ | |
470 | - | let date = $ | |
467 | + | let $t01561715667 = idCallerDate(i) | |
468 | + | let id = $t01561715667._1 | |
469 | + | let caller = $t01561715667._2 | |
470 | + | let date = $t01561715667._3 | |
471 | 471 | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
472 | - | let $ | |
473 | - | let totalNFT = $ | |
474 | - | let signID = $ | |
475 | - | let artworkName = $ | |
476 | - | let amountSold = $ | |
477 | - | let artworkPrice = $ | |
478 | - | let priceAssetId = $ | |
479 | - | let maxCanSell = $ | |
480 | - | let $ | |
481 | - | let bidDataKey = $ | |
482 | - | let amount = $ | |
483 | - | let assetId = $ | |
484 | - | let $ | |
485 | - | let amountForSign = $ | |
486 | - | let amountForCreator = $ | |
487 | - | let newAmountSold = $ | |
488 | - | let $ | |
489 | - | let issueNFT = $ | |
490 | - | let idNFT = $ | |
491 | - | let sellStatus = $ | |
492 | - | let receiveNFT = $ | |
493 | - | let $ | |
494 | - | let assetIdBid = $ | |
495 | - | let bidDelOld = $ | |
496 | - | let bidUpdate = $ | |
472 | + | let $t01574715888 = getArtData(i, issuer, artId, isBid) | |
473 | + | let totalNFT = $t01574715888._1 | |
474 | + | let signID = $t01574715888._2 | |
475 | + | let artworkName = $t01574715888._3 | |
476 | + | let amountSold = $t01574715888._4 | |
477 | + | let artworkPrice = $t01574715888._5 | |
478 | + | let priceAssetId = $t01574715888._6 | |
479 | + | let maxCanSell = $t01574715888._7 | |
480 | + | let $t01589316039 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
481 | + | let bidDataKey = $t01589316039._1 | |
482 | + | let amount = $t01589316039._2 | |
483 | + | let assetId = $t01589316039._3 | |
484 | + | let $t01604416191 = getCommissionData(issuer, priceAssetId, amount, amountSold, maxCanSell) | |
485 | + | let amountForSign = $t01604416191._1 | |
486 | + | let amountForCreator = $t01604416191._2 | |
487 | + | let newAmountSold = $t01604416191._3 | |
488 | + | let $t01619616376 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i) | |
489 | + | let issueNFT = $t01619616376._1 | |
490 | + | let idNFT = $t01619616376._2 | |
491 | + | let sellStatus = $t01619616376._3 | |
492 | + | let receiveNFT = $t01619616376._4 | |
493 | + | let $t01638116480 = getBidKeyVal(assetId, bidDataKey, date) | |
494 | + | let assetIdBid = $t01638116480._1 | |
495 | + | let bidDelOld = $t01638116480._2 | |
496 | + | let bidUpdate = $t01638116480._3 | |
497 | 497 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
498 | 498 | let soldValue = if (!(isBid)) | |
499 | 499 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
508 | 508 | ||
509 | 509 | @Callable(i) | |
510 | 510 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
511 | - | let $ | |
512 | - | let artId = $ | |
513 | - | let caller = $ | |
514 | - | let date = $ | |
511 | + | let $t01784017881 = idCallerDate(i) | |
512 | + | let artId = $t01784017881._1 | |
513 | + | let caller = $t01784017881._2 | |
514 | + | let date = $t01784017881._3 | |
515 | 515 | if (!(validateHash(sha256Hash))) | |
516 | 516 | then throw("Hash should be 64 characters maximum") | |
517 | 517 | else { | |
518 | - | let $ | |
519 | - | let licenceCID = $ | |
520 | - | let licenceHash = $ | |
518 | + | let $t01798218051 = setLIcence(cidLicence, sha256Licence) | |
519 | + | let licenceCID = $t01798218051._1 | |
520 | + | let licenceHash = $t01798218051._2 | |
521 | 521 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
522 | 522 | if ((validateArtwork != "")) | |
523 | 523 | then throw("Something went wrong!") | |
524 | 524 | else { | |
525 | - | let $ | |
526 | - | let amount = $ | |
527 | - | let assetId = $ | |
525 | + | let $t01827918321 = validatePayment(i) | |
526 | + | let amount = $t01827918321._1 | |
527 | + | let assetId = $t01827918321._2 | |
528 | 528 | if (!(isDefined(amount))) | |
529 | 529 | then throw("Something went wrong") | |
530 | 530 | else { | |
554 | 554 | then throw(maintenanceMSG) | |
555 | 555 | else { | |
556 | 556 | let caller = toBase58String(i.caller.bytes) | |
557 | - | let $ | |
558 | - | let licenceCID = $ | |
559 | - | let licenceHash = $ | |
557 | + | let $t02104221111 = setLIcence(cidLicence, sha256Licence) | |
558 | + | let licenceCID = $t02104221111._1 | |
559 | + | let licenceHash = $t02104221111._2 | |
560 | 560 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
561 | 561 | if ((validateArtwork != "")) | |
562 | 562 | then throw("Something went wrong!") | |
579 | 579 | ||
580 | 580 | @Callable(i) | |
581 | 581 | func flagArtwork (artId,addr,flag) = { | |
582 | - | let $ | |
583 | - | let id = $ | |
584 | - | let caller = $ | |
582 | + | let $t02258422617 = idCallerDate(i) | |
583 | + | let id = $t02258422617._1 | |
584 | + | let caller = $t02258422617._2 | |
585 | 585 | if (containsElement([chris, joep, toString(this)], caller)) | |
586 | 586 | then if ((flag == "CONSENT")) | |
587 | 587 | then [StringEntry(keyFlag(addr, artId), flag)] | |
601 | 601 | ||
602 | 602 | @Callable(i) | |
603 | 603 | func deleteArtwork (artId,addr) = { | |
604 | - | let $ | |
605 | - | let id = $ | |
606 | - | let caller = $ | |
604 | + | let $t02363623669 = idCallerDate(i) | |
605 | + | let id = $t02363623669._1 | |
606 | + | let caller = $t02363623669._2 | |
607 | 607 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
608 | 608 | then addr | |
609 | 609 | else caller | |
636 | 636 | ||
637 | 637 | @Callable(i) | |
638 | 638 | func sellArtwork (artId,price,maxMint,assetId) = { | |
639 | - | let $ | |
640 | - | let id = $ | |
641 | - | let caller = $ | |
639 | + | let $t02603526068 = idCallerDate(i) | |
640 | + | let id = $t02603526068._1 | |
641 | + | let caller = $t02603526068._2 | |
642 | 642 | let artworkName = getStringByKey(keyName(caller, artId)) | |
643 | 643 | if ((artworkName == "")) | |
644 | 644 | then throw("This art doesn't match your account") | |
689 | 689 | ||
690 | 690 | @Callable(i) | |
691 | 691 | func setBid (artId,issuer) = { | |
692 | - | let $ | |
693 | - | let id = $ | |
694 | - | let caller = $ | |
695 | - | let date = $ | |
696 | - | let $ | |
697 | - | let payment = $ | |
698 | - | let amount = $ | |
692 | + | let $t02786427902 = idCallerDate(i) | |
693 | + | let id = $t02786427902._1 | |
694 | + | let caller = $t02786427902._2 | |
695 | + | let date = $t02786427902._3 | |
696 | + | let $t02790727943 = isPayment(i) | |
697 | + | let payment = $t02790727943._1 | |
698 | + | let amount = $t02790727943._2 | |
699 | 699 | let assetId = if (!(isDefined(payment.assetId))) | |
700 | 700 | then "WAVES" | |
701 | 701 | else toBase58String(value(payment.assetId)) | |
728 | 728 | ||
729 | 729 | @Callable(i) | |
730 | 730 | func cancelBid (artId,issuer,bidId) = { | |
731 | - | let $ | |
732 | - | let id = $ | |
733 | - | let caller = $ | |
734 | - | let date = $ | |
731 | + | let $t02897529127 = idCallerDate(i) | |
732 | + | let id = $t02897529127._1 | |
733 | + | let caller = $t02897529127._2 | |
734 | + | let date = $t02897529127._3 | |
735 | 735 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
736 | 736 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
737 | 737 | if ((bidData == "")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let userDapp = if (unitTest) | |
13 | 13 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
14 | 14 | else value(addressFromString("3MwDZagoYEiNfQLc31cGpYoaE54MGMwoFrZ")) | |
15 | 15 | ||
16 | 16 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
17 | 17 | ||
18 | 18 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
19 | 19 | ||
20 | 20 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
21 | 21 | ||
22 | 22 | let wavesAssetId = base58'' | |
23 | 23 | ||
24 | 24 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
25 | 25 | ||
26 | 26 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
27 | 27 | ||
28 | 28 | let signCut = 7 | |
29 | 29 | ||
30 | 30 | let usdnWaveCut = 10 | |
31 | 31 | ||
32 | 32 | let defaultLicence = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf" | |
33 | 33 | ||
34 | 34 | let defaultHashLicence = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639" | |
35 | 35 | ||
36 | 36 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
37 | 37 | ||
38 | 38 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
39 | 39 | ||
40 | 40 | let userSuspended = "SUSPENDED" | |
41 | 41 | ||
42 | 42 | let userRemoved = "REMOVED" | |
43 | 43 | ||
44 | 44 | let userUnregistered = "UNREGISTERED" | |
45 | 45 | ||
46 | 46 | let userAllowed = "ALLOWED" | |
47 | 47 | ||
48 | 48 | func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
67 | 67 | case a: String => | |
68 | 68 | if (contains(a, sha256Hash)) | |
69 | 69 | then true | |
70 | 70 | else false | |
71 | 71 | case _ => | |
72 | 72 | false | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func validateCID (cid) = if (contains(cid, "/")) | |
77 | 77 | then if (if ((76 > size(cid))) | |
78 | 78 | then (size(split(cid, "/")[0]) == 59) | |
79 | 79 | else false) | |
80 | 80 | then (16 > size(split(cid, "/")[1])) | |
81 | 81 | else false | |
82 | 82 | else false | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func validateHash (hash) = (size(hash) == 64) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyUserStatus (caller) = ("user_status_" + caller) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
155 | 155 | then throw("Wrong Display CID") | |
156 | 156 | else if (!(validateCID(cidExport))) | |
157 | 157 | then throw("Wrong Export CID") | |
158 | 158 | else if (if ((cidLicence != "")) | |
159 | 159 | then !(validateCID(cidLicence)) | |
160 | 160 | else false) | |
161 | 161 | then throw("Wrong Licence CID") | |
162 | 162 | else true | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
166 | 166 | then throw("Export Hash 64 char. max") | |
167 | 167 | else if (!(validateHash(sha256Licence))) | |
168 | 168 | then throw("Licence Hash 64 char. max") | |
169 | 169 | else true | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func validateString (str,max) = if ((size(str) == 0)) | |
173 | 173 | then throw("Field cannot be is empty") | |
174 | 174 | else if ((size(str) > max)) | |
175 | 175 | then throw((str + " is too long")) | |
176 | 176 | else true | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func validateUser (caller) = { | |
180 | 180 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
181 | 181 | if (if ((userStatus == userUnregistered)) | |
182 | 182 | then true | |
183 | 183 | else (userStatus == userAllowed)) | |
184 | 184 | then "Register this account first with \"Account\" tab" | |
185 | 185 | else if ((userStatus == userSuspended)) | |
186 | 186 | then "Account suspended" | |
187 | 187 | else if ((userStatus == userRemoved)) | |
188 | 188 | then "Account removed" | |
189 | 189 | else "" | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func setLIcence (cidLicence,sha256Licence) = { | |
194 | 194 | let cid = if ((size(cidLicence) == 0)) | |
195 | 195 | then defaultLicence | |
196 | 196 | else cidLicence | |
197 | 197 | let hash = if ((size(sha256Licence) == 0)) | |
198 | 198 | then defaultHashLicence | |
199 | 199 | else sha256Licence | |
200 | 200 | $Tuple2(cid, hash) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,maxmint) = { | |
205 | 205 | let checkUser = validateUser(caller) | |
206 | 206 | if ((checkUser != "")) | |
207 | 207 | then throw(checkUser) | |
208 | 208 | else if ((size(cidDisplay) == 0)) | |
209 | 209 | then throw("Display CID cannot be empty") | |
210 | 210 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
211 | 211 | then throw("Problem with CID") | |
212 | 212 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
213 | 213 | then throw("Problem with Hashes") | |
214 | 214 | else if (!(validateString(name, 100))) | |
215 | 215 | then throw("100 Char. max name") | |
216 | 216 | else if (!(validateString(description, 1000))) | |
217 | 217 | then throw("1000 Char. max description") | |
218 | 218 | else if ((size(split(tags, ",")) > 5)) | |
219 | 219 | then throw("5 tags max.") | |
220 | 220 | else if ((maxmint > 10)) | |
221 | 221 | then throw("10 editions max per artwork") | |
222 | 222 | else "" | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func isPayment (i) = if ((size(i.payments) == 0)) | |
227 | 227 | then throw("No payment attached") | |
228 | 228 | else { | |
229 | 229 | let payment = value(i.payments[0]) | |
230 | 230 | let amount = value(payment.amount) | |
231 | 231 | $Tuple2(payment, amount) | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func validatePayment (i) = { | |
236 | 236 | let $t089098945 = isPayment(i) | |
237 | 237 | let payment = $t089098945._1 | |
238 | 238 | let amount = $t089098945._2 | |
239 | 239 | let assetId = if (if (isDefined(payment.assetId)) | |
240 | 240 | then (payment.assetId == signAssetId) | |
241 | 241 | else false) | |
242 | 242 | then payment.assetId | |
243 | 243 | else throw("Only SIGN token accepted as transaction fee") | |
244 | 244 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
245 | 245 | if ((amount != currentCertificationPrice)) | |
246 | 246 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
247 | 247 | else $Tuple2(amount, assetId) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
252 | 252 | case b: Int => | |
253 | 253 | if ((b != 0)) | |
254 | 254 | then true | |
255 | 255 | else false | |
256 | 256 | case _ => | |
257 | 257 | false | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
262 | 262 | let $t096459681 = isPayment(i) | |
263 | 263 | let payment = $t096459681._1 | |
264 | 264 | let amount = $t096459681._2 | |
265 | 265 | let assetId = if (!(isDefined(payment.assetId))) | |
266 | 266 | then unit | |
267 | 267 | else if (if ((size(priceAssetId) > 0)) | |
268 | 268 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
269 | 269 | else false) | |
270 | 270 | then payment.assetId | |
271 | 271 | else throw("Wrong asset id") | |
272 | 272 | if (if ((assetId == unit)) | |
273 | 273 | then (priceAssetId != "") | |
274 | 274 | else false) | |
275 | 275 | then throw("Wrong asset id") | |
276 | 276 | else if ((artworkPrice != amount)) | |
277 | 277 | then throw("Payment don't match") | |
278 | 278 | else $Tuple2(amount, assetId) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
283 | 283 | then (assetId != toBase58String(wavesAssetId)) | |
284 | 284 | else false) | |
285 | 285 | then (assetId != "WAVES") | |
286 | 286 | else false) | |
287 | 287 | then (assetId != toBase58String(usdnAssetId)) | |
288 | 288 | else false) | |
289 | 289 | then throw("Only SIGN, USDN or WAVES accepted") | |
290 | 290 | else true | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func validateMinSell (assetId,price) = { | |
294 | 294 | let minSellWaves = if (unitTest) | |
295 | 295 | then 10 | |
296 | 296 | else getIntegerByKeyFromOracle("waves_min_sell") | |
297 | 297 | let minSellUsdn = 1000000 | |
298 | 298 | let minSellSign = if (unitTest) | |
299 | 299 | then 1 | |
300 | 300 | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
301 | 301 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
302 | 302 | then (minSellUsdn > price) | |
303 | 303 | else false) | |
304 | 304 | then (price != 0) | |
305 | 305 | else false) | |
306 | 306 | then true | |
307 | 307 | else if (if ((assetId == toBase58String(signAssetId))) | |
308 | 308 | then (minSellSign > price) | |
309 | 309 | else false) | |
310 | 310 | then (price != 0) | |
311 | 311 | else false) | |
312 | 312 | then true | |
313 | 313 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
314 | 314 | then true | |
315 | 315 | else (assetId == "WAVES")) | |
316 | 316 | then (minSellWaves > price) | |
317 | 317 | else false) | |
318 | 318 | then (price != 0) | |
319 | 319 | else false) | |
320 | 320 | then throw("Wrong minimum sell price") | |
321 | 321 | else true | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
326 | 326 | then unit | |
327 | 327 | else fromBase58String(assetId) | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func getPriceAssetIdFromBid (bidDataKey) = { | |
331 | 331 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
332 | 332 | if ((bidData == "")) | |
333 | 333 | then throw("Bid not found") | |
334 | 334 | else { | |
335 | 335 | let bidDataArr = split(bidData, "_") | |
336 | 336 | let bidAmount = parseIntValue(bidDataArr[1]) | |
337 | 337 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
338 | 338 | if ((0 >= bidAmount)) | |
339 | 339 | then throw("Wrong amount") | |
340 | 340 | else $Tuple2(bidAmount, bidAssetId) | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | func idCallerDate (i) = if (!(dappRunning)) | |
346 | 346 | then throw(maintenanceMSG) | |
347 | 347 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
351 | 351 | then (bidOwner != "") | |
352 | 352 | else false) | |
353 | 353 | then (bidId != "") | |
354 | 354 | else false) | |
355 | 355 | then true | |
356 | 356 | else false | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func getArtData (i,issuer,artId,isBid) = { | |
360 | 360 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
361 | 361 | let totalNFT = getIntegerByKey("total_nft_issued") | |
362 | 362 | let signID = getStringByKey(keySignID(issuer, artId)) | |
363 | 363 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
364 | 364 | if ((artworkName == "")) | |
365 | 365 | then throw("Art doesn't exist") | |
366 | 366 | else { | |
367 | 367 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
368 | 368 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
369 | 369 | let artworkPrice = if (callerIsIssuer) | |
370 | - | then getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
370 | + | then (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
371 | 371 | else getIntegerByKey(keyPrice(issuer, artId)) | |
372 | 372 | let priceAssetId = if (callerIsIssuer) | |
373 | 373 | then toBase58String(signAssetId) | |
374 | 374 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
375 | 375 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
376 | 376 | if (if (if (!(isBid)) | |
377 | 377 | then !(callerIsIssuer) | |
378 | 378 | else false) | |
379 | 379 | then if (if ((0 >= artworkPrice)) | |
380 | 380 | then true | |
381 | 381 | else !(isOnSale)) | |
382 | 382 | then true | |
383 | 383 | else (0 >= maxCanSell) | |
384 | 384 | else false) | |
385 | 385 | then throw("Art not for sale") | |
386 | 386 | else if (if (if (!(isBid)) | |
387 | 387 | then callerIsIssuer | |
388 | 388 | else false) | |
389 | 389 | then (0 >= maxCanSell) | |
390 | 390 | else false) | |
391 | 391 | then throw("Max issuable") | |
392 | 392 | else $Tuple7(totalNFT, signID, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell) | |
393 | 393 | } | |
394 | 394 | } | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
398 | 398 | let checkUser = validateUser(issuer) | |
399 | 399 | if (if (isBid) | |
400 | 400 | then (checkUser != "") | |
401 | 401 | else false) | |
402 | 402 | then throw(checkUser) | |
403 | 403 | else { | |
404 | 404 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
405 | - | let $ | |
405 | + | let $t01363513764 = if (isBid) | |
406 | 406 | then getPriceAssetIdFromBid(bidDataKey) | |
407 | 407 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
408 | - | let amount = $ | |
409 | - | let assetId = $ | |
408 | + | let amount = $t01363513764._1 | |
409 | + | let assetId = $t01363513764._2 | |
410 | 410 | $Tuple3(bidDataKey, amount, assetId) | |
411 | 411 | } | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func getCommissionData (issuer,priceAssetId,amount,amountSold,maxCanSell) = { | |
416 | 416 | let isWhitelisted = checkWhitelist(issuer) | |
417 | 417 | let cut = if ((isWhitelisted > height)) | |
418 | 418 | then 0 | |
419 | 419 | else if ((priceAssetId == toBase58String(signAssetId))) | |
420 | 420 | then signCut | |
421 | 421 | else usdnWaveCut | |
422 | 422 | let amountForSign = fraction(amount, cut, 100) | |
423 | 423 | let amountForCreator = (amount - amountForSign) | |
424 | 424 | if ((amountSold == maxCanSell)) | |
425 | 425 | then throw("Art sold out") | |
426 | 426 | else { | |
427 | 427 | let newAmountSold = (amountSold + 1) | |
428 | 428 | $Tuple3(amountForSign, amountForCreator, newAmountSold) | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func getIssueData (issuer,artId,signID,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i) = { | |
434 | 434 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
435 | 435 | ArtID: ") + artId) + ", | |
436 | 436 | SignID: ") + signID) + ", | |
437 | 437 | Artwork name: ") + artworkName) + ", | |
438 | 438 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
439 | 439 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
440 | 440 | let idNFT = calculateAssetId(issueNFT) | |
441 | 441 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
442 | 442 | then false | |
443 | 443 | else true | |
444 | 444 | let receiveNFT = if (if (if ((caller == issuer)) | |
445 | 445 | then (bidOwner != "") | |
446 | 446 | else false) | |
447 | 447 | then (bidId != "") | |
448 | 448 | else false) | |
449 | 449 | then addressFromStringValue(bidOwner) | |
450 | 450 | else i.caller | |
451 | 451 | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
452 | 452 | } | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
456 | 456 | let assetIdBid = if (!(isDefined(assetId))) | |
457 | 457 | then "WAVES" | |
458 | 458 | else toBase58String(value(assetId)) | |
459 | 459 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
460 | 460 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
461 | 461 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
462 | 462 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
467 | - | let $ | |
468 | - | let id = $ | |
469 | - | let caller = $ | |
470 | - | let date = $ | |
467 | + | let $t01561715667 = idCallerDate(i) | |
468 | + | let id = $t01561715667._1 | |
469 | + | let caller = $t01561715667._2 | |
470 | + | let date = $t01561715667._3 | |
471 | 471 | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
472 | - | let $ | |
473 | - | let totalNFT = $ | |
474 | - | let signID = $ | |
475 | - | let artworkName = $ | |
476 | - | let amountSold = $ | |
477 | - | let artworkPrice = $ | |
478 | - | let priceAssetId = $ | |
479 | - | let maxCanSell = $ | |
480 | - | let $ | |
481 | - | let bidDataKey = $ | |
482 | - | let amount = $ | |
483 | - | let assetId = $ | |
484 | - | let $ | |
485 | - | let amountForSign = $ | |
486 | - | let amountForCreator = $ | |
487 | - | let newAmountSold = $ | |
488 | - | let $ | |
489 | - | let issueNFT = $ | |
490 | - | let idNFT = $ | |
491 | - | let sellStatus = $ | |
492 | - | let receiveNFT = $ | |
493 | - | let $ | |
494 | - | let assetIdBid = $ | |
495 | - | let bidDelOld = $ | |
496 | - | let bidUpdate = $ | |
472 | + | let $t01574715888 = getArtData(i, issuer, artId, isBid) | |
473 | + | let totalNFT = $t01574715888._1 | |
474 | + | let signID = $t01574715888._2 | |
475 | + | let artworkName = $t01574715888._3 | |
476 | + | let amountSold = $t01574715888._4 | |
477 | + | let artworkPrice = $t01574715888._5 | |
478 | + | let priceAssetId = $t01574715888._6 | |
479 | + | let maxCanSell = $t01574715888._7 | |
480 | + | let $t01589316039 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
481 | + | let bidDataKey = $t01589316039._1 | |
482 | + | let amount = $t01589316039._2 | |
483 | + | let assetId = $t01589316039._3 | |
484 | + | let $t01604416191 = getCommissionData(issuer, priceAssetId, amount, amountSold, maxCanSell) | |
485 | + | let amountForSign = $t01604416191._1 | |
486 | + | let amountForCreator = $t01604416191._2 | |
487 | + | let newAmountSold = $t01604416191._3 | |
488 | + | let $t01619616376 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i) | |
489 | + | let issueNFT = $t01619616376._1 | |
490 | + | let idNFT = $t01619616376._2 | |
491 | + | let sellStatus = $t01619616376._3 | |
492 | + | let receiveNFT = $t01619616376._4 | |
493 | + | let $t01638116480 = getBidKeyVal(assetId, bidDataKey, date) | |
494 | + | let assetIdBid = $t01638116480._1 | |
495 | + | let bidDelOld = $t01638116480._2 | |
496 | + | let bidUpdate = $t01638116480._3 | |
497 | 497 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
498 | 498 | let soldValue = if (!(isBid)) | |
499 | 499 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
500 | 500 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
501 | 501 | let soldData = StringEntry(soldKey, soldValue) | |
502 | 502 | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] | |
503 | 503 | if (isBid) | |
504 | 504 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
505 | 505 | else soldData :: buyRes | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | @Callable(i) | |
510 | 510 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
511 | - | let $ | |
512 | - | let artId = $ | |
513 | - | let caller = $ | |
514 | - | let date = $ | |
511 | + | let $t01784017881 = idCallerDate(i) | |
512 | + | let artId = $t01784017881._1 | |
513 | + | let caller = $t01784017881._2 | |
514 | + | let date = $t01784017881._3 | |
515 | 515 | if (!(validateHash(sha256Hash))) | |
516 | 516 | then throw("Hash should be 64 characters maximum") | |
517 | 517 | else { | |
518 | - | let $ | |
519 | - | let licenceCID = $ | |
520 | - | let licenceHash = $ | |
518 | + | let $t01798218051 = setLIcence(cidLicence, sha256Licence) | |
519 | + | let licenceCID = $t01798218051._1 | |
520 | + | let licenceHash = $t01798218051._2 | |
521 | 521 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
522 | 522 | if ((validateArtwork != "")) | |
523 | 523 | then throw("Something went wrong!") | |
524 | 524 | else { | |
525 | - | let $ | |
526 | - | let amount = $ | |
527 | - | let assetId = $ | |
525 | + | let $t01827918321 = validatePayment(i) | |
526 | + | let amount = $t01827918321._1 | |
527 | + | let assetId = $t01827918321._2 | |
528 | 528 | if (!(isDefined(amount))) | |
529 | 529 | then throw("Something went wrong") | |
530 | 530 | else { | |
531 | 531 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
532 | 532 | if ((entryExist != "")) | |
533 | 533 | then throw("You already added it") | |
534 | 534 | else { | |
535 | 535 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
536 | 536 | if ((hashExist != "")) | |
537 | 537 | then throw("Hash already registered") | |
538 | 538 | else { | |
539 | 539 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
540 | 540 | if (!(isSignCertified)) | |
541 | 541 | then throw("Sign Certificate not found for this address.") | |
542 | 542 | 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(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), maxmint), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
543 | 543 | } | |
544 | 544 | } | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 | } | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | ||
552 | 552 | @Callable(i) | |
553 | 553 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
554 | 554 | then throw(maintenanceMSG) | |
555 | 555 | else { | |
556 | 556 | let caller = toBase58String(i.caller.bytes) | |
557 | - | let $ | |
558 | - | let licenceCID = $ | |
559 | - | let licenceHash = $ | |
557 | + | let $t02104221111 = setLIcence(cidLicence, sha256Licence) | |
558 | + | let licenceCID = $t02104221111._1 | |
559 | + | let licenceHash = $t02104221111._2 | |
560 | 560 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
561 | 561 | if ((validateArtwork != "")) | |
562 | 562 | then throw("Something went wrong!") | |
563 | 563 | else { | |
564 | 564 | let entryExist = getStringByKey(keyName(caller, txid)) | |
565 | 565 | if ((entryExist == "")) | |
566 | 566 | then throw("Entry not found") | |
567 | 567 | else { | |
568 | 568 | let flag = getStringByKey(keyFlag(caller, txid)) | |
569 | 569 | if ((flag == "ILLEGAL")) | |
570 | 570 | then throw("Cannot update ILLEGAL artwork") | |
571 | 571 | else if (!(isArtMinted(caller, txid))) | |
572 | 572 | then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), IntegerEntry(keyMaxMint(caller, txid), maxmint), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type)] | |
573 | 573 | else throw("Already minted") | |
574 | 574 | } | |
575 | 575 | } | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | ||
580 | 580 | @Callable(i) | |
581 | 581 | func flagArtwork (artId,addr,flag) = { | |
582 | - | let $ | |
583 | - | let id = $ | |
584 | - | let caller = $ | |
582 | + | let $t02258422617 = idCallerDate(i) | |
583 | + | let id = $t02258422617._1 | |
584 | + | let caller = $t02258422617._2 | |
585 | 585 | if (containsElement([chris, joep, toString(this)], caller)) | |
586 | 586 | then if ((flag == "CONSENT")) | |
587 | 587 | then [StringEntry(keyFlag(addr, artId), flag)] | |
588 | 588 | else if ((flag == "")) | |
589 | 589 | then [StringEntry(keyFlag(addr, artId), flag)] | |
590 | 590 | else if ((flag == "CHANGE_REQUIRED")) | |
591 | 591 | then [StringEntry(keyFlag(addr, artId), flag)] | |
592 | 592 | else if (if ((flag == "ILLEGAL")) | |
593 | 593 | then containsElement([chris, toString(this)], caller) | |
594 | 594 | else false) | |
595 | 595 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDisplayCid(addr, artId), ""), StringEntry(keyExportCid(addr, artId), ""), StringEntry(keyLicenceCid(addr, artId), "")] | |
596 | 596 | else throw(("Unknow status " + flag)) | |
597 | 597 | else throw("You are not allowed") | |
598 | 598 | } | |
599 | 599 | ||
600 | 600 | ||
601 | 601 | ||
602 | 602 | @Callable(i) | |
603 | 603 | func deleteArtwork (artId,addr) = { | |
604 | - | let $ | |
605 | - | let id = $ | |
606 | - | let caller = $ | |
604 | + | let $t02363623669 = idCallerDate(i) | |
605 | + | let id = $t02363623669._1 | |
606 | + | let caller = $t02363623669._2 | |
607 | 607 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
608 | 608 | then addr | |
609 | 609 | else caller | |
610 | 610 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
611 | 611 | if ((entryExist == "")) | |
612 | 612 | then throw("No art matching for this address") | |
613 | 613 | else { | |
614 | 614 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
615 | 615 | if ((sha256Hash == "")) | |
616 | 616 | then throw("No art hash matching for this address") | |
617 | 617 | else { | |
618 | 618 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
619 | 619 | if ((signID == "")) | |
620 | 620 | then throw("No SIGN ID matching") | |
621 | 621 | else { | |
622 | 622 | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addr, artId)), DeleteEntry(keyPrice(addr, artId)), DeleteEntry(keyAssetIdAccepted(addr, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse))] | |
623 | 623 | if (!(isArtMinted(addrToUse, artId))) | |
624 | 624 | then if (!(dappRunning)) | |
625 | 625 | then throw(maintenanceMSG) | |
626 | 626 | else dataToDelete | |
627 | 627 | else if (containsElement([chris, toString(this)], caller)) | |
628 | 628 | then dataToDelete | |
629 | 629 | else throw("Art already minted, you cannot delete it") | |
630 | 630 | } | |
631 | 631 | } | |
632 | 632 | } | |
633 | 633 | } | |
634 | 634 | ||
635 | 635 | ||
636 | 636 | ||
637 | 637 | @Callable(i) | |
638 | 638 | func sellArtwork (artId,price,maxMint,assetId) = { | |
639 | - | let $ | |
640 | - | let id = $ | |
641 | - | let caller = $ | |
639 | + | let $t02603526068 = idCallerDate(i) | |
640 | + | let id = $t02603526068._1 | |
641 | + | let caller = $t02603526068._2 | |
642 | 642 | let artworkName = getStringByKey(keyName(caller, artId)) | |
643 | 643 | if ((artworkName == "")) | |
644 | 644 | then throw("This art doesn't match your account") | |
645 | 645 | else { | |
646 | 646 | let exportCID = getStringByKey(keyExportCid(caller, artId)) | |
647 | 647 | if ((size(split(exportCID, "/")[0]) != 59)) | |
648 | 648 | then throw("You cannot sell art with no export file") | |
649 | 649 | else if (!(acceptedAssetIds(assetId))) | |
650 | 650 | then throw("Something went wrong!") | |
651 | 651 | else if (!(validateMinSell(assetId, price))) | |
652 | 652 | then throw("Something went wrong!") | |
653 | 653 | else { | |
654 | 654 | let checkUser = validateUser(caller) | |
655 | 655 | if ((checkUser != "")) | |
656 | 656 | then throw(checkUser) | |
657 | 657 | else { | |
658 | 658 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
659 | 659 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
660 | 660 | if ((maxMint > 10)) | |
661 | 661 | then throw("10 editions max per artwork") | |
662 | 662 | else if (if ((amountSold != 0)) | |
663 | 663 | then (amountSold == maxCanSell) | |
664 | 664 | else false) | |
665 | 665 | then throw("Max edition reached.") | |
666 | 666 | else if (if ((amountSold > 0)) | |
667 | 667 | then (maxCanSell != maxMint) | |
668 | 668 | else false) | |
669 | 669 | then throw("Cannot change maximum issuable anymore") | |
670 | 670 | else { | |
671 | 671 | let sellStatus = if (if ((price > 0)) | |
672 | 672 | then (maxMint > 0) | |
673 | 673 | else false) | |
674 | 674 | then true | |
675 | 675 | else false | |
676 | 676 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)] | |
677 | 677 | } | |
678 | 678 | } | |
679 | 679 | } | |
680 | 680 | } | |
681 | 681 | } | |
682 | 682 | ||
683 | 683 | ||
684 | 684 | ||
685 | 685 | @Callable(i) | |
686 | 686 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | ||
690 | 690 | @Callable(i) | |
691 | 691 | func setBid (artId,issuer) = { | |
692 | - | let $ | |
693 | - | let id = $ | |
694 | - | let caller = $ | |
695 | - | let date = $ | |
696 | - | let $ | |
697 | - | let payment = $ | |
698 | - | let amount = $ | |
692 | + | let $t02786427902 = idCallerDate(i) | |
693 | + | let id = $t02786427902._1 | |
694 | + | let caller = $t02786427902._2 | |
695 | + | let date = $t02786427902._3 | |
696 | + | let $t02790727943 = isPayment(i) | |
697 | + | let payment = $t02790727943._1 | |
698 | + | let amount = $t02790727943._2 | |
699 | 699 | let assetId = if (!(isDefined(payment.assetId))) | |
700 | 700 | then "WAVES" | |
701 | 701 | else toBase58String(value(payment.assetId)) | |
702 | 702 | if (!(acceptedAssetIds(assetId))) | |
703 | 703 | then throw("asset not accepted") | |
704 | 704 | else if (!(validateMinSell(assetId, amount))) | |
705 | 705 | then throw("Wrong min sell") | |
706 | 706 | else { | |
707 | 707 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
708 | 708 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
709 | 709 | if ((0 >= maxCanSell)) | |
710 | 710 | then throw("No max edition set for this artwork") | |
711 | 711 | else if ((amountSold >= maxCanSell)) | |
712 | 712 | then throw("Sold out, you cannot bid") | |
713 | 713 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date)))] | |
714 | 714 | } | |
715 | 715 | } | |
716 | 716 | ||
717 | 717 | ||
718 | 718 | ||
719 | 719 | @Callable(i) | |
720 | 720 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
721 | 721 | let caller = toBase58String(i.caller.bytes) | |
722 | 722 | if ((caller != issuer)) | |
723 | 723 | then throw("You cannot do this action") | |
724 | 724 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
725 | 725 | } | |
726 | 726 | ||
727 | 727 | ||
728 | 728 | ||
729 | 729 | @Callable(i) | |
730 | 730 | func cancelBid (artId,issuer,bidId) = { | |
731 | - | let $ | |
732 | - | let id = $ | |
733 | - | let caller = $ | |
734 | - | let date = $ | |
731 | + | let $t02897529127 = idCallerDate(i) | |
732 | + | let id = $t02897529127._1 | |
733 | + | let caller = $t02897529127._2 | |
734 | + | let date = $t02897529127._3 | |
735 | 735 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
736 | 736 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
737 | 737 | if ((bidData == "")) | |
738 | 738 | then throw("Bid not found") | |
739 | 739 | else { | |
740 | 740 | let bidDataArr = split(bidData, "_") | |
741 | 741 | let assetId = getBidAssetId(bidDataArr[0]) | |
742 | 742 | let bidStatus = "CANCELED" | |
743 | 743 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
744 | 744 | } | |
745 | 745 | } | |
746 | 746 | ||
747 | 747 | ||
748 | 748 | ||
749 | 749 | @Callable(i) | |
750 | 750 | func deleteEntry (entry) = { | |
751 | 751 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
752 | 752 | if ((caller == chris)) | |
753 | 753 | then [DeleteEntry(entry)] | |
754 | 754 | else throw("no") | |
755 | 755 | } | |
756 | 756 | ||
757 | 757 |
github/deemru/w8io/169f3d6 107.31 ms ◑