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
Problem Statement
Client SDKs (TypeScript, Python) must know the
u32discriminant foreach
PeerXErrorvariant. They parse the raw error and dispatchmanually.
Expected Outcome
The SDK ships a generated
errors.tswith named variants mapped tothe error code documented in
errors.rs.Acceptance Criteria
bindings/errors.tschecked intopeer-sdk/.errors.rsauto-generates.Implementation Notes
Use
soroban-sdkCLI'sbindingscommand.Files Affected
peer-sdk/(new) — out of scope, but lay groundwork.Dependencies Issue #73.
Difficulty / Effort 🥑 / M
Labels
dx,api