Skip to content

Instantly share code, notes, and snippets.

@shmish111
Created January 12, 2021 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shmish111/563ddbebecd1aa31d3f7e1161417c3af to your computer and use it in GitHub Desktop.
Save shmish111/563ddbebecd1aa31d3f7e1161417c3af to your computer and use it in GitHub Desktop.
Untitled Project
(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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment