SaFi Bank Space : Deploying and testing TM resources

This page describes steps on how to deploy and test products and resources on newly deployed TM instance.

1. Deploying resources

We use CLU (Configuration Layer Utility by TM) deployment pipeline to deploy all resources necessary for all SaFi bank products definitions to TM.

You can find the current deployment pipeline version here: https://github.com/SafiBank/SaFiMono/tree/main/tm-contracts/deploy , usage manual is described in README.md.

After cloning the source files / downloading CLU, set correct values in config.yaml and deploy your resources. If everything works, CLU will validate the resources, setup of your TM and deploy the smart contracts.

2. Testing TM resources

In order to quickly test deployed smart contract, following steps can be made via Core API:

  • Create a new customer

  • Create new accounts (steps differ based on the type of smart contract)

  • Make postings, validate balances and check kafka messages

To find an example of how to create a simulation test flow, see demo scripts in /tm-contracts/smart-contracts/utils/demos.