Skip to content

[CONTRACTS] Add structured log for Soroban escrow creation with contract ID and seller addressΒ #158

Description

@chizzy192

Metadata

Field Value
Domain Contracts
Difficulty Easy (1–2 Days)
Effort Estimate effort: 2h
Priority P2-Medium
Labels good first issue, easy, Stellar Wave
Target Branch dev
Depends On #132

🎯 Context & Goal

When an escrow is successfully initialized on-chain, a structured log entry must be recorded containing invoiceId, sorobanContractId, sellerAddress, and amountStroops.

This issue adds structured logging inside InvoiceEscrowContractService.createEscrowOnChain().

πŸ“‚ Target Files

  • src/services/stellar/invoice-escrow-contract.service.ts -> Escrow creation logger

πŸ“‹ Implementation Tasks

  • Add logger.info() on escrow creation success
  • Include invoiceId, sorobanContractId, sellerAddress, amountStroops
  • Verify secret keys or tokens are not leaked in log metadata

πŸ› οΈ Technical Guidance

Use logger.info() with sanitized metadata.

πŸ”— References & Related

  • StellarSettle Observability Standards

⏳ Delivery Window

This issue should be completed within 1 day(s) of assignment.

Contribution Workflow

  1. Branch off dev: git checkout -b feature/descriptive-name dev
  2. Implement all tasks in the checklist above.
  3. Run all CI checks locally (see DEVELOPMENT.md).
  4. Open a Pull Request targeting dev.
  5. Link this issue in your PR description: Closes #XX.

βœ… Acceptance Criteria

  • All implementation tasks above are completed.
  • Code compiles/builds without errors.
  • All existing tests continue to pass.
  • New tests are added with >80% coverage of new code.
  • Code follows project style guidelines (formatting, linting).
  • PR targets dev branch (NOT main).
  • PR description references this issue.
  • Documentation is updated if public API changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programeasySmall scope / straightforwardgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions