Commit Graph

25 Commits

Author SHA1 Message Date
Martin Boehm
85112a20c7 Enable coingecko pro API endpoint, count coingecko requests in metrics 2023-04-27 17:41:32 +02:00
Martin Boehm
aebc1c3495 Add secondary currency picker to explorer 2023-02-01 17:58:37 +01:00
Dusan Klinec
750a27d9b7 chore(ver): add arm64 for btc, ltc, eth, doge
- arm64 binary paths added for backends and consensus: btc, btc testnet, btc signet, eth, eth ropsten, eth goerli, ltc, ltc testnet, doge, doge testnet
2023-02-01 17:58:37 +01:00
Martin Boehm
3f8bcd1de6 Update fiat rates download parameters in coin configs 2023-02-01 17:58:37 +01:00
JoHnY
8335970648 dogecoin (+testnet) 1.14.5 → 1.14.6 2022-07-26 10:43:00 +02:00
JoHnY
4fd966e54c doge (+testnet) 1.14.3 → 1.14.5 2021-11-09 23:58:06 +01:00
vdovhanyc
d588904fb3 dogecoin: 1.14.2 → 1.14.3 2021-03-11 13:37:22 +01:00
Vladyslav Burzakovskyy
f6111af5da Add fiat rates functionality (#316)
* Add initial commit for fiat rates functionality

* templates.go: use bash from current user's environment

* bitcoinrpc.go: add FiatRates and FiatRatesParams to config

* blockbook.go: add initFiatRatesDownloader kickoff

* bitcoin.json: add coingecko API URL

* rockdb.go: add FindTicker and StoreTicker functions

* rocksdb_test.go: add a simple test for storing and getting FiatRate tickers

* rocksdb: add FindLastTicker and convertDate, make FindTicker return strings

* rocksdb: add ConvertDate function and CoinGeckoTicker struct, update tests

* blockbook.go, fiat: finalize the CoinGecko downloader

* coingecko.go: do not stop syncing when encountered an error

* rocksdb_test: fix the exported function name

* worker.go: make getBlockInfoFromBlockID a public function

* public.go: apiTickers kickoff

* rocksdb_test: fix the unittest comment

* coingecko.go: update comments

* blockbook.go, fiat: reword CoinGecko -> FiatRates, fix binary search upper bound, remove assignment of goroutine call result

* rename coingecko -> fiat_rates

* fiat_rates: export only the necessary methods

* blockbook.go: update log message

* bitcoinrpc.go: remove fiatRates settings

* use CurrencyRatesTicker structure everywhere, fix time format string, update tests, use UTC time

* add /api/v2/tickers tests, store rates as strings (json.Number)

* fiat_rates: add more tests, metrics and tickers-list endpoint, make the "currency" parameter mandatory

* public, worker: move FiatRates API logic to worker.go

* fiat_rates: add a future date test, fix comments, add more checks, store time as a pointer

* rocksdb_test: remove unneeded code

* fiat_rates: add a "ping" call to check server availability

* fiat_rates: do not return empty ticker, return nil instead if not found

add a test for non-existent ticker

* rocksdb_test: remove Sleep from tests

* worker.go: do not propagate all API errors to the client

* move InitTestFiatRates from rocksdb.go to public_test.go

* public.go: fix FiatRatesFindLastTicker result check

* fiat_rates: mock API server responses

* remove commented-out code

* fiat_rates: add comment explaining what periodSeconds attribute is used for

* websocket.go: implement fiatRates websocket endpoints & add tests

* fiatRates: add getFiatRatesTickersList websocket endpoint & test

* fiatRates: make websocket getFiatRatesByDate accept an array of dates, add more tests

* fiatRates: remove getFiatRatesForBlockID from websocket endpoints

* fiatRates: remove "if test", use custom startTime instead

Update tests and mock data

* fiatRates: finalize websocket functionality

add "date" parameter to TickerList

return data timestamps where needed

fix sync bugs (nil timestamp, duplicate save)

* fiatRates: add FiatRates configs for different coins

* worker.go: make GetBlockInfoFromBlockID private again

* fiatRates: wait & retry on errors, remove Ping function

* websocket.go: remove incorrect comment

* fiatRates: move coingecko-related code to a separate file, use interface

* fiatRates: if the new rates are the same as previous, try five more times, and only then store them

* coingecko: fix getting actual rates, add a timestamp parameter to get uncached responses

* vertcoin_testnet.json: remove fiat rates parameters

* fiat_rates: add timestamp to log message about skipping the repeating rates
2019-12-17 10:40:02 +01:00
Jan Hrnko
dfafd780dc doge: Bump backend 0.14.0 -> 0.14.2 2019-11-18 21:10:52 +01:00
Jan Hrnko
b1810dc06b Bump dogecoin backend 0.14.RC1 -> 0.14.0 2019-06-25 15:37:32 +02:00
Jan Hrnko
bed1a02a3e bump dogecoin backend 1.14-alpha-1 -> 1.14-RC1 2019-05-27 12:02:56 +02:00
Martin Boehm
64c8ae9a62 Estimate full derivation path from xpub 2019-02-05 20:47:54 +01:00
Martin Boehm
dafe19cf29 Synchronize xpub magic numbers from trezor-common 2019-01-28 13:34:43 +01:00
Petr Kracík
9ab9eeab74 Bump Dogecoin to 1.14 beta 2 2018-11-21 09:03:28 +01:00
Petr Kracík
9fdd15c758 Dogecoin bump version, internal explorer (#77)
* Bump dogecoin version to 1.14 alpha 4

* Dogecoin use internal explorer
2018-10-17 14:51:32 +02:00
Jakub Matys
5d44ff33ff Generates backend server config (with rpcauth) and client config 2018-10-15 12:51:04 +02:00
Jakub Matys
5754523317 WIP: sync integration tests 2018-09-20 09:39:13 +02:00
Jakub Matys
b5d1e5c94e Integration tests are defined declaratively with single implementation 2018-09-11 16:38:39 +02:00
Jakub Matys
a636a3197d Added additional params template for backend service 2018-07-31 10:30:11 +02:00
Jakub Matys
077038e8f8 Fixed dogecoin config 2018-07-27 12:56:14 +02:00
Jakub Matys
c71de0a696 Unified addresses in IPC section 2018-07-27 12:10:01 +02:00
Jakub Matys
f9b21b4192 Changed structure of config files 2018-07-27 11:56:16 +02:00
Jakub Matys
7f52de3b65 Upgraded BlockChain configuration 2018-07-26 16:50:06 +02:00
Jakub Matys
a573922bc1 Added templates for blockbook package 2018-07-26 12:49:57 +02:00
Jakub Matys
d2a83351f0 Added templates for backend package 2018-07-26 11:46:44 +02:00