1// Eth client type definitions for status monitoring 2// Ports are the REST/RPC API ports used for status checks 4export const execClientPorts = { 10export const consClientPorts = { 17const consClientPodPrefix: Partial<Record<keyof typeof consClientPorts, string>> = { 18 prysm: 'beacon-prysm', 21import path from 'path' 22import { fileURLToPath } from 'url' 25export const mkEthStatusCfg = ({cluster_name, ethNetwork, execClientType, consClientType, importMetaUrl}: { 26 cluster_name: string, ethNetwork: string, execClientType: keyof typeof execClientPorts, 27 consClientType: keyof typeof consClientPorts, importMetaUrl?: string, 29 const epFilePath = importMetaUrl ? fileURLToPath(importMetaUrl) : null 30 const epPath = epFilePath ? path.relative(ptDir, epFilePath) : null 36 fuzzyPodName: `${execClientType}-${ethNetwork}`, 37 portNo: execClientPorts[execClientType], 40 fuzzyPodName: `${consClientPodPrefix[consClientType] ?? consClientType}-${ethNetwork}`, 41 portNo: consClientPorts[consClientType],