Commit Graph

141 Commits

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
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
vlddm
86a0b5783d Disable wallet functionality for bitcoind 2019-09-22 17:28:09 +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
Min Khang Aung
24725a21a9 Add CPUchain support (#288)
* Add CPUchain support

* Update cpuchain.json
2019-09-16 22:32:08 +02:00
Martin Boehm
094be77ceb Add Bcash specific backend configuration after backend upgrade 2019-08-21 15:33:11 +02:00
Vladyslav Burzakovskyy
20eed82e48 Use "#!/usr/bin/env bash" in shebangs instead of "#!/bin/bash" 2019-06-17 18:30:39 +02:00
Martin Boehm
6447cdb1b7 Switch from TREZOR to Trezor according to new design guidelines #201 2019-06-17 15:39:35 +02:00
Martin Boehm
bbc6ea4cec Sync coin parameters from trezor-firmware monorepo 2019-05-31 13:51:08 +02:00
Martin Boehm
8b07783134 Bump golang to version 1.12.4 and rocskdb to 5.18.3 in docker build 2019-05-27 12:24:24 +02:00
ilmango
68fed56d12 Remove bellcoin-releases.asc 2019-04-23 12:15:07 +02:00
ilmango
3551c90590 Add Bellcoin (#116)
* Add Bellcoin

* Add integration tests

* Add bellcoinparser_test

* Fix testTxPacked

* Add tests files

* Fix indentation

* Fix indentation

* add bellcoin gpg key

* fix binary link

* Fix verification_type

* Fix verification_type

* fix username

* Fix verification
2019-03-04 22:29:30 +01:00
Martin Boehm
dda96b4a8f Merge branch 'xpub' 2019-03-01 11:12:40 +01:00
Gruve_p
16558d23c0 Bump Groestlcoin backend version to 2.17.2 (#128) 2019-02-25 17:34:06 +01:00
WO
6460ca3872 Fix typo 2019-02-13 12:09:40 +01:00
WO
d28a0beab6 Revert Dcokerfile 2019-02-13 12:09:40 +01:00
WO
bee0f8c709 Change OS for docker build 2019-02-13 12:09:40 +01: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
WO
e83511469b Add Koto (#107)
I have constructed blockbook for Koto at the following URL.
https://blockbook.kotocoin.info/
2019-01-23 22:08:28 +01:00
Petr Kracík
024b25dff7 Bump DASH version to 0.13.0.0, replaced DASH GPG key 2019-01-23 15:13:36 +01:00
Martin Boehm
522e6528d3 Merge Fujicoin into indexv4 branch #104 2019-01-16 23:19:08 +01:00
FujiCoin
3cca225c14 Add Fujicoin (#104)
Please add Fujicoin.
2019-01-16 23:06:36 +01:00
Martin Boehm
26f293fc42 Bump golang to version 1.11.4 in docker build 2019-01-03 18:07:30 +01:00
Martin Boehm
44f07734ce Bump rocksdb to version 5.17.2 and use data format version 4 2019-01-03 18:05:06 +01:00
wakiyamap
a80a8f9122 fix build error 2018-11-18 04:53:54 +09:00
Petr Kracík
95d27a7d1d Bump ethereum classic version to 5.5.1 (#80) 2018-10-22 14:06:53 +02:00
Jakub Matys
baff6b5e3c Build makes sure that images are rebuilt after change of docker defs 2018-10-17 13:04:03 +02:00
Jakub Matys
942276ec86 Merge branch 'ci' 2018-10-16 13:02:28 +02:00
Jakub Matys
9f425564ed Gitlab-CI 2018-10-16 13:01:10 +02:00
Martin Boehm
2802bbaeef Merge branch 'rocksdb5.15' 2018-10-16 12:40:09 +02:00
Jakub Matys
f1ed9a5ea7 Fixed bitcoin config 2018-10-16 12:05:12 +02:00
Jakub Matys
98ff42eeaa Ignores dpkg-shlibdeps warnings 2018-10-15 13:49:20 +02:00
Jakub Matys
62f1dfbbea Added Debian source/format files 2018-10-15 13:49:16 +02:00
Jakub Matys
26e3a1bbe6 Text data moved to build directory 2018-10-15 12:59:42 +02:00
Jakub Matys
5d44ff33ff Generates backend server config (with rpcauth) and client config 2018-10-15 12:51:04 +02:00
Jakub Matys
95f6b78b6f Fixed bug of insufficient isolation of build environment 2018-10-15 12:51:04 +02:00
Jakub Matys
3b696d677e Text data (about, URL of TOS) stored in plain text files 2018-10-15 12:51:04 +02:00
Jakub Matys
56302a5d47 Dependencies (vendor) are pre-loaded in build image 2018-10-15 12:51:04 +02:00
Martin Boehm
d369242b48 Bump rocksdb to version 5.15.10 and use data format version 3 2018-10-14 00:29:05 +02:00
Martin Boehm
a16ef2904e Use coin label in the explorer header 2018-10-10 00:23:31 +02:00
Jakub Matys
8937155677 vendor from src is not removed but updated 2018-10-05 15:42:48 +02:00
Jakub Matys
e5c4bf34d7 Remove hand-made backups of vendor before calling dep ensure 2018-10-05 15:32:36 +02:00
Jakub Matys
5ca9c92bbe Added make target test-integration 2018-10-05 14:59:18 +02:00
Jakub Matys
3a37e0f8da Remove git tag from gitcommit field 2018-10-01 16:34:25 +02:00
Jakub Matys
36dca0a14c HOTFIX: make build system working againg 2018-10-01 16:13:59 +02:00
Jakub Matys
f9e5092f82 Merge branch 'v0.0.7' into integration-tests-upgrade 2018-10-01 12:47:42 +02:00
Martin Boehm
699f259e3d Bump Bcash backend to version 0.18.1, change binary verification to gpg
Bcash signers are at Bitcoin-ABC github
in the file contrib/gitian-signing/keys.txt

Download the public key:
gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys <key>

Create asc file from imported key:
gpg --armor --export <email> ><filename>.asc
2018-09-17 15:31:42 +02:00
Jakub Matys
b5d1e5c94e Integration tests are defined declaratively with single implementation 2018-09-11 16:38:39 +02:00
Jakub Matys
78300b998e Added 5min timeout to wait for service to stop 2018-09-06 11:45:13 +02:00