On the EVM, developers are used to generate events in their smart contracts to which clients can subscribe.
On ICP, there's no platform-level support for such a mechanism. Still, we could implement a similar mechanism on the application level, and I'd like to discuss if this could be a beneficial addition to this CDK.
The general idea would be to have a certified log with events stored in stable memory together with an API to e.g. retrieve the N latest events by type (to be discussed).
In addition, the websocket project could be used to allow subscribing to events.
On the EVM, developers are used to generate events in their smart contracts to which clients can subscribe.
On ICP, there's no platform-level support for such a mechanism. Still, we could implement a similar mechanism on the application level, and I'd like to discuss if this could be a beneficial addition to this CDK.
The general idea would be to have a certified log with events stored in stable memory together with an API to e.g. retrieve the N latest events by type (to be discussed).
In addition, the websocket project could be used to allow subscribing to events.