Skip to main content

Type Alias: SettlementConfigMap

type SettlementConfigMap = { [K in KnownSettlementLayer]: unknown } & object;

Defined in: packages/overcast-core/src/layer/layer.ts:12

A chain's settlement layers as a map from each layer's type key to the shape read() decodes that layer's on-chain config account into. Every chain must cover the KnownSettlementLayer subset (so physical / oracle are always present and always keys of keyof settlements), and may add its own extra keys. The mapped values are the per-layer config types, which is what lets SettlementLayerRegistry.resolve return a precisely-typed layer.