import { ActionTypes } from './index' ; export enum ClientId { 'BESU' = 'BESU' , 'OPEN_ETHEREUM' = 'OPEN_ETHEREUM' , 'NETHERMIND' = 'NETHERMIND' , 'GETH' = 'GETH' , 'PRYSM' = 'PRYSM' , 'LIGHTHOUSE' = 'LIGHTHOUSE' , 'NIMBUS' = 'NIMBUS' , 'TEKU' = 'TEKU' } export interface UpdateClientAction { type : ActionTypes . updateClient ; payload : { clientId : ClientId ; ethVersion : 1 | 2 ; } ; } export const updateClient = ( clientId , ethVersion ) : UpdateClientAction => { return { type : ActionTypes . updateClient , payload : { clientId , ethVersion , } , } ; } ; export type DispatchClientUpdate = ( ValidatorId : ClientId , ethVersion : 1 | 2 ) => void ;