Commit Graph

1468 Commits (f6111af5da2621d4167ba197dcc011388ac2cbaf)

Author SHA1 Message Date
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 e2b34afb9c bch (+testnet): Bump backend 0.20.7 -> 0.20.8 2019-12-11 14:20:11 +01:00
Jan Hrnko 80aa7bc4a4 dash (+testnet): Bump backend 0.14.0.4 -> 0.14.0.5 2019-12-10 22:52:16 +01:00
Jan Hrnko d092c42e21 nmc: Bump backend 0.19.0 -> 0.19.0.1 2019-12-10 21:20:52 +01:00
Jan Hrnko 2a818d8780 nmc: Bump backend 0.18.0 -> 0.19.0 2019-12-07 12:05:31 +01:00
Jan Hrnko f09b8ef683 eth (+testnet): Bump backend 1.9.8 -> 1.9.9 2019-12-06 14:06:21 +01:00
thebevrishot 630ef1d308 Bump Zcoin to 0.13.8.8 2019-12-03 11:40:59 +01:00
Jan Hrnko f94878b234 bch (+testnet): Bump backend 0.20.6 -> 0.20.7 2019-11-30 18:40:31 +01:00
Jan Hrnko b3367f8f8c eth (+testnet): Bump backend 1.9.7 -> 1.9.8 2019-11-28 19:10:27 +01:00
Jan Hrnko 0baf02c6b8 btc (+testnet): Bump backend 0.18.1 -> 0.19.0.1 2019-11-25 00:39:27 +01:00
Jan Hrnko 0f4f71d2b0 dash (+testnet): Bump backend 0.14.0.3 -> 0.14.0.4 2019-11-24 18:28:53 +01:00
Martin Boehm e4c6d23389 Fix error message informing about missing Ethereum xpub support #314 2019-11-19 11:56:40 +01:00
Martin Boehm f7bbffa4c9 Fix formatting/linting issues 2019-11-19 11:15:00 +01:00
Martin Boehm c45312edf1 Fix incorrect registration of network params in unobtanium and viacoin 2019-11-19 11:13:15 +01:00
Jan Hrnko dfafd780dc doge: Bump backend 0.14.0 -> 0.14.2 2019-11-18 21:10:52 +01:00
Liam Alford 4134934031 Add DeepOnion (#298)
* Add DeepOnion

* Fix config bugs

* Use base pack/unpck TX

* Fix empty array causing test failure.

* Fix config files and executable.

* Fix sync issue

* Fix integration tetsts
2019-11-18 17:51:45 +01:00
Jan Hrnko bb1b909361 bch (+testnet): Bump backend 0.20.5 -> 0.20.6 2019-11-15 08:53:14 +01:00
Martin Boehm eb4f049912 Fix version in Zcash and Zcash-testnet configs 2019-11-13 13:43:06 +01:00
Mykola bd0848dbbe Return to release tag 2.0.1-1 2019-11-13 11:19:21 +01:00
Mykola ff415ae394 Fix release number 2019-11-13 11:19:21 +01:00
Mykola 42a208be15 zcash (+testnet): Bump backend 2.0.7-3 -> 2.1.0-1 2019-11-13 11:19:21 +01:00
Jan Hrnko 1c929f2a40 eth (+testnet): Bump backend 1.9.6 -> 1.9.7 2019-11-08 08:43:27 +01:00
thebevrishot 21fe8082dd Bump Zcoin to 0.13.8.5 2019-11-06 17:08:12 +01:00
WO f2e4e67c4d Bump Koto backend to 2.1.0 2019-11-06 17:07:37 +01:00
Jan Hrnko bc4b1905f5 bch (+testnet): Bump backend 0.20.4 -> 0.20.5 2019-11-01 17:37:33 +01:00
Martin Boehm 262ca3e2e4 Fix litecoin address parsing issue #254 2019-10-23 14:00:56 +02:00
Jan Hrnko f4501e7e1f bch (+testnet): Bump backend 0.20.2 -> 0.20.4 2019-10-18 21:36:45 +02:00
Min Khang Aung 6645178782 Bump CPUchain backend to 0.18.1 2019-10-17 20:17:28 +02:00
Scotty0448 5d398cc0d7 Bump Ritocoin backend to 2.4.1.0 2019-10-10 15:30:19 +02:00
Martin Boehm 1c192f6d0b Fix invalid BlockHeight for unconfirmed transactions #301 2019-10-09 14:49:06 +02:00
Jan Hrnko 83b1552dfa eth (+testnet): Bump backend 1.9.5 -> 1.9.6 2019-10-03 16:02:51 +02:00
Martin Boehm 4eff57189d Fix ETH address API - some tokens are missing #271 2019-09-30 17:28:10 +02:00
Martin Boehm ac9a721cc6 Format Ethereum addresses with EIP55 checksum 2019-09-30 17:11:17 +02:00
Jan Hrnko d3931953d5 zcash (+testnet): Bump backend 2.0.7-2 -> 2.0.7-3 2019-09-26 12:48:01 +02:00
Martin Boehm 8851c649d5 Fix linting errors 2019-09-23 09:38:48 +02:00
migwi f28c6bcf61 Check unindexed confirmed tx height for decred 2019-09-22 17:31:04 +02:00
vlddm 86a0b5783d Disable wallet functionality for bitcoind 2019-09-22 17:28:09 +02:00
Jan Hrnko 1bc9feb7fe eth (+testnet): Bump backend 1.9.3 -> 1.9.5 2019-09-20 16:59:37 +02:00
代码脸 fe24ec2913 bump Qtum to 0.18.1 (#294) 2019-09-20 11:36:05 +02:00
atomlab 28a8641c8e add decred.conf (#292)
* Update decred.json

change config path to decred.conf

* Create decred.conf

* Create decred_client.conf

* Update decred.json

* Update decred.conf

* Update decred.conf

* Update decred_client.conf
2019-09-20 11:35:26 +02:00
migwi d4a7fcabd9 Check if unindexed confirmed tx height exists 2019-09-18 22:35:53 +02:00
Jan Hrnko 0f39657006 bcash (+testnet): Bump backend 0.20.1 -> 0.20.2 2019-09-18 15:31:39 +02:00
Min Khang Aung 24725a21a9 Add CPUchain support (#288)
* Add CPUchain support

* Update cpuchain.json
2019-09-16 22:32:08 +02:00
TheCreator 12c4217f94 Add Unobtanium (#276)
* Create Unobtanium Configs

* Add Unobtanium

* Add Unobtanium

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Fix Unobtanium xpub_magic

* Fix Server/Client config files

TODO: Maybe remove reindex: 1 from additional params.

* Fix xpub

* Reduce the polling interval

As suggested by martinboehm, copied from viacoin

* Remove GetBlockHeader

Fails Integration tests.
2019-09-15 22:53:51 +02:00
JoHnY 8829cdf525 ethereum (+testnet): Bump backend 1.9.2 -> 1.9.3 (#287) 2019-09-04 18:46:06 +02:00
Jan Hrnko 485887a130 bcash (+testnet): Bump backend 0.20.0 -> 0.20.1 2019-09-04 18:41:18 +02:00
JoHnY 1d1b02388d zcash (+testnet): Bump backend 2.0.7 -> 2.0.7-2 (#285)
* Bump zcash backend to 2.0.7

* zcash (+testnet): Bump backend 2.0.5-2 -> 2.0.7

* zcash (+testnet): Bump backend 2.0.7 -> 2.0.7-2

* zcash (+testnet): Bump backend 2.0.7 -> 2.0.7-2
2019-09-04 12:57:53 +02:00
Enrique 00253004ee Bump Polis v1.4.18 2019-09-04 12:57:13 +02:00
Martin Boehm 9d5793a8e3 Add backend-deploy-and-test CI job for Namecoin 2019-08-30 18:16:39 +02:00
Jan Hrnko 1ee09331c9 nmc: Bump backend 0.16.3 -> 0.18.0 2019-08-30 18:02:11 +02:00