5import * as _ from 'lodash-es' 8export const getEth2Vals = ({ethNetwork, eth1ClientName}: {ethNetwork: string, eth1ClientName: string}) => { 9 const walletPassSecName = `wallet2pass-${ethNetwork}` 10 const jwtSecretName = `${ethNetwork}-jwt` 11 const httpWeb3Prov = `http://${eth1ClientName}-${ethNetwork}:8545` 12 const execEngProv = `http://${eth1ClientName}-${ethNetwork}:8551` 14 return {walletPassSecName, jwtSecretName, httpWeb3Prov, execEngProv} 17export const getEth2VolMounts = ({name, ethNetwork, mountPath = '/data'}: {name: string, ethNetwork: string, mountPath?: string}) => { 18 const jwtSecretName = `${ethNetwork}-jwt` 20 const {volumes: volumes1, volumeMounts: volumeMounts1} = pvcVolumeMounts({name, mountPath}) 26 secretName: jwtSecretName 31 const volumeMounts = [ 35 subPath: jwtSecretName, 39 return {volumes, volumeMounts} 42export const getExCliResources = async ({action, name, sizeGb, nodePort}: {action: string, name: string, sizeGb: number, nodePort: number}) => {