Skip to content

Implement event subscription and real-time event listener #33

@big14way

Description

@big14way

Add the ability to subscribe to contract events in real-time.

Acceptance Criteria:

  • Add onEvent(eventType, callback) method
  • Support event types: contribution, payout, group_created, member_joined
  • Poll Horizon for new events at configurable interval
  • Add unsubscribe() cleanup method
  • Parse event data into typed objects

Files: new file src/events.ts, src/client.ts, src/types.ts, src/index.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions