I would like to know if the following scenario involving three parties could make sense in the context of a smart contract.
I am new to blockchain and smart contracts, I have come across some standard two party contracts and one-to-many like crowd funding but I could not find any mention of a three party contract along the following lines:
Let's say Alice and Bob share a boundary between their gardens and Bob is responsible for paying for a fence and Alice has some requirements.
So Bob cannot put up the fence unless Alice says the conditions are met.
Bob is also at the mercy of the weather and his workman, and the workman is at the mercy of the weather and issues on other jobs.
So in one sense: Bob has agreement (a) with the workman, John and a separate agreement (b) with Alice.
However, there could be an interesting interdependency created by Alice's requirements. She has the option of setting a requirement with a twenty four hours notice or no notice required. However, since she wants a fence up as soon as possible, if she drops the the 24H notice requirement then John has a option to come at an earlier date if he is stalled on his other job.
With two separate contracts the 24 hour notice/ no notice option could accidentally be different.
I don't know if this is a good example, but I am trying to understand if a single smart contract is ever used in order to hold three parties into an agreement, or should interdependent agreements like this be split into multiple two party contracts?
Or can a parent contract hold two child contracts with an interdependency?
Thanks in advance Brian