src/
├── types/ # Core TypeScript interfaces
├── escrow/ # Escrow client, builder, monitor, dispute
├── auth/ # Challenge-sign auth flow
├── stellar/ # Network config, account, transaction helpers
└── utils/ # Validation, formatting, retry, error, logger
- Result types —
SDKResult<T>avoids thrown exceptions in public APIs - Immutable builders —
EscrowBuilderproduces validatedEscrowParams - Network agnostic — all clients accept
StellarNetworkenum - No side effects — utilities are pure functions