hermeznetwork / hermez-node

Hermez node Go implementation
GNU Affero General Public License v3.0
58 stars 33 forks source link

External binary to update token/fiat prices in hermez node Postgres/L2 database #1095

Closed jeffprestes closed 3 years ago

jeffprestes commented 3 years ago

Rationale

As Price Updater was removed from heznode and it's an independent project sometimes during the development or testing fases the token/fiat prices needs to be updated on demand. To avoid the developers or Q&A team needs to install the entire Price Updater service it would be good to have a separated CLI binary that connects to heznode instance, queries the token/fiat table, make a HTTP request to a Price Updater getting the price info and update the token/fiat table.

It has to receive all connections info and Price Updater URL via command line (as flags).

A new repo must be created to this and the language used to this should be Golang.

tclemos commented 3 years ago

To solve this issue, I've created a repo with this tool: https://github.com/hermeznetwork/tool-update-token-prices

I've already tested it with my internal testnet node and everything looks fine.

@jeffprestes, @marioidival and @mfcastellani could you please test it with your internal testnet node and let me know if the documentation and the tool are working fine for you?

Thanks.

tclemos commented 3 years ago

Project updated to add the API key parameter required by the new version of the price updater service.

jeffprestes commented 3 years ago

@tclemos thanks! And as the binary is working fine, I ask you please to close this issue.