Created
April 7, 2021 02:55
-
-
Save eopXD/6694f3cd446a94bcdf1d4f29be4843c4 to your computer and use it in GitHub Desktop.
TryMarlowe
This file contains hidden or 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 hidden or 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 | |
(Role "escrow") | |
(Role "buyer") | |
(Token "" "") | |
(Constant 500) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"jobDone" | |
(Role "seller") | |
) | |
[Bound 0 1] | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"jobDone" | |
(Role "buyer") | |
) | |
[Bound 0 1] | |
) | |
(If | |
(AndObs | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "buyer") | |
)) | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "seller") | |
)) | |
) | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "buyer") | |
)) | |
(Constant 1) | |
) | |
) | |
(Pay | |
(Role "escrow") | |
(Account (Role "seller")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"jobDone" | |
(Role "escrow") | |
) | |
[Bound 0 1] | |
) | |
(If | |
(AndObs | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "escrow") | |
)) | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "seller") | |
)) | |
) | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"jobDone" | |
(Role "seller") | |
)) | |
(Constant 1) | |
) | |
) | |
(Pay | |
(Role "escrow") | |
(Account (Role "seller")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
(Pay | |
(Role "escrow") | |
(Account (Role "buyer")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
)] | |
45 | |
(Pay | |
(Role "escrow") | |
(Account (Role "buyer")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
) | |
)] | |
25 | |
(Pay | |
(Role "escrow") | |
(Account (Role "buyer")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
)] | |
15 | |
(Pay | |
(Role "escrow") | |
(Account (Role "buyer")) | |
(Token "" "") | |
(Constant 500) | |
Close | |
) | |
)] | |
5 Close |
This file contains hidden or 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