@somnia-chain/markets-sdk / native / SomniaReactivitySubscription
Interface: SomniaReactivitySubscription
Defined in: packages/sdk/src/native/types.ts:160
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:162
Subscription id.
topics
topics: [
`0x${string}`,`0x${string}`,`0x${string}`,`0x${string}`]
Defined in: packages/sdk/src/native/types.ts:164
The four topic filters; bytes32(0) is a wildcard / unused slot.
origin
origin:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:166
tx.origin filter; zero address is a wildcard.
caller
caller:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:168
Reserved by the protocol — currently always the zero address.
emitter
emitter:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:170
Emitting-contract filter; zero address is a wildcard.
owner
owner:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:172
Who owns the subscription, and whose balance funds its callbacks.
handlerContractAddress
handlerContractAddress:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:174
Handler contract the validator calls.
handlerFunctionSelector
handlerFunctionSelector:
`0x${string}`
Defined in: packages/sdk/src/native/types.ts:176
Handler entrypoint (0x53edf33d for the default onEvent).
gasLimit
gasLimit:
bigint
Defined in: packages/sdk/src/native/types.ts:178
Gas provisioned per callback.
priorityFeePerGas
priorityFeePerGas:
bigint
Defined in: packages/sdk/src/native/types.ts:180
Tip per gas for the callback, in wei.
maxFeePerGas
maxFeePerGas:
bigint
Defined in: packages/sdk/src/native/types.ts:182
Fee ceiling per gas for the callback, in wei.