Description
This is a smart-contract issue. Admin actions (set_paused, set_admin, set_token_allowed) do not emit events. Add typed events for each so off-chain auditors can rebuild the timeline.
Requirements and Context
- Three new event types
- Topics include
admin address
- Tests assert payloads
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested Execution
- Fork the repo and create a branch
git checkout -b feat/admin-audit-events
- Implement changes
contracts/contracts/streampay-stream/src/events.rs
contracts/contracts/streampay-stream/src/lib.rs
- Test and commit
cargo test -p streampay-stream admin
- Include test output and notes in the PR
Example commit message
feat: audit events for admin actions
Acceptance Criteria
Guidelines
- Topic ordering stable
- Clear documentation and inline comments
- Timeframe: 96 hours
Description
This is a smart-contract issue. Admin actions (
set_paused,set_admin,set_token_allowed) do not emit events. Add typed events for each so off-chain auditors can rebuild the timeline.Requirements and Context
adminaddressSuggested Execution
contracts/contracts/streampay-stream/src/events.rscontracts/contracts/streampay-stream/src/lib.rscargo test -p streampay-stream adminExample commit message
Acceptance Criteria
Guidelines