Skip to content

feat: added --follow flag for contract monitoring#157

Merged
Nanle-code merged 1 commit into
Nanle-code:masterfrom
Onyedika3d:websocket
May 28, 2026
Merged

feat: added --follow flag for contract monitoring#157
Nanle-code merged 1 commit into
Nanle-code:masterfrom
Onyedika3d:websocket

Conversation

@Onyedika3d
Copy link
Copy Markdown

Summary

Added support for continuous Soroban event streaming via:

starforge monitor --contract <CID> --follow

The monitor can now run continuously until interrupted with Ctrl+C, making it suitable for real-time contract observation.

To improve reliability, the event stream now automatically reconnects on Soroban RPC failures using exponential backoff with jitter, preventing transient network issues from terminating monitoring sessions.

Additionally, Soroban RPC endpoint selection has been centralized behind a shared helper to eliminate duplicated network mapping logic across the codebase.

Changes

src/commands/monitor.rs

New --follow Flag

Added support for:

starforge monitor --contract <CID> --follow

Closes: #123

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Onyedika3d Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Nanle-code Nanle-code merged commit 4b50f20 into Nanle-code:master May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue 32: Real-time monitor: WebSocket or SSE for contract events

2 participants