Skip to content

Event Emission Across All Contracts #14

Description

@Mkalbani

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
  • All events emitted via env.events().publish()
  • Event topics use consistent naming convention (snake_case symbols)
  • Tests assert events are emitted with correct data

Technical Notes

  • Use soroban_sdk::Symbol for event topics
  • Events are read via env.events() in tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions