The Settlements BC consists of the following packages;
Public shared types. README
Domain library types. README
Infrastructure library. README
HTTP service for Settlements BC. README
Settlement library used to determine the settlement model for a settlement transfer. README
Mock implementation used for testing. README
npm run start:http-svc
More information on how to install NVM: https://github.com/nvm-sh/nvm
nvm install
nvm use
npm install
npm run build
npm run test:unit
Follow instructions in the docker-compose-infra README.md
to run the supporting services.
npm run test:integration
npm run start:http-svc
Make sure you have the following services up and running (available in platform-shared-tools docker-compose files):
-
infra
- mongo
- kafka
- zoo
-
cross-cutting
- authentication-svc
- authorization-svc
- identity-svc
- platform-configuration-svc
-
apps
- account-and-balances (both services)
- participants-svc
After running the unit and/or integration tests:
npm run posttest
You can then consult the html report in:
coverage/lcov-report/index.html
Requires integration tests pre-requisites
npm run test
error:25066067:DSO support routines:dlfcn_load:could not load the shared library
Fix: https://github.com/mojaloop/security-bc.git export OPENSSL_CONF=/dev/null
The following documentation provides insight into the Settlements Bounded Context.
- Technical Flows -
../docs/flows
- Settlement Version 2 -
../docs/Settlement Version 2.pptx
- Settlement Operational Implementation - https://docs.mojaloop.io/business-operations-framework-docs/guide/SettlementBC.html#core-settlement-operations
- Reference Architecture - https://mojaloop.github.io/reference-architecture-doc/boundedContexts/settlements/
- MIRO Board - https://miro.com/app/board/o9J_lJyA1TA=/
- Settlement Functionality in MJL - https://docs.google.com/presentation/d/19uy6pO_igmQ9uZRnKyZkXD8a8uyMKQcn/edit#slide=id.p1
- Work Sessions - https://docs.google.com/document/d/1Nm6B_tSR1mOM0LEzxZ9uQnGwXkruBeYB2slgYK1Kflo/edit#heading=h.6w64vxvw6er4
- Admin API - Settlement Models - https://github.com/mojaloop/mojaloop-specification/blob/master/admin-api/admin-api-specification-v1.0.md#api-resource-settlementmodels