Skip to main content

Type Alias: ConfigScope

type ConfigScope = "chain" | "host";

Defined in: packages/overcast-core/src/config-schema.ts:77

Whether a field describes one chain or the host talking to it.

  • "chain" — a fact about one deployment: its RPC endpoint, its domain, its contract addresses, the wallet acting on it. Every host states it per chain.
  • "host" — how this process reaches the Overcast backend: the backend URL, the credentials for it, the RFQ socket tuning. A single-chain host (the CLI) and a host that namespaces everything per chain (the backend) still read it alongside the chain's fields; a multi-chain client states it once for every chain, and drops it from its per-chain schema with pickScope.

On the field rather than in a host's hand-kept list of keys to strip, so a host-scoped field added later is dropped everywhere it should be without anyone having to remember to.