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.rs
n- Emit event in escrow.rs opup_escrown- Add event emission test
Impacted Files:
- contracts/earn-quest/src/events.rs
n- contracts/earn-quest/src/escrow.rsn
Acceptance Criteria:
- EscrowToppedUp event emitted on every top-up
- Event includes quest_id as indexed topic
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:
Tasks:
n- Emit event in escrow.rs opup_escrown- Add event emission testImpacted Files:
n- contracts/earn-quest/src/escrow.rsnAcceptance Criteria: