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

138 fix admin schemas for every currency #139

Closed phoenix-web3 closed 2 years ago

phoenix-web3 commented 2 years ago

Description

Fixes #138 (issue)

Dependencies (if any)

Type of change

How Has This Been Tested?

Start the API

[INFO][2022-04-01 14:26:16.033895] Executing getCoin method
[INFO][2022-04-01 14:26:16.033983] Validating JSON schema with admin/schemas/getcoin_request.json
[ERROR][2022-04-01 14:26:16.035543] Currency eth has not been previously added
[ERROR][2022-04-01 14:26:16.035577] testnet network has not been previously added for currency eth
[INFO][2022-04-01 14:26:16.035592] Validating JSON schema with admin/schemas/getcoin_response.json
[INFO][2022-04-01 14:26:16.042281] Executing addCoin method
[INFO][2022-04-01 14:26:16.042426] Validating JSON schema with admin/schemas/addcoin_request.json
[INFO][2022-04-01 14:26:16.043853] Registering new WebSocket for testnet network for eth currency
[INFO][2022-04-01 14:26:16.043888] Starting WS for Ethereum
[INFO][2022-04-01 14:26:16.044156] Validating JSON schema with admin/schemas/addcoin_response.json
[INFO][2022-04-01 14:26:16.044614] Connecting to ws://ethereumgo-testnet:8546

getcoin request to the Connector

imagen

Related PR or Docs PR

Docs PR related # Other PR related #

Good practices to consider