code: def _build_deployments_object(
      contract_type: str,
      deployment_bytecode: Dict[str, Any],
      runtime_bytecode: Dict[str, Any],
      compiler: Dict[str, Any],
      address: HexStr,
      tx: HexStr,
      block: HexStr,
      manifest: Dict[str, Any],
  ) -> Iterable[Tuple[str, Any]]:
      
      yield "contract_type", contract_type
      yield "address", to_hex(address)
      if deployment_bytecode:
          yield "deployment_bytecode", deployment_bytecode
      if compiler:
          yield "compiler", compiler
      if tx:
          yield "transaction", tx
      if block:
          yield "block", block
      if runtime_bytecode:
          yield "runtime_bytecode", runtime_bytecode
docs: Returns a dict with properly formatted deployment data.