Description
StellarTomlParser parses stellar.toml files without checking the VERSION field. Future TOML schema versions may introduce breaking changes; parsing them with the current logic silently produces incorrect data.
Acceptance Criteria
Context
- Target file:
src/anchors/StellarTomlParser.ts
- The check should be the first validation after successful TOML parsing
Description
StellarTomlParserparsesstellar.tomlfiles without checking theVERSIONfield. Future TOML schema versions may introduce breaking changes; parsing them with the current logic silently produces incorrect data.Acceptance Criteria
VERSIONfield from the TOML documentSUPPORTED_TOML_VERSIONS(exported constant, e.g.,[2.0, 2.1]) are acceptedUnsupportedTomlVersionErrornaming the encountered versionContext
src/anchors/StellarTomlParser.ts