System Events
Beyond smart-contract capabilities
event BlockTick(uint64 indexed blockNumber);
event Schedule(uint256 indexed timestampMillis);Block Tick Event
ISomniaReactivityPrecompile.SubscriptionData
memory subscriptionData = ISomniaReactivityPrecompile
.SubscriptionData({
eventTopics: [BlockTick.selector, bytes32(0), bytes32(0), bytes32(0)],
emitter: SomniaExtensions.SOMNIA_REACTIVITY_PRECOMPILE_ADDRESS,
handlerContractAddress: address(this),
handlerFunctionSelector: ISomniaEventHandler.onEvent.selector,
/*...*/
});Schedule Event
Last updated