Closed aelesbao closed 1 year ago
The Config domain should handle only reading and writing the config file, with some extra validation logic and nothing else.
Config
Placing the arch3.js clients in this class creates unnecessary coupling and increases the complexity of the code.
Create a builder class that accepts the Config and returns an ArchwayClient or SigningArchwayClient.
ArchwayClient
SigningArchwayClient
Description
The
Config
domain should handle only reading and writing the config file, with some extra validation logic and nothing else.Placing the arch3.js clients in this class creates unnecessary coupling and increases the complexity of the code.
Technical Details
Create a builder class that accepts the
Config
and returns anArchwayClient
orSigningArchwayClient
.