Label: complexity: high
Points: 200
Description
src/errors.ts's typed errors are precise but don't suggest remediation. This issue adds a mapping from known error types to actionable suggestion strings, useful for surfacing helpful UI messages automatically.
Technical Context
New src/errorSuggestions.ts. getSuggestion(error) pattern-matches against the typed errors exported from src/errors.ts (and contract errors via src/proof.ts's/parseSorobanError-style parsing) and returns a human-readable next step.
Acceptance Criteria
Label: complexity: high
Points: 200
Description
src/errors.ts's typed errors are precise but don't suggest remediation. This issue adds a mapping from known error types to actionable suggestion strings, useful for surfacing helpful UI messages automatically.Technical Context
New
src/errorSuggestions.ts.getSuggestion(error)pattern-matches against the typed errors exported fromsrc/errors.ts(and contract errors viasrc/proof.ts's/parseSorobanError-style parsing) and returns a human-readable next step.Acceptance Criteria
getSuggestion(error)returns a suggestion string for at least 10 distinct known error types, and a generic fallback for unknown onessrc/index.ts