swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Cast variables of every API configuration in connector #114

Closed phoenix-web3 closed 2 years ago

phoenix-web3 commented 2 years ago

Issue

When we receive the configuration in the endpoint /admin/updatecoin and /admin/addcoin we receive all the configuration given by the script in strings. We need to convert this information to the type needed for each configuration variable.

This needs to be done on the Connector side to provide assurance that doing any kind of CURL does not sneak any errors.