Skip to content

Implement SDK typed network client abstraction #157

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Feature

Summary

Implement a typed network client abstraction for Horizon and future Soroban RPC usage.

Current Behaviour

SDK modules may call network services directly, which can lead to duplicated request logic and inconsistent error handling.

Expected Behaviour

The SDK should route network calls through a shared typed abstraction with consistent behaviour.

Suggested Implementation

Create a network client module with typed request methods, timeout handling, response parsing, and SDK error conversion.

Files or Areas Likely Affected

src/network/
src/config/
src/errors/
tests/
docs/

Acceptance Criteria

  • A typed network client abstraction is added.
  • Existing candidate modules use the abstraction where practical.
  • Timeout and response parsing behaviour is consistent.
  • Network errors are converted into SDK errors.
  • Tests cover successful and failed network responses.

Additional Notes

This should not change public SDK behaviour unless documented.

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labeldeveloper-experienceDeveloper experience workexpertExpert difficultyfeatureFeature worksdkSDK related workstellarStellar ecosystem work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions