Headless HTTP client for the DBIS Core Banking API (d-bis/dbis_core).
Follows the same provider-switch pattern as services/bank.ts and
services/notaryChain.ts — env var gate, deterministic mock fallback.
Wires the subset of dbis_core endpoints the orchestrator actually
calls from its settlement / compliance / ISO20022 paths (mount-point
references per dbis_core/src/integration/api-gateway/app.ts):
- GET /api/accounts/:accountId/balance → getAccountBalance
- POST /api/isn/route → findSettlementRoute
- POST /api/isn/atomic → atomicSettle
- GET /api/isn/settlements/:settlementId → getSettlementStatus
- POST /api/ari/decision → requestAriDecision
- POST /api/v1/gpn/message/pacs008 → dispatchPacs008
Provider-switched via DBIS_CORE_URL: unset → mock mode with
deterministic fakes; set → live HTTP with X-API-Key auth
(DBIS_CORE_API_KEY) and a 10s AbortController-backed timeout
(DBIS_CORE_TIMEOUT_MS to override).
Tests (12/12) cover both legs: mock-shape assertions + live-mode
fetch stubs for auth headers, path encoding, JSON body, and error
handling. No network. tsc --noEmit clean; full unit suite
12/156 passing unchanged.
- Added quick start instructions in README.md for first-time setup, including commands for complete setup, verification, and service start.
- Revised FINAL_STATUS.md to reflect the project's infrastructure completion and readiness for execution, detailing scripts created and documentation status.
- Added multi-platform deployment architecture details (Web App, PWA, DApp) to README.md.
- Included comprehensive troubleshooting guides and fix scripts in README.md.
- Enhanced CHANGELOG.md with new features, fixes, and improvements, including TypeScript error resolutions and updated documentation structure.
- Revised development setup instructions in DEV_SETUP.md to reflect changes in script usage and environment variable setup.
- Added a new section in CURRENT_STATUS.md detailing prerequisites and quick start instructions for development setup.
- Updated environment variable validation to include defaults for missing variables in env.ts.
- Improved error handling in errorHandler.ts for better validation feedback.
- Made various code adjustments across services to ensure robustness and clarity.
- Added AccessControl to ComboHandler for role-based access management.
- Implemented gas estimation for plan execution and improved gas limit checks.
- Updated execution and preparation methods to enforce step count limits and role restrictions.
- Enhanced error handling in orchestrator API endpoints with AppError for better validation feedback.
- Integrated request timeout middleware for improved request management.
- Updated Swagger documentation to reflect new API structure and parameters.
- Integrated ECDSA for signature verification in ComboHandler.
- Updated event emissions to include additional parameters for better tracking.
- Improved gas tracking during execution of combo plans.
- Enhanced database interactions for storing and retrieving plans, including conflict resolution and status updates.
- Added new dependencies for security and database management in orchestrator.