pub fn load_contract<P: AsRef<Path>>(path: P) -> Result<Contract, ContractError>
Load and parse a contract from a YAML or JSON file.