@somnia-chain/markets-sdk / index / MarketActivityBase
Type Alias: MarketActivityBase
MarketActivityBase =
object
Defined in: packages/sdk/src/activity.ts:58
The fields every MarketActivity row carries, whatever its kind.
Sort and page on timestamp. Group by txHash to recover the rows that one
transaction produced — a taker order that also minted a set writes a TRADE
and a MINT_SET under the same hash.
Properties
id
id:
string
Defined in: packages/sdk/src/activity.ts:66
Feed-unique row id, ${kind}:${entityId}.
Prefixed because the source entities number their ids independently: a
Fill and a MarketStatusUpdate in the same block and log position share
an entity id. Stable across reads, so it is safe as a list key.
kind
kind:
MarketActivityKind
Defined in: packages/sdk/src/activity.ts:68
Kind discriminator — narrow on this.
market
market:
string
Defined in: packages/sdk/src/activity.ts:70
The market's bytes32 marketId, lowercased.
timestamp
timestamp:
string
Defined in: packages/sdk/src/activity.ts:72
Timestamp (unix seconds) of the block the row landed in.
blockNumber
blockNumber:
string
Defined in: packages/sdk/src/activity.ts:74
Block the row landed in (decimal string).
txHash
txHash:
string
Defined in: packages/sdk/src/activity.ts:76
Transaction the row landed in.