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