Skip to content

[PeerX Backlog # 71] Add SDK helpers for typed error decoding #71

Description

@ameeribro4-sudo

Problem Statement
Client SDKs (TypeScript, Python) must know the u32 discriminant for
each PeerXError variant. They parse the raw error and dispatch
manually.

Expected Outcome
The SDK ships a generated errors.ts with named variants mapped to
the error code documented in errors.rs.

Acceptance Criteria

  • New bindings/errors.ts checked into peer-sdk/.
  • The error code table from errors.rs auto-generates.

Implementation Notes
Use soroban-sdk CLI's bindings command.

Files Affected

  • peer-sdk/ (new) — out of scope, but lay groundwork.

Dependencies Issue #73.
Difficulty / Effort 🥑 / M
Labels dx, api

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiPeerX Backlog label api (bulk-imported)dxPeerX Backlog label dx (bulk-imported)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions