Skip to content

Instantly share code, notes, and snippets.

@specpro30
Created April 2, 2021 04:51
Show Gist options
  • Save specpro30/e6273ad620a08b5511921c99e50f3b90 to your computer and use it in GitHub Desktop.
Save specpro30/e6273ad620a08b5511921c99e50f3b90 to your computer and use it in GitHub Desktop.
New Project
When
[Case
(Deposit
(PK "ourbet")
(Role "player1")
(Token "" "")
(Constant 15)
)
(When
[Case
(Deposit
(PK "ourbet")
(Role "player2")
(Token "" "")
(Constant 15)
)
(When
[Case
(Choice
(ChoiceId
"outcome"
(Role "player1")
)
[Bound 1 2]
)
(When
[Case
(Choice
(ChoiceId
"outcome"
(Role "player2")
)
[Bound 1 2]
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"name"
(Role "player1")
))
(ChoiceValue
(ChoiceId
"name"
(Role "player2")
))
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"name"
(Role "player1")
))
(Constant 1)
)
(Pay
(PK "ourbet")
(Party (Role "player1"))
(Token "" "")
(Constant 30)
Close
)
(Pay
(PK "ourbet")
(Party (Role "player2"))
(Token "" "")
(Constant 30)
Close
)
)
Close
)]
0 Close
)]
100 Close
)]
30
(Pay
(PK "ourbet")
(Party (Role "player1"))
(Token "" "")
(Constant 15)
Close
)
)]
0 Close
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment