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