Description
Ensure all three contracts (escrow, settlement, registry) emit structured on-chain events for every state-changing operation. Events are critical for off-chain indexing by the Mesh platform.
Acceptance Criteria
Events to implement:
| Contract |
Event |
Fields |
| escrow |
Funded |
program_id, amount |
| escrow |
Released |
wave_id, recipient, amount |
| settlement |
Settled |
wave_id, total_points, contributor_count |
| registry |
ProgramRegistered |
program_id, name, organizer |
| registry |
WaveOpened |
wave_id, program_id |
| registry |
WaveClosed |
wave_id, total_points |
Technical Notes
- Use
soroban_sdk::Symbol for event topics
- Events are read via
env.events() in tests
Description
Ensure all three contracts (
escrow,settlement,registry) emit structured on-chain events for every state-changing operation. Events are critical for off-chain indexing by the Mesh platform.Acceptance Criteria
Events to implement:
env.events().publish()Technical Notes
soroban_sdk::Symbolfor event topicsenv.events()in tests