Type Alias: SettlementSelection<L, K>
type SettlementSelection<L, K> =
| K
| {
config: Bytes32;
type: K;
};
Defined in: packages/overcast-core/src/protocol/settlement-layer.ts:113
How a caller picks a settlement layer for an offer: a bare type key (→ the
layer's default config) or a
{ type, config } pair naming a custom config. Keyed by SettlementKey,
so selecting a layer the chain doesn't implement fails to compile.
The K parameter is inferred from the selection at each call site (e.g.
"oracle" narrows K to "oracle"), which is how SettlementLayerRegistry.resolve threads the picked layer's config type
through to its return.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
L extends OvercastLayer | - | the OvercastLayer describing this settlement layer. |
K extends SettlementKey<L> | SettlementKey<L> | the specific layer key being selected (inferred). |