@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / TailStatus

Interface: TailStatus

Defined in: packages/sdk/src/store.ts:84

Live-tail health snapshot — how current the store's getLive* reads are: block coverage (snapshot/last/head), socket state, and active watch count.

Properties

healedGaps

healedGaps: number

Defined in: packages/sdk/src/store.ts:86

Nonempty intervening ranges successfully recovered. Empty probes do not count.


lastDivergence

lastDivergence: TailDivergence | null

Defined in: packages/sdk/src/store.ts:88

Last observed divergence, retained after later matching checks.


failure

failure: TailFailure | null

Defined in: packages/sdk/src/store.ts:90

Background failure; cleared only after the failed work succeeds.


mode

mode: TailMode

Defined in: packages/sdk/src/store.ts:92

Current data-source mode ("init" until the first watch is hydrated).


snapshotBlock

snapshotBlock: number

Defined in: packages/sdk/src/store.ts:97

Block the most recent indexer snapshot was consistent to (a watch's seam covers snapshotBlock+1..)


lastBlock

lastBlock: number

Defined in: packages/sdk/src/store.ts:99

Highest applied event or sealed scope block; heads alone do not advance it.


headBlock

headBlock: number

Defined in: packages/sdk/src/store.ts:101

Latest chain head observed over the WS


wsConnected

wsConnected: boolean

Defined in: packages/sdk/src/store.ts:103

Whether the chain WS subscriptions are currently delivering


watchCount

watchCount: number

Defined in: packages/sdk/src/store.ts:108

Active market watches (pools currently subscribed, incl. an all-markets watch's set). 0 → the tail is idle and no socket is held for it.