I want to know the answer to the following question:
What was the main thing the contracts were had to do with?
All the background I'm provided with is that "In Europe during the Medieval period, guilds were formed by craftsmen to organise their trades and written contracts have survived, particularly in relation to ecclesiastical buildings.". Is that enough to answer the question?
Answer: yes