Skip to main content

Function: parseChainSpecs()

function parseChainSpecs<P>(
value,
protocols,
options?): ChainSpec<P>[];

Defined in: packages/overcast-core/src/chain-env.ts:75

The chains value (the contents of CHAINS_ENV) declares, in the order written.

Each entry is name:protocol — base:evm, solana-mainnet:svm. The name is the deployment's own choice; the protocol must be one of protocols, the set this host can actually build.

Type Parameters​

Type Parameter
P extends string

Parameters​

ParameterType
valuestring
protocolsreadonly P[]
optionsParseChainSpecsOptions

Returns​

ChainSpec<P>[]

Throws​

when an entry is malformed, names an unknown protocol or a reserved name, or when two entries share a name — or share an env prefix (base-sepolia and base_sepolia would read the same variables), which is the same collision one step later.