Skip to content

Instantly share code, notes, and snippets.

@ajuggler
Created June 10, 2022 19:30
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 ajuggler/9a1d2ed55cfc6ccdc72823a82be276bf to your computer and use it in GitHub Desktop.
Save ajuggler/9a1d2ed55cfc6ccdc72823a82be276bf to your computer and use it in GitHub Desktop.
double pay (marlowe)
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "Giver1")
(Role "Giver1")
(Token "" "")
(ConstantParam "Deposit")
)
(When
[Case
(Deposit
(Role "Giver2")
(Role "Giver2")
(Token "" "")
(ConstantParam "Deposit")
)
(Pay
(Role "Giver1")
(Party (Role "Receiver"))
(Token "" "")
(ConstantParam "Deposit")
(Pay
(Role "Giver2")
(Party (Role "Receiver"))
(Token "" "")
(ConstantParam "Deposit")
Close
)
)]
(TimeParam "Deadline")
Close
), Case
(Deposit
(Role "Giver2")
(Role "Giver2")
(Token "" "")
(ConstantParam "Deposit")
)
(When
[Case
(Deposit
(Role "Giver1")
(Role "Giver1")
(Token "" "")
(ConstantParam "Deposit")
)
(Pay
(Role "Giver1")
(Party (Role "Receiver"))
(Token "" "")
(ConstantParam "Deposit")
(Pay
(Role "Giver2")
(Party (Role "Receiver"))
(Token "" "")
(ConstantParam "Deposit")
Close
)
)]
(TimeParam "Deadline")
Close
)]
(TimeParam "Deadline")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment