code: def contracts_deployed_path(
          chain_id: int,
          version: Optional[str] = None,
          services: bool = False,
  ):
      
      data_path = contracts_data_path(version)
      chain_name = ID_TO_NETWORKNAME[chain_id] if chain_id in ID_TO_NETWORKNAME else 'private_net'
  
      return data_path.joinpath(f'deployment_{"services_" if services else ""}{chain_name}.json')
docs: Returns the path of the deplolyment data JSON file.