@somnia-chain/markets-sdk


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

Function: sideOfKind()

sideOfKind(kind): BinarySide

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

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

Returns

BinarySide