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
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
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 2015or public network passphrase). Centralizing this configuration prevents inconsistent network usage between signing helpers, horizon queries, and transaction verification.Acceptance Criteria
src/services/orsrc/lib/.Implementation Guidance
src/services/stellar.tsor similar core Stellar utility file.@stellar/stellar-sdknetwork classes.Testing & Validation
npm testto verify that existing Stellar-related tests pass successfully.Submission Guidelines
Closes #<issue-number>.Wave complexity: Trivial