Poll archive nodes for events after last event
Store in db
Pool db for new alerts
Set as seen
Clear alerts
Real-time alerts can be feature update
Navigate to a new page see there is new alerts (not seen) display count
For now run on page load. Then set interval query db again
Fake push notifications
https://github.com/zkfs-io/zkfs/tree/develop/packages/event-parser Emit events from promotions How can this be used to alert students of promotion Emit when student added, notify instructor
Poll archive nodes for events after last event Store in db Pool db for new alerts Set as seen Clear alerts
Real-time alerts can be feature update Navigate to a new page see there is new alerts (not seen) display count For now run on page load. Then set interval query db again Fake push notifications
https://github.com/o1-labs/snarkyjs/blob/main/src/examples/zkapps/voting/run_berkeley.ts https://github.com/o1-labs/snarkyjs/blob/main/src/examples/zkapps/voting/voting.ts https://docs.minaprotocol.com/zkapps/snarkyjs/fetch-events-and-actions https://github.com/o1-labs/snarkyjs/blob/aed64f2b4d2b85b0c3811ef2dcc0b0f24a20a910/src/examples/zkapps/dex/erc20.ts#L128