Skip to content

Emit distinct events for all ReceiptAnchor state changes #89

Description

@wagmiiii

Repo context. accensa-contracts holds the on-chain half of Accensa: ReceiptAnchor (Merkle batch anchoring) and RefundVault (policy-bounded refunds). Both are deployed on testnet and covered by unit tests. soroban-sdk 27.0.4, MIT. See README.md, docs/SECURITY_MODEL.md and DEPLOYMENTS.md before starting.

🟢 Unblocked. Event emission is non-blocking and additive to existing functions.

Problem

Off-chain services tracking ReceiptAnchor have difficulty reconstructing state because not all state changes (like admin updates or configuration changes) emit corresponding Soroban events.

What to build

  1. Identify all state-mutating functions in ReceiptAnchor missing events.
  2. Define structured event topics and data payloads.
  3. Implement env.events().publish() for these state changes.

Acceptance criteria

  • Events are emitted for all state changes.
  • Event payloads contain necessary contextual data.
  • Tests assert that events are published correctly.

Contact & Support

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions