Skip to content

Add audit trail for admin actions emitted as contract events #458

Description

@greatest0fallt1me

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

  1. Fork the repo and create a branch
    git checkout -b feat/admin-audit-events
  2. Implement changes
    • contracts/contracts/streampay-stream/src/events.rs
    • contracts/contracts/streampay-stream/src/lib.rs
  3. 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

  • Events emitted
  • Tests assert
  • Docs updated

Guidelines

  • Topic ordering stable
  • Clear documentation and inline comments
  • Timeframe: 96 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSGrantFox campaign issueOFFICIAL CAMPAIGNOfficial GrantFox campaign issueStellar WaveStellar Wave Program issueauditSecurity audit/reviewsecuritySecurity hardeningsmart-contractSoroban smart-contract work

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions