pub fn parse_contract(yaml_content: &str) -> Result<ContractFile, String>
Parse a contract YAML file.