Created
January 12, 2021 16:47
-
-
Save shmish111/563ddbebecd1aa31d3f7e1161417c3af to your computer and use it in GitHub Desktop.
Untitled Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(When [(Case (Deposit (Role "alice") (Role "alice") (Token "" "") (Constant 450)) (When [(Case (Choice (ChoiceId "choice" (Role "alice")) [(Bound 0 1)]) (When [(Case (Choice (ChoiceId "choice" (Role "bob")) [(Bound 0 1)]) (If (ValueEQ (ChoiceValue (ChoiceId "choice" (Role "alice"))) (ChoiceValue (ChoiceId "choice" (Role "bob")))) (If (ValueEQ (ChoiceValue (ChoiceId "choice" (Role "alice"))) (Constant 0)) (Pay (Role "alice") (Party (Role "bob")) (Token "" "") (Constant 450) Close) Close) (When [(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 1 1)]) Close),(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 0 0)]) (Pay (Role "alice") (Party (Role "bob")) (Token "" "") (Constant 450) Close))] 100 Close)))] 60 (When [(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 1 1)]) Close),(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 0 0)]) (Pay (Role "alice") (Party (Role "bob")) (Token "" "") (Constant 450) Close))] 100 Close)))] 40 (When [(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 1 1)]) Close),(Case (Choice (ChoiceId "choice" (Role "carol")) [(Bound 0 0)]) (Pay (Role "alice") (Party (Role "bob")) (Token "" "") (Constant 450) Close))] 100 Close)))] 10 Close) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment