Skip to main content

Type Alias: ReadChain<S>

type ReadChain<S> = { [P in keyof S & string]: { config: z.output<S[P]>; name: ChainName; protocol: P } }[keyof S & string];

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

One chain readChains read: its spec, and its config parsed against its own protocol's schema. A union discriminated by protocol, so a switch on it narrows config to that protocol's fields.

Type Parameters​

Type Parameter
S extends ChainSchemas