import { ChainedNamespace } from "src"; export const parseChainedNamespace = (namespace: ChainedNamespace | NS) => { const [ns, chainId] = namespace.split(":") as [NS, string | undefined]; return { ns, chainId }; };