Skip to content

Add event when pause/unpause toggles include actor role#320

Merged
Jayy4rl merged 3 commits into
StellarYield:mainfrom
Junman140:main
Apr 30, 2026
Merged

Add event when pause/unpause toggles include actor role#320
Jayy4rl merged 3 commits into
StellarYield:mainfrom
Junman140:main

Conversation

@Junman140
Copy link
Copy Markdown
Contributor

@Junman140 Junman140 commented Apr 25, 2026

Closes #268


What changed
Added a new enriched pause lifecycle event emerg_v2 that includes an actor role hint (admin / operator) in event data, in soroban-contracts/contracts/single_rwa_vault/src/events.rs.
On pause/unpause/emergency_withdraw, the contract now emits:
New emerg_v2 event: (paused, reason, actor_role)
Existing emergency event unchanged: (paused, reason)
Backward-compat behavior: emerg_v2 is emitted first, then emergency, so listeners that only look at the “last” event still see the legacy emergency event.
Fixed a build blocker: removed a duplicate storage_schema_version definition in soroban-contracts/contracts/single_rwa_vault/src/lib.rs (it existed twice and broke compilation).
Where to look
New event emitter: soroban-contracts/contracts/single_rwa_vault/src/events.rs (emit_emergency_action_v2)
Updated pause/unpause/emergency_withdraw: soroban-contracts/contracts/single_rwa_vault/src/lib.rs
Verification
cargo test -p single_rwa_vault now passes (306 passed; 0 failed).

@Junman140 Junman140 changed the title Merge branch 'main' of https://github.com/StellarYield/StellarYield-Contracts Add event when pause/unpause toggles include actor role Apr 25, 2026
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@Junman140 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

@Jayy4rl
Copy link
Copy Markdown
Contributor

Jayy4rl commented Apr 25, 2026

@Junman140 Check and resolve conflicts

@Jayy4rl Jayy4rl merged commit 7f20c90 into StellarYield:main Apr 30, 2026
2 of 5 checks passed
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.

Add event when pause/unpause toggles include actor role

2 participants