Skip to main content

Type Alias: ChainName

type ChainName = string;

Defined in: packages/overcast-core/src/types/index.ts:72

A unique name of a chain used to identify it across the OvercastApp's stack — the key a MultiOvercastApp files each chain's app under, and the value on every OvercastConfig.

Deliberately open (string) rather than a closed union of the chains this SDK ships clients for, because a name identifies a deployment, not a chain package: two EVM networks in one multi-app are "base" and "arbitrum", and core cannot know that list. Each chain package supplies a default literal ("evm", "solana") that a caller overrides per network.

Type safety comes from the literal, not from this type: a configured factory carries its name as ProtocolFactory<L, "base">, and that is what the multi-app's get / key set are derived from. A consumer that does want a closed set declares it locally over the chains it supports — see the CLI's CliChains.