@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / reactivity / ReactivityEvent

Interface: ReactivityEvent

Defined in: packages/sdk/src/reactivity/index.ts:107

One matched log plus the results of the subscription's ethCalls, both read at the same block — the thing a somnia_watch subscription exists to deliver.

Typed here because upstream types onData as (data: any) => void, so a caller gets no help at all; and because upstream's own SubscriptionCallback describes neither the envelope nor address. The shape below is what a live Shannon node actually sends (see test/reactivity.e2e.test.ts, which asserts it against the real chain).

Properties

address

address: `0x${string}`

Defined in: packages/sdk/src/reactivity/index.ts:109

Contract that emitted the log.


topics

topics: `0x${string}`[]

Defined in: packages/sdk/src/reactivity/index.ts:111

Topics of the matched log, topic0 first.


data

data: `0x${string}`

Defined in: packages/sdk/src/reactivity/index.ts:113

ABI-encoded non-indexed data of the matched log.


simulationResults

simulationResults: `0x${string}`[]

Defined in: packages/sdk/src/reactivity/index.ts:115

Raw return data of each ethCall, in the order subscribed.