Skip to main content

Type Alias: ProtocolFactories

type ProtocolFactories = readonly ProtocolFactory<ChainName, any>[];

Defined in: packages/overcast-core/src/multiapp.ts:26

A tuple of factories, one per chain — what a MultiOvercastApp is built from and stays parameterised by.

The layer is any rather than OvercastLayer because ProtocolFactory is invariant in it: settlementLayers both consumes and produces layer-typed values, so SolanaFactory is not assignable to ProtocolFactory<ChainName, OvercastLayer> and no real tuple could satisfy the tighter constraint. Nothing is erased by it — the element type is only a shape check, and every layer a caller actually reaches is recovered from the factory itself by FactoryLayer.