Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active January 19, 2023 11:10
Show Gist options
  • Save edsko/b72bfcad77f55ba52ac4d61b92772af8 to your computer and use it in GitHub Desktop.
Save edsko/b72bfcad77f55ba52ac4d61b92772af8 to your computer and use it in GitHub Desktop.
Simple Bet
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "A")
(Role "A")
(Token "" "t")
(Constant 1)
)
(When
[Case
(Deposit
(Role "B")
(Role "B")
(Token "" "t")
(Constant 1)
)
(When
[Case
(Choice
(ChoiceId
"win"
(Role "O")
)
[Bound 0 1]
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"win"
(Role "O")
))
(Constant 0)
)
(Pay
(Role "B")
(Party (Role "A"))
(Token "" "t")
(Constant 1)
Close
)
(Pay
(Role "A")
(Party (Role "B"))
(Token "" "t")
(Constant 1)
Close
)
)]
(TimeParam "timeout3")
Close
)]
(TimeParam "timeout2")
Close
)]
(TimeParam "timeout1")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment