tx · XJKBJEN7mYa7WGJdKWiHEyn5ZLSrspHmaUDL4goW6au 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.27 18:34 [695009] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "XJKBJEN7mYa7WGJdKWiHEyn5ZLSrspHmaUDL4goW6au", "fee": 1500000, "feeAssetId": null, "timestamp": 1569598451035, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "2f9EwXLK4CrHW2SEYKHCryKhMxQ1Zq6koP26Ru4TzyGdUyggR5N3enSrUjhMxbdznSnjPeAUYd3gnX6aFPp1wwRt" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAcAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb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G1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAYHB8n6vx4=", "chainId": 84, "height": 695009, "spentComplexity": 0 } View: original | compacted Prev: 3qMjexYts2QBnGdDhs9mdLQV28o8Vvfwj3FD45NJEnMd Next: CvwrnBQyiABCgLwSjiYZVqzJyRy4wxXsaFABh8Xj8ox4 Diff:
Old | New | Differences | |
---|---|---|---|
409 | 409 | } | |
410 | 410 | let as = D(E) | |
411 | 411 | let aH = { | |
412 | - | let aI = ((v + "_") + aG) | |
412 | + | let aI = ((v + "_Bid_") + aG) | |
413 | 413 | let aJ = getInteger(this, aI) | |
414 | 414 | let z = aJ | |
415 | 415 | if ($isInstanceOf(z, "Int")) | |
419 | 419 | } | |
420 | 420 | else throw("Freelancer's bet was not found") | |
421 | 421 | } | |
422 | - | let ae = O(E, L) | |
423 | 422 | let au = ((L * 3) / 100) | |
424 | 423 | let aA = ((L - aH) - au) | |
425 | 424 | let av = F(ag, ab, am) | |
426 | 425 | if ((Q == Y)) | |
427 | 426 | then if (av) | |
428 | 427 | then if ((ah == f)) | |
429 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), (L - au), as)])) | |
428 | + | then { | |
429 | + | let aK = (L - au) | |
430 | + | let ae = O(E, aK) | |
431 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aK, as)])) | |
432 | + | } | |
430 | 433 | else if ((ah == g)) | |
431 | 434 | then { | |
432 | 435 | let aw = { | |
453 | 456 | } | |
454 | 457 | else throw("Incorrect auction state") | |
455 | 458 | else { | |
456 | - | let | |
459 | + | let aL = { | |
457 | 460 | let at = getInteger(this, ((v + "_Bid_") + aG)) | |
458 | 461 | let z = at | |
459 | 462 | if ($isInstanceOf(z, "Int")) | |
463 | 466 | } | |
464 | 467 | else throw("Error: Incorrect freelancerPub") | |
465 | 468 | } | |
466 | - | let | |
467 | - | let | |
468 | - | let z = | |
469 | + | let aM = { | |
470 | + | let aN = getInteger(this, ((v + "_Bid_") + aG)) | |
471 | + | let z = aN | |
469 | 472 | if ($isInstanceOf(z, "Int")) | |
470 | 473 | then { | |
471 | 474 | let y = z | |
473 | 476 | } | |
474 | 477 | else throw("Auction lowest bidder was not found") | |
475 | 478 | } | |
476 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aK), DataEntry((v + "_Price"), aL)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
479 | + | let ae = O(E, aM) | |
480 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aL), DataEntry((v + "_Price"), aM), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
477 | 481 | } | |
478 | 482 | else throw("Only auction customer can choose a freelancer") | |
479 | 483 | } | |
481 | 485 | ||
482 | 486 | ||
483 | 487 | @Callable(R) | |
484 | - | func increaseExecutionTime (v, | |
485 | - | let | |
488 | + | func increaseExecutionTime (v,aO) = { | |
489 | + | let aP = extract(R.callerPublicKey) | |
486 | 490 | let ah = { | |
487 | 491 | let ai = getString(this, (v + "_State")) | |
488 | 492 | let z = ai | |
506 | 510 | } | |
507 | 511 | fromBase58String(y) | |
508 | 512 | } | |
509 | - | let | |
513 | + | let aQ = { | |
510 | 514 | let ap = getInteger(this, (v + "JobPerformance")) | |
511 | 515 | let z = ap | |
512 | 516 | if ($isInstanceOf(z, "Int")) | |
516 | 520 | } | |
517 | 521 | else throw("Auction job performance time was not found") | |
518 | 522 | } | |
519 | - | let | |
520 | - | let | |
521 | - | if (( | |
522 | - | then | |
523 | + | let aR = { | |
524 | + | let aS = (aO * a) | |
525 | + | if ((aS > aQ)) | |
526 | + | then aS | |
523 | 527 | else throw("New execution time must more than current execution time") | |
524 | 528 | } | |
525 | - | if (( | |
529 | + | if ((aP == Y)) | |
526 | 530 | then if (if (if ((ah == f)) | |
527 | 531 | then true | |
528 | 532 | else (ah == g)) | |
529 | 533 | then true | |
530 | 534 | else (ah == i)) | |
531 | - | then WriteSet([DataEntry((v + "JobPerformance"), | |
535 | + | then WriteSet([DataEntry((v + "JobPerformance"), aR)]) | |
532 | 536 | else throw("Incorrect state") | |
533 | 537 | else throw("Only Client can increase execution time") | |
534 | 538 | } | |
561 | 565 | } | |
562 | 566 | fromBase58String(y) | |
563 | 567 | } | |
564 | - | let | |
568 | + | let aT = if ((Q == Y)) | |
565 | 569 | then true | |
566 | 570 | else throw("Auction can be canceled only by owner.") | |
567 | - | if ( | |
571 | + | if (aT) | |
568 | 572 | then if ((ah == f)) | |
569 | 573 | then WriteSet([DataEntry((v + "_State"), h)]) | |
570 | 574 | else throw("Incorrect auction state.") | |
575 | 579 | ||
576 | 580 | @Callable(R) | |
577 | 581 | func openDispute (v) = { | |
578 | - | let | |
582 | + | let aP = extract(R.callerPublicKey) | |
579 | 583 | let ah = { | |
580 | 584 | let ai = getString(this, (v + "_State")) | |
581 | 585 | let z = ai | |
599 | 603 | } | |
600 | 604 | fromBase58String(y) | |
601 | 605 | } | |
602 | - | let | |
606 | + | let aU = { | |
603 | 607 | let ak = getString(this, (v + "_Freelancer")) | |
604 | 608 | let y = { | |
605 | 609 | let z = ak | |
616 | 620 | then true | |
617 | 621 | else (ah == g)) | |
618 | 622 | then throw("Incorrect auction state for dispute opening") | |
619 | - | else if (if (( | |
623 | + | else if (if ((aP == Y)) | |
620 | 624 | then true | |
621 | - | else ( | |
625 | + | else (aP == aU)) | |
622 | 626 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
623 | 627 | else throw("Only customer and freelancer can open dispute") | |
624 | 628 | } | |
626 | 630 | ||
627 | 631 | ||
628 | 632 | @Callable(R) | |
629 | - | func voteDispute (v, | |
633 | + | func voteDispute (v,aV) = { | |
630 | 634 | let Q = extract(R.callerPublicKey) | |
631 | 635 | let ah = { | |
632 | 636 | let ai = getString(this, (v + "_State")) | |
671 | 675 | } | |
672 | 676 | else throw("Auction price was not found") | |
673 | 677 | } | |
674 | - | let | |
678 | + | let aU = { | |
675 | 679 | let ak = getString(this, (v + "_Freelancer")) | |
676 | 680 | let y = { | |
677 | 681 | let z = ak | |
684 | 688 | } | |
685 | 689 | fromBase58String(y) | |
686 | 690 | } | |
687 | - | let | |
691 | + | let aW = ((L * 3) / 100) | |
688 | 692 | let as = D(E) | |
689 | - | let | |
693 | + | let aX = if (if (if (if (if ((Q == p)) | |
690 | 694 | then true | |
691 | 695 | else (Q == q)) | |
692 | 696 | then true | |
697 | 701 | else (Q == t)) | |
698 | 702 | then toBase58String(Q) | |
699 | 703 | else throw("Only defined ambassadors can vote in disputes") | |
700 | - | let | |
704 | + | let aY = if (if ((aV == n)) | |
701 | 705 | then true | |
702 | - | else ( | |
703 | - | then | |
706 | + | else (aV == o)) | |
707 | + | then aV | |
704 | 708 | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let z = | |
709 | + | let aZ = { | |
710 | + | let ba = ((v + "_DiputeVote_") + aX) | |
711 | + | let bb = getString(this, ba) | |
712 | + | let z = bb | |
709 | 713 | if ($isInstanceOf(z, "String")) | |
710 | 714 | then { | |
711 | 715 | let y = z | |
712 | 716 | throw("User already voted") | |
713 | 717 | } | |
714 | - | else | |
718 | + | else aX | |
715 | 719 | } | |
716 | - | let | |
717 | - | let | |
718 | - | let z = | |
720 | + | let bc = { | |
721 | + | let bd = getInteger(this, (v + "_DisputeVotes")) | |
722 | + | let z = bd | |
719 | 723 | if ($isInstanceOf(z, "Int")) | |
720 | 724 | then { | |
721 | 725 | let y = z | |
724 | 728 | else throw("VotesNumber was not found") | |
725 | 729 | } | |
726 | 730 | if ((ah == l)) | |
727 | - | then if (( | |
731 | + | then if ((bc == 4)) | |
728 | 732 | then { | |
729 | - | let bc = { | |
730 | - | let bd = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
731 | - | let be = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
732 | - | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
733 | - | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
734 | - | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
735 | - | let bi = if ((bd == n)) | |
736 | - | then 1 | |
737 | - | else 0 | |
738 | - | let bj = if ((be == n)) | |
739 | - | then 1 | |
740 | - | else 0 | |
733 | + | let be = { | |
734 | + | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
735 | + | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
736 | + | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
737 | + | let bi = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
738 | + | let bj = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
741 | 739 | let bk = if ((bf == n)) | |
742 | 740 | then 1 | |
743 | 741 | else 0 | |
747 | 745 | let bm = if ((bh == n)) | |
748 | 746 | then 1 | |
749 | 747 | else 0 | |
750 | - | let bn = if (( | |
748 | + | let bn = if ((bi == n)) | |
751 | 749 | then 1 | |
752 | 750 | else 0 | |
753 | - | let bo = (((((bi + bj) + bk) + bl) + bm) + bn) | |
754 | - | if ((bo > 2)) | |
751 | + | let bo = if ((bj == n)) | |
752 | + | then 1 | |
753 | + | else 0 | |
754 | + | let bp = if ((aY == n)) | |
755 | + | then 1 | |
756 | + | else 0 | |
757 | + | let bq = (((((bk + bl) + bm) + bn) + bo) + bp) | |
758 | + | if ((bq > 2)) | |
755 | 759 | then Y | |
756 | - | else | |
760 | + | else aU | |
757 | 761 | } | |
758 | - | let | |
762 | + | let br = if ((be == Y)) | |
759 | 763 | then L | |
760 | - | else (L - aU) | |
761 | - | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (ba + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aV), aW)]), TransferSet([ScriptTransfer(addressFromPublicKey(bc), bp, as)])) | |
764 | + | else (L - aW) | |
765 | + | let ae = O(E, br) | |
766 | + | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (bc + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aX), aY), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(be), br, as)])) | |
762 | 767 | } | |
763 | - | else WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
768 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (bc + 1)), DataEntry(((v + "_DiputeVote_") + aX), aY)]) | |
764 | 769 | else throw(("Incorrect state. Must be: " + l)) | |
765 | 770 | } | |
766 | 771 | ||
799 | 804 | } | |
800 | 805 | else throw("Auction duration time was not found") | |
801 | 806 | } | |
802 | - | let | |
807 | + | let aQ = { | |
803 | 808 | let ap = getInteger(this, (v + "JobPerformance")) | |
804 | 809 | let z = ap | |
805 | 810 | if ($isInstanceOf(z, "Int")) | |
809 | 814 | } | |
810 | 815 | else throw("Auction job performance time was not found") | |
811 | 816 | } | |
812 | - | let | |
817 | + | let aU = { | |
813 | 818 | let ak = getString(this, (v + "_Freelancer")) | |
814 | 819 | let y = { | |
815 | 820 | let z = ak | |
823 | 828 | fromBase58String(y) | |
824 | 829 | } | |
825 | 830 | let G = height | |
826 | - | let | |
831 | + | let bs = if ((Q == aU)) | |
827 | 832 | then Q | |
828 | 833 | else throw("Only a freelancer can indicate that the work is done") | |
829 | - | let | |
834 | + | let bt = ((G - ab) > aQ) | |
830 | 835 | if ((ah == i)) | |
831 | - | then if ( | |
836 | + | then if (bt) | |
832 | 837 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
833 | 838 | else WriteSet([DataEntry((v + "_State"), j)]) | |
834 | 839 | else throw("Auction state is incorrect") | |
882 | 887 | } | |
883 | 888 | else throw("Auction duration time was not found") | |
884 | 889 | } | |
885 | - | let | |
890 | + | let aQ = { | |
886 | 891 | let ap = getInteger(this, (v + "JobPerformance")) | |
887 | 892 | let z = ap | |
888 | 893 | if ($isInstanceOf(z, "Int")) | |
912 | 917 | } | |
913 | 918 | else throw("Auction price was not found") | |
914 | 919 | } | |
915 | - | let | |
920 | + | let aU = { | |
916 | 921 | let ak = getString(this, (v + "_Freelancer")) | |
917 | 922 | let y = { | |
918 | 923 | let z = ak | |
926 | 931 | fromBase58String(y) | |
927 | 932 | } | |
928 | 933 | let au = ((L * 3) / 100) | |
929 | - | let | |
934 | + | let bu = (L - au) | |
930 | 935 | let as = D(E) | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | let z = | |
936 | + | let bv = { | |
937 | + | let bw = getInteger(this, (toBase58String(aU) + "_Rating")) | |
938 | + | let bx = { | |
939 | + | let z = bw | |
935 | 940 | if ($isInstanceOf(z, "Int")) | |
936 | 941 | then { | |
937 | 942 | let y = z | |
939 | 944 | } | |
940 | 945 | else 0 | |
941 | 946 | } | |
942 | - | ( | |
947 | + | (bx + 1) | |
943 | 948 | } | |
944 | 949 | if ((Q == Y)) | |
945 | 950 | then if ((ah == j)) | |
946 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String( | |
951 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aU) + "_Rating"), bv)]), TransferSet([ScriptTransfer(addressFromPublicKey(aU), bu, as)])) | |
947 | 952 | else throw(("Incorrect state. Must be: " + j)) | |
948 | 953 | else throw("Only auction customer can use this function") | |
949 | 954 | } | |
950 | 955 | ||
951 | 956 | ||
952 | - | @Verifier( | |
953 | - | func | |
957 | + | @Verifier(by) | |
958 | + | func bz () = if (sigVerify(by.bodyBytes, by.proofs[0], by.senderPublicKey)) | |
954 | 959 | then { | |
955 | - | let z = | |
960 | + | let z = by | |
956 | 961 | if ($isInstanceOf(z, "TransferTransaction")) | |
957 | 962 | then { | |
958 | - | let | |
963 | + | let bA = z | |
959 | 964 | true | |
960 | 965 | } | |
961 | 966 | else if ($isInstanceOf(z, "SetScriptTransaction")) | |
962 | 967 | then { | |
963 | - | let | |
968 | + | let bB = z | |
964 | 969 | true | |
965 | 970 | } | |
966 | 971 | else false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1440 | |
5 | 5 | ||
6 | 6 | let b = unit | |
7 | 7 | ||
8 | 8 | let c = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
9 | 9 | ||
10 | 10 | let d = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
11 | 11 | ||
12 | 12 | let e = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
13 | 13 | ||
14 | 14 | let f = "Opened" | |
15 | 15 | ||
16 | 16 | let g = "Suggested" | |
17 | 17 | ||
18 | 18 | let h = "Canceled" | |
19 | 19 | ||
20 | 20 | let i = "InProgress" | |
21 | 21 | ||
22 | 22 | let j = "WaitForConfirmation" | |
23 | 23 | ||
24 | 24 | let k = "Completed" | |
25 | 25 | ||
26 | 26 | let l = "Dispute" | |
27 | 27 | ||
28 | 28 | let m = "DisputeResolved" | |
29 | 29 | ||
30 | 30 | let n = "CMR" | |
31 | 31 | ||
32 | 32 | let o = "FL" | |
33 | 33 | ||
34 | 34 | let p = base58'1' | |
35 | 35 | ||
36 | 36 | let q = base58'1' | |
37 | 37 | ||
38 | 38 | let r = base58'1' | |
39 | 39 | ||
40 | 40 | let s = base58'1' | |
41 | 41 | ||
42 | 42 | let t = base58'1' | |
43 | 43 | ||
44 | 44 | func u (v) = (v + "_AuctionData") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (v) = { | |
48 | 48 | let x = getString(this, v) | |
49 | 49 | let y = { | |
50 | 50 | let z = x | |
51 | 51 | if ($isInstanceOf(z, "String")) | |
52 | 52 | then { | |
53 | 53 | let y = z | |
54 | 54 | y | |
55 | 55 | } | |
56 | 56 | else throw("AuctionId was not found") | |
57 | 57 | } | |
58 | 58 | split(y, "_") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func A (v) = { | |
63 | 63 | let B = ((v + "_") + l) | |
64 | 64 | let C = getString(this, B) | |
65 | 65 | let y = { | |
66 | 66 | let z = C | |
67 | 67 | if ($isInstanceOf(z, "String")) | |
68 | 68 | then { | |
69 | 69 | let y = z | |
70 | 70 | y | |
71 | 71 | } | |
72 | 72 | else throw("Dispute data was not found") | |
73 | 73 | } | |
74 | 74 | split(y, "/") | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func D (E) = if ((E == "WAVES")) | |
79 | 79 | then b | |
80 | 80 | else if ((E == "BTC")) | |
81 | 81 | then c | |
82 | 82 | else if ((E == "EUR")) | |
83 | 83 | then d | |
84 | 84 | else if ((E == "USD")) | |
85 | 85 | then e | |
86 | 86 | else throw("Incorrect Asset Id") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func F (G,H,I) = ((G - H) > I) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func J (K,L) = { | |
93 | 93 | let M = getInteger(this, (K + "_Freezed")) | |
94 | 94 | let N = { | |
95 | 95 | let z = M | |
96 | 96 | if ($isInstanceOf(z, "Int")) | |
97 | 97 | then { | |
98 | 98 | let y = z | |
99 | 99 | y | |
100 | 100 | } | |
101 | 101 | else 0 | |
102 | 102 | } | |
103 | 103 | (N + L) | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func O (K,L) = { | |
108 | 108 | let M = getInteger(this, (K + "_Freezed")) | |
109 | 109 | let N = { | |
110 | 110 | let z = M | |
111 | 111 | if ($isInstanceOf(z, "Int")) | |
112 | 112 | then { | |
113 | 113 | let y = z | |
114 | 114 | y | |
115 | 115 | } | |
116 | 116 | else 0 | |
117 | 117 | } | |
118 | 118 | let y = (N - L) | |
119 | 119 | if ((y > 0)) | |
120 | 120 | then y | |
121 | 121 | else throw("Freezed amount couldn't be less than 0") | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func P (Q) = { | |
126 | 126 | let P = getString(this, (Q + "_Freelancer")) | |
127 | 127 | let z = P | |
128 | 128 | if ($isInstanceOf(z, "String")) | |
129 | 129 | then { | |
130 | 130 | let y = z | |
131 | 131 | Q | |
132 | 132 | } | |
133 | 133 | else throw("Only registered users can make bets") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(R) | |
138 | 138 | func freelancerSignUp (S) = { | |
139 | 139 | let T = toBase58String(R.callerPublicKey) | |
140 | 140 | let U = getString(this, (T + "_Freelancer")) | |
141 | 141 | if (isDefined(U)) | |
142 | 142 | then throw("User already registered") | |
143 | 143 | else WriteSet([DataEntry((T + "_Freelancer"), S)]) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(R) | |
149 | 149 | func clientSignUp (S) = { | |
150 | 150 | let T = toBase58String(R.callerPublicKey) | |
151 | 151 | let U = getString(this, (T + "_Client")) | |
152 | 152 | if (isDefined(U)) | |
153 | 153 | then throw("User already registered") | |
154 | 154 | else WriteSet([DataEntry((T + "_Client"), S)]) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(R) | |
160 | 160 | func createAuction (V,W,X) = { | |
161 | 161 | let v = toBase58String(R.transactionId) | |
162 | 162 | let Y = toBase58String(R.callerPublicKey) | |
163 | 163 | let Z = extract(R.payment) | |
164 | 164 | let aa = Z.amount | |
165 | 165 | let L = if ((aa > 0)) | |
166 | 166 | then aa | |
167 | 167 | else throw("Amount must be higher then 0") | |
168 | 168 | let ab = height | |
169 | 169 | let ac = (W * a) | |
170 | 170 | let ad = (V * a) | |
171 | 171 | let K = if (!(isDefined(Z.assetId))) | |
172 | 172 | then "WAVES" | |
173 | 173 | else if ((Z.assetId == c)) | |
174 | 174 | then "BTC" | |
175 | 175 | else if ((Z.assetId == d)) | |
176 | 176 | then "EUR" | |
177 | 177 | else if ((Z.assetId == e)) | |
178 | 178 | then "USD" | |
179 | 179 | else throw("AssetId is incorrect") | |
180 | 180 | let ae = J(K, L) | |
181 | 181 | WriteSet([DataEntry((v + "_State"), f), DataEntry((v + "_Info"), X), DataEntry((v + "_Client"), Y), DataEntry((v + "_AuctionStart"), ab), DataEntry((v + "_AuctionDuration"), ac), DataEntry((v + "_JobPerformance"), ad), DataEntry((v + "_AssetName"), K), DataEntry((v + "_Price"), L), DataEntry((K + "_Freezed"), ae)]) | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(R) | |
187 | 187 | func makeBid (v,af) = { | |
188 | 188 | let Q = toBase58String(R.callerPublicKey) | |
189 | 189 | let ag = height | |
190 | 190 | let ah = { | |
191 | 191 | let ai = getString(this, (v + "_State")) | |
192 | 192 | let z = ai | |
193 | 193 | if ($isInstanceOf(z, "String")) | |
194 | 194 | then { | |
195 | 195 | let y = z | |
196 | 196 | y | |
197 | 197 | } | |
198 | 198 | else throw("Auction State was not found") | |
199 | 199 | } | |
200 | 200 | let X = { | |
201 | 201 | let aj = getString(this, (v + "_Info")) | |
202 | 202 | let z = aj | |
203 | 203 | if ($isInstanceOf(z, "String")) | |
204 | 204 | then { | |
205 | 205 | let y = z | |
206 | 206 | y | |
207 | 207 | } | |
208 | 208 | else throw("Auction info was not found") | |
209 | 209 | } | |
210 | 210 | let Y = { | |
211 | 211 | let ak = getString(this, (v + "_Client")) | |
212 | 212 | let y = { | |
213 | 213 | let z = ak | |
214 | 214 | if ($isInstanceOf(z, "String")) | |
215 | 215 | then { | |
216 | 216 | let y = z | |
217 | 217 | y | |
218 | 218 | } | |
219 | 219 | else throw("Auction Client was not found") | |
220 | 220 | } | |
221 | 221 | fromBase58String(y) | |
222 | 222 | } | |
223 | 223 | let ab = { | |
224 | 224 | let al = getInteger(this, (v + "_AuctionStart")) | |
225 | 225 | let z = al | |
226 | 226 | if ($isInstanceOf(z, "Int")) | |
227 | 227 | then { | |
228 | 228 | let y = z | |
229 | 229 | y | |
230 | 230 | } | |
231 | 231 | else throw("Auction Start time was not found") | |
232 | 232 | } | |
233 | 233 | let am = { | |
234 | 234 | let an = getInteger(this, (v + "_AuctionDuration")) | |
235 | 235 | let z = an | |
236 | 236 | if ($isInstanceOf(z, "Int")) | |
237 | 237 | then { | |
238 | 238 | let y = z | |
239 | 239 | y | |
240 | 240 | } | |
241 | 241 | else throw("Auction duration time was not found") | |
242 | 242 | } | |
243 | 243 | let ao = { | |
244 | 244 | let ap = getInteger(this, (v + "JobPerformance")) | |
245 | 245 | let z = ap | |
246 | 246 | if ($isInstanceOf(z, "Int")) | |
247 | 247 | then { | |
248 | 248 | let y = z | |
249 | 249 | y | |
250 | 250 | } | |
251 | 251 | else throw("Auction job performance time was not found") | |
252 | 252 | } | |
253 | 253 | let E = { | |
254 | 254 | let aq = getString(this, (v + "_AssetName")) | |
255 | 255 | let z = aq | |
256 | 256 | if ($isInstanceOf(z, "String")) | |
257 | 257 | then { | |
258 | 258 | let y = z | |
259 | 259 | y | |
260 | 260 | } | |
261 | 261 | else throw("Auction asset name was not found") | |
262 | 262 | } | |
263 | 263 | let L = { | |
264 | 264 | let ar = getInteger(this, (v + "_Price")) | |
265 | 265 | let z = ar | |
266 | 266 | if ($isInstanceOf(z, "Int")) | |
267 | 267 | then { | |
268 | 268 | let y = z | |
269 | 269 | y | |
270 | 270 | } | |
271 | 271 | else throw("Auction price was not found") | |
272 | 272 | } | |
273 | 273 | let as = D(E) | |
274 | 274 | let at = P(Q) | |
275 | 275 | let au = ((L * 3) / 100) | |
276 | 276 | let ae = O(E, L) | |
277 | 277 | let av = F(ag, ab, am) | |
278 | 278 | if (av) | |
279 | 279 | then if ((ah == f)) | |
280 | 280 | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), (L - au), as)])) | |
281 | 281 | else if ((ah == g)) | |
282 | 282 | then { | |
283 | 283 | let aw = { | |
284 | 284 | let ax = getString(this, (v + "_LowestBidderPub")) | |
285 | 285 | let z = ax | |
286 | 286 | if ($isInstanceOf(z, "String")) | |
287 | 287 | then { | |
288 | 288 | let y = z | |
289 | 289 | y | |
290 | 290 | } | |
291 | 291 | else throw("Auction lowest bidder was not found") | |
292 | 292 | } | |
293 | 293 | let ay = { | |
294 | 294 | let az = getInteger(this, ((v + "_Bid_") + aw)) | |
295 | 295 | let z = az | |
296 | 296 | if ($isInstanceOf(z, "Int")) | |
297 | 297 | then { | |
298 | 298 | let y = z | |
299 | 299 | y | |
300 | 300 | } | |
301 | 301 | else throw("Auction lowest bid was not found") | |
302 | 302 | } | |
303 | 303 | let aA = ((L - ay) - au) | |
304 | 304 | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aw), DataEntry((v + "_Price"), ay)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
305 | 305 | } | |
306 | 306 | else throw("Incorrect auction state") | |
307 | 307 | else if ((ah == f)) | |
308 | 308 | then WriteSet([DataEntry(((v + "_Bid_") + at), af), DataEntry((v + "_State"), g), DataEntry((v + "_LowestBidderPub"), Q), DataEntry((v + Q), af)]) | |
309 | 309 | else if ((ah == g)) | |
310 | 310 | then { | |
311 | 311 | let aB = { | |
312 | 312 | let aC = getString(this, (v + "_LowestBidderPub")) | |
313 | 313 | let z = aC | |
314 | 314 | if ($isInstanceOf(z, "String")) | |
315 | 315 | then { | |
316 | 316 | let y = z | |
317 | 317 | y | |
318 | 318 | } | |
319 | 319 | else throw("Auction lowest bidder was not found") | |
320 | 320 | } | |
321 | 321 | let aD = { | |
322 | 322 | let aE = getInteger(this, ((v + "_Bid_") + aB)) | |
323 | 323 | let aF = { | |
324 | 324 | let z = aE | |
325 | 325 | if ($isInstanceOf(z, "Int")) | |
326 | 326 | then { | |
327 | 327 | let y = z | |
328 | 328 | y | |
329 | 329 | } | |
330 | 330 | else throw("Auction lowest bid was not found") | |
331 | 331 | } | |
332 | 332 | if ((aF > af)) | |
333 | 333 | then at | |
334 | 334 | else aB | |
335 | 335 | } | |
336 | 336 | WriteSet([DataEntry((v + "_LowestBidderPub"), aD), DataEntry(((v + "_Bid_") + at), af)]) | |
337 | 337 | } | |
338 | 338 | else throw(((((("Incorrect jobId state. Now: " + ah) + ", must be: ") + f) + " or ") + g)) | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(R) | |
344 | 344 | func chooseFreelancer (v,aG) = { | |
345 | 345 | let Q = extract(R.callerPublicKey) | |
346 | 346 | let ag = height | |
347 | 347 | let ah = { | |
348 | 348 | let ai = getString(this, (v + "_State")) | |
349 | 349 | let z = ai | |
350 | 350 | if ($isInstanceOf(z, "String")) | |
351 | 351 | then { | |
352 | 352 | let y = z | |
353 | 353 | y | |
354 | 354 | } | |
355 | 355 | else throw("Auction State was not found") | |
356 | 356 | } | |
357 | 357 | let Y = { | |
358 | 358 | let ak = getString(this, (v + "_Client")) | |
359 | 359 | let y = { | |
360 | 360 | let z = ak | |
361 | 361 | if ($isInstanceOf(z, "String")) | |
362 | 362 | then { | |
363 | 363 | let y = z | |
364 | 364 | y | |
365 | 365 | } | |
366 | 366 | else throw("Auction Client was not found") | |
367 | 367 | } | |
368 | 368 | fromBase58String(y) | |
369 | 369 | } | |
370 | 370 | let ab = { | |
371 | 371 | let al = getInteger(this, (v + "_AuctionStart")) | |
372 | 372 | let z = al | |
373 | 373 | if ($isInstanceOf(z, "Int")) | |
374 | 374 | then { | |
375 | 375 | let y = z | |
376 | 376 | y | |
377 | 377 | } | |
378 | 378 | else throw("Auction Start time was not found") | |
379 | 379 | } | |
380 | 380 | let am = { | |
381 | 381 | let an = getInteger(this, (v + "_AuctionDuration")) | |
382 | 382 | let z = an | |
383 | 383 | if ($isInstanceOf(z, "Int")) | |
384 | 384 | then { | |
385 | 385 | let y = z | |
386 | 386 | y | |
387 | 387 | } | |
388 | 388 | else throw("Auction duration time was not found") | |
389 | 389 | } | |
390 | 390 | let E = { | |
391 | 391 | let aq = getString(this, (v + "_AssetName")) | |
392 | 392 | let z = aq | |
393 | 393 | if ($isInstanceOf(z, "String")) | |
394 | 394 | then { | |
395 | 395 | let y = z | |
396 | 396 | y | |
397 | 397 | } | |
398 | 398 | else throw("Auction asset name was not found") | |
399 | 399 | } | |
400 | 400 | let L = { | |
401 | 401 | let ar = getInteger(this, (v + "_Price")) | |
402 | 402 | let z = ar | |
403 | 403 | if ($isInstanceOf(z, "Int")) | |
404 | 404 | then { | |
405 | 405 | let y = z | |
406 | 406 | y | |
407 | 407 | } | |
408 | 408 | else throw("Auction price was not found") | |
409 | 409 | } | |
410 | 410 | let as = D(E) | |
411 | 411 | let aH = { | |
412 | - | let aI = ((v + "_") + aG) | |
412 | + | let aI = ((v + "_Bid_") + aG) | |
413 | 413 | let aJ = getInteger(this, aI) | |
414 | 414 | let z = aJ | |
415 | 415 | if ($isInstanceOf(z, "Int")) | |
416 | 416 | then { | |
417 | 417 | let y = z | |
418 | 418 | y | |
419 | 419 | } | |
420 | 420 | else throw("Freelancer's bet was not found") | |
421 | 421 | } | |
422 | - | let ae = O(E, L) | |
423 | 422 | let au = ((L * 3) / 100) | |
424 | 423 | let aA = ((L - aH) - au) | |
425 | 424 | let av = F(ag, ab, am) | |
426 | 425 | if ((Q == Y)) | |
427 | 426 | then if (av) | |
428 | 427 | then if ((ah == f)) | |
429 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), (L - au), as)])) | |
428 | + | then { | |
429 | + | let aK = (L - au) | |
430 | + | let ae = O(E, aK) | |
431 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aK, as)])) | |
432 | + | } | |
430 | 433 | else if ((ah == g)) | |
431 | 434 | then { | |
432 | 435 | let aw = { | |
433 | 436 | let ax = getString(this, (v + "_LowestBidderPub")) | |
434 | 437 | let z = ax | |
435 | 438 | if ($isInstanceOf(z, "String")) | |
436 | 439 | then { | |
437 | 440 | let y = z | |
438 | 441 | y | |
439 | 442 | } | |
440 | 443 | else throw("Auction lowest bidder was not found") | |
441 | 444 | } | |
442 | 445 | let ay = { | |
443 | 446 | let az = getInteger(this, ((v + "_Bid_") + aw)) | |
444 | 447 | let z = az | |
445 | 448 | if ($isInstanceOf(z, "Int")) | |
446 | 449 | then { | |
447 | 450 | let y = z | |
448 | 451 | y | |
449 | 452 | } | |
450 | 453 | else throw("Auction lowest bid was not found") | |
451 | 454 | } | |
452 | 455 | WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aw), DataEntry((v + "_Price"), ay)]) | |
453 | 456 | } | |
454 | 457 | else throw("Incorrect auction state") | |
455 | 458 | else { | |
456 | - | let | |
459 | + | let aL = { | |
457 | 460 | let at = getInteger(this, ((v + "_Bid_") + aG)) | |
458 | 461 | let z = at | |
459 | 462 | if ($isInstanceOf(z, "Int")) | |
460 | 463 | then { | |
461 | 464 | let y = z | |
462 | 465 | aG | |
463 | 466 | } | |
464 | 467 | else throw("Error: Incorrect freelancerPub") | |
465 | 468 | } | |
466 | - | let | |
467 | - | let | |
468 | - | let z = | |
469 | + | let aM = { | |
470 | + | let aN = getInteger(this, ((v + "_Bid_") + aG)) | |
471 | + | let z = aN | |
469 | 472 | if ($isInstanceOf(z, "Int")) | |
470 | 473 | then { | |
471 | 474 | let y = z | |
472 | 475 | y | |
473 | 476 | } | |
474 | 477 | else throw("Auction lowest bidder was not found") | |
475 | 478 | } | |
476 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aK), DataEntry((v + "_Price"), aL)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
479 | + | let ae = O(E, aM) | |
480 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aL), DataEntry((v + "_Price"), aM), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
477 | 481 | } | |
478 | 482 | else throw("Only auction customer can choose a freelancer") | |
479 | 483 | } | |
480 | 484 | ||
481 | 485 | ||
482 | 486 | ||
483 | 487 | @Callable(R) | |
484 | - | func increaseExecutionTime (v, | |
485 | - | let | |
488 | + | func increaseExecutionTime (v,aO) = { | |
489 | + | let aP = extract(R.callerPublicKey) | |
486 | 490 | let ah = { | |
487 | 491 | let ai = getString(this, (v + "_State")) | |
488 | 492 | let z = ai | |
489 | 493 | if ($isInstanceOf(z, "String")) | |
490 | 494 | then { | |
491 | 495 | let y = z | |
492 | 496 | y | |
493 | 497 | } | |
494 | 498 | else throw("Auction State was not found") | |
495 | 499 | } | |
496 | 500 | let Y = { | |
497 | 501 | let ak = getString(this, (v + "_Client")) | |
498 | 502 | let y = { | |
499 | 503 | let z = ak | |
500 | 504 | if ($isInstanceOf(z, "String")) | |
501 | 505 | then { | |
502 | 506 | let y = z | |
503 | 507 | y | |
504 | 508 | } | |
505 | 509 | else throw("Auction Client was not found") | |
506 | 510 | } | |
507 | 511 | fromBase58String(y) | |
508 | 512 | } | |
509 | - | let | |
513 | + | let aQ = { | |
510 | 514 | let ap = getInteger(this, (v + "JobPerformance")) | |
511 | 515 | let z = ap | |
512 | 516 | if ($isInstanceOf(z, "Int")) | |
513 | 517 | then { | |
514 | 518 | let y = z | |
515 | 519 | y | |
516 | 520 | } | |
517 | 521 | else throw("Auction job performance time was not found") | |
518 | 522 | } | |
519 | - | let | |
520 | - | let | |
521 | - | if (( | |
522 | - | then | |
523 | + | let aR = { | |
524 | + | let aS = (aO * a) | |
525 | + | if ((aS > aQ)) | |
526 | + | then aS | |
523 | 527 | else throw("New execution time must more than current execution time") | |
524 | 528 | } | |
525 | - | if (( | |
529 | + | if ((aP == Y)) | |
526 | 530 | then if (if (if ((ah == f)) | |
527 | 531 | then true | |
528 | 532 | else (ah == g)) | |
529 | 533 | then true | |
530 | 534 | else (ah == i)) | |
531 | - | then WriteSet([DataEntry((v + "JobPerformance"), | |
535 | + | then WriteSet([DataEntry((v + "JobPerformance"), aR)]) | |
532 | 536 | else throw("Incorrect state") | |
533 | 537 | else throw("Only Client can increase execution time") | |
534 | 538 | } | |
535 | 539 | ||
536 | 540 | ||
537 | 541 | ||
538 | 542 | @Callable(R) | |
539 | 543 | func cancelAuction (v) = { | |
540 | 544 | let Q = extract(R.callerPublicKey) | |
541 | 545 | let ah = { | |
542 | 546 | let ai = getString(this, (v + "_State")) | |
543 | 547 | let z = ai | |
544 | 548 | if ($isInstanceOf(z, "String")) | |
545 | 549 | then { | |
546 | 550 | let y = z | |
547 | 551 | y | |
548 | 552 | } | |
549 | 553 | else throw("Auction State was not found") | |
550 | 554 | } | |
551 | 555 | let Y = { | |
552 | 556 | let ak = getString(this, (v + "_Client")) | |
553 | 557 | let y = { | |
554 | 558 | let z = ak | |
555 | 559 | if ($isInstanceOf(z, "String")) | |
556 | 560 | then { | |
557 | 561 | let y = z | |
558 | 562 | y | |
559 | 563 | } | |
560 | 564 | else throw("Auction Client was not found") | |
561 | 565 | } | |
562 | 566 | fromBase58String(y) | |
563 | 567 | } | |
564 | - | let | |
568 | + | let aT = if ((Q == Y)) | |
565 | 569 | then true | |
566 | 570 | else throw("Auction can be canceled only by owner.") | |
567 | - | if ( | |
571 | + | if (aT) | |
568 | 572 | then if ((ah == f)) | |
569 | 573 | then WriteSet([DataEntry((v + "_State"), h)]) | |
570 | 574 | else throw("Incorrect auction state.") | |
571 | 575 | else throw("Only Client can cancel auction") | |
572 | 576 | } | |
573 | 577 | ||
574 | 578 | ||
575 | 579 | ||
576 | 580 | @Callable(R) | |
577 | 581 | func openDispute (v) = { | |
578 | - | let | |
582 | + | let aP = extract(R.callerPublicKey) | |
579 | 583 | let ah = { | |
580 | 584 | let ai = getString(this, (v + "_State")) | |
581 | 585 | let z = ai | |
582 | 586 | if ($isInstanceOf(z, "String")) | |
583 | 587 | then { | |
584 | 588 | let y = z | |
585 | 589 | y | |
586 | 590 | } | |
587 | 591 | else throw("Auction State was not found") | |
588 | 592 | } | |
589 | 593 | let Y = { | |
590 | 594 | let ak = getString(this, (v + "_Client")) | |
591 | 595 | let y = { | |
592 | 596 | let z = ak | |
593 | 597 | if ($isInstanceOf(z, "String")) | |
594 | 598 | then { | |
595 | 599 | let y = z | |
596 | 600 | y | |
597 | 601 | } | |
598 | 602 | else throw("Auction Client was not found") | |
599 | 603 | } | |
600 | 604 | fromBase58String(y) | |
601 | 605 | } | |
602 | - | let | |
606 | + | let aU = { | |
603 | 607 | let ak = getString(this, (v + "_Freelancer")) | |
604 | 608 | let y = { | |
605 | 609 | let z = ak | |
606 | 610 | if ($isInstanceOf(z, "String")) | |
607 | 611 | then { | |
608 | 612 | let y = z | |
609 | 613 | y | |
610 | 614 | } | |
611 | 615 | else throw("Auction Client was not found") | |
612 | 616 | } | |
613 | 617 | fromBase58String(y) | |
614 | 618 | } | |
615 | 619 | if (if ((ah == f)) | |
616 | 620 | then true | |
617 | 621 | else (ah == g)) | |
618 | 622 | then throw("Incorrect auction state for dispute opening") | |
619 | - | else if (if (( | |
623 | + | else if (if ((aP == Y)) | |
620 | 624 | then true | |
621 | - | else ( | |
625 | + | else (aP == aU)) | |
622 | 626 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
623 | 627 | else throw("Only customer and freelancer can open dispute") | |
624 | 628 | } | |
625 | 629 | ||
626 | 630 | ||
627 | 631 | ||
628 | 632 | @Callable(R) | |
629 | - | func voteDispute (v, | |
633 | + | func voteDispute (v,aV) = { | |
630 | 634 | let Q = extract(R.callerPublicKey) | |
631 | 635 | let ah = { | |
632 | 636 | let ai = getString(this, (v + "_State")) | |
633 | 637 | let z = ai | |
634 | 638 | if ($isInstanceOf(z, "String")) | |
635 | 639 | then { | |
636 | 640 | let y = z | |
637 | 641 | y | |
638 | 642 | } | |
639 | 643 | else throw("Auction State was not found") | |
640 | 644 | } | |
641 | 645 | let Y = { | |
642 | 646 | let ak = getString(this, (v + "_Client")) | |
643 | 647 | let y = { | |
644 | 648 | let z = ak | |
645 | 649 | if ($isInstanceOf(z, "String")) | |
646 | 650 | then { | |
647 | 651 | let y = z | |
648 | 652 | y | |
649 | 653 | } | |
650 | 654 | else throw("Auction Client was not found") | |
651 | 655 | } | |
652 | 656 | fromBase58String(y) | |
653 | 657 | } | |
654 | 658 | let E = { | |
655 | 659 | let aq = getString(this, (v + "_AssetName")) | |
656 | 660 | let z = aq | |
657 | 661 | if ($isInstanceOf(z, "String")) | |
658 | 662 | then { | |
659 | 663 | let y = z | |
660 | 664 | y | |
661 | 665 | } | |
662 | 666 | else throw("Auction asset name was not found") | |
663 | 667 | } | |
664 | 668 | let L = { | |
665 | 669 | let ar = getInteger(this, (v + "_Price")) | |
666 | 670 | let z = ar | |
667 | 671 | if ($isInstanceOf(z, "Int")) | |
668 | 672 | then { | |
669 | 673 | let y = z | |
670 | 674 | y | |
671 | 675 | } | |
672 | 676 | else throw("Auction price was not found") | |
673 | 677 | } | |
674 | - | let | |
678 | + | let aU = { | |
675 | 679 | let ak = getString(this, (v + "_Freelancer")) | |
676 | 680 | let y = { | |
677 | 681 | let z = ak | |
678 | 682 | if ($isInstanceOf(z, "String")) | |
679 | 683 | then { | |
680 | 684 | let y = z | |
681 | 685 | y | |
682 | 686 | } | |
683 | 687 | else throw("Auction Client was not found") | |
684 | 688 | } | |
685 | 689 | fromBase58String(y) | |
686 | 690 | } | |
687 | - | let | |
691 | + | let aW = ((L * 3) / 100) | |
688 | 692 | let as = D(E) | |
689 | - | let | |
693 | + | let aX = if (if (if (if (if ((Q == p)) | |
690 | 694 | then true | |
691 | 695 | else (Q == q)) | |
692 | 696 | then true | |
693 | 697 | else (Q == r)) | |
694 | 698 | then true | |
695 | 699 | else (Q == s)) | |
696 | 700 | then true | |
697 | 701 | else (Q == t)) | |
698 | 702 | then toBase58String(Q) | |
699 | 703 | else throw("Only defined ambassadors can vote in disputes") | |
700 | - | let | |
704 | + | let aY = if (if ((aV == n)) | |
701 | 705 | then true | |
702 | - | else ( | |
703 | - | then | |
706 | + | else (aV == o)) | |
707 | + | then aV | |
704 | 708 | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let z = | |
709 | + | let aZ = { | |
710 | + | let ba = ((v + "_DiputeVote_") + aX) | |
711 | + | let bb = getString(this, ba) | |
712 | + | let z = bb | |
709 | 713 | if ($isInstanceOf(z, "String")) | |
710 | 714 | then { | |
711 | 715 | let y = z | |
712 | 716 | throw("User already voted") | |
713 | 717 | } | |
714 | - | else | |
718 | + | else aX | |
715 | 719 | } | |
716 | - | let | |
717 | - | let | |
718 | - | let z = | |
720 | + | let bc = { | |
721 | + | let bd = getInteger(this, (v + "_DisputeVotes")) | |
722 | + | let z = bd | |
719 | 723 | if ($isInstanceOf(z, "Int")) | |
720 | 724 | then { | |
721 | 725 | let y = z | |
722 | 726 | y | |
723 | 727 | } | |
724 | 728 | else throw("VotesNumber was not found") | |
725 | 729 | } | |
726 | 730 | if ((ah == l)) | |
727 | - | then if (( | |
731 | + | then if ((bc == 4)) | |
728 | 732 | then { | |
729 | - | let bc = { | |
730 | - | let bd = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
731 | - | let be = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
732 | - | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
733 | - | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
734 | - | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
735 | - | let bi = if ((bd == n)) | |
736 | - | then 1 | |
737 | - | else 0 | |
738 | - | let bj = if ((be == n)) | |
739 | - | then 1 | |
740 | - | else 0 | |
733 | + | let be = { | |
734 | + | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
735 | + | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
736 | + | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
737 | + | let bi = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
738 | + | let bj = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
741 | 739 | let bk = if ((bf == n)) | |
742 | 740 | then 1 | |
743 | 741 | else 0 | |
744 | 742 | let bl = if ((bg == n)) | |
745 | 743 | then 1 | |
746 | 744 | else 0 | |
747 | 745 | let bm = if ((bh == n)) | |
748 | 746 | then 1 | |
749 | 747 | else 0 | |
750 | - | let bn = if (( | |
748 | + | let bn = if ((bi == n)) | |
751 | 749 | then 1 | |
752 | 750 | else 0 | |
753 | - | let bo = (((((bi + bj) + bk) + bl) + bm) + bn) | |
754 | - | if ((bo > 2)) | |
751 | + | let bo = if ((bj == n)) | |
752 | + | then 1 | |
753 | + | else 0 | |
754 | + | let bp = if ((aY == n)) | |
755 | + | then 1 | |
756 | + | else 0 | |
757 | + | let bq = (((((bk + bl) + bm) + bn) + bo) + bp) | |
758 | + | if ((bq > 2)) | |
755 | 759 | then Y | |
756 | - | else | |
760 | + | else aU | |
757 | 761 | } | |
758 | - | let | |
762 | + | let br = if ((be == Y)) | |
759 | 763 | then L | |
760 | - | else (L - aU) | |
761 | - | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (ba + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aV), aW)]), TransferSet([ScriptTransfer(addressFromPublicKey(bc), bp, as)])) | |
764 | + | else (L - aW) | |
765 | + | let ae = O(E, br) | |
766 | + | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (bc + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aX), aY), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(be), br, as)])) | |
762 | 767 | } | |
763 | - | else WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
768 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (bc + 1)), DataEntry(((v + "_DiputeVote_") + aX), aY)]) | |
764 | 769 | else throw(("Incorrect state. Must be: " + l)) | |
765 | 770 | } | |
766 | 771 | ||
767 | 772 | ||
768 | 773 | ||
769 | 774 | @Callable(R) | |
770 | 775 | func workHandOver (v) = { | |
771 | 776 | let Q = extract(R.callerPublicKey) | |
772 | 777 | let ah = { | |
773 | 778 | let ai = getString(this, (v + "_State")) | |
774 | 779 | let z = ai | |
775 | 780 | if ($isInstanceOf(z, "String")) | |
776 | 781 | then { | |
777 | 782 | let y = z | |
778 | 783 | y | |
779 | 784 | } | |
780 | 785 | else throw("Auction State was not found") | |
781 | 786 | } | |
782 | 787 | let ab = { | |
783 | 788 | let al = getInteger(this, (v + "_AuctionStart")) | |
784 | 789 | let z = al | |
785 | 790 | if ($isInstanceOf(z, "Int")) | |
786 | 791 | then { | |
787 | 792 | let y = z | |
788 | 793 | y | |
789 | 794 | } | |
790 | 795 | else throw("Auction Start time was not found") | |
791 | 796 | } | |
792 | 797 | let am = { | |
793 | 798 | let an = getInteger(this, (v + "_AuctionDuration")) | |
794 | 799 | let z = an | |
795 | 800 | if ($isInstanceOf(z, "Int")) | |
796 | 801 | then { | |
797 | 802 | let y = z | |
798 | 803 | y | |
799 | 804 | } | |
800 | 805 | else throw("Auction duration time was not found") | |
801 | 806 | } | |
802 | - | let | |
807 | + | let aQ = { | |
803 | 808 | let ap = getInteger(this, (v + "JobPerformance")) | |
804 | 809 | let z = ap | |
805 | 810 | if ($isInstanceOf(z, "Int")) | |
806 | 811 | then { | |
807 | 812 | let y = z | |
808 | 813 | y | |
809 | 814 | } | |
810 | 815 | else throw("Auction job performance time was not found") | |
811 | 816 | } | |
812 | - | let | |
817 | + | let aU = { | |
813 | 818 | let ak = getString(this, (v + "_Freelancer")) | |
814 | 819 | let y = { | |
815 | 820 | let z = ak | |
816 | 821 | if ($isInstanceOf(z, "String")) | |
817 | 822 | then { | |
818 | 823 | let y = z | |
819 | 824 | y | |
820 | 825 | } | |
821 | 826 | else throw("Auction Client was not found") | |
822 | 827 | } | |
823 | 828 | fromBase58String(y) | |
824 | 829 | } | |
825 | 830 | let G = height | |
826 | - | let | |
831 | + | let bs = if ((Q == aU)) | |
827 | 832 | then Q | |
828 | 833 | else throw("Only a freelancer can indicate that the work is done") | |
829 | - | let | |
834 | + | let bt = ((G - ab) > aQ) | |
830 | 835 | if ((ah == i)) | |
831 | - | then if ( | |
836 | + | then if (bt) | |
832 | 837 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
833 | 838 | else WriteSet([DataEntry((v + "_State"), j)]) | |
834 | 839 | else throw("Auction state is incorrect") | |
835 | 840 | } | |
836 | 841 | ||
837 | 842 | ||
838 | 843 | ||
839 | 844 | @Callable(R) | |
840 | 845 | func acceptWork (v) = { | |
841 | 846 | let Q = extract(R.callerPublicKey) | |
842 | 847 | let ah = { | |
843 | 848 | let ai = getString(this, (v + "_State")) | |
844 | 849 | let z = ai | |
845 | 850 | if ($isInstanceOf(z, "String")) | |
846 | 851 | then { | |
847 | 852 | let y = z | |
848 | 853 | y | |
849 | 854 | } | |
850 | 855 | else throw("Auction State was not found") | |
851 | 856 | } | |
852 | 857 | let Y = { | |
853 | 858 | let ak = getString(this, (v + "_Client")) | |
854 | 859 | let y = { | |
855 | 860 | let z = ak | |
856 | 861 | if ($isInstanceOf(z, "String")) | |
857 | 862 | then { | |
858 | 863 | let y = z | |
859 | 864 | y | |
860 | 865 | } | |
861 | 866 | else throw("Auction Client was not found") | |
862 | 867 | } | |
863 | 868 | fromBase58String(y) | |
864 | 869 | } | |
865 | 870 | let ab = { | |
866 | 871 | let al = getInteger(this, (v + "_AuctionStart")) | |
867 | 872 | let z = al | |
868 | 873 | if ($isInstanceOf(z, "Int")) | |
869 | 874 | then { | |
870 | 875 | let y = z | |
871 | 876 | y | |
872 | 877 | } | |
873 | 878 | else throw("Auction Start time was not found") | |
874 | 879 | } | |
875 | 880 | let am = { | |
876 | 881 | let an = getInteger(this, (v + "_AuctionDuration")) | |
877 | 882 | let z = an | |
878 | 883 | if ($isInstanceOf(z, "Int")) | |
879 | 884 | then { | |
880 | 885 | let y = z | |
881 | 886 | y | |
882 | 887 | } | |
883 | 888 | else throw("Auction duration time was not found") | |
884 | 889 | } | |
885 | - | let | |
890 | + | let aQ = { | |
886 | 891 | let ap = getInteger(this, (v + "JobPerformance")) | |
887 | 892 | let z = ap | |
888 | 893 | if ($isInstanceOf(z, "Int")) | |
889 | 894 | then { | |
890 | 895 | let y = z | |
891 | 896 | y | |
892 | 897 | } | |
893 | 898 | else throw("Auction job performance time was not found") | |
894 | 899 | } | |
895 | 900 | let E = { | |
896 | 901 | let aq = getString(this, (v + "_AssetName")) | |
897 | 902 | let z = aq | |
898 | 903 | if ($isInstanceOf(z, "String")) | |
899 | 904 | then { | |
900 | 905 | let y = z | |
901 | 906 | y | |
902 | 907 | } | |
903 | 908 | else throw("Auction asset name was not found") | |
904 | 909 | } | |
905 | 910 | let L = { | |
906 | 911 | let ar = getInteger(this, (v + "_Price")) | |
907 | 912 | let z = ar | |
908 | 913 | if ($isInstanceOf(z, "Int")) | |
909 | 914 | then { | |
910 | 915 | let y = z | |
911 | 916 | y | |
912 | 917 | } | |
913 | 918 | else throw("Auction price was not found") | |
914 | 919 | } | |
915 | - | let | |
920 | + | let aU = { | |
916 | 921 | let ak = getString(this, (v + "_Freelancer")) | |
917 | 922 | let y = { | |
918 | 923 | let z = ak | |
919 | 924 | if ($isInstanceOf(z, "String")) | |
920 | 925 | then { | |
921 | 926 | let y = z | |
922 | 927 | y | |
923 | 928 | } | |
924 | 929 | else throw("Auction Client was not found") | |
925 | 930 | } | |
926 | 931 | fromBase58String(y) | |
927 | 932 | } | |
928 | 933 | let au = ((L * 3) / 100) | |
929 | - | let | |
934 | + | let bu = (L - au) | |
930 | 935 | let as = D(E) | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | let z = | |
936 | + | let bv = { | |
937 | + | let bw = getInteger(this, (toBase58String(aU) + "_Rating")) | |
938 | + | let bx = { | |
939 | + | let z = bw | |
935 | 940 | if ($isInstanceOf(z, "Int")) | |
936 | 941 | then { | |
937 | 942 | let y = z | |
938 | 943 | y | |
939 | 944 | } | |
940 | 945 | else 0 | |
941 | 946 | } | |
942 | - | ( | |
947 | + | (bx + 1) | |
943 | 948 | } | |
944 | 949 | if ((Q == Y)) | |
945 | 950 | then if ((ah == j)) | |
946 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String( | |
951 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aU) + "_Rating"), bv)]), TransferSet([ScriptTransfer(addressFromPublicKey(aU), bu, as)])) | |
947 | 952 | else throw(("Incorrect state. Must be: " + j)) | |
948 | 953 | else throw("Only auction customer can use this function") | |
949 | 954 | } | |
950 | 955 | ||
951 | 956 | ||
952 | - | @Verifier( | |
953 | - | func | |
957 | + | @Verifier(by) | |
958 | + | func bz () = if (sigVerify(by.bodyBytes, by.proofs[0], by.senderPublicKey)) | |
954 | 959 | then { | |
955 | - | let z = | |
960 | + | let z = by | |
956 | 961 | if ($isInstanceOf(z, "TransferTransaction")) | |
957 | 962 | then { | |
958 | - | let | |
963 | + | let bA = z | |
959 | 964 | true | |
960 | 965 | } | |
961 | 966 | else if ($isInstanceOf(z, "SetScriptTransaction")) | |
962 | 967 | then { | |
963 | - | let | |
968 | + | let bB = z | |
964 | 969 | true | |
965 | 970 | } | |
966 | 971 | else false | |
967 | 972 | } | |
968 | 973 | else false | |
969 | 974 |
github/deemru/w8io/169f3d6 104.95 ms ◑