Skip to content

[P0] Add Stellar network client helper #3

@Obiajulu-gif

Description

@Obiajulu-gif

Priority

P0

Difficulty

Intermediate

Task

Create lib/stellar/client.ts to centralize Stellar network client setup for ChainMove.

Expected behavior

  • Add helpers for Horizon server setup.
  • Add helpers for Soroban RPC setup.
  • Add network selection support.
  • Use the Stellar config helper.

Acceptance criteria

  • Client helper exists.
  • Testnet is supported by default.
  • Future mainnet switching is supported.
  • Server-only code is not imported into frontend components.
  • Tests cover testnet and mainnet selection.

Test requirement

Add tests for testnet config, mainnet config, and invalid network handling.

Evidence required

  • Screenshot of tests passing.
  • Screenshot of resolved testnet config in terminal.

Commands

npm run lint
npm run typecheck --if-present
npm run build

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions