Skip to content

Add Stellar network selection helper based on environment configuration #453

Description

@Cjay-Cyber-2

Description

Create a centralized helper function to return the correct Stellar Network instance (Testnet vs. Public) based on environment variables.

Context & Requirements

Stellar SDK requires specifying the network passphrase (Test SDF Network ; September 2015 or public network passphrase). Centralizing this configuration prevents inconsistent network usage between signing helpers, horizon queries, and transaction verification.

Acceptance Criteria

  • Create or update a Stellar network configuration helper in src/services/ or src/lib/.
  • Read network configuration from validated environment variables.
  • Export a reusable network instance/passphrase constant for use across Stellar service modules.

Implementation Guidance

  • Likely files to touch: src/services/stellar.ts or similar core Stellar utility file.
  • Use @stellar/stellar-sdk network classes.

Testing & Validation

  • Run npm test to verify that existing Stellar-related tests pass successfully.

Submission Guidelines

  • Open a Pull Request referencing Closes #<issue-number>.
  • Adhere to TypeScript strict rules and existing codebase formatting standards.

Wave complexity: Trivial

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions