Skip to content

feat: implement append-only audit log (#50)#51

Merged
Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
obedebuka41-dotcom:feat/issue-50-audit-log
May 28, 2026
Merged

feat: implement append-only audit log (#50)#51
Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
obedebuka41-dotcom:feat/issue-50-audit-log

Conversation

@obedebuka41-dotcom

Copy link
Copy Markdown
Contributor

Summary

  • Added AuditEntry struct with action, actor, and timestamp fields to types.rs
  • Added Cancelled status to InvoiceStatus enum
  • Implemented append_audit_entry() helper to log state changes
  • Implemented get_audit_log() view function to retrieve entries
  • Added audit logging to: pay(), release(), refund(), cancel_invoice(), extend_deadline()
  • Added tests verifying log entries are correctly recorded

Testing

  • test_audit_log - verifies pay and auto-release log entries (2 entries)
  • test_audit_log_with_cancel - verifies cancel log entry
  • test_audit_log_with_extend - verifies extend deadline log entry

Closes #50

@Kingsman-99 Kingsman-99 merged commit 86fcf4d into Stellar-split:main May 28, 2026
1 check failed
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.

Implement append-only audit log

2 participants