@somnia-chain/markets-sdk / index / sideOfKind
Function: sideOfKind()
sideOfKind(
kind):BinarySide
Defined in: store.ts:160
Map an on-chain OrderKind index (from BinaryOrderPlaced.kind) to a
BinarySide. Replaces the v1 (isBid, userData) decode — the pool now
states the kind explicitly, so the SDK/indexer join the BinaryOrderPlaced
event (by orderId) instead of inferring the side from userData.
Parameters
kind
number | bigint