import type { Eip155CaipChainId } from "./caip"; /** * Metadata for an EVM chain. RPC URL is intentionally not on the entry — * the caller passes one when constructing a wallet client. Custom chains * share this shape and merge with built-ins via `mergeChains`. */ export type EvmChainEntry = { /** Friendly slug used in CLI flags. Not the CAIP-2 string. */ key: string; /** Canonical CAIP-2 id. Stored on disk in this form. */ caip2: Eip155CaipChainId; /** Numeric EIP-155 chainId. Duplicates the caip2 reference for ergonomics. */ chainId: number; name: string; nativeCurrency: { name: string; symbol: string; decimals: number; }; blockExplorer?: string; }; /** * Subset of the network shape consumed by `@toruslabs/ethereum-controllers` * `createJsonRpcClient` / network middleware. */ export type EvmRpcConfig = { chainNamespace: "eip155"; chainId: `0x${string}`; displayName: string; rpcTarget: string; ticker: string; tickerName: string; blockExplorerUrl?: string; };