Description
This audit found a consistent pattern of source files that exist in src/ but are never reached from the package's actual public entrypoint (src/index.ts) and, in several cases, aren't imported by any other file in src/ either: src/utils.ts (imports missing dependencies), src/utils/cache.ts's SimpleCache, src/utils/logger.ts's SDKLogger, src/utils/validate.ts, src/stellar/horizon.ts's submitTransaction, src/hooks/* (not exported from the root, tracked in #81), and src/errors.ts's TrustFlowError itself (used internally everywhere, but not exported — a different flavor of the same "unreachable from outside" problem). Each of these has its own narrow companion issue in this batch, but there's no single place that decided, module by module, "is this dead code to delete, or a real feature that should be exported and documented" — leaving open the risk that future contributors keep independently rediscovering (or worse, silently reimplementing) functionality that already exists but isn't reachable.
Component
SDK
Difficulty
🟣 Spike — investigation required, scope not yet defined
Tasks
Acceptance Criteria
Estimated Time
1-2 days (time-boxed spike)
Description
This audit found a consistent pattern of source files that exist in
src/but are never reached from the package's actual public entrypoint (src/index.ts) and, in several cases, aren't imported by any other file insrc/either:src/utils.ts(imports missing dependencies),src/utils/cache.ts'sSimpleCache,src/utils/logger.ts'sSDKLogger,src/utils/validate.ts,src/stellar/horizon.ts'ssubmitTransaction,src/hooks/*(not exported from the root, tracked in #81), andsrc/errors.ts'sTrustFlowErroritself (used internally everywhere, but not exported — a different flavor of the same "unreachable from outside" problem). Each of these has its own narrow companion issue in this batch, but there's no single place that decided, module by module, "is this dead code to delete, or a real feature that should be exported and documented" — leaving open the risk that future contributors keep independently rediscovering (or worse, silently reimplementing) functionality that already exists but isn't reachable.Component
SDK
Difficulty
🟣 Spike — investigation required, scope not yet defined
Tasks
src/and trace whether it's reachable fromsrc/index.ts(directly or transitively)Acceptance Criteria
src/module/symbol and its disposition (delete vs export)Estimated Time
1-2 days (time-boxed spike)