Files
nym/explorer-api
Bogdan-Ștefan Neacşu fadff7888b Feature/reuse init owner (#970)
* Save gateway owner for later use in erc20 bandwidth request

* Pass owner in network monitor

* Switch to variable length owner address

* Add erc20 bridge contract in validator client

* Check bandwidth credential refers to gateway

* Check the owner of the gateway from the eth event

* Fix wasm client

* Hack to avoid unused warning on coconut path

* Hacked, one-time payment

* Remove print

* Update arg format

* Fix token check

* Fix native template

* Use utokens instead of full token

... when talking to eth

* Fix parse event for new field

* Fix socks5 template

* Add estimation of gas call

* Make fs backup more reliable

* Fix clippy

* Fix unused import

* Update waiting time

* Remove defaults from run, as it they should be set on init

* Remove debugging prints

* Replaced unwrap with error

* Fix build

* Make eth contract address dependent of network

* Use tokio for sleep

* Add approve before spending token on bandwidth

* Put bandwidth claim only at the beginning of the process
2022-02-17 11:56:11 +01:00
..
2022-02-17 11:56:11 +01:00
2021-08-04 12:38:35 +01:00
2021-08-04 12:38:35 +01:00
2021-10-19 10:20:00 +01:00

Network Explorer API

An API that provides data for the Network Explorer.

Features:

  • geolocates mixnodes using https://freegeoip.app/
  • calculates how many nodes are in each country
  • proxies mixnode API requests to add HTTPS

Running

Supply the environment variable GEO_IP_SERVICE_API_KEY with a key from https://freegeoip.app/.

Run as a service and reverse proxy with nginx to add https with Lets Encrypt.

TODO / Known Issues

TODO

  • record the number of mixnodes on a given date and write to a file for later retrieval
  • dependency injection
  • tests