Skip to content

Emit Events for All State Changes #217

@Mkalbani

Description

@Mkalbani

Description

Several state-changing functions do not emit events, making off-chain indexing and debugging difficult.

Expected Behavior

Every quest creation, update, completion, and cancellation should emit a corresponding event.

Proposed Events

event QuestCreated(uint indexed questId, address indexed creator);
event QuestCompleted(uint indexed questId, address indexed player);
event QuestCancelled(uint indexed questId);
event QuestUpdated(uint indexed questId);

Acceptance Criteria

  • All state changes have corresponding events
  • Events include indexed fields for efficient filtering
  • Tests assert events are emitted correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions