Skip to content

Implement Escrow Top-Up Notifications via Events #1721

Description

@RUKAYAT-CODER

Overview

Escrow top-ups are tracked in storage but no EscrowToppedUp event is emitted. Indexers and the backend cannot detect top-ups without polling storage.

Specifications

Features:

  • Emit EscrowToppedUp { quest_id, depositor, amount, new_balance } event on each top-up
  • Add indexed quest_id topic for efficient filtering

Tasks:

  • Add EscrowToppedUp variant to events.rsn- Emit event in escrow.rs opup_escrown- Add event emission test

Impacted Files:

  • contracts/earn-quest/src/events.rsn- contracts/earn-quest/src/escrow.rsn

Acceptance Criteria:

  • EscrowToppedUp event emitted on every top-up
  • Event includes quest_id as indexed topic

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignStellar WaveIssues in the Stellar wave programcontractenhancementNew feature or request

Type

No type

Fields

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