Problem
The parseSorobanResult function in src/utils/xdr-parser.ts currently returns any, which violates the CONTRIBUTING.md guideline to avoid any types and removes TS safety for downstream functions.
Expected behavior
The function returns a strongly typed union (e.g., string | number | boolean | Record<string, unknown>) based on what scValToNative can output, ensuring type safety.
Files to update
Project relevance
This strictly adheres to the project's technical guidelines and ensures mathematical and state-reading operations remain type-safe.
Acceptance criteria
Problem
The
parseSorobanResultfunction insrc/utils/xdr-parser.tscurrently returnsany, which violates theCONTRIBUTING.mdguideline to avoidanytypes and removes TS safety for downstream functions.Expected behavior
The function returns a strongly typed union (e.g.,
string | number | boolean | Record<string, unknown>) based on whatscValToNativecan output, ensuring type safety.Files to update
src/utils/xdr-parser.tsProject relevance
This strictly adheres to the project's technical guidelines and ensures mathematical and state-reading operations remain type-safe.
Acceptance criteria
anyreturn type is completely removed and replaced with a strict TypeScript union type