[Contracts] Emit dedicated ProtocolPaused and ProtocolUnpaused events on pause toggle
Overview
The emergency protocol pause functionality added in stream_contract updates contract storage, but does not emit a dedicated Soroban contract event when pause status changes.
Problem
- Indexers and external monitoring tools cannot track protocol pause state changes in real time via event subscriptions.
Proposed Changes
- Add
emit_protocol_paused(env: &Env, admin: &Address, is_paused: bool)incontracts/stream_contract/src/events.rs. - Invoke this event inside
set_emergency_pauseinlib.rs.
Acceptance Criteria
- [ ] Event emitted with topics
["FlowFi", "ProtocolPaused"]. - [ ] Event payload contains admin address and boolean pause state.
- [ ] Unit test asserts event emission upon pause and unpause.
@deslawson has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
I can handle this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @deslawson to this issue.
@doncross03 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
please, i’d love to work on this issue. i’m a professional typescript/react and rust developer with experience across stellar wave 4–8, and i can complete it on time. i understand the goal is to introduce a moderation-focused response quality metric while following the repo’s existing conventions and contributing guidelines. i’ll trace the current moderation/response evaluation flow, implement the metric without disrupting existing behavior, add focused tests for valid and edge cases, and update the relevant documentation. looking forward to contributing!
ℹ️ Repo Maintainers: To accept this application, review their application or assign @doncross03 to this issue.
@Oluwasuyi-Oluwatimilehin-Daniel has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hello @maintainer, I’d like to work on this issue. I have experience handling similar tasks and can start immediately. And I will deliver at the shortest possible time.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Oluwasuyi-Oluwatimilehin-Daniel to this issue.
Congratulations, @Oluwasuyi-Oluwatimilehin-Daniel! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @Oluwasuyi-Oluwatimilehin-Daniel: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been marked as completed by a Drips Wave moderator for @timiturn3r as part of the Stellar Wave Program's 9th Wave 🥳
Moderator's reason: [Auto-assessed] The PR has been successfully merged (mergedAt: 2026-10-08T06:07:36Z) and fully addresses Issue #1517 by implementing the ProtocolPausedEvent, emit_protocol_paused, set_emergency_pause, and comprehensive unit tests.
😎 @timiturn3r: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.