Skip to main content

Type Alias: SettlementSelection<L>

type SettlementSelection<L> =
| L["settlement"]
| {
config: Id;
type: L["settlement"];
};

Defined in: packages/overcast-core/src/protocol/settlement-layer.ts:57

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. Typed to L["settlement"], so selecting a layer the chain doesn't implement fails to compile.

Type Parameters

Type ParameterDescription
L extends OvercastLayerthe OvercastLayer describing this settlement layer.