Created
April 2, 2021 04:27
-
-
Save specpro30/1081e881872c0a2ecf24c6b1c9d448bd to your computer and use it in GitHub Desktop.
New 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
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]} |
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 | |
(PK "our-bet") | |
(Role "player1") | |
(Token "" "") | |
(Constant 15) | |
) | |
(When | |
[Case | |
(Deposit | |
(PK "our-bet") | |
(Role "player2") | |
(Token "" "") | |
(Constant 15) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"outcome" | |
(Role "player1") | |
) | |
[Bound 1 2] | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"name" | |
(Role "player2") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"outcome" | |
(Role "player1") | |
)) | |
(ChoiceValue | |
(ChoiceId | |
"outcome" | |
(Role "player2") | |
)) | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"outcome" | |
(Role "player1") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(PK "our-bet") | |
(Party (Role "player1")) | |
(Token "" "") | |
(Constant 30) | |
Close | |
) | |
(Pay | |
(PK "our-bet") | |
(Party (Role "player2")) | |
(Token "" "") | |
(Constant 30) | |
Close | |
) | |
) | |
Close | |
)] | |
0 Close | |
)] | |
100 Close | |
)] | |
30 | |
(Pay | |
(PK "our-bet") | |
(Party (Role "player1")) | |
(Token "" "") | |
(Constant 15) | |
Close | |
) | |
)] | |
20 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