Why this matters
Off-chain indexers cannot track several state changes. agent_registry::complete_transaction flips completed to true and increments completed_agreements but emits no event, and no TransactionCompleted event type exists. In escrow, fund_escrow, the full-release branch of approve_release, and resolve_dispute move funds but emit no event, while only timeout/partial/deduction paths emit. Every fund movement and status change should emit an event.
Acceptance criteria
Files to touch
contracts/agent_registry/src/agent.rs
contracts/agent_registry/src/events.rs
contracts/escrow/src/escrow_impl.rs
contracts/escrow/src/events.rs
Out of scope
- Standardizing event topics across all contracts
- Event schema doc
Why this matters
Off-chain indexers cannot track several state changes. agent_registry::complete_transaction flips completed to true and increments completed_agreements but emits no event, and no TransactionCompleted event type exists. In escrow, fund_escrow, the full-release branch of approve_release, and resolve_dispute move funds but emit no event, while only timeout/partial/deduction paths emit. Every fund movement and status change should emit an event.
Acceptance criteria
Files to touch
contracts/agent_registry/src/agent.rscontracts/agent_registry/src/events.rscontracts/escrow/src/escrow_impl.rscontracts/escrow/src/events.rsOut of scope