Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active January 19, 2023 09:22
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 edsko/28c9db02d517fcf538ab8271e2ee3067 to your computer and use it in GitHub Desktop.
Save edsko/28c9db02d517fcf538ab8271e2ee3067 to your computer and use it in GitHub Desktop.
Simple Oracle
{"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 "" "")
(Constant 1)
)
(When
[Case
(Choice
(ChoiceId
"name"
(Role "O")
)
[Bound 0 0]
)
(Pay
(Role "A")
(Party (Role "B"))
(Token "" "")
(Constant 1)
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