@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / native / SomniaReactivitySubscription

Interface: SomniaReactivitySubscription

Defined in: packages/sdk/src/native/types.ts:136

A registered Solidity reactivity subscription, as the node stores it.

The same subscriptions the reactivity precompile manages — see @somnia-chain/markets-sdk/reactivity for creating them. This read is the way to enumerate what already exists without decoding events.

Properties

id

id: bigint

Defined in: packages/sdk/src/native/types.ts:138

Subscription id.


topics

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

Defined in: packages/sdk/src/native/types.ts:140

The four topic filters; bytes32(0) is a wildcard / unused slot.


origin

origin: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:142

tx.origin filter; zero address is a wildcard.


caller

caller: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:144

Reserved by the protocol — currently always the zero address.


emitter

emitter: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:146

Emitting-contract filter; zero address is a wildcard.


owner

owner: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:148

Who owns the subscription, and whose balance funds its callbacks.


handlerContractAddress

handlerContractAddress: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:150

Handler contract the validator calls.


handlerFunctionSelector

handlerFunctionSelector: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:152

Handler entrypoint (0x53edf33d for the default onEvent).


gasLimit

gasLimit: bigint

Defined in: packages/sdk/src/native/types.ts:154

Gas provisioned per callback.


priorityFeePerGas

priorityFeePerGas: bigint

Defined in: packages/sdk/src/native/types.ts:156

Tip per gas for the callback, in wei.


maxFeePerGas

maxFeePerGas: bigint

Defined in: packages/sdk/src/native/types.ts:158

Fee ceiling per gas for the callback, in wei.