@somnia-chain/markets-sdk / index / SeriesLatestMarket
Type Alias: SeriesLatestMarket
SeriesLatestMarket =
object
Defined in: packages/sdk/src/marketCreatorAdmin.ts:943
The most recent market minted under one rolling series - one row per series that has rolled at least once, whichever creator owns it.
When to use
When the question is "when did this series LAST roll", asked for every series
at once - a stall monitor, a scheduler dashboard. A series' own row
(IndexedSeries) says how often it should roll and nothing about
whether it did; a market row says when it was created and not which series
it belongs to. This is that join, taken once and server-side: Hasura's
distinct_on: series_id over markets ordered newest-first within each series.
A series that has never rolled has NO row here. Absence means "no market
yet", not "stalled", and nothing indexed says when the first roll is due:
armFirstRoll accepts any future interval-aligned boundary and emits no
event, and a re-register keeps the original createdAtTimestamp, so neither
IndexedSeries.createdAtTimestamp nor updatedAtTimestamp is a
deadline. A caller that cannot judge a series should say so rather than
anchor on either.
Properties
series
series:
string
Defined in: packages/sdk/src/marketCreatorAdmin.ts:945
The series' entity id, ${creatorLower}_${seriesId} - IndexedSeries.id.
market
market:
string
Defined in: packages/sdk/src/marketCreatorAdmin.ts:947
Id of the most recently created market under the series.
createdAtTimestamp
createdAtTimestamp:
string
Defined in: packages/sdk/src/marketCreatorAdmin.ts:949
When that market was created (unix seconds, decimal string).