tx · 3qMjexYts2QBnGdDhs9mdLQV28o8Vvfwj3FD45NJEnMd 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.27 14:43 [694751] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "3qMjexYts2QBnGdDhs9mdLQV28o8Vvfwj3FD45NJEnMd", "fee": 1500000, "feeAssetId": null, "timestamp": 1569584675050, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "bBCGgQRnZbRdZvgcU31UcUDJHXRp77XLUxAs2CkDzwiCCeUq6XqYk6oHgKUvcxLArcRfHtezQxymJwfDe9xtG8g" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAcAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21w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AAEGF1Y3Rpb25Bc3NldElkNTgFAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAGkluY29ycmVjdCBzdGF0ZS4gTXVzdCBiZTogBQAAABFzdGF0ZVdhaXQ0Q29uZmlybQkAAAIAAAABAgAAACtPbmx5IGF1Y3Rpb24gY3VzdG9tZXIgY2FuIHVzZSB0aGlzIGZ1bmN0aW9uAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAYHB5BkpNE=", "chainId": 84, "height": 694751, "spentComplexity": 0 } View: original | compacted Prev: FgtBeHs5LpX3qTrV2Cim5CQ2PryMgAaToPSjLfzxth8x Next: XJKBJEN7mYa7WGJdKWiHEyn5ZLSrspHmaUDL4goW6au Diff:
Old | New | Differences | |
---|---|---|---|
178 | 178 | then "USD" | |
179 | 179 | else throw("AssetId is incorrect") | |
180 | 180 | let ae = J(K, L) | |
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)]) | |
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 | ||
483 | 483 | @Callable(R) | |
484 | 484 | func increaseExecutionTime (v,aM) = { | |
485 | 485 | let aN = extract(R.callerPublicKey) | |
486 | - | let aO = u(v) | |
487 | - | let aP = w(aO) | |
488 | - | let ah = aP[0] | |
486 | + | let ah = { | |
487 | + | let ai = getString(this, (v + "_State")) | |
488 | + | let z = ai | |
489 | + | if ($isInstanceOf(z, "String")) | |
490 | + | then { | |
491 | + | let y = z | |
492 | + | y | |
493 | + | } | |
494 | + | else throw("Auction State was not found") | |
495 | + | } | |
489 | 496 | let Y = { | |
490 | 497 | let ak = getString(this, (v + "_Client")) | |
491 | 498 | let y = { | |
499 | 506 | } | |
500 | 507 | fromBase58String(y) | |
501 | 508 | } | |
502 | - | let ab = parseIntValue(aP[3]) | |
503 | - | let am = parseIntValue(aP[4]) | |
504 | - | let ao = parseIntValue(aP[5]) | |
505 | - | let E = aP[6] | |
506 | - | let L = parseIntValue(aP[7]) | |
507 | - | let aQ = { | |
508 | - | let aR = (aM * a) | |
509 | - | if ((aR > ao)) | |
510 | - | then aR | |
509 | + | let aO = { | |
510 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
511 | + | let z = ap | |
512 | + | if ($isInstanceOf(z, "Int")) | |
513 | + | then { | |
514 | + | let y = z | |
515 | + | y | |
516 | + | } | |
517 | + | else throw("Auction job performance time was not found") | |
518 | + | } | |
519 | + | let aP = { | |
520 | + | let aQ = (aM * a) | |
521 | + | if ((aQ > aO)) | |
522 | + | then aQ | |
511 | 523 | else throw("New execution time must more than current execution time") | |
512 | 524 | } | |
513 | 525 | if ((aN == Y)) | |
514 | - | then if ((ah == f)) | |
515 | - | then WriteSet([DataEntry(aO, ((((((((((((ah + "_") + toBase58String(Y)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)))]) | |
516 | - | else if (if ((ah == g)) | |
517 | - | then true | |
518 | - | else (ah == i)) | |
519 | - | then { | |
520 | - | let aG = aP[7] | |
521 | - | WriteSet([DataEntry(aO, ((((((((((((((ah + "_") + toBase58String(Y)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)) + "_") + aG))]) | |
522 | - | } | |
523 | - | else throw("Incorrect state") | |
524 | - | else throw("Only customer can increase execution time") | |
526 | + | then if (if (if ((ah == f)) | |
527 | + | then true | |
528 | + | else (ah == g)) | |
529 | + | then true | |
530 | + | else (ah == i)) | |
531 | + | then WriteSet([DataEntry((v + "JobPerformance"), aP)]) | |
532 | + | else throw("Incorrect state") | |
533 | + | else throw("Only Client can increase execution time") | |
525 | 534 | } | |
526 | 535 | ||
527 | 536 | ||
528 | 537 | ||
529 | 538 | @Callable(R) | |
530 | 539 | func cancelAuction (v) = { | |
531 | - | let aO = u(v) | |
532 | - | let aP = w(aO) | |
533 | - | let ah = aP[0] | |
534 | - | let X = aP[1] | |
535 | - | let aS = fromBase58String(aP[2]) | |
536 | - | let ab = parseIntValue(aP[3]) | |
537 | - | let am = parseIntValue(aP[4]) | |
538 | - | let ao = parseIntValue(aP[5]) | |
539 | - | let E = aP[6] | |
540 | - | let L = parseIntValue(aP[7]) | |
541 | - | let aT = if ((R.callerPublicKey == aS)) | |
540 | + | let Q = extract(R.callerPublicKey) | |
541 | + | let ah = { | |
542 | + | let ai = getString(this, (v + "_State")) | |
543 | + | let z = ai | |
544 | + | if ($isInstanceOf(z, "String")) | |
545 | + | then { | |
546 | + | let y = z | |
547 | + | y | |
548 | + | } | |
549 | + | else throw("Auction State was not found") | |
550 | + | } | |
551 | + | let Y = { | |
552 | + | let ak = getString(this, (v + "_Client")) | |
553 | + | let y = { | |
554 | + | let z = ak | |
555 | + | if ($isInstanceOf(z, "String")) | |
556 | + | then { | |
557 | + | let y = z | |
558 | + | y | |
559 | + | } | |
560 | + | else throw("Auction Client was not found") | |
561 | + | } | |
562 | + | fromBase58String(y) | |
563 | + | } | |
564 | + | let aR = if ((Q == Y)) | |
542 | 565 | then true | |
543 | 566 | else throw("Auction can be canceled only by owner.") | |
544 | - | if ((ah == f)) | |
545 | - | then WriteSet([DataEntry(aO, ((((((((((((((h + "_") + X) + "_") + toBase58String(aS)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)))]) | |
546 | - | else throw("Incorrect auction state.") | |
567 | + | if (aR) | |
568 | + | then if ((ah == f)) | |
569 | + | then WriteSet([DataEntry((v + "_State"), h)]) | |
570 | + | else throw("Incorrect auction state.") | |
571 | + | else throw("Only Client can cancel auction") | |
547 | 572 | } | |
548 | 573 | ||
549 | 574 | ||
551 | 576 | @Callable(R) | |
552 | 577 | func openDispute (v) = { | |
553 | 578 | let aN = extract(R.callerPublicKey) | |
554 | - | let aO = u(v) | |
555 | - | let aP = w(aO) | |
556 | - | let ah = aP[0] | |
557 | - | let X = aP[1] | |
558 | - | let aS = fromBase58String(aP[2]) | |
559 | - | let ab = parseIntValue(aP[3]) | |
560 | - | let am = parseIntValue(aP[4]) | |
561 | - | let ao = parseIntValue(aP[5]) | |
562 | - | let E = aP[6] | |
563 | - | let L = parseIntValue(aP[7]) | |
564 | - | let aU = fromBase58String(aP[8]) | |
565 | - | if (if ((aN == aS)) | |
579 | + | let ah = { | |
580 | + | let ai = getString(this, (v + "_State")) | |
581 | + | let z = ai | |
582 | + | if ($isInstanceOf(z, "String")) | |
583 | + | then { | |
584 | + | let y = z | |
585 | + | y | |
586 | + | } | |
587 | + | else throw("Auction State was not found") | |
588 | + | } | |
589 | + | let Y = { | |
590 | + | let ak = getString(this, (v + "_Client")) | |
591 | + | let y = { | |
592 | + | let z = ak | |
593 | + | if ($isInstanceOf(z, "String")) | |
594 | + | then { | |
595 | + | let y = z | |
596 | + | y | |
597 | + | } | |
598 | + | else throw("Auction Client was not found") | |
599 | + | } | |
600 | + | fromBase58String(y) | |
601 | + | } | |
602 | + | let aS = { | |
603 | + | let ak = getString(this, (v + "_Freelancer")) | |
604 | + | let y = { | |
605 | + | let z = ak | |
606 | + | if ($isInstanceOf(z, "String")) | |
607 | + | then { | |
608 | + | let y = z | |
609 | + | y | |
610 | + | } | |
611 | + | else throw("Auction Client was not found") | |
612 | + | } | |
613 | + | fromBase58String(y) | |
614 | + | } | |
615 | + | if (if ((ah == f)) | |
566 | 616 | then true | |
567 | - | else (aN == aU)) | |
568 | - | then { | |
569 | - | let aV = "1" | |
570 | - | WriteSet([DataEntry(aO, ((((l + "_") + X) + "_") + aV)), DataEntry((v + "_Dispute"), "0")]) | |
571 | - | } | |
572 | - | else throw("Only customer and freelancer can open dispute") | |
617 | + | else (ah == g)) | |
618 | + | then throw("Incorrect auction state for dispute opening") | |
619 | + | else if (if ((aN == Y)) | |
620 | + | then true | |
621 | + | else (aN == aS)) | |
622 | + | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
623 | + | else throw("Only customer and freelancer can open dispute") | |
573 | 624 | } | |
574 | 625 | ||
575 | 626 | ||
576 | 627 | ||
577 | 628 | @Callable(R) | |
578 | - | func voteDispute (v,aW) = { | |
579 | - | let aO = u(v) | |
580 | - | let aP = w(aO) | |
581 | - | let ah = aP[0] | |
582 | - | let X = aP[1] | |
583 | - | let aS = fromBase58String(aP[2]) | |
584 | - | let ab = parseIntValue(aP[3]) | |
585 | - | let am = parseIntValue(aP[4]) | |
586 | - | let ao = parseIntValue(aP[5]) | |
587 | - | let E = aP[6] | |
588 | - | let L = parseIntValue(aP[7]) | |
589 | - | let aU = fromBase58String(aP[8]) | |
590 | - | let aX = ((L * 3) / 100) | |
591 | - | let aY = if ((ah == l)) | |
592 | - | then true | |
593 | - | else throw(("Incorrect state. Must be: " + l)) | |
594 | - | let aZ = if (if ((aW == n)) | |
595 | - | then true | |
596 | - | else (aW == o)) | |
597 | - | then aW | |
598 | - | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
599 | - | let ba = if (if (if (if (if ((R.callerPublicKey == p)) | |
600 | - | then true | |
601 | - | else (R.callerPublicKey == q)) | |
602 | - | then true | |
603 | - | else (R.callerPublicKey == r)) | |
604 | - | then true | |
605 | - | else (R.callerPublicKey == s)) | |
606 | - | then true | |
607 | - | else (R.callerPublicKey == t)) | |
608 | - | then toBase58String(R.callerPublicKey) | |
609 | - | else throw("You have no rights for disputes resolving") | |
610 | - | let bb = { | |
611 | - | let bc = ((v + "_") + l) | |
612 | - | let bd = getString(this, bc) | |
613 | - | let z = bd | |
629 | + | func voteDispute (v,aT) = { | |
630 | + | let Q = extract(R.callerPublicKey) | |
631 | + | let ah = { | |
632 | + | let ai = getString(this, (v + "_State")) | |
633 | + | let z = ai | |
614 | 634 | if ($isInstanceOf(z, "String")) | |
615 | 635 | then { | |
616 | 636 | let y = z | |
617 | 637 | y | |
618 | 638 | } | |
619 | - | else throw(" | |
639 | + | else throw("Auction State was not found") | |
620 | 640 | } | |
621 | - | let be = split(bb, "/") | |
622 | - | let bf = be[0] | |
623 | - | if ((bf == "4")) | |
624 | - | then { | |
625 | - | let bg = split(be[1], "_") | |
626 | - | let bh = split(be[2], "_") | |
627 | - | let bi = if ((ba == bg[0])) | |
628 | - | then true | |
629 | - | else (ba == bg[1]) | |
630 | - | if (bi) | |
631 | - | then throw("You already voted") | |
632 | - | else { | |
633 | - | let bj = "5" | |
634 | - | let bk = ((be[1] + "_") + ba) | |
635 | - | let bl = ((be[2] + "_") + aZ) | |
636 | - | let bm = ((((bj + "/") + bk) + "/") + bl) | |
637 | - | let bn = { | |
638 | - | let bo = if ((bh[0] == n)) | |
639 | - | then 1 | |
640 | - | else 0 | |
641 | - | let bp = if ((bh[1] == n)) | |
642 | - | then 1 | |
643 | - | else 0 | |
644 | - | let bq = if ((bh[2] == n)) | |
645 | - | then 1 | |
646 | - | else 0 | |
647 | - | let br = if ((bh[3] == n)) | |
648 | - | then 1 | |
649 | - | else 0 | |
650 | - | let bs = if ((aZ == n)) | |
651 | - | then 1 | |
652 | - | else 0 | |
653 | - | let bt = ((((bo + bp) + bq) + br) + bs) | |
654 | - | if ((bt > 2)) | |
655 | - | then n | |
656 | - | else o | |
657 | - | } | |
658 | - | let bu = ((((((((((((((X + "_") + toBase58String(aS)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)) + "_") + toBase58String(aU)) | |
659 | - | let bv = if ((bn == n)) | |
660 | - | then aS | |
661 | - | else aU | |
662 | - | let bw = if ((bv == aS)) | |
663 | - | then (L - aX) | |
664 | - | else ((L - aX) - aX) | |
665 | - | ScriptResult(WriteSet([DataEntry(u(v), ((m + "_") + bu)), DataEntry(((v + "_") + l), bm)]), TransferSet([ScriptTransfer(addressFromPublicKey(bv), bw, D(E))])) | |
641 | + | let Y = { | |
642 | + | let ak = getString(this, (v + "_Client")) | |
643 | + | let y = { | |
644 | + | let z = ak | |
645 | + | if ($isInstanceOf(z, "String")) | |
646 | + | then { | |
647 | + | let y = z | |
648 | + | y | |
666 | 649 | } | |
650 | + | else throw("Auction Client was not found") | |
667 | 651 | } | |
668 | - | else { | |
669 | - | let bm = if ((bf == "0")) | |
652 | + | fromBase58String(y) | |
653 | + | } | |
654 | + | let E = { | |
655 | + | let aq = getString(this, (v + "_AssetName")) | |
656 | + | let z = aq | |
657 | + | if ($isInstanceOf(z, "String")) | |
658 | + | then { | |
659 | + | let y = z | |
660 | + | y | |
661 | + | } | |
662 | + | else throw("Auction asset name was not found") | |
663 | + | } | |
664 | + | let L = { | |
665 | + | let ar = getInteger(this, (v + "_Price")) | |
666 | + | let z = ar | |
667 | + | if ($isInstanceOf(z, "Int")) | |
668 | + | then { | |
669 | + | let y = z | |
670 | + | y | |
671 | + | } | |
672 | + | else throw("Auction price was not found") | |
673 | + | } | |
674 | + | let aS = { | |
675 | + | let ak = getString(this, (v + "_Freelancer")) | |
676 | + | let y = { | |
677 | + | let z = ak | |
678 | + | if ($isInstanceOf(z, "String")) | |
670 | 679 | then { | |
671 | - | let bj = "1" | |
672 | - | let bk = ba | |
673 | - | let bl = aZ | |
674 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
675 | - | bu | |
680 | + | let y = z | |
681 | + | y | |
676 | 682 | } | |
677 | - | else if ((bf == "1")) | |
678 | - | then { | |
679 | - | let bx = be[1] | |
680 | - | let bo = be[2] | |
681 | - | let bi = (ba == bx) | |
682 | - | if (bi) | |
683 | - | then throw("You already voted") | |
684 | - | else { | |
685 | - | let bj = "1" | |
686 | - | let bk = (bx + ba) | |
687 | - | let bl = (bo + aZ) | |
688 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
689 | - | bu | |
690 | - | } | |
691 | - | } | |
692 | - | else if ((bf == "2")) | |
693 | - | then { | |
694 | - | let bg = split(be[1], "_") | |
695 | - | let bh = split(be[2], "_") | |
696 | - | let bi = if ((ba == bg[0])) | |
697 | - | then true | |
698 | - | else (ba == bg[1]) | |
699 | - | if (bi) | |
700 | - | then throw("You already voted") | |
701 | - | else { | |
702 | - | let bj = "3" | |
703 | - | let bk = ((be[1] + "_") + ba) | |
704 | - | let bl = ((be[2] + "_") + aZ) | |
705 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
706 | - | bu | |
707 | - | } | |
708 | - | } | |
709 | - | else if ((bf == "3")) | |
710 | - | then { | |
711 | - | let bg = split(be[1], "_") | |
712 | - | let bh = split(be[2], "_") | |
713 | - | let bi = if (if ((ba == bg[0])) | |
714 | - | then true | |
715 | - | else (ba == bg[1])) | |
716 | - | then true | |
717 | - | else (ba == bg[2]) | |
718 | - | if (bi) | |
719 | - | then throw("You already voted") | |
720 | - | else { | |
721 | - | let bj = "4" | |
722 | - | let bk = ((be[1] + "_") + ba) | |
723 | - | let bl = ((be[2] + "_") + aZ) | |
724 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
725 | - | bu | |
726 | - | } | |
727 | - | } | |
728 | - | else throw("Dispute has been already resolved") | |
729 | - | WriteSet([DataEntry(((v + "_") + l), bm)]) | |
683 | + | else throw("Auction Client was not found") | |
730 | 684 | } | |
685 | + | fromBase58String(y) | |
686 | + | } | |
687 | + | let aU = ((L * 3) / 100) | |
688 | + | let as = D(E) | |
689 | + | let aV = if (if (if (if (if ((Q == p)) | |
690 | + | then true | |
691 | + | else (Q == q)) | |
692 | + | then true | |
693 | + | else (Q == r)) | |
694 | + | then true | |
695 | + | else (Q == s)) | |
696 | + | then true | |
697 | + | else (Q == t)) | |
698 | + | then toBase58String(Q) | |
699 | + | else throw("Only defined ambassadors can vote in disputes") | |
700 | + | let aW = if (if ((aT == n)) | |
701 | + | then true | |
702 | + | else (aT == o)) | |
703 | + | then aT | |
704 | + | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
705 | + | let aX = { | |
706 | + | let aY = ((v + "_DiputeVote_") + aV) | |
707 | + | let aZ = getString(this, aY) | |
708 | + | let z = aZ | |
709 | + | if ($isInstanceOf(z, "String")) | |
710 | + | then { | |
711 | + | let y = z | |
712 | + | throw("User already voted") | |
713 | + | } | |
714 | + | else aV | |
715 | + | } | |
716 | + | let ba = { | |
717 | + | let bb = getInteger(this, (v + "_DisputeVotes")) | |
718 | + | let z = bb | |
719 | + | if ($isInstanceOf(z, "Int")) | |
720 | + | then { | |
721 | + | let y = z | |
722 | + | y | |
723 | + | } | |
724 | + | else throw("VotesNumber was not found") | |
725 | + | } | |
726 | + | if ((ah == l)) | |
727 | + | then if ((ba == 4)) | |
728 | + | 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 | |
741 | + | let bk = if ((bf == n)) | |
742 | + | then 1 | |
743 | + | else 0 | |
744 | + | let bl = if ((bg == n)) | |
745 | + | then 1 | |
746 | + | else 0 | |
747 | + | let bm = if ((bh == n)) | |
748 | + | then 1 | |
749 | + | else 0 | |
750 | + | let bn = if ((aW == n)) | |
751 | + | then 1 | |
752 | + | else 0 | |
753 | + | let bo = (((((bi + bj) + bk) + bl) + bm) + bn) | |
754 | + | if ((bo > 2)) | |
755 | + | then Y | |
756 | + | else aS | |
757 | + | } | |
758 | + | let bp = if ((bc == Y)) | |
759 | + | 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)])) | |
762 | + | } | |
763 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (ba + 1)), DataEntry(((v + "_DiputeVote_") + aV), aW)]) | |
764 | + | else throw(("Incorrect state. Must be: " + l)) | |
731 | 765 | } | |
732 | 766 | ||
733 | 767 | ||
735 | 769 | @Callable(R) | |
736 | 770 | func workHandOver (v) = { | |
737 | 771 | let Q = extract(R.callerPublicKey) | |
738 | - | let aO = u(v) | |
739 | - | let aP = w(aO) | |
740 | - | let ah = aP[0] | |
741 | - | let X = aP[1] | |
742 | - | let aS = fromBase58String(aP[2]) | |
743 | - | let ab = parseIntValue(aP[3]) | |
744 | - | let am = parseIntValue(aP[4]) | |
745 | - | let ao = parseIntValue(aP[5]) | |
746 | - | let E = aP[6] | |
747 | - | let L = parseIntValue(aP[7]) | |
748 | - | let aU = fromBase58String(aP[8]) | |
772 | + | let ah = { | |
773 | + | let ai = getString(this, (v + "_State")) | |
774 | + | let z = ai | |
775 | + | if ($isInstanceOf(z, "String")) | |
776 | + | then { | |
777 | + | let y = z | |
778 | + | y | |
779 | + | } | |
780 | + | else throw("Auction State was not found") | |
781 | + | } | |
782 | + | let ab = { | |
783 | + | let al = getInteger(this, (v + "_AuctionStart")) | |
784 | + | let z = al | |
785 | + | if ($isInstanceOf(z, "Int")) | |
786 | + | then { | |
787 | + | let y = z | |
788 | + | y | |
789 | + | } | |
790 | + | else throw("Auction Start time was not found") | |
791 | + | } | |
792 | + | let am = { | |
793 | + | let an = getInteger(this, (v + "_AuctionDuration")) | |
794 | + | let z = an | |
795 | + | if ($isInstanceOf(z, "Int")) | |
796 | + | then { | |
797 | + | let y = z | |
798 | + | y | |
799 | + | } | |
800 | + | else throw("Auction duration time was not found") | |
801 | + | } | |
802 | + | let aO = { | |
803 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
804 | + | let z = ap | |
805 | + | if ($isInstanceOf(z, "Int")) | |
806 | + | then { | |
807 | + | let y = z | |
808 | + | y | |
809 | + | } | |
810 | + | else throw("Auction job performance time was not found") | |
811 | + | } | |
812 | + | let aS = { | |
813 | + | let ak = getString(this, (v + "_Freelancer")) | |
814 | + | let y = { | |
815 | + | let z = ak | |
816 | + | if ($isInstanceOf(z, "String")) | |
817 | + | then { | |
818 | + | let y = z | |
819 | + | y | |
820 | + | } | |
821 | + | else throw("Auction Client was not found") | |
822 | + | } | |
823 | + | fromBase58String(y) | |
824 | + | } | |
749 | 825 | let G = height | |
750 | - | let | |
826 | + | let bq = if ((Q == aS)) | |
751 | 827 | then Q | |
752 | 828 | else throw("Only a freelancer can indicate that the work is done") | |
753 | - | let | |
829 | + | let br = ((G - ab) > aO) | |
754 | 830 | if ((ah == i)) | |
755 | - | then if (bz) | |
756 | - | then { | |
757 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
758 | - | WriteSet([DataEntry(aO, ((((l + "_") + X) + "_") + bu))]) | |
759 | - | } | |
760 | - | else { | |
761 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
762 | - | WriteSet([DataEntry(aO, ((((j + "_") + X) + "_") + bu))]) | |
763 | - | } | |
831 | + | then if (br) | |
832 | + | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
833 | + | else WriteSet([DataEntry((v + "_State"), j)]) | |
764 | 834 | else throw("Auction state is incorrect") | |
765 | 835 | } | |
766 | 836 | ||
768 | 838 | ||
769 | 839 | @Callable(R) | |
770 | 840 | func acceptWork (v) = { | |
771 | - | let aO = u(v) | |
772 | - | let aP = w(aO) | |
773 | - | let ah = aP[0] | |
774 | - | let X = aP[1] | |
775 | - | let aS = fromBase58String(aP[2]) | |
776 | - | let ab = parseIntValue(aP[3]) | |
777 | - | let am = parseIntValue(aP[4]) | |
778 | - | let ao = parseIntValue(aP[5]) | |
779 | - | let E = aP[6] | |
780 | - | let L = parseIntValue(aP[7]) | |
781 | - | let aU = aP[2] | |
782 | - | let aN = extract(R.callerPublicKey) | |
841 | + | let Q = extract(R.callerPublicKey) | |
842 | + | let ah = { | |
843 | + | let ai = getString(this, (v + "_State")) | |
844 | + | let z = ai | |
845 | + | if ($isInstanceOf(z, "String")) | |
846 | + | then { | |
847 | + | let y = z | |
848 | + | y | |
849 | + | } | |
850 | + | else throw("Auction State was not found") | |
851 | + | } | |
852 | + | let Y = { | |
853 | + | let ak = getString(this, (v + "_Client")) | |
854 | + | let y = { | |
855 | + | let z = ak | |
856 | + | if ($isInstanceOf(z, "String")) | |
857 | + | then { | |
858 | + | let y = z | |
859 | + | y | |
860 | + | } | |
861 | + | else throw("Auction Client was not found") | |
862 | + | } | |
863 | + | fromBase58String(y) | |
864 | + | } | |
865 | + | let ab = { | |
866 | + | let al = getInteger(this, (v + "_AuctionStart")) | |
867 | + | let z = al | |
868 | + | if ($isInstanceOf(z, "Int")) | |
869 | + | then { | |
870 | + | let y = z | |
871 | + | y | |
872 | + | } | |
873 | + | else throw("Auction Start time was not found") | |
874 | + | } | |
875 | + | let am = { | |
876 | + | let an = getInteger(this, (v + "_AuctionDuration")) | |
877 | + | let z = an | |
878 | + | if ($isInstanceOf(z, "Int")) | |
879 | + | then { | |
880 | + | let y = z | |
881 | + | y | |
882 | + | } | |
883 | + | else throw("Auction duration time was not found") | |
884 | + | } | |
885 | + | let aO = { | |
886 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
887 | + | let z = ap | |
888 | + | if ($isInstanceOf(z, "Int")) | |
889 | + | then { | |
890 | + | let y = z | |
891 | + | y | |
892 | + | } | |
893 | + | else throw("Auction job performance time was not found") | |
894 | + | } | |
895 | + | let E = { | |
896 | + | let aq = getString(this, (v + "_AssetName")) | |
897 | + | let z = aq | |
898 | + | if ($isInstanceOf(z, "String")) | |
899 | + | then { | |
900 | + | let y = z | |
901 | + | y | |
902 | + | } | |
903 | + | else throw("Auction asset name was not found") | |
904 | + | } | |
905 | + | let L = { | |
906 | + | let ar = getInteger(this, (v + "_Price")) | |
907 | + | let z = ar | |
908 | + | if ($isInstanceOf(z, "Int")) | |
909 | + | then { | |
910 | + | let y = z | |
911 | + | y | |
912 | + | } | |
913 | + | else throw("Auction price was not found") | |
914 | + | } | |
915 | + | let aS = { | |
916 | + | let ak = getString(this, (v + "_Freelancer")) | |
917 | + | let y = { | |
918 | + | let z = ak | |
919 | + | if ($isInstanceOf(z, "String")) | |
920 | + | then { | |
921 | + | let y = z | |
922 | + | y | |
923 | + | } | |
924 | + | else throw("Auction Client was not found") | |
925 | + | } | |
926 | + | fromBase58String(y) | |
927 | + | } | |
783 | 928 | let au = ((L * 3) / 100) | |
784 | - | let bw = (L - au) | |
785 | - | let bA = { | |
786 | - | let bB = getInteger(this, (aU + "_Rating")) | |
787 | - | let bC = { | |
788 | - | let z = bB | |
929 | + | let bs = (L - au) | |
930 | + | let as = D(E) | |
931 | + | let bt = { | |
932 | + | let bu = getInteger(this, (toBase58String(aS) + "_Rating")) | |
933 | + | let bv = { | |
934 | + | let z = bu | |
789 | 935 | if ($isInstanceOf(z, "Int")) | |
790 | 936 | then { | |
791 | 937 | let y = z | |
793 | 939 | } | |
794 | 940 | else 0 | |
795 | 941 | } | |
796 | - | ( | |
942 | + | (bv + 1) | |
797 | 943 | } | |
798 | - | if (( | |
944 | + | if ((Q == Y)) | |
799 | 945 | then if ((ah == j)) | |
800 | - | then { | |
801 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
802 | - | ScriptResult(WriteSet([DataEntry(aO, ((((k + "_") + X) + "_") + bu)), DataEntry((aU + "_Rating"), bA)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aU)), bw, D(E))])) | |
803 | - | } | |
946 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aS) + "_Rating"), bt)]), TransferSet([ScriptTransfer(addressFromPublicKey(aS), bs, as)])) | |
804 | 947 | else throw(("Incorrect state. Must be: " + j)) | |
805 | 948 | else throw("Only auction customer can use this function") | |
806 | 949 | } | |
807 | 950 | ||
808 | 951 | ||
809 | - | @Verifier( | |
810 | - | func | |
952 | + | @Verifier(bw) | |
953 | + | func bx () = if (sigVerify(bw.bodyBytes, bw.proofs[0], bw.senderPublicKey)) | |
811 | 954 | then { | |
812 | - | let z = | |
955 | + | let z = bw | |
813 | 956 | if ($isInstanceOf(z, "TransferTransaction")) | |
814 | 957 | then { | |
815 | - | let | |
958 | + | let by = z | |
816 | 959 | true | |
817 | 960 | } | |
818 | 961 | else if ($isInstanceOf(z, "SetScriptTransaction")) | |
819 | 962 | then { | |
820 | - | let | |
963 | + | let bz = z | |
821 | 964 | true | |
822 | 965 | } | |
823 | 966 | 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 | - | 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)]) | |
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 | 412 | let aI = ((v + "_") + 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 | 422 | let ae = O(E, L) | |
423 | 423 | let au = ((L * 3) / 100) | |
424 | 424 | let aA = ((L - aH) - au) | |
425 | 425 | let av = F(ag, ab, am) | |
426 | 426 | if ((Q == Y)) | |
427 | 427 | then if (av) | |
428 | 428 | then if ((ah == f)) | |
429 | 429 | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), (L - au), as)])) | |
430 | 430 | else if ((ah == g)) | |
431 | 431 | then { | |
432 | 432 | let aw = { | |
433 | 433 | let ax = getString(this, (v + "_LowestBidderPub")) | |
434 | 434 | let z = ax | |
435 | 435 | if ($isInstanceOf(z, "String")) | |
436 | 436 | then { | |
437 | 437 | let y = z | |
438 | 438 | y | |
439 | 439 | } | |
440 | 440 | else throw("Auction lowest bidder was not found") | |
441 | 441 | } | |
442 | 442 | let ay = { | |
443 | 443 | let az = getInteger(this, ((v + "_Bid_") + aw)) | |
444 | 444 | let z = az | |
445 | 445 | if ($isInstanceOf(z, "Int")) | |
446 | 446 | then { | |
447 | 447 | let y = z | |
448 | 448 | y | |
449 | 449 | } | |
450 | 450 | else throw("Auction lowest bid was not found") | |
451 | 451 | } | |
452 | 452 | WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aw), DataEntry((v + "_Price"), ay)]) | |
453 | 453 | } | |
454 | 454 | else throw("Incorrect auction state") | |
455 | 455 | else { | |
456 | 456 | let aK = { | |
457 | 457 | let at = getInteger(this, ((v + "_Bid_") + aG)) | |
458 | 458 | let z = at | |
459 | 459 | if ($isInstanceOf(z, "Int")) | |
460 | 460 | then { | |
461 | 461 | let y = z | |
462 | 462 | aG | |
463 | 463 | } | |
464 | 464 | else throw("Error: Incorrect freelancerPub") | |
465 | 465 | } | |
466 | 466 | let aL = { | |
467 | 467 | let aC = getInteger(this, ((v + "_Bid_") + aG)) | |
468 | 468 | let z = aC | |
469 | 469 | if ($isInstanceOf(z, "Int")) | |
470 | 470 | then { | |
471 | 471 | let y = z | |
472 | 472 | y | |
473 | 473 | } | |
474 | 474 | else throw("Auction lowest bidder was not found") | |
475 | 475 | } | |
476 | 476 | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aK), DataEntry((v + "_Price"), aL)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
477 | 477 | } | |
478 | 478 | else throw("Only auction customer can choose a freelancer") | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | ||
483 | 483 | @Callable(R) | |
484 | 484 | func increaseExecutionTime (v,aM) = { | |
485 | 485 | let aN = extract(R.callerPublicKey) | |
486 | - | let aO = u(v) | |
487 | - | let aP = w(aO) | |
488 | - | let ah = aP[0] | |
486 | + | let ah = { | |
487 | + | let ai = getString(this, (v + "_State")) | |
488 | + | let z = ai | |
489 | + | if ($isInstanceOf(z, "String")) | |
490 | + | then { | |
491 | + | let y = z | |
492 | + | y | |
493 | + | } | |
494 | + | else throw("Auction State was not found") | |
495 | + | } | |
489 | 496 | let Y = { | |
490 | 497 | let ak = getString(this, (v + "_Client")) | |
491 | 498 | let y = { | |
492 | 499 | let z = ak | |
493 | 500 | if ($isInstanceOf(z, "String")) | |
494 | 501 | then { | |
495 | 502 | let y = z | |
496 | 503 | y | |
497 | 504 | } | |
498 | 505 | else throw("Auction Client was not found") | |
499 | 506 | } | |
500 | 507 | fromBase58String(y) | |
501 | 508 | } | |
502 | - | let ab = parseIntValue(aP[3]) | |
503 | - | let am = parseIntValue(aP[4]) | |
504 | - | let ao = parseIntValue(aP[5]) | |
505 | - | let E = aP[6] | |
506 | - | let L = parseIntValue(aP[7]) | |
507 | - | let aQ = { | |
508 | - | let aR = (aM * a) | |
509 | - | if ((aR > ao)) | |
510 | - | then aR | |
509 | + | let aO = { | |
510 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
511 | + | let z = ap | |
512 | + | if ($isInstanceOf(z, "Int")) | |
513 | + | then { | |
514 | + | let y = z | |
515 | + | y | |
516 | + | } | |
517 | + | else throw("Auction job performance time was not found") | |
518 | + | } | |
519 | + | let aP = { | |
520 | + | let aQ = (aM * a) | |
521 | + | if ((aQ > aO)) | |
522 | + | then aQ | |
511 | 523 | else throw("New execution time must more than current execution time") | |
512 | 524 | } | |
513 | 525 | if ((aN == Y)) | |
514 | - | then if ((ah == f)) | |
515 | - | then WriteSet([DataEntry(aO, ((((((((((((ah + "_") + toBase58String(Y)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)))]) | |
516 | - | else if (if ((ah == g)) | |
517 | - | then true | |
518 | - | else (ah == i)) | |
519 | - | then { | |
520 | - | let aG = aP[7] | |
521 | - | WriteSet([DataEntry(aO, ((((((((((((((ah + "_") + toBase58String(Y)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)) + "_") + aG))]) | |
522 | - | } | |
523 | - | else throw("Incorrect state") | |
524 | - | else throw("Only customer can increase execution time") | |
526 | + | then if (if (if ((ah == f)) | |
527 | + | then true | |
528 | + | else (ah == g)) | |
529 | + | then true | |
530 | + | else (ah == i)) | |
531 | + | then WriteSet([DataEntry((v + "JobPerformance"), aP)]) | |
532 | + | else throw("Incorrect state") | |
533 | + | else throw("Only Client can increase execution time") | |
525 | 534 | } | |
526 | 535 | ||
527 | 536 | ||
528 | 537 | ||
529 | 538 | @Callable(R) | |
530 | 539 | func cancelAuction (v) = { | |
531 | - | let aO = u(v) | |
532 | - | let aP = w(aO) | |
533 | - | let ah = aP[0] | |
534 | - | let X = aP[1] | |
535 | - | let aS = fromBase58String(aP[2]) | |
536 | - | let ab = parseIntValue(aP[3]) | |
537 | - | let am = parseIntValue(aP[4]) | |
538 | - | let ao = parseIntValue(aP[5]) | |
539 | - | let E = aP[6] | |
540 | - | let L = parseIntValue(aP[7]) | |
541 | - | let aT = if ((R.callerPublicKey == aS)) | |
540 | + | let Q = extract(R.callerPublicKey) | |
541 | + | let ah = { | |
542 | + | let ai = getString(this, (v + "_State")) | |
543 | + | let z = ai | |
544 | + | if ($isInstanceOf(z, "String")) | |
545 | + | then { | |
546 | + | let y = z | |
547 | + | y | |
548 | + | } | |
549 | + | else throw("Auction State was not found") | |
550 | + | } | |
551 | + | let Y = { | |
552 | + | let ak = getString(this, (v + "_Client")) | |
553 | + | let y = { | |
554 | + | let z = ak | |
555 | + | if ($isInstanceOf(z, "String")) | |
556 | + | then { | |
557 | + | let y = z | |
558 | + | y | |
559 | + | } | |
560 | + | else throw("Auction Client was not found") | |
561 | + | } | |
562 | + | fromBase58String(y) | |
563 | + | } | |
564 | + | let aR = if ((Q == Y)) | |
542 | 565 | then true | |
543 | 566 | else throw("Auction can be canceled only by owner.") | |
544 | - | if ((ah == f)) | |
545 | - | then WriteSet([DataEntry(aO, ((((((((((((((h + "_") + X) + "_") + toBase58String(aS)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)))]) | |
546 | - | else throw("Incorrect auction state.") | |
567 | + | if (aR) | |
568 | + | then if ((ah == f)) | |
569 | + | then WriteSet([DataEntry((v + "_State"), h)]) | |
570 | + | else throw("Incorrect auction state.") | |
571 | + | else throw("Only Client can cancel auction") | |
547 | 572 | } | |
548 | 573 | ||
549 | 574 | ||
550 | 575 | ||
551 | 576 | @Callable(R) | |
552 | 577 | func openDispute (v) = { | |
553 | 578 | let aN = extract(R.callerPublicKey) | |
554 | - | let aO = u(v) | |
555 | - | let aP = w(aO) | |
556 | - | let ah = aP[0] | |
557 | - | let X = aP[1] | |
558 | - | let aS = fromBase58String(aP[2]) | |
559 | - | let ab = parseIntValue(aP[3]) | |
560 | - | let am = parseIntValue(aP[4]) | |
561 | - | let ao = parseIntValue(aP[5]) | |
562 | - | let E = aP[6] | |
563 | - | let L = parseIntValue(aP[7]) | |
564 | - | let aU = fromBase58String(aP[8]) | |
565 | - | if (if ((aN == aS)) | |
579 | + | let ah = { | |
580 | + | let ai = getString(this, (v + "_State")) | |
581 | + | let z = ai | |
582 | + | if ($isInstanceOf(z, "String")) | |
583 | + | then { | |
584 | + | let y = z | |
585 | + | y | |
586 | + | } | |
587 | + | else throw("Auction State was not found") | |
588 | + | } | |
589 | + | let Y = { | |
590 | + | let ak = getString(this, (v + "_Client")) | |
591 | + | let y = { | |
592 | + | let z = ak | |
593 | + | if ($isInstanceOf(z, "String")) | |
594 | + | then { | |
595 | + | let y = z | |
596 | + | y | |
597 | + | } | |
598 | + | else throw("Auction Client was not found") | |
599 | + | } | |
600 | + | fromBase58String(y) | |
601 | + | } | |
602 | + | let aS = { | |
603 | + | let ak = getString(this, (v + "_Freelancer")) | |
604 | + | let y = { | |
605 | + | let z = ak | |
606 | + | if ($isInstanceOf(z, "String")) | |
607 | + | then { | |
608 | + | let y = z | |
609 | + | y | |
610 | + | } | |
611 | + | else throw("Auction Client was not found") | |
612 | + | } | |
613 | + | fromBase58String(y) | |
614 | + | } | |
615 | + | if (if ((ah == f)) | |
566 | 616 | then true | |
567 | - | else (aN == aU)) | |
568 | - | then { | |
569 | - | let aV = "1" | |
570 | - | WriteSet([DataEntry(aO, ((((l + "_") + X) + "_") + aV)), DataEntry((v + "_Dispute"), "0")]) | |
571 | - | } | |
572 | - | else throw("Only customer and freelancer can open dispute") | |
617 | + | else (ah == g)) | |
618 | + | then throw("Incorrect auction state for dispute opening") | |
619 | + | else if (if ((aN == Y)) | |
620 | + | then true | |
621 | + | else (aN == aS)) | |
622 | + | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
623 | + | else throw("Only customer and freelancer can open dispute") | |
573 | 624 | } | |
574 | 625 | ||
575 | 626 | ||
576 | 627 | ||
577 | 628 | @Callable(R) | |
578 | - | func voteDispute (v,aW) = { | |
579 | - | let aO = u(v) | |
580 | - | let aP = w(aO) | |
581 | - | let ah = aP[0] | |
582 | - | let X = aP[1] | |
583 | - | let aS = fromBase58String(aP[2]) | |
584 | - | let ab = parseIntValue(aP[3]) | |
585 | - | let am = parseIntValue(aP[4]) | |
586 | - | let ao = parseIntValue(aP[5]) | |
587 | - | let E = aP[6] | |
588 | - | let L = parseIntValue(aP[7]) | |
589 | - | let aU = fromBase58String(aP[8]) | |
590 | - | let aX = ((L * 3) / 100) | |
591 | - | let aY = if ((ah == l)) | |
592 | - | then true | |
593 | - | else throw(("Incorrect state. Must be: " + l)) | |
594 | - | let aZ = if (if ((aW == n)) | |
595 | - | then true | |
596 | - | else (aW == o)) | |
597 | - | then aW | |
598 | - | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
599 | - | let ba = if (if (if (if (if ((R.callerPublicKey == p)) | |
600 | - | then true | |
601 | - | else (R.callerPublicKey == q)) | |
602 | - | then true | |
603 | - | else (R.callerPublicKey == r)) | |
604 | - | then true | |
605 | - | else (R.callerPublicKey == s)) | |
606 | - | then true | |
607 | - | else (R.callerPublicKey == t)) | |
608 | - | then toBase58String(R.callerPublicKey) | |
609 | - | else throw("You have no rights for disputes resolving") | |
610 | - | let bb = { | |
611 | - | let bc = ((v + "_") + l) | |
612 | - | let bd = getString(this, bc) | |
613 | - | let z = bd | |
629 | + | func voteDispute (v,aT) = { | |
630 | + | let Q = extract(R.callerPublicKey) | |
631 | + | let ah = { | |
632 | + | let ai = getString(this, (v + "_State")) | |
633 | + | let z = ai | |
614 | 634 | if ($isInstanceOf(z, "String")) | |
615 | 635 | then { | |
616 | 636 | let y = z | |
617 | 637 | y | |
618 | 638 | } | |
619 | - | else throw(" | |
639 | + | else throw("Auction State was not found") | |
620 | 640 | } | |
621 | - | let be = split(bb, "/") | |
622 | - | let bf = be[0] | |
623 | - | if ((bf == "4")) | |
624 | - | then { | |
625 | - | let bg = split(be[1], "_") | |
626 | - | let bh = split(be[2], "_") | |
627 | - | let bi = if ((ba == bg[0])) | |
628 | - | then true | |
629 | - | else (ba == bg[1]) | |
630 | - | if (bi) | |
631 | - | then throw("You already voted") | |
632 | - | else { | |
633 | - | let bj = "5" | |
634 | - | let bk = ((be[1] + "_") + ba) | |
635 | - | let bl = ((be[2] + "_") + aZ) | |
636 | - | let bm = ((((bj + "/") + bk) + "/") + bl) | |
637 | - | let bn = { | |
638 | - | let bo = if ((bh[0] == n)) | |
639 | - | then 1 | |
640 | - | else 0 | |
641 | - | let bp = if ((bh[1] == n)) | |
642 | - | then 1 | |
643 | - | else 0 | |
644 | - | let bq = if ((bh[2] == n)) | |
645 | - | then 1 | |
646 | - | else 0 | |
647 | - | let br = if ((bh[3] == n)) | |
648 | - | then 1 | |
649 | - | else 0 | |
650 | - | let bs = if ((aZ == n)) | |
651 | - | then 1 | |
652 | - | else 0 | |
653 | - | let bt = ((((bo + bp) + bq) + br) + bs) | |
654 | - | if ((bt > 2)) | |
655 | - | then n | |
656 | - | else o | |
657 | - | } | |
658 | - | let bu = ((((((((((((((X + "_") + toBase58String(aS)) + "_") + toString(ab)) + "_") + toString(am)) + "_") + toString(ao)) + "_") + E) + "_") + toString(L)) + "_") + toBase58String(aU)) | |
659 | - | let bv = if ((bn == n)) | |
660 | - | then aS | |
661 | - | else aU | |
662 | - | let bw = if ((bv == aS)) | |
663 | - | then (L - aX) | |
664 | - | else ((L - aX) - aX) | |
665 | - | ScriptResult(WriteSet([DataEntry(u(v), ((m + "_") + bu)), DataEntry(((v + "_") + l), bm)]), TransferSet([ScriptTransfer(addressFromPublicKey(bv), bw, D(E))])) | |
641 | + | let Y = { | |
642 | + | let ak = getString(this, (v + "_Client")) | |
643 | + | let y = { | |
644 | + | let z = ak | |
645 | + | if ($isInstanceOf(z, "String")) | |
646 | + | then { | |
647 | + | let y = z | |
648 | + | y | |
666 | 649 | } | |
650 | + | else throw("Auction Client was not found") | |
667 | 651 | } | |
668 | - | else { | |
669 | - | let bm = if ((bf == "0")) | |
652 | + | fromBase58String(y) | |
653 | + | } | |
654 | + | let E = { | |
655 | + | let aq = getString(this, (v + "_AssetName")) | |
656 | + | let z = aq | |
657 | + | if ($isInstanceOf(z, "String")) | |
658 | + | then { | |
659 | + | let y = z | |
660 | + | y | |
661 | + | } | |
662 | + | else throw("Auction asset name was not found") | |
663 | + | } | |
664 | + | let L = { | |
665 | + | let ar = getInteger(this, (v + "_Price")) | |
666 | + | let z = ar | |
667 | + | if ($isInstanceOf(z, "Int")) | |
668 | + | then { | |
669 | + | let y = z | |
670 | + | y | |
671 | + | } | |
672 | + | else throw("Auction price was not found") | |
673 | + | } | |
674 | + | let aS = { | |
675 | + | let ak = getString(this, (v + "_Freelancer")) | |
676 | + | let y = { | |
677 | + | let z = ak | |
678 | + | if ($isInstanceOf(z, "String")) | |
670 | 679 | then { | |
671 | - | let bj = "1" | |
672 | - | let bk = ba | |
673 | - | let bl = aZ | |
674 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
675 | - | bu | |
680 | + | let y = z | |
681 | + | y | |
676 | 682 | } | |
677 | - | else if ((bf == "1")) | |
678 | - | then { | |
679 | - | let bx = be[1] | |
680 | - | let bo = be[2] | |
681 | - | let bi = (ba == bx) | |
682 | - | if (bi) | |
683 | - | then throw("You already voted") | |
684 | - | else { | |
685 | - | let bj = "1" | |
686 | - | let bk = (bx + ba) | |
687 | - | let bl = (bo + aZ) | |
688 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
689 | - | bu | |
690 | - | } | |
691 | - | } | |
692 | - | else if ((bf == "2")) | |
693 | - | then { | |
694 | - | let bg = split(be[1], "_") | |
695 | - | let bh = split(be[2], "_") | |
696 | - | let bi = if ((ba == bg[0])) | |
697 | - | then true | |
698 | - | else (ba == bg[1]) | |
699 | - | if (bi) | |
700 | - | then throw("You already voted") | |
701 | - | else { | |
702 | - | let bj = "3" | |
703 | - | let bk = ((be[1] + "_") + ba) | |
704 | - | let bl = ((be[2] + "_") + aZ) | |
705 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
706 | - | bu | |
707 | - | } | |
708 | - | } | |
709 | - | else if ((bf == "3")) | |
710 | - | then { | |
711 | - | let bg = split(be[1], "_") | |
712 | - | let bh = split(be[2], "_") | |
713 | - | let bi = if (if ((ba == bg[0])) | |
714 | - | then true | |
715 | - | else (ba == bg[1])) | |
716 | - | then true | |
717 | - | else (ba == bg[2]) | |
718 | - | if (bi) | |
719 | - | then throw("You already voted") | |
720 | - | else { | |
721 | - | let bj = "4" | |
722 | - | let bk = ((be[1] + "_") + ba) | |
723 | - | let bl = ((be[2] + "_") + aZ) | |
724 | - | let bu = ((((bj + "/") + bk) + "/") + bl) | |
725 | - | bu | |
726 | - | } | |
727 | - | } | |
728 | - | else throw("Dispute has been already resolved") | |
729 | - | WriteSet([DataEntry(((v + "_") + l), bm)]) | |
683 | + | else throw("Auction Client was not found") | |
730 | 684 | } | |
685 | + | fromBase58String(y) | |
686 | + | } | |
687 | + | let aU = ((L * 3) / 100) | |
688 | + | let as = D(E) | |
689 | + | let aV = if (if (if (if (if ((Q == p)) | |
690 | + | then true | |
691 | + | else (Q == q)) | |
692 | + | then true | |
693 | + | else (Q == r)) | |
694 | + | then true | |
695 | + | else (Q == s)) | |
696 | + | then true | |
697 | + | else (Q == t)) | |
698 | + | then toBase58String(Q) | |
699 | + | else throw("Only defined ambassadors can vote in disputes") | |
700 | + | let aW = if (if ((aT == n)) | |
701 | + | then true | |
702 | + | else (aT == o)) | |
703 | + | then aT | |
704 | + | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
705 | + | let aX = { | |
706 | + | let aY = ((v + "_DiputeVote_") + aV) | |
707 | + | let aZ = getString(this, aY) | |
708 | + | let z = aZ | |
709 | + | if ($isInstanceOf(z, "String")) | |
710 | + | then { | |
711 | + | let y = z | |
712 | + | throw("User already voted") | |
713 | + | } | |
714 | + | else aV | |
715 | + | } | |
716 | + | let ba = { | |
717 | + | let bb = getInteger(this, (v + "_DisputeVotes")) | |
718 | + | let z = bb | |
719 | + | if ($isInstanceOf(z, "Int")) | |
720 | + | then { | |
721 | + | let y = z | |
722 | + | y | |
723 | + | } | |
724 | + | else throw("VotesNumber was not found") | |
725 | + | } | |
726 | + | if ((ah == l)) | |
727 | + | then if ((ba == 4)) | |
728 | + | 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 | |
741 | + | let bk = if ((bf == n)) | |
742 | + | then 1 | |
743 | + | else 0 | |
744 | + | let bl = if ((bg == n)) | |
745 | + | then 1 | |
746 | + | else 0 | |
747 | + | let bm = if ((bh == n)) | |
748 | + | then 1 | |
749 | + | else 0 | |
750 | + | let bn = if ((aW == n)) | |
751 | + | then 1 | |
752 | + | else 0 | |
753 | + | let bo = (((((bi + bj) + bk) + bl) + bm) + bn) | |
754 | + | if ((bo > 2)) | |
755 | + | then Y | |
756 | + | else aS | |
757 | + | } | |
758 | + | let bp = if ((bc == Y)) | |
759 | + | 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)])) | |
762 | + | } | |
763 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (ba + 1)), DataEntry(((v + "_DiputeVote_") + aV), aW)]) | |
764 | + | else throw(("Incorrect state. Must be: " + l)) | |
731 | 765 | } | |
732 | 766 | ||
733 | 767 | ||
734 | 768 | ||
735 | 769 | @Callable(R) | |
736 | 770 | func workHandOver (v) = { | |
737 | 771 | let Q = extract(R.callerPublicKey) | |
738 | - | let aO = u(v) | |
739 | - | let aP = w(aO) | |
740 | - | let ah = aP[0] | |
741 | - | let X = aP[1] | |
742 | - | let aS = fromBase58String(aP[2]) | |
743 | - | let ab = parseIntValue(aP[3]) | |
744 | - | let am = parseIntValue(aP[4]) | |
745 | - | let ao = parseIntValue(aP[5]) | |
746 | - | let E = aP[6] | |
747 | - | let L = parseIntValue(aP[7]) | |
748 | - | let aU = fromBase58String(aP[8]) | |
772 | + | let ah = { | |
773 | + | let ai = getString(this, (v + "_State")) | |
774 | + | let z = ai | |
775 | + | if ($isInstanceOf(z, "String")) | |
776 | + | then { | |
777 | + | let y = z | |
778 | + | y | |
779 | + | } | |
780 | + | else throw("Auction State was not found") | |
781 | + | } | |
782 | + | let ab = { | |
783 | + | let al = getInteger(this, (v + "_AuctionStart")) | |
784 | + | let z = al | |
785 | + | if ($isInstanceOf(z, "Int")) | |
786 | + | then { | |
787 | + | let y = z | |
788 | + | y | |
789 | + | } | |
790 | + | else throw("Auction Start time was not found") | |
791 | + | } | |
792 | + | let am = { | |
793 | + | let an = getInteger(this, (v + "_AuctionDuration")) | |
794 | + | let z = an | |
795 | + | if ($isInstanceOf(z, "Int")) | |
796 | + | then { | |
797 | + | let y = z | |
798 | + | y | |
799 | + | } | |
800 | + | else throw("Auction duration time was not found") | |
801 | + | } | |
802 | + | let aO = { | |
803 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
804 | + | let z = ap | |
805 | + | if ($isInstanceOf(z, "Int")) | |
806 | + | then { | |
807 | + | let y = z | |
808 | + | y | |
809 | + | } | |
810 | + | else throw("Auction job performance time was not found") | |
811 | + | } | |
812 | + | let aS = { | |
813 | + | let ak = getString(this, (v + "_Freelancer")) | |
814 | + | let y = { | |
815 | + | let z = ak | |
816 | + | if ($isInstanceOf(z, "String")) | |
817 | + | then { | |
818 | + | let y = z | |
819 | + | y | |
820 | + | } | |
821 | + | else throw("Auction Client was not found") | |
822 | + | } | |
823 | + | fromBase58String(y) | |
824 | + | } | |
749 | 825 | let G = height | |
750 | - | let | |
826 | + | let bq = if ((Q == aS)) | |
751 | 827 | then Q | |
752 | 828 | else throw("Only a freelancer can indicate that the work is done") | |
753 | - | let | |
829 | + | let br = ((G - ab) > aO) | |
754 | 830 | if ((ah == i)) | |
755 | - | then if (bz) | |
756 | - | then { | |
757 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
758 | - | WriteSet([DataEntry(aO, ((((l + "_") + X) + "_") + bu))]) | |
759 | - | } | |
760 | - | else { | |
761 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
762 | - | WriteSet([DataEntry(aO, ((((j + "_") + X) + "_") + bu))]) | |
763 | - | } | |
831 | + | then if (br) | |
832 | + | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
833 | + | else WriteSet([DataEntry((v + "_State"), j)]) | |
764 | 834 | else throw("Auction state is incorrect") | |
765 | 835 | } | |
766 | 836 | ||
767 | 837 | ||
768 | 838 | ||
769 | 839 | @Callable(R) | |
770 | 840 | func acceptWork (v) = { | |
771 | - | let aO = u(v) | |
772 | - | let aP = w(aO) | |
773 | - | let ah = aP[0] | |
774 | - | let X = aP[1] | |
775 | - | let aS = fromBase58String(aP[2]) | |
776 | - | let ab = parseIntValue(aP[3]) | |
777 | - | let am = parseIntValue(aP[4]) | |
778 | - | let ao = parseIntValue(aP[5]) | |
779 | - | let E = aP[6] | |
780 | - | let L = parseIntValue(aP[7]) | |
781 | - | let aU = aP[2] | |
782 | - | let aN = extract(R.callerPublicKey) | |
841 | + | let Q = extract(R.callerPublicKey) | |
842 | + | let ah = { | |
843 | + | let ai = getString(this, (v + "_State")) | |
844 | + | let z = ai | |
845 | + | if ($isInstanceOf(z, "String")) | |
846 | + | then { | |
847 | + | let y = z | |
848 | + | y | |
849 | + | } | |
850 | + | else throw("Auction State was not found") | |
851 | + | } | |
852 | + | let Y = { | |
853 | + | let ak = getString(this, (v + "_Client")) | |
854 | + | let y = { | |
855 | + | let z = ak | |
856 | + | if ($isInstanceOf(z, "String")) | |
857 | + | then { | |
858 | + | let y = z | |
859 | + | y | |
860 | + | } | |
861 | + | else throw("Auction Client was not found") | |
862 | + | } | |
863 | + | fromBase58String(y) | |
864 | + | } | |
865 | + | let ab = { | |
866 | + | let al = getInteger(this, (v + "_AuctionStart")) | |
867 | + | let z = al | |
868 | + | if ($isInstanceOf(z, "Int")) | |
869 | + | then { | |
870 | + | let y = z | |
871 | + | y | |
872 | + | } | |
873 | + | else throw("Auction Start time was not found") | |
874 | + | } | |
875 | + | let am = { | |
876 | + | let an = getInteger(this, (v + "_AuctionDuration")) | |
877 | + | let z = an | |
878 | + | if ($isInstanceOf(z, "Int")) | |
879 | + | then { | |
880 | + | let y = z | |
881 | + | y | |
882 | + | } | |
883 | + | else throw("Auction duration time was not found") | |
884 | + | } | |
885 | + | let aO = { | |
886 | + | let ap = getInteger(this, (v + "JobPerformance")) | |
887 | + | let z = ap | |
888 | + | if ($isInstanceOf(z, "Int")) | |
889 | + | then { | |
890 | + | let y = z | |
891 | + | y | |
892 | + | } | |
893 | + | else throw("Auction job performance time was not found") | |
894 | + | } | |
895 | + | let E = { | |
896 | + | let aq = getString(this, (v + "_AssetName")) | |
897 | + | let z = aq | |
898 | + | if ($isInstanceOf(z, "String")) | |
899 | + | then { | |
900 | + | let y = z | |
901 | + | y | |
902 | + | } | |
903 | + | else throw("Auction asset name was not found") | |
904 | + | } | |
905 | + | let L = { | |
906 | + | let ar = getInteger(this, (v + "_Price")) | |
907 | + | let z = ar | |
908 | + | if ($isInstanceOf(z, "Int")) | |
909 | + | then { | |
910 | + | let y = z | |
911 | + | y | |
912 | + | } | |
913 | + | else throw("Auction price was not found") | |
914 | + | } | |
915 | + | let aS = { | |
916 | + | let ak = getString(this, (v + "_Freelancer")) | |
917 | + | let y = { | |
918 | + | let z = ak | |
919 | + | if ($isInstanceOf(z, "String")) | |
920 | + | then { | |
921 | + | let y = z | |
922 | + | y | |
923 | + | } | |
924 | + | else throw("Auction Client was not found") | |
925 | + | } | |
926 | + | fromBase58String(y) | |
927 | + | } | |
783 | 928 | let au = ((L * 3) / 100) | |
784 | - | let bw = (L - au) | |
785 | - | let bA = { | |
786 | - | let bB = getInteger(this, (aU + "_Rating")) | |
787 | - | let bC = { | |
788 | - | let z = bB | |
929 | + | let bs = (L - au) | |
930 | + | let as = D(E) | |
931 | + | let bt = { | |
932 | + | let bu = getInteger(this, (toBase58String(aS) + "_Rating")) | |
933 | + | let bv = { | |
934 | + | let z = bu | |
789 | 935 | if ($isInstanceOf(z, "Int")) | |
790 | 936 | then { | |
791 | 937 | let y = z | |
792 | 938 | y | |
793 | 939 | } | |
794 | 940 | else 0 | |
795 | 941 | } | |
796 | - | ( | |
942 | + | (bv + 1) | |
797 | 943 | } | |
798 | - | if (( | |
944 | + | if ((Q == Y)) | |
799 | 945 | then if ((ah == j)) | |
800 | - | then { | |
801 | - | let bu = ((((((((((aP[1] + "_") + aP[2]) + "_") + aP[3]) + "_") + aP[4]) + "_") + aP[5]) + "_") + aP[6]) | |
802 | - | ScriptResult(WriteSet([DataEntry(aO, ((((k + "_") + X) + "_") + bu)), DataEntry((aU + "_Rating"), bA)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aU)), bw, D(E))])) | |
803 | - | } | |
946 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aS) + "_Rating"), bt)]), TransferSet([ScriptTransfer(addressFromPublicKey(aS), bs, as)])) | |
804 | 947 | else throw(("Incorrect state. Must be: " + j)) | |
805 | 948 | else throw("Only auction customer can use this function") | |
806 | 949 | } | |
807 | 950 | ||
808 | 951 | ||
809 | - | @Verifier( | |
810 | - | func | |
952 | + | @Verifier(bw) | |
953 | + | func bx () = if (sigVerify(bw.bodyBytes, bw.proofs[0], bw.senderPublicKey)) | |
811 | 954 | then { | |
812 | - | let z = | |
955 | + | let z = bw | |
813 | 956 | if ($isInstanceOf(z, "TransferTransaction")) | |
814 | 957 | then { | |
815 | - | let | |
958 | + | let by = z | |
816 | 959 | true | |
817 | 960 | } | |
818 | 961 | else if ($isInstanceOf(z, "SetScriptTransaction")) | |
819 | 962 | then { | |
820 | - | let | |
963 | + | let bz = z | |
821 | 964 | true | |
822 | 965 | } | |
823 | 966 | else false | |
824 | 967 | } | |
825 | 968 | else false | |
826 | 969 |
github/deemru/w8io/169f3d6 97.37 ms ◑