Skip to content

Define contract event types for group operations #56

Description

@Akshola00

Description

Define event types that will be emitted when key contract operations occur (group creation, member updates, distributions).

Implement events in src/base/events.rs.

Relevant files:

  • contract/src/base/events.rs

Acceptance Criteria

  • Define GroupCreated event with: group_id, creator, token
  • Define MembersUpdated event with: group_id, member_count
  • Define DistributionProcessed event with: group_id, total_amount
  • Each event includes timestamp or other relevant metadata
  • Events are properly typed and documented
  • Events are exported for use in contract functions
  • Relevant contract tests are written
  • All contract tests pass
  • Contract code builds successfully
  • Contract code is properly formatted

Dependencies

C-2 (Core data types)

Additional Notes

  • Consider what data is needed for event consumers (e.g., frontend, indexers)
  • Events are crucial for off-chain tracking and auditing

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaigncontractSmart Contract (Soroban/Rust)entry-levelEntry-level difficultyeventsEvent definitions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions