Last active
May 20, 2021 01:10
-
-
Save jhotson/7d186dca2c2aa7fc6079dcbff15f9f77 to your computer and use it in GitHub Desktop.
Tenant Contract
This file contains 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 "Landlord") | |
(Role "Tenant") | |
(Token "" "") | |
(Constant 100) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Accept Tenant" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Accept Tenant" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(When | |
[Case | |
(Deposit | |
(Role "Landlord") | |
(Role "Tenant") | |
(Token "" "") | |
(Constant 900) | |
) | |
(Let | |
"Tenancy" | |
SlotIntervalStart | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Break Contract" | |
(Role "Tenant") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Break Contract" | |
(Role "Tenant") | |
)) | |
(Constant 1) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 1000) | |
Close | |
) | |
Close | |
)] | |
1 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 1000) | |
Close | |
) | |
) | |
(Assert | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 2) | |
) | |
(Let | |
"End Tenacy" | |
SlotIntervalEnd | |
(When | |
[Case | |
(Choice | |
(ChoiceId "Property Inspection" ?party) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
Close | |
)] | |
12 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
) | |
) | |
) | |
)] | |
2 | |
(Let | |
"End Tenacy" | |
SlotIntervalEnd | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
Close | |
)] | |
12 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
) | |
) | |
) | |
)] | |
1 Close | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
)] | |
1 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
)] | |
1 Close |
This file contains 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 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 "Landlord") | |
(Role "Tenant") | |
(Token "" "") | |
(Constant 100) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Accept Tenant" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Accept Tenant" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(When | |
[Case | |
(Deposit | |
(Role "Landlord") | |
(Role "Tenant") | |
(Token "" "") | |
(Constant 900) | |
) | |
(Let | |
"Tenancy" | |
SlotIntervalStart | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Break Contract" | |
(Role "Tenant") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Break Contract" | |
(Role "Tenant") | |
)) | |
(Constant 1) | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 1000) | |
Close | |
) | |
Close | |
)] | |
1 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 1000) | |
Close | |
) | |
) | |
(Assert | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 2) | |
) | |
(Let | |
"End Tenacy" | |
SlotIntervalEnd | |
(When | |
[Case | |
(Choice | |
(ChoiceId "Property Inspection" ?party) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
Close | |
)] | |
12 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
) | |
) | |
) | |
)] | |
2 | |
(Let | |
"End Tenacy" | |
SlotIntervalEnd | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
) | |
[Bound 1 2] | |
) | |
(If | |
(ValueEQ | |
(ChoiceValue | |
(ChoiceId | |
"Property Inspection" | |
(Role "Landlord") | |
)) | |
(Constant 1) | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
Close | |
)] | |
12 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
) | |
) | |
) | |
)] | |
1 Close | |
) | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
)] | |
1 | |
(Pay | |
(Role "Landlord") | |
(Party (Role "Tenant")) | |
(Token "" "") | |
(Constant 100) | |
Close | |
) | |
)] | |
1 Close |
This file contains 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