Skip to content

[Soroban/Escrow] Emit Event for Escrow Metadata Hash #175

Description

@ScriptedBro

Type

Task

Estimated Effort

1-3 development days

Summary

Emit the stored order metadata hash at escrow creation so indexers can link contract state to off-chain order records.

Scope

contracts/escrow/src/lib.rs

Required Data Structure

pub struct EscrowMetadataEvent { pub escrow_id: BytesN<32>, pub order_hash: BytesN<32>, pub schema: Symbol }

Implementation Tasks

  • Emit only when metadata is provided.
  • Keep event topic names consistent with existing escrow events.
  • Add event snapshot tests.
  • Keep the implementation scoped to the listed files or the smallest adjacent module needed.
  • Follow existing API response, contract error, storage-key, and event naming conventions.

Acceptance Criteria

  • The change is covered by focused tests for the success path and at least one failure path.
  • Any new event, migration, environment variable, or public function is documented near the affected service or contract.
  • The issue remains suitable for a developer to complete in 1-3 days.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programsmart-contractSmart contract logicsorobanSoroban smart contracts

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions