tx · 8qKgXXGL34EaZuoMse6NZjo5cM91c5Bjdj8wtwJx7Bg9 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01400000 Waves 2021.02.25 07:11 [1413125] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "8qKgXXGL34EaZuoMse6NZjo5cM91c5Bjdj8wtwJx7Bg9", "fee": 1400000, "feeAssetId": null, "timestamp": 1614226338764, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "3d3BfKgrk1qvHimvTgvG1bcP3pdFhE1ouupaGFSi7rjbgHkJumarHTbXNbJdNrqFwJLXMU1tRw6WopeHeFhWe8x3" ], "script": "base64:AAIEAAAAAAAAAFYIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIFCgMICAgSAwoBCAAAAEoAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNd0RaYWdvWUV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IJAAEsAAAAAgUAAAAKYmlkRGF0YUtleQIAAAABXwUAAAAJYmlkU3RhdHVzCQABLAAAAAIJAAEsAAAAAgUAAAAHYmlkRGF0YQIAAAABXwkAAaQAAAABBQAAAARkYXRlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAA6Bs7Xg==", "height": 1413125, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HshpsjHLXpXXxiSdQHesx6x1NGUtbJrY3obnFKr54qj6 Next: 5TnjyH7LhsPwHXPWkaRWDxCGSKT2AnzwXLEmnSL6WBwV Diff:
Old | New | Differences | |
---|---|---|---|
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | - | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
262 | - | let $ | |
263 | - | let payment = $ | |
264 | - | let amount = $ | |
261 | + | func validatePriceAssetId (i,issuer,priceAssetId,artworkPrice) = { | |
262 | + | let $t096619697 = isPayment(i) | |
263 | + | let payment = $t096619697._1 | |
264 | + | let amount = $t096619697._2 | |
265 | 265 | let assetId = if (!(isDefined(payment.assetId))) | |
266 | 266 | then unit | |
267 | 267 | else if (if ((size(priceAssetId) > 0)) | |
273 | 273 | then (priceAssetId != "") | |
274 | 274 | else false) | |
275 | 275 | then throw("Wrong asset id") | |
276 | - | else if ((artworkPrice != amount)) | |
276 | + | else if (if ((artworkPrice != amount)) | |
277 | + | then (toBase58String(i.caller.bytes) != issuer) | |
278 | + | else false) | |
277 | 279 | then throw("Payment don't match") | |
278 | 280 | else $Tuple2(amount, assetId) | |
279 | 281 | } | |
401 | 403 | then throw(checkUser) | |
402 | 404 | else { | |
403 | 405 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
404 | - | let $ | |
406 | + | let $t01358813725 = if (isBid) | |
405 | 407 | then getPriceAssetIdFromBid(bidDataKey) | |
406 | - | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
407 | - | let amount = $ | |
408 | - | let assetId = $ | |
408 | + | else validatePriceAssetId(i, issuer, priceAssetId, artworkPrice) | |
409 | + | let amount = $t01358813725._1 | |
410 | + | let assetId = $t01358813725._2 | |
409 | 411 | $Tuple3(bidDataKey, amount, assetId) | |
410 | 412 | } | |
411 | 413 | } | |
463 | 465 | ||
464 | 466 | ||
465 | 467 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
466 | - | let $ | |
467 | - | let id = $ | |
468 | - | let caller = $ | |
469 | - | let date = $ | |
468 | + | let $t01557815628 = idCallerDate(i) | |
469 | + | let id = $t01557815628._1 | |
470 | + | let caller = $t01557815628._2 | |
471 | + | let date = $t01557815628._3 | |
470 | 472 | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
471 | - | let $ | |
472 | - | let totalNFT = $ | |
473 | - | let signID = $ | |
474 | - | let artworkName = $ | |
475 | - | let amountSold = $ | |
476 | - | let artworkPrice = $ | |
477 | - | let priceAssetId = $ | |
478 | - | let maxCanSell = $ | |
479 | - | let $ | |
480 | - | let bidDataKey = $ | |
481 | - | let amount = $ | |
482 | - | let assetId = $ | |
483 | - | let $ | |
484 | - | let amountForSign = $ | |
485 | - | let amountForCreator = $ | |
486 | - | let newAmountSold = $ | |
487 | - | let $ | |
488 | - | let issueNFT = $ | |
489 | - | let idNFT = $ | |
490 | - | let sellStatus = $ | |
491 | - | let receiveNFT = $ | |
492 | - | let $ | |
493 | - | let assetIdBid = $ | |
494 | - | let bidDelOld = $ | |
495 | - | let bidUpdate = $ | |
473 | + | let $t01570815849 = getArtData(i, issuer, artId, isBid) | |
474 | + | let totalNFT = $t01570815849._1 | |
475 | + | let signID = $t01570815849._2 | |
476 | + | let artworkName = $t01570815849._3 | |
477 | + | let amountSold = $t01570815849._4 | |
478 | + | let artworkPrice = $t01570815849._5 | |
479 | + | let priceAssetId = $t01570815849._6 | |
480 | + | let maxCanSell = $t01570815849._7 | |
481 | + | let $t01585416000 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
482 | + | let bidDataKey = $t01585416000._1 | |
483 | + | let amount = $t01585416000._2 | |
484 | + | let assetId = $t01585416000._3 | |
485 | + | let $t01600516152 = getCommissionData(issuer, priceAssetId, amount, amountSold, maxCanSell) | |
486 | + | let amountForSign = $t01600516152._1 | |
487 | + | let amountForCreator = $t01600516152._2 | |
488 | + | let newAmountSold = $t01600516152._3 | |
489 | + | let $t01615716337 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i) | |
490 | + | let issueNFT = $t01615716337._1 | |
491 | + | let idNFT = $t01615716337._2 | |
492 | + | let sellStatus = $t01615716337._3 | |
493 | + | let receiveNFT = $t01615716337._4 | |
494 | + | let $t01634216441 = getBidKeyVal(assetId, bidDataKey, date) | |
495 | + | let assetIdBid = $t01634216441._1 | |
496 | + | let bidDelOld = $t01634216441._2 | |
497 | + | let bidUpdate = $t01634216441._3 | |
496 | 498 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
497 | 499 | let soldValue = if (!(isBid)) | |
498 | 500 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
507 | 509 | ||
508 | 510 | @Callable(i) | |
509 | 511 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
510 | - | let $ | |
511 | - | let artId = $ | |
512 | - | let caller = $ | |
513 | - | let date = $ | |
512 | + | let $t01780117842 = idCallerDate(i) | |
513 | + | let artId = $t01780117842._1 | |
514 | + | let caller = $t01780117842._2 | |
515 | + | let date = $t01780117842._3 | |
514 | 516 | if (!(validateHash(sha256Hash))) | |
515 | 517 | then throw("Hash should be 64 characters maximum") | |
516 | 518 | else { | |
517 | - | let $ | |
518 | - | let licenceCID = $ | |
519 | - | let licenceHash = $ | |
519 | + | let $t01794318012 = setLIcence(cidLicence, sha256Licence) | |
520 | + | let licenceCID = $t01794318012._1 | |
521 | + | let licenceHash = $t01794318012._2 | |
520 | 522 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
521 | 523 | if ((validateArtwork != "")) | |
522 | 524 | then throw("Something went wrong!") | |
523 | 525 | else { | |
524 | - | let $ | |
525 | - | let amount = $ | |
526 | - | let assetId = $ | |
526 | + | let $t01824018282 = validatePayment(i) | |
527 | + | let amount = $t01824018282._1 | |
528 | + | let assetId = $t01824018282._2 | |
527 | 529 | if (!(isDefined(amount))) | |
528 | 530 | then throw("Something went wrong") | |
529 | 531 | else { | |
553 | 555 | then throw(maintenanceMSG) | |
554 | 556 | else { | |
555 | 557 | let caller = toBase58String(i.caller.bytes) | |
556 | - | let $ | |
557 | - | let licenceCID = $ | |
558 | - | let licenceHash = $ | |
558 | + | let $t02100321072 = setLIcence(cidLicence, sha256Licence) | |
559 | + | let licenceCID = $t02100321072._1 | |
560 | + | let licenceHash = $t02100321072._2 | |
559 | 561 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
560 | 562 | if ((validateArtwork != "")) | |
561 | 563 | then throw("Something went wrong!") | |
578 | 580 | ||
579 | 581 | @Callable(i) | |
580 | 582 | func flagArtwork (artId,addr,flag) = { | |
581 | - | let $ | |
582 | - | let id = $ | |
583 | - | let caller = $ | |
583 | + | let $t02254522578 = idCallerDate(i) | |
584 | + | let id = $t02254522578._1 | |
585 | + | let caller = $t02254522578._2 | |
584 | 586 | if (containsElement([chris, joep, toString(this)], caller)) | |
585 | 587 | then if ((flag == "CONSENT")) | |
586 | 588 | then [StringEntry(keyFlag(addr, artId), flag)] | |
600 | 602 | ||
601 | 603 | @Callable(i) | |
602 | 604 | func deleteArtwork (artId,addr) = { | |
603 | - | let $ | |
604 | - | let id = $ | |
605 | - | let caller = $ | |
605 | + | let $t02359723630 = idCallerDate(i) | |
606 | + | let id = $t02359723630._1 | |
607 | + | let caller = $t02359723630._2 | |
606 | 608 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
607 | 609 | then addr | |
608 | 610 | else caller | |
635 | 637 | ||
636 | 638 | @Callable(i) | |
637 | 639 | func sellArtwork (artId,price,maxMint,assetId) = { | |
638 | - | let $ | |
639 | - | let id = $ | |
640 | - | let caller = $ | |
640 | + | let $t02599626029 = idCallerDate(i) | |
641 | + | let id = $t02599626029._1 | |
642 | + | let caller = $t02599626029._2 | |
641 | 643 | let artworkName = getStringByKey(keyName(caller, artId)) | |
642 | 644 | if ((artworkName == "")) | |
643 | 645 | then throw("This art doesn't match your account") | |
688 | 690 | ||
689 | 691 | @Callable(i) | |
690 | 692 | func setBid (artId,issuer) = { | |
691 | - | let $ | |
692 | - | let id = $ | |
693 | - | let caller = $ | |
694 | - | let date = $ | |
695 | - | let $ | |
696 | - | let payment = $ | |
697 | - | let amount = $ | |
693 | + | let $t02782527863 = idCallerDate(i) | |
694 | + | let id = $t02782527863._1 | |
695 | + | let caller = $t02782527863._2 | |
696 | + | let date = $t02782527863._3 | |
697 | + | let $t02786827904 = isPayment(i) | |
698 | + | let payment = $t02786827904._1 | |
699 | + | let amount = $t02786827904._2 | |
698 | 700 | let assetId = if (!(isDefined(payment.assetId))) | |
699 | 701 | then "WAVES" | |
700 | 702 | else toBase58String(value(payment.assetId)) | |
727 | 729 | ||
728 | 730 | @Callable(i) | |
729 | 731 | func cancelBid (artId,issuer,bidId) = { | |
730 | - | let $ | |
731 | - | let id = $ | |
732 | - | let caller = $ | |
733 | - | let date = $ | |
732 | + | let $t02893629088 = idCallerDate(i) | |
733 | + | let id = $t02893629088._1 | |
734 | + | let caller = $t02893629088._2 | |
735 | + | let date = $t02893629088._3 | |
734 | 736 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
735 | 737 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
736 | 738 | 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 | - | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
262 | - | let $ | |
263 | - | let payment = $ | |
264 | - | let amount = $ | |
261 | + | func validatePriceAssetId (i,issuer,priceAssetId,artworkPrice) = { | |
262 | + | let $t096619697 = isPayment(i) | |
263 | + | let payment = $t096619697._1 | |
264 | + | let amount = $t096619697._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 | - | else if ((artworkPrice != amount)) | |
276 | + | else if (if ((artworkPrice != amount)) | |
277 | + | then (toBase58String(i.caller.bytes) != issuer) | |
278 | + | else false) | |
277 | 279 | then throw("Payment don't match") | |
278 | 280 | else $Tuple2(amount, assetId) | |
279 | 281 | } | |
280 | 282 | ||
281 | 283 | ||
282 | 284 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
283 | 285 | then (assetId != toBase58String(wavesAssetId)) | |
284 | 286 | else false) | |
285 | 287 | then (assetId != "WAVES") | |
286 | 288 | else false) | |
287 | 289 | then (assetId != toBase58String(usdnAssetId)) | |
288 | 290 | else false) | |
289 | 291 | then throw("Only SIGN, USDN or WAVES accepted") | |
290 | 292 | else true | |
291 | 293 | ||
292 | 294 | ||
293 | 295 | func validateMinSell (assetId,price) = { | |
294 | 296 | let minSellWaves = if (unitTest) | |
295 | 297 | then 10 | |
296 | 298 | else getIntegerByKeyFromOracle("waves_min_sell") | |
297 | 299 | let minSellUsdn = 1000000 | |
298 | 300 | let minSellSign = if (unitTest) | |
299 | 301 | then 1 | |
300 | 302 | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
301 | 303 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
302 | 304 | then (minSellUsdn > price) | |
303 | 305 | else false) | |
304 | 306 | then (price != 0) | |
305 | 307 | else false) | |
306 | 308 | then true | |
307 | 309 | else if (if ((assetId == toBase58String(signAssetId))) | |
308 | 310 | then (minSellSign > price) | |
309 | 311 | else false) | |
310 | 312 | then (price != 0) | |
311 | 313 | else false) | |
312 | 314 | then true | |
313 | 315 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
314 | 316 | then true | |
315 | 317 | else (assetId == "WAVES")) | |
316 | 318 | then (minSellWaves > price) | |
317 | 319 | else false) | |
318 | 320 | then (price != 0) | |
319 | 321 | else false) | |
320 | 322 | then throw("Wrong minimum sell price") | |
321 | 323 | else true | |
322 | 324 | } | |
323 | 325 | ||
324 | 326 | ||
325 | 327 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
326 | 328 | then unit | |
327 | 329 | else fromBase58String(assetId) | |
328 | 330 | ||
329 | 331 | ||
330 | 332 | func getPriceAssetIdFromBid (bidDataKey) = { | |
331 | 333 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
332 | 334 | if ((bidData == "")) | |
333 | 335 | then throw("Bid not found") | |
334 | 336 | else { | |
335 | 337 | let bidDataArr = split(bidData, "_") | |
336 | 338 | let bidAmount = parseIntValue(bidDataArr[1]) | |
337 | 339 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
338 | 340 | if ((0 >= bidAmount)) | |
339 | 341 | then throw("Wrong amount") | |
340 | 342 | else $Tuple2(bidAmount, bidAssetId) | |
341 | 343 | } | |
342 | 344 | } | |
343 | 345 | ||
344 | 346 | ||
345 | 347 | func idCallerDate (i) = if (!(dappRunning)) | |
346 | 348 | then throw(maintenanceMSG) | |
347 | 349 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
348 | 350 | ||
349 | 351 | ||
350 | 352 | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
351 | 353 | then (bidOwner != "") | |
352 | 354 | else false) | |
353 | 355 | then (bidId != "") | |
354 | 356 | else false) | |
355 | 357 | then true | |
356 | 358 | else false | |
357 | 359 | ||
358 | 360 | ||
359 | 361 | func getArtData (i,issuer,artId,isBid) = { | |
360 | 362 | let totalNFT = getIntegerByKey("total_nft_issued") | |
361 | 363 | let signID = getStringByKey(keySignID(issuer, artId)) | |
362 | 364 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
363 | 365 | if ((artworkName == "")) | |
364 | 366 | then throw("Art doesn't exist") | |
365 | 367 | else { | |
366 | 368 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
367 | 369 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
368 | 370 | let artworkPrice = getIntegerByKey(keyPrice(issuer, artId)) | |
369 | 371 | let priceAssetId = getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
370 | 372 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
371 | 373 | if (if (if (if (if (!(isBid)) | |
372 | 374 | then (toBase58String(i.caller.bytes) != issuer) | |
373 | 375 | else false) | |
374 | 376 | then (0 >= artworkPrice) | |
375 | 377 | else false) | |
376 | 378 | then true | |
377 | 379 | else !(isOnSale)) | |
378 | 380 | then true | |
379 | 381 | else (0 >= maxCanSell)) | |
380 | 382 | then throw("Art not for sale") | |
381 | 383 | else if (if (if (!(isBid)) | |
382 | 384 | then (toBase58String(i.caller.bytes) == issuer) | |
383 | 385 | else false) | |
384 | 386 | then (0 >= maxCanSell) | |
385 | 387 | else false) | |
386 | 388 | then throw("Max issuable") | |
387 | 389 | else if (if (isBid) | |
388 | 390 | then (0 >= maxCanSell) | |
389 | 391 | else false) | |
390 | 392 | then throw("Art not open for Offer") | |
391 | 393 | else $Tuple7(totalNFT, signID, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell) | |
392 | 394 | } | |
393 | 395 | } | |
394 | 396 | ||
395 | 397 | ||
396 | 398 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
397 | 399 | let checkUser = validateUser(issuer) | |
398 | 400 | if (if (isBid) | |
399 | 401 | then (checkUser != "") | |
400 | 402 | else false) | |
401 | 403 | then throw(checkUser) | |
402 | 404 | else { | |
403 | 405 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
404 | - | let $ | |
406 | + | let $t01358813725 = if (isBid) | |
405 | 407 | then getPriceAssetIdFromBid(bidDataKey) | |
406 | - | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
407 | - | let amount = $ | |
408 | - | let assetId = $ | |
408 | + | else validatePriceAssetId(i, issuer, priceAssetId, artworkPrice) | |
409 | + | let amount = $t01358813725._1 | |
410 | + | let assetId = $t01358813725._2 | |
409 | 411 | $Tuple3(bidDataKey, amount, assetId) | |
410 | 412 | } | |
411 | 413 | } | |
412 | 414 | ||
413 | 415 | ||
414 | 416 | func getCommissionData (issuer,priceAssetId,amount,amountSold,maxCanSell) = { | |
415 | 417 | let isWhitelisted = checkWhitelist(issuer) | |
416 | 418 | let cut = if ((isWhitelisted > height)) | |
417 | 419 | then 0 | |
418 | 420 | else if ((priceAssetId == toBase58String(signAssetId))) | |
419 | 421 | then signCut | |
420 | 422 | else usdnWaveCut | |
421 | 423 | let amountForSign = fraction(amount, cut, 100) | |
422 | 424 | let amountForCreator = (amount - amountForSign) | |
423 | 425 | if ((amountSold == maxCanSell)) | |
424 | 426 | then throw("Art sold out") | |
425 | 427 | else { | |
426 | 428 | let newAmountSold = (amountSold + 1) | |
427 | 429 | $Tuple3(amountForSign, amountForCreator, newAmountSold) | |
428 | 430 | } | |
429 | 431 | } | |
430 | 432 | ||
431 | 433 | ||
432 | 434 | func getIssueData (issuer,artId,signID,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i) = { | |
433 | 435 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
434 | 436 | ArtID: ") + artId) + ", | |
435 | 437 | SignID: ") + signID) + ", | |
436 | 438 | Artwork name: ") + artworkName) + ", | |
437 | 439 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
438 | 440 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
439 | 441 | let idNFT = calculateAssetId(issueNFT) | |
440 | 442 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
441 | 443 | then false | |
442 | 444 | else true | |
443 | 445 | let receiveNFT = if (if (if ((caller == issuer)) | |
444 | 446 | then (bidOwner != "") | |
445 | 447 | else false) | |
446 | 448 | then (bidId != "") | |
447 | 449 | else false) | |
448 | 450 | then addressFromStringValue(bidOwner) | |
449 | 451 | else i.caller | |
450 | 452 | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
451 | 453 | } | |
452 | 454 | ||
453 | 455 | ||
454 | 456 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
455 | 457 | let assetIdBid = if (!(isDefined(assetId))) | |
456 | 458 | then "WAVES" | |
457 | 459 | else toBase58String(value(assetId)) | |
458 | 460 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
459 | 461 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
460 | 462 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
461 | 463 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
462 | 464 | } | |
463 | 465 | ||
464 | 466 | ||
465 | 467 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
466 | - | let $ | |
467 | - | let id = $ | |
468 | - | let caller = $ | |
469 | - | let date = $ | |
468 | + | let $t01557815628 = idCallerDate(i) | |
469 | + | let id = $t01557815628._1 | |
470 | + | let caller = $t01557815628._2 | |
471 | + | let date = $t01557815628._3 | |
470 | 472 | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
471 | - | let $ | |
472 | - | let totalNFT = $ | |
473 | - | let signID = $ | |
474 | - | let artworkName = $ | |
475 | - | let amountSold = $ | |
476 | - | let artworkPrice = $ | |
477 | - | let priceAssetId = $ | |
478 | - | let maxCanSell = $ | |
479 | - | let $ | |
480 | - | let bidDataKey = $ | |
481 | - | let amount = $ | |
482 | - | let assetId = $ | |
483 | - | let $ | |
484 | - | let amountForSign = $ | |
485 | - | let amountForCreator = $ | |
486 | - | let newAmountSold = $ | |
487 | - | let $ | |
488 | - | let issueNFT = $ | |
489 | - | let idNFT = $ | |
490 | - | let sellStatus = $ | |
491 | - | let receiveNFT = $ | |
492 | - | let $ | |
493 | - | let assetIdBid = $ | |
494 | - | let bidDelOld = $ | |
495 | - | let bidUpdate = $ | |
473 | + | let $t01570815849 = getArtData(i, issuer, artId, isBid) | |
474 | + | let totalNFT = $t01570815849._1 | |
475 | + | let signID = $t01570815849._2 | |
476 | + | let artworkName = $t01570815849._3 | |
477 | + | let amountSold = $t01570815849._4 | |
478 | + | let artworkPrice = $t01570815849._5 | |
479 | + | let priceAssetId = $t01570815849._6 | |
480 | + | let maxCanSell = $t01570815849._7 | |
481 | + | let $t01585416000 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
482 | + | let bidDataKey = $t01585416000._1 | |
483 | + | let amount = $t01585416000._2 | |
484 | + | let assetId = $t01585416000._3 | |
485 | + | let $t01600516152 = getCommissionData(issuer, priceAssetId, amount, amountSold, maxCanSell) | |
486 | + | let amountForSign = $t01600516152._1 | |
487 | + | let amountForCreator = $t01600516152._2 | |
488 | + | let newAmountSold = $t01600516152._3 | |
489 | + | let $t01615716337 = getIssueData(issuer, artId, signID, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i) | |
490 | + | let issueNFT = $t01615716337._1 | |
491 | + | let idNFT = $t01615716337._2 | |
492 | + | let sellStatus = $t01615716337._3 | |
493 | + | let receiveNFT = $t01615716337._4 | |
494 | + | let $t01634216441 = getBidKeyVal(assetId, bidDataKey, date) | |
495 | + | let assetIdBid = $t01634216441._1 | |
496 | + | let bidDelOld = $t01634216441._2 | |
497 | + | let bidUpdate = $t01634216441._3 | |
496 | 498 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
497 | 499 | let soldValue = if (!(isBid)) | |
498 | 500 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
499 | 501 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
500 | 502 | let soldData = StringEntry(soldKey, soldValue) | |
501 | 503 | 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)] | |
502 | 504 | if (isBid) | |
503 | 505 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
504 | 506 | else soldData :: buyRes | |
505 | 507 | } | |
506 | 508 | ||
507 | 509 | ||
508 | 510 | @Callable(i) | |
509 | 511 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
510 | - | let $ | |
511 | - | let artId = $ | |
512 | - | let caller = $ | |
513 | - | let date = $ | |
512 | + | let $t01780117842 = idCallerDate(i) | |
513 | + | let artId = $t01780117842._1 | |
514 | + | let caller = $t01780117842._2 | |
515 | + | let date = $t01780117842._3 | |
514 | 516 | if (!(validateHash(sha256Hash))) | |
515 | 517 | then throw("Hash should be 64 characters maximum") | |
516 | 518 | else { | |
517 | - | let $ | |
518 | - | let licenceCID = $ | |
519 | - | let licenceHash = $ | |
519 | + | let $t01794318012 = setLIcence(cidLicence, sha256Licence) | |
520 | + | let licenceCID = $t01794318012._1 | |
521 | + | let licenceHash = $t01794318012._2 | |
520 | 522 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
521 | 523 | if ((validateArtwork != "")) | |
522 | 524 | then throw("Something went wrong!") | |
523 | 525 | else { | |
524 | - | let $ | |
525 | - | let amount = $ | |
526 | - | let assetId = $ | |
526 | + | let $t01824018282 = validatePayment(i) | |
527 | + | let amount = $t01824018282._1 | |
528 | + | let assetId = $t01824018282._2 | |
527 | 529 | if (!(isDefined(amount))) | |
528 | 530 | then throw("Something went wrong") | |
529 | 531 | else { | |
530 | 532 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
531 | 533 | if ((entryExist != "")) | |
532 | 534 | then throw("You already added it") | |
533 | 535 | else { | |
534 | 536 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
535 | 537 | if ((hashExist != "")) | |
536 | 538 | then throw("Hash already registered") | |
537 | 539 | else { | |
538 | 540 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
539 | 541 | if (!(isSignCertified)) | |
540 | 542 | then throw("Sign Certificate not found for this address.") | |
541 | 543 | 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)] | |
542 | 544 | } | |
543 | 545 | } | |
544 | 546 | } | |
545 | 547 | } | |
546 | 548 | } | |
547 | 549 | } | |
548 | 550 | ||
549 | 551 | ||
550 | 552 | ||
551 | 553 | @Callable(i) | |
552 | 554 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
553 | 555 | then throw(maintenanceMSG) | |
554 | 556 | else { | |
555 | 557 | let caller = toBase58String(i.caller.bytes) | |
556 | - | let $ | |
557 | - | let licenceCID = $ | |
558 | - | let licenceHash = $ | |
558 | + | let $t02100321072 = setLIcence(cidLicence, sha256Licence) | |
559 | + | let licenceCID = $t02100321072._1 | |
560 | + | let licenceHash = $t02100321072._2 | |
559 | 561 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
560 | 562 | if ((validateArtwork != "")) | |
561 | 563 | then throw("Something went wrong!") | |
562 | 564 | else { | |
563 | 565 | let entryExist = getStringByKey(keyName(caller, txid)) | |
564 | 566 | if ((entryExist == "")) | |
565 | 567 | then throw("Entry not found") | |
566 | 568 | else { | |
567 | 569 | let flag = getStringByKey(keyFlag(caller, txid)) | |
568 | 570 | if ((flag == "ILLEGAL")) | |
569 | 571 | then throw("Cannot update ILLEGAL artwork") | |
570 | 572 | else if (!(isArtMinted(caller, txid))) | |
571 | 573 | 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)] | |
572 | 574 | else throw("Already minted") | |
573 | 575 | } | |
574 | 576 | } | |
575 | 577 | } | |
576 | 578 | ||
577 | 579 | ||
578 | 580 | ||
579 | 581 | @Callable(i) | |
580 | 582 | func flagArtwork (artId,addr,flag) = { | |
581 | - | let $ | |
582 | - | let id = $ | |
583 | - | let caller = $ | |
583 | + | let $t02254522578 = idCallerDate(i) | |
584 | + | let id = $t02254522578._1 | |
585 | + | let caller = $t02254522578._2 | |
584 | 586 | if (containsElement([chris, joep, toString(this)], caller)) | |
585 | 587 | then if ((flag == "CONSENT")) | |
586 | 588 | then [StringEntry(keyFlag(addr, artId), flag)] | |
587 | 589 | else if ((flag == "")) | |
588 | 590 | then [StringEntry(keyFlag(addr, artId), flag)] | |
589 | 591 | else if ((flag == "CHANGE_REQUIRED")) | |
590 | 592 | then [StringEntry(keyFlag(addr, artId), flag)] | |
591 | 593 | else if (if ((flag == "ILLEGAL")) | |
592 | 594 | then containsElement([chris, toString(this)], caller) | |
593 | 595 | else false) | |
594 | 596 | 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), "")] | |
595 | 597 | else throw(("Unknow status " + flag)) | |
596 | 598 | else throw("You are not allowed") | |
597 | 599 | } | |
598 | 600 | ||
599 | 601 | ||
600 | 602 | ||
601 | 603 | @Callable(i) | |
602 | 604 | func deleteArtwork (artId,addr) = { | |
603 | - | let $ | |
604 | - | let id = $ | |
605 | - | let caller = $ | |
605 | + | let $t02359723630 = idCallerDate(i) | |
606 | + | let id = $t02359723630._1 | |
607 | + | let caller = $t02359723630._2 | |
606 | 608 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
607 | 609 | then addr | |
608 | 610 | else caller | |
609 | 611 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
610 | 612 | if ((entryExist == "")) | |
611 | 613 | then throw("No art matching for this address") | |
612 | 614 | else { | |
613 | 615 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
614 | 616 | if ((sha256Hash == "")) | |
615 | 617 | then throw("No art hash matching for this address") | |
616 | 618 | else { | |
617 | 619 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
618 | 620 | if ((signID == "")) | |
619 | 621 | then throw("No SIGN ID matching") | |
620 | 622 | else { | |
621 | 623 | 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))] | |
622 | 624 | if (!(isArtMinted(addrToUse, artId))) | |
623 | 625 | then if (!(dappRunning)) | |
624 | 626 | then throw(maintenanceMSG) | |
625 | 627 | else dataToDelete | |
626 | 628 | else if (containsElement([chris, toString(this)], caller)) | |
627 | 629 | then dataToDelete | |
628 | 630 | else throw("Art already minted, you cannot delete it") | |
629 | 631 | } | |
630 | 632 | } | |
631 | 633 | } | |
632 | 634 | } | |
633 | 635 | ||
634 | 636 | ||
635 | 637 | ||
636 | 638 | @Callable(i) | |
637 | 639 | func sellArtwork (artId,price,maxMint,assetId) = { | |
638 | - | let $ | |
639 | - | let id = $ | |
640 | - | let caller = $ | |
640 | + | let $t02599626029 = idCallerDate(i) | |
641 | + | let id = $t02599626029._1 | |
642 | + | let caller = $t02599626029._2 | |
641 | 643 | let artworkName = getStringByKey(keyName(caller, artId)) | |
642 | 644 | if ((artworkName == "")) | |
643 | 645 | then throw("This art doesn't match your account") | |
644 | 646 | else { | |
645 | 647 | let exportCID = getStringByKey(keyExportCid(caller, artId)) | |
646 | 648 | if ((size(split(exportCID, "/")[0]) != 59)) | |
647 | 649 | then throw("You cannot sell art with no export file") | |
648 | 650 | else if (!(acceptedAssetIds(assetId))) | |
649 | 651 | then throw("Something went wrong!") | |
650 | 652 | else if (!(validateMinSell(assetId, price))) | |
651 | 653 | then throw("Something went wrong!") | |
652 | 654 | else { | |
653 | 655 | let checkUser = validateUser(caller) | |
654 | 656 | if ((checkUser != "")) | |
655 | 657 | then throw(checkUser) | |
656 | 658 | else { | |
657 | 659 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
658 | 660 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
659 | 661 | if ((maxMint > 10)) | |
660 | 662 | then throw("10 editions max per artwork") | |
661 | 663 | else if (if ((amountSold != 0)) | |
662 | 664 | then (amountSold == maxCanSell) | |
663 | 665 | else false) | |
664 | 666 | then throw("Max edition reached.") | |
665 | 667 | else if (if ((amountSold > 0)) | |
666 | 668 | then (maxCanSell != maxMint) | |
667 | 669 | else false) | |
668 | 670 | then throw("Cannot change maximum issuable anymore") | |
669 | 671 | else { | |
670 | 672 | let sellStatus = if (if ((price > 0)) | |
671 | 673 | then (maxMint > 0) | |
672 | 674 | else false) | |
673 | 675 | then true | |
674 | 676 | else false | |
675 | 677 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)] | |
676 | 678 | } | |
677 | 679 | } | |
678 | 680 | } | |
679 | 681 | } | |
680 | 682 | } | |
681 | 683 | ||
682 | 684 | ||
683 | 685 | ||
684 | 686 | @Callable(i) | |
685 | 687 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
686 | 688 | ||
687 | 689 | ||
688 | 690 | ||
689 | 691 | @Callable(i) | |
690 | 692 | func setBid (artId,issuer) = { | |
691 | - | let $ | |
692 | - | let id = $ | |
693 | - | let caller = $ | |
694 | - | let date = $ | |
695 | - | let $ | |
696 | - | let payment = $ | |
697 | - | let amount = $ | |
693 | + | let $t02782527863 = idCallerDate(i) | |
694 | + | let id = $t02782527863._1 | |
695 | + | let caller = $t02782527863._2 | |
696 | + | let date = $t02782527863._3 | |
697 | + | let $t02786827904 = isPayment(i) | |
698 | + | let payment = $t02786827904._1 | |
699 | + | let amount = $t02786827904._2 | |
698 | 700 | let assetId = if (!(isDefined(payment.assetId))) | |
699 | 701 | then "WAVES" | |
700 | 702 | else toBase58String(value(payment.assetId)) | |
701 | 703 | if (!(acceptedAssetIds(assetId))) | |
702 | 704 | then throw("asset not accepted") | |
703 | 705 | else if (!(validateMinSell(assetId, amount))) | |
704 | 706 | then throw("Wrong min sell") | |
705 | 707 | else { | |
706 | 708 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
707 | 709 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
708 | 710 | if ((0 >= maxCanSell)) | |
709 | 711 | then throw("No max edition set for this artwork") | |
710 | 712 | else if ((amountSold >= maxCanSell)) | |
711 | 713 | then throw("Sold out, you cannot bid") | |
712 | 714 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date)))] | |
713 | 715 | } | |
714 | 716 | } | |
715 | 717 | ||
716 | 718 | ||
717 | 719 | ||
718 | 720 | @Callable(i) | |
719 | 721 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
720 | 722 | let caller = toBase58String(i.caller.bytes) | |
721 | 723 | if ((caller != issuer)) | |
722 | 724 | then throw("You cannot do this action") | |
723 | 725 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
724 | 726 | } | |
725 | 727 | ||
726 | 728 | ||
727 | 729 | ||
728 | 730 | @Callable(i) | |
729 | 731 | func cancelBid (artId,issuer,bidId) = { | |
730 | - | let $ | |
731 | - | let id = $ | |
732 | - | let caller = $ | |
733 | - | let date = $ | |
732 | + | let $t02893629088 = idCallerDate(i) | |
733 | + | let id = $t02893629088._1 | |
734 | + | let caller = $t02893629088._2 | |
735 | + | let date = $t02893629088._3 | |
734 | 736 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
735 | 737 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
736 | 738 | if ((bidData == "")) | |
737 | 739 | then throw("Bid not found") | |
738 | 740 | else { | |
739 | 741 | let bidDataArr = split(bidData, "_") | |
740 | 742 | let assetId = getBidAssetId(bidDataArr[0]) | |
741 | 743 | let bidStatus = "CANCELED" | |
742 | 744 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
743 | 745 | } | |
744 | 746 | } | |
745 | 747 | ||
746 | 748 | ||
747 | 749 | ||
748 | 750 | @Callable(i) | |
749 | 751 | func deleteEntry (entry) = { | |
750 | 752 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
751 | 753 | if ((caller == chris)) | |
752 | 754 | then [DeleteEntry(entry)] | |
753 | 755 | else throw("no") | |
754 | 756 | } | |
755 | 757 | ||
756 | 758 |
github/deemru/w8io/169f3d6 106.72 ms ◑