From ac658677717a69fcb71de3f2802ada7cc0a31142 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 11 Nov 2020 11:11:20 +0100 Subject: [PATCH] feat(common): move out blockbook urls to a separate file --- common/defs/bitcoin/actinium.json | 2 - common/defs/bitcoin/axe.json | 2 - common/defs/bitcoin/bcash.json | 8 - common/defs/bitcoin/bcash_testnet.json | 2 - common/defs/bitcoin/bellcoin.json | 5 - common/defs/bitcoin/bgold.json | 8 - common/defs/bitcoin/bgold_testnet.json | 2 - common/defs/bitcoin/bitcoin.json | 8 - common/defs/bitcoin/bitcoin_regtest.json | 2 - common/defs/bitcoin/bitcoin_testnet.json | 5 - common/defs/bitcoin/bitcore.json | 4 - common/defs/bitcoin/bitzeny.json | 7 - common/defs/bitcoin/bprivate.json | 4 - common/defs/bitcoin/brhodium.json | 5 - common/defs/bitcoin/cpuchain.json | 4 - common/defs/bitcoin/crown.json | 6 - common/defs/bitcoin/dash.json | 8 - common/defs/bitcoin/dash_testnet.json | 2 - common/defs/bitcoin/decred.json | 4 - common/defs/bitcoin/decred_testnet.json | 4 - common/defs/bitcoin/digibyte.json | 5 - common/defs/bitcoin/dogecoin.json | 8 - common/defs/bitcoin/elements.json | 2 - common/defs/bitcoin/feathercoin.json | 4 - common/defs/bitcoin/florincoin.json | 4 - common/defs/bitcoin/fujicoin.json | 4 - common/defs/bitcoin/gamecredits.json | 4 - common/defs/bitcoin/groestlcoin.json | 7 - common/defs/bitcoin/groestlcoin_testnet.json | 6 - common/defs/bitcoin/hatch.json | 2 - common/defs/bitcoin/hatch_testnet.json | 2 - common/defs/bitcoin/komodo.json | 4 - common/defs/bitcoin/koto.json | 6 - common/defs/bitcoin/litecoin.json | 8 - common/defs/bitcoin/litecoin_testnet.json | 4 - common/defs/bitcoin/monacoin.json | 7 - common/defs/bitcoin/monetaryunit.json | 4 - common/defs/bitcoin/namecoin.json | 5 - common/defs/bitcoin/nix.json | 4 - common/defs/bitcoin/particl.json | 2 - common/defs/bitcoin/particl_testnet.json | 2 - common/defs/bitcoin/peercoin.json | 4 - common/defs/bitcoin/peercoin_testnet.json | 4 - common/defs/bitcoin/polis.json | 4 - common/defs/bitcoin/primecoin.json | 2 - common/defs/bitcoin/qtum.json | 2 - common/defs/bitcoin/qtum_testnet.json | 2 - common/defs/bitcoin/ravencoin.json | 6 - common/defs/bitcoin/ritocoin.json | 6 - common/defs/bitcoin/smartcash.json | 4 - common/defs/bitcoin/smartcash_testnet.json | 2 - common/defs/bitcoin/stakenet.json | 2 - common/defs/bitcoin/syscoin.json | 4 - common/defs/bitcoin/terracoin.json | 4 - common/defs/bitcoin/unobtanium.json | 5 - common/defs/bitcoin/verge.json | 2 - common/defs/bitcoin/vertcoin.json | 8 - common/defs/bitcoin/viacoin.json | 4 - common/defs/bitcoin/vipstarcoin.json | 6 - common/defs/bitcoin/zcash.json | 8 - common/defs/bitcoin/zcash_testnet.json | 4 - common/defs/bitcoin/zcoin.json | 4 - common/defs/bitcoin/zcoin_testnet.json | 2 - common/defs/bitcoin/zcore.json | 4 - common/defs/blockchain_link.json | 273 +++++++++++++++++++ common/defs/misc/misc.json | 48 +--- common/tools/coin_info.py | 26 +- 67 files changed, 301 insertions(+), 325 deletions(-) create mode 100644 common/defs/blockchain_link.json diff --git a/common/defs/bitcoin/actinium.json b/common/defs/bitcoin/actinium.json index 60c636781..adaa0c72e 100644 --- a/common/defs/bitcoin/actinium.json +++ b/common/defs/bitcoin/actinium.json @@ -32,8 +32,6 @@ "uri_prefix": "actinium", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/axe.json b/common/defs/bitcoin/axe.json index cca234036..ba7e4ed69 100644 --- a/common/defs/bitcoin/axe.json +++ b/common/defs/bitcoin/axe.json @@ -32,8 +32,6 @@ "uri_prefix": "axe", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bcash.json b/common/defs/bitcoin/bcash.json index 45d250900..4c2af703e 100644 --- a/common/defs/bitcoin/bcash.json +++ b/common/defs/bitcoin/bcash.json @@ -35,14 +35,6 @@ "uri_prefix": "bitcoincash", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://bch1.trezor.io", - "https://bch2.trezor.io", - "https://bch3.trezor.io", - "https://bch4.trezor.io", - "https://bch5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bcash_testnet.json b/common/defs/bitcoin/bcash_testnet.json index cc2931ddd..c7d763c37 100644 --- a/common/defs/bitcoin/bcash_testnet.json +++ b/common/defs/bitcoin/bcash_testnet.json @@ -32,8 +32,6 @@ "uri_prefix": "bitcoincash", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bellcoin.json b/common/defs/bitcoin/bellcoin.json index d84ec7b0b..6b5b27ee8 100644 --- a/common/defs/bitcoin/bellcoin.json +++ b/common/defs/bitcoin/bellcoin.json @@ -32,11 +32,6 @@ "uri_prefix": "bellcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://bellcoin-blockbook.ilmango.work", - "https://bell.blockbook.ovh" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bgold.json b/common/defs/bitcoin/bgold.json index 1eb6817da..fd5e6f75a 100644 --- a/common/defs/bitcoin/bgold.json +++ b/common/defs/bitcoin/bgold.json @@ -35,14 +35,6 @@ "uri_prefix": "bitcoingold", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://btg1.trezor.io", - "https://btg2.trezor.io", - "https://btg3.trezor.io", - "https://btg4.trezor.io", - "https://btg5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bgold_testnet.json b/common/defs/bitcoin/bgold_testnet.json index a89907df2..aba7665e0 100644 --- a/common/defs/bitcoin/bgold_testnet.json +++ b/common/defs/bitcoin/bgold_testnet.json @@ -35,8 +35,6 @@ "uri_prefix": "bitcoingold", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bitcoin.json b/common/defs/bitcoin/bitcoin.json index 53239270d..c33d70a49 100644 --- a/common/defs/bitcoin/bitcoin.json +++ b/common/defs/bitcoin/bitcoin.json @@ -35,14 +35,6 @@ "uri_prefix": "bitcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://btc1.trezor.io", - "https://btc2.trezor.io", - "https://btc3.trezor.io", - "https://btc4.trezor.io", - "https://btc5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bitcoin_regtest.json b/common/defs/bitcoin/bitcoin_regtest.json index 9f29818b6..c722682a5 100644 --- a/common/defs/bitcoin/bitcoin_regtest.json +++ b/common/defs/bitcoin/bitcoin_regtest.json @@ -32,8 +32,6 @@ "uri_prefix": "bitcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bitcoin_testnet.json b/common/defs/bitcoin/bitcoin_testnet.json index 5faa6b477..f719ed9bb 100644 --- a/common/defs/bitcoin/bitcoin_testnet.json +++ b/common/defs/bitcoin/bitcoin_testnet.json @@ -32,11 +32,6 @@ "uri_prefix": "bitcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://tbtc1.trezor.io", - "https://tbtc2.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bitcore.json b/common/defs/bitcoin/bitcore.json index 2a721dfe5..d23617f7a 100644 --- a/common/defs/bitcoin/bitcore.json +++ b/common/defs/bitcoin/bitcore.json @@ -32,10 +32,6 @@ "uri_prefix": "bitcore", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.bitcore.cc" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bitzeny.json b/common/defs/bitcoin/bitzeny.json index b64f75fa5..5d74f40ac 100644 --- a/common/defs/bitcoin/bitzeny.json +++ b/common/defs/bitcoin/bitzeny.json @@ -32,13 +32,6 @@ "uri_prefix": "bitzeny", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.bitzeny.jp", - "https://zeny.insight.monaco-ex.org" - ], - "blockbook": [ - "https://zny.blockbook.ovh" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/bprivate.json b/common/defs/bitcoin/bprivate.json index b3fd5e118..574395498 100644 --- a/common/defs/bitcoin/bprivate.json +++ b/common/defs/bitcoin/bprivate.json @@ -32,10 +32,6 @@ "uri_prefix": "bitcoinprivate", "min_address_length": 35, "max_address_length": 95, - "bitcore": [ - "https://explorer.btcprivate.org" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/brhodium.json b/common/defs/bitcoin/brhodium.json index 0c8676fea..d82d3aa81 100644 --- a/common/defs/bitcoin/brhodium.json +++ b/common/defs/bitcoin/brhodium.json @@ -35,11 +35,6 @@ "uri_prefix": "bitcoin-rhodium", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook1.bitcoinrh.org", - "https://blockbook2.bitcoinrh.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/cpuchain.json b/common/defs/bitcoin/cpuchain.json index 03bc4b871..0bd2644e3 100644 --- a/common/defs/bitcoin/cpuchain.json +++ b/common/defs/bitcoin/cpuchain.json @@ -32,10 +32,6 @@ "uri_prefix": "cpuchain", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.cpuchain.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/crown.json b/common/defs/bitcoin/crown.json index 2e6205423..678b86bf6 100644 --- a/common/defs/bitcoin/crown.json +++ b/common/defs/bitcoin/crown.json @@ -32,12 +32,6 @@ "uri_prefix": "crown", "min_address_length": 36, "max_address_length": 40, - "bitcore": [ - "https://insight-01.crownplatform.com", - "https://insight-02.crownplatform.com", - "https://insight-03.crownplatform.com" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/dash.json b/common/defs/bitcoin/dash.json index e7f17eb7c..81effc6e6 100644 --- a/common/defs/bitcoin/dash.json +++ b/common/defs/bitcoin/dash.json @@ -32,14 +32,6 @@ "uri_prefix": "dash", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://dash1.trezor.io", - "https://dash2.trezor.io", - "https://dash3.trezor.io", - "https://dash4.trezor.io", - "https://dash5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/dash_testnet.json b/common/defs/bitcoin/dash_testnet.json index 2a7b5b009..a4c1a2fed 100644 --- a/common/defs/bitcoin/dash_testnet.json +++ b/common/defs/bitcoin/dash_testnet.json @@ -32,8 +32,6 @@ "uri_prefix": "dash", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/decred.json b/common/defs/bitcoin/decred.json index 71930d37f..7553a3916 100644 --- a/common/defs/bitcoin/decred.json +++ b/common/defs/bitcoin/decred.json @@ -32,10 +32,6 @@ "uri_prefix": "bitcoin", "min_address_length": 35, "max_address_length": 35, - "bitcore": [ - "https://mainnet.decred.org" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/decred_testnet.json b/common/defs/bitcoin/decred_testnet.json index 54aa6c814..42fe10a79 100644 --- a/common/defs/bitcoin/decred_testnet.json +++ b/common/defs/bitcoin/decred_testnet.json @@ -32,10 +32,6 @@ "uri_prefix": "bitcoin", "min_address_length": 35, "max_address_length": 35, - "bitcore": [ - "https://testnet.decred.org" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/digibyte.json b/common/defs/bitcoin/digibyte.json index 273108ab9..59393af54 100644 --- a/common/defs/bitcoin/digibyte.json +++ b/common/defs/bitcoin/digibyte.json @@ -35,11 +35,6 @@ "uri_prefix": "digibyte", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://dgb1.trezor.io", - "https://dgb2.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/dogecoin.json b/common/defs/bitcoin/dogecoin.json index 5731b9f78..40bc3ea14 100644 --- a/common/defs/bitcoin/dogecoin.json +++ b/common/defs/bitcoin/dogecoin.json @@ -32,14 +32,6 @@ "uri_prefix": "dogecoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://doge1.trezor.io", - "https://doge2.trezor.io", - "https://doge3.trezor.io", - "https://doge4.trezor.io", - "https://doge5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/elements.json b/common/defs/bitcoin/elements.json index df1b85851..3589a24aa 100644 --- a/common/defs/bitcoin/elements.json +++ b/common/defs/bitcoin/elements.json @@ -32,8 +32,6 @@ "uri_prefix": "elements", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/feathercoin.json b/common/defs/bitcoin/feathercoin.json index ef9eaf1ec..9fd3daf65 100644 --- a/common/defs/bitcoin/feathercoin.json +++ b/common/defs/bitcoin/feathercoin.json @@ -32,10 +32,6 @@ "uri_prefix": "feathercoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://bitcore.feathercoin.com" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/florincoin.json b/common/defs/bitcoin/florincoin.json index fcd4053ba..047dda787 100644 --- a/common/defs/bitcoin/florincoin.json +++ b/common/defs/bitcoin/florincoin.json @@ -32,10 +32,6 @@ "uri_prefix": "florincoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://livenet.flocha.in" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/fujicoin.json b/common/defs/bitcoin/fujicoin.json index 8fa6be380..16b253206 100644 --- a/common/defs/bitcoin/fujicoin.json +++ b/common/defs/bitcoin/fujicoin.json @@ -35,10 +35,6 @@ "uri_prefix": "fujicoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://explorer.fujicoin.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/gamecredits.json b/common/defs/bitcoin/gamecredits.json index 818e657f7..131a62e7f 100644 --- a/common/defs/bitcoin/gamecredits.json +++ b/common/defs/bitcoin/gamecredits.json @@ -32,10 +32,6 @@ "uri_prefix": "gamecredits", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.gamecredits.network" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/groestlcoin.json b/common/defs/bitcoin/groestlcoin.json index 6195cf0fc..8d4ad0109 100644 --- a/common/defs/bitcoin/groestlcoin.json +++ b/common/defs/bitcoin/groestlcoin.json @@ -32,13 +32,6 @@ "uri_prefix": "groestlcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://groestlsight.groestlcoin.org", - "https://grsblocks.com" - ], - "blockbook": [ - "https://blockbook.groestlcoin.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/groestlcoin_testnet.json b/common/defs/bitcoin/groestlcoin_testnet.json index 92e19afb3..b11f674f2 100644 --- a/common/defs/bitcoin/groestlcoin_testnet.json +++ b/common/defs/bitcoin/groestlcoin_testnet.json @@ -32,12 +32,6 @@ "uri_prefix": "groestlcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://groestlsight-test.groestlcoin.org" - ], - "blockbook": [ - "https://blockbook-test.groestlcoin.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/hatch.json b/common/defs/bitcoin/hatch.json index ef6f9787d..3ddb92c31 100644 --- a/common/defs/bitcoin/hatch.json +++ b/common/defs/bitcoin/hatch.json @@ -32,8 +32,6 @@ "uri_prefix": "hatch", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/hatch_testnet.json b/common/defs/bitcoin/hatch_testnet.json index 3877a0b42..a9e437102 100644 --- a/common/defs/bitcoin/hatch_testnet.json +++ b/common/defs/bitcoin/hatch_testnet.json @@ -32,8 +32,6 @@ "uri_prefix": "hatch", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/komodo.json b/common/defs/bitcoin/komodo.json index 2a2d4e3bc..caec307ab 100644 --- a/common/defs/bitcoin/komodo.json +++ b/common/defs/bitcoin/komodo.json @@ -32,10 +32,6 @@ "uri_prefix": "komodo", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://api.kmd.dev" - ], - "blockbook": [], "negative_fee": true, "cooldown": 100, "consensus_branch_id": { diff --git a/common/defs/bitcoin/koto.json b/common/defs/bitcoin/koto.json index 2f75c734b..9011b8650 100644 --- a/common/defs/bitcoin/koto.json +++ b/common/defs/bitcoin/koto.json @@ -32,12 +32,6 @@ "uri_prefix": "koto", "min_address_length": 35, "max_address_length": 95, - "bitcore": [ - "https://insight.kotocoin.info" - ], - "blockbook": [ - "https://blockbook.kotocoin.info" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": { diff --git a/common/defs/bitcoin/litecoin.json b/common/defs/bitcoin/litecoin.json index 999b6fa2c..85c17fb35 100644 --- a/common/defs/bitcoin/litecoin.json +++ b/common/defs/bitcoin/litecoin.json @@ -32,14 +32,6 @@ "uri_prefix": "litecoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://ltc1.trezor.io", - "https://ltc2.trezor.io", - "https://ltc3.trezor.io", - "https://ltc4.trezor.io", - "https://ltc5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/litecoin_testnet.json b/common/defs/bitcoin/litecoin_testnet.json index 2f03f6522..c09e14411 100644 --- a/common/defs/bitcoin/litecoin_testnet.json +++ b/common/defs/bitcoin/litecoin_testnet.json @@ -32,10 +32,6 @@ "uri_prefix": "litecoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://testnet.litecore.io" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/monacoin.json b/common/defs/bitcoin/monacoin.json index 31d2f5fd8..2e1a2d2ea 100644 --- a/common/defs/bitcoin/monacoin.json +++ b/common/defs/bitcoin/monacoin.json @@ -32,13 +32,6 @@ "uri_prefix": "monacoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://mona.chainsight.info", - "https://insight.electrum-mona.org" - ], - "blockbook": [ - "https://blockbook.electrum-mona.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/monetaryunit.json b/common/defs/bitcoin/monetaryunit.json index f85dd8b7f..4a32ebf01 100644 --- a/common/defs/bitcoin/monetaryunit.json +++ b/common/defs/bitcoin/monetaryunit.json @@ -32,10 +32,6 @@ "uri_prefix": "monetaryunit", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.monetaryunit.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/namecoin.json b/common/defs/bitcoin/namecoin.json index 9c7b15aa7..a7a5a42e5 100644 --- a/common/defs/bitcoin/namecoin.json +++ b/common/defs/bitcoin/namecoin.json @@ -32,11 +32,6 @@ "uri_prefix": "namecoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://nmc1.trezor.io", - "https://nmc2.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/nix.json b/common/defs/bitcoin/nix.json index 7941ed432..f49163230 100644 --- a/common/defs/bitcoin/nix.json +++ b/common/defs/bitcoin/nix.json @@ -32,10 +32,6 @@ "uri_prefix": "nix", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://blockchain.nixplatform.io" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/particl.json b/common/defs/bitcoin/particl.json index 375c59584..586ad0932 100644 --- a/common/defs/bitcoin/particl.json +++ b/common/defs/bitcoin/particl.json @@ -35,8 +35,6 @@ "uri_prefix": "particl", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/particl_testnet.json b/common/defs/bitcoin/particl_testnet.json index 8297f99c7..631775ac2 100644 --- a/common/defs/bitcoin/particl_testnet.json +++ b/common/defs/bitcoin/particl_testnet.json @@ -32,8 +32,6 @@ "uri_prefix": "particl", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/peercoin.json b/common/defs/bitcoin/peercoin.json index f9d6a0e2c..d412b1f0b 100644 --- a/common/defs/bitcoin/peercoin.json +++ b/common/defs/bitcoin/peercoin.json @@ -32,10 +32,6 @@ "uri_prefix": "peercoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.peercoin.net" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/peercoin_testnet.json b/common/defs/bitcoin/peercoin_testnet.json index 98b88c6f1..82aa0f579 100644 --- a/common/defs/bitcoin/peercoin_testnet.json +++ b/common/defs/bitcoin/peercoin_testnet.json @@ -32,10 +32,6 @@ "uri_prefix": "peercoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://tblockbook.peercoin.net" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/polis.json b/common/defs/bitcoin/polis.json index 86a8bd4c7..493df2913 100644 --- a/common/defs/bitcoin/polis.json +++ b/common/defs/bitcoin/polis.json @@ -32,10 +32,6 @@ "uri_prefix": "polis", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.polispay.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/primecoin.json b/common/defs/bitcoin/primecoin.json index 771becb3d..13c373754 100644 --- a/common/defs/bitcoin/primecoin.json +++ b/common/defs/bitcoin/primecoin.json @@ -32,8 +32,6 @@ "uri_prefix": "primecoin", "min_address_length": 26, "max_address_length": 35, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/qtum.json b/common/defs/bitcoin/qtum.json index 38ac606af..ac66c14e9 100644 --- a/common/defs/bitcoin/qtum.json +++ b/common/defs/bitcoin/qtum.json @@ -35,8 +35,6 @@ "uri_prefix": "qtum", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/qtum_testnet.json b/common/defs/bitcoin/qtum_testnet.json index 777197203..207a0f5f5 100644 --- a/common/defs/bitcoin/qtum_testnet.json +++ b/common/defs/bitcoin/qtum_testnet.json @@ -35,8 +35,6 @@ "uri_prefix": "qtum", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/ravencoin.json b/common/defs/bitcoin/ravencoin.json index ef42995be..cf4e3116f 100644 --- a/common/defs/bitcoin/ravencoin.json +++ b/common/defs/bitcoin/ravencoin.json @@ -32,12 +32,6 @@ "uri_prefix": "raven", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://ravencoin.network" - ], - "blockbook": [ - "https://blockbook.ravencoin.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/ritocoin.json b/common/defs/bitcoin/ritocoin.json index 517b62f71..eb88d8849 100644 --- a/common/defs/bitcoin/ritocoin.json +++ b/common/defs/bitcoin/ritocoin.json @@ -32,12 +32,6 @@ "uri_prefix": "rito", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.ritocoin.org" - ], - "blockbook": [ - "https://blockbook.ritocoin.org" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/smartcash.json b/common/defs/bitcoin/smartcash.json index 28a024095..03ac53fb6 100644 --- a/common/defs/bitcoin/smartcash.json +++ b/common/defs/bitcoin/smartcash.json @@ -35,10 +35,6 @@ "uri_prefix": "smart", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.smartcash.cc" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/smartcash_testnet.json b/common/defs/bitcoin/smartcash_testnet.json index d26b4208e..fc173def8 100644 --- a/common/defs/bitcoin/smartcash_testnet.json +++ b/common/defs/bitcoin/smartcash_testnet.json @@ -35,8 +35,6 @@ "uri_prefix": "testsmart", "min_address_length": 27, "max_address_length": 35, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/stakenet.json b/common/defs/bitcoin/stakenet.json index d0ca805c3..aa0750b85 100644 --- a/common/defs/bitcoin/stakenet.json +++ b/common/defs/bitcoin/stakenet.json @@ -35,8 +35,6 @@ "uri_prefix": "stakenet", "min_address_length": 27, "max_address_length": 47, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/syscoin.json b/common/defs/bitcoin/syscoin.json index a610dfbdc..6c8dafcbf 100644 --- a/common/defs/bitcoin/syscoin.json +++ b/common/defs/bitcoin/syscoin.json @@ -35,10 +35,6 @@ "uri_prefix": "syscoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://sys1.bcfn.ca" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/terracoin.json b/common/defs/bitcoin/terracoin.json index 80b76e641..30960673b 100644 --- a/common/defs/bitcoin/terracoin.json +++ b/common/defs/bitcoin/terracoin.json @@ -32,10 +32,6 @@ "uri_prefix": "terracoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.terracoin.io" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/unobtanium.json b/common/defs/bitcoin/unobtanium.json index 6f8397a1e..7e0677a7b 100644 --- a/common/defs/bitcoin/unobtanium.json +++ b/common/defs/bitcoin/unobtanium.json @@ -35,11 +35,6 @@ "uri_prefix": "unobtanium", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://blockbook.flurbo.xyz", - "https://blockbook.unobtanium.uno" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/verge.json b/common/defs/bitcoin/verge.json index 87d870929..ff6606101 100644 --- a/common/defs/bitcoin/verge.json +++ b/common/defs/bitcoin/verge.json @@ -32,8 +32,6 @@ "uri_prefix": "verge", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/vertcoin.json b/common/defs/bitcoin/vertcoin.json index 6e91bd194..541cac20d 100644 --- a/common/defs/bitcoin/vertcoin.json +++ b/common/defs/bitcoin/vertcoin.json @@ -32,14 +32,6 @@ "uri_prefix": "vertcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [], - "blockbook": [ - "https://vtc1.trezor.io", - "https://vtc2.trezor.io", - "https://vtc3.trezor.io", - "https://vtc4.trezor.io", - "https://vtc5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/viacoin.json b/common/defs/bitcoin/viacoin.json index 0fbd2e35f..3a5a4bc0c 100644 --- a/common/defs/bitcoin/viacoin.json +++ b/common/defs/bitcoin/viacoin.json @@ -35,10 +35,6 @@ "uri_prefix": "viacoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://explorer.viacoin.org" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/vipstarcoin.json b/common/defs/bitcoin/vipstarcoin.json index 9bcdc0572..019947feb 100644 --- a/common/defs/bitcoin/vipstarcoin.json +++ b/common/defs/bitcoin/vipstarcoin.json @@ -35,12 +35,6 @@ "uri_prefix": "vipstarcoin", "min_address_length": 27, "max_address_length": 36, - "bitcore": [ - "https://insight.vipstarco.in" - ], - "blockbook": [ - "https://vips.blockbook.japanesecoin-pool.work" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/zcash.json b/common/defs/bitcoin/zcash.json index 17738101a..15be1acdf 100644 --- a/common/defs/bitcoin/zcash.json +++ b/common/defs/bitcoin/zcash.json @@ -32,14 +32,6 @@ "uri_prefix": "zcash", "min_address_length": 35, "max_address_length": 95, - "bitcore": [], - "blockbook": [ - "https://zec1.trezor.io", - "https://zec2.trezor.io", - "https://zec3.trezor.io", - "https://zec4.trezor.io", - "https://zec5.trezor.io" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": { diff --git a/common/defs/bitcoin/zcash_testnet.json b/common/defs/bitcoin/zcash_testnet.json index 98cdc9f95..9a5bccf2c 100644 --- a/common/defs/bitcoin/zcash_testnet.json +++ b/common/defs/bitcoin/zcash_testnet.json @@ -32,10 +32,6 @@ "uri_prefix": "zcash", "min_address_length": 35, "max_address_length": 95, - "bitcore": [ - "https://explorer.testnet.z.cash" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": { diff --git a/common/defs/bitcoin/zcoin.json b/common/defs/bitcoin/zcoin.json index 79ce39aca..39f4b64f6 100644 --- a/common/defs/bitcoin/zcoin.json +++ b/common/defs/bitcoin/zcoin.json @@ -35,10 +35,6 @@ "uri_prefix": "zcoin", "min_address_length": 27, "max_address_length": 34, - "bitcore": [ - "https://insight.zcoin.io" - ], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/zcoin_testnet.json b/common/defs/bitcoin/zcoin_testnet.json index 2848eb011..2581fd606 100644 --- a/common/defs/bitcoin/zcoin_testnet.json +++ b/common/defs/bitcoin/zcoin_testnet.json @@ -35,8 +35,6 @@ "uri_prefix": "testzcoin", "min_address_length": 27, "max_address_length": 35, - "bitcore": [], - "blockbook": [], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/bitcoin/zcore.json b/common/defs/bitcoin/zcore.json index 862ca4ca4..018a852d8 100644 --- a/common/defs/bitcoin/zcore.json +++ b/common/defs/bitcoin/zcore.json @@ -32,10 +32,6 @@ "uri_prefix": "zcore", "min_address_length": 34, "max_address_length": 95, - "bitcore": [], - "blockbook": [ - "https://blockbook.zcore.cash" - ], "negative_fee": false, "cooldown": 100, "consensus_branch_id": null, diff --git a/common/defs/blockchain_link.json b/common/defs/blockchain_link.json new file mode 100644 index 000000000..318a4aa77 --- /dev/null +++ b/common/defs/blockchain_link.json @@ -0,0 +1,273 @@ +{ + "bitcoin:BCH": { + "type": "blockbook", + "url": [ + "https://bch1.trezor.io", + "https://bch2.trezor.io", + "https://bch3.trezor.io", + "https://bch4.trezor.io", + "https://bch5.trezor.io" + ] + }, + "bitcoin:BELL": { + "type": "blockbook", + "url": [ + "https://bellcoin-blockbook.ilmango.work", + "https://bell.blockbook.ovh" + ] + }, + "bitcoin:BTC": { + "type": "blockbook", + "url": [ + "https://btc1.trezor.io", + "https://btc2.trezor.io", + "https://btc3.trezor.io", + "https://btc4.trezor.io", + "https://btc5.trezor.io" + ] + }, + "bitcoin:BTG": { + "type": "blockbook", + "url": [ + "https://btg1.trezor.io", + "https://btg2.trezor.io", + "https://btg3.trezor.io", + "https://btg4.trezor.io", + "https://btg5.trezor.io" + ] + }, + "bitcoin:CPU": { + "type": "blockbook", + "url": [ + "https://blockbook.cpuchain.org" + ] + }, + "bitcoin:DASH": { + "type": "blockbook", + "url": [ + "https://dash1.trezor.io", + "https://dash2.trezor.io", + "https://dash3.trezor.io", + "https://dash4.trezor.io", + "https://dash5.trezor.io" + ] + }, + "bitcoin:DGB": { + "type": "blockbook", + "url": [ + "https://dgb1.trezor.io", + "https://dgb2.trezor.io" + ] + }, + "bitcoin:DOGE": { + "type": "blockbook", + "url": [ + "https://doge1.trezor.io", + "https://doge2.trezor.io", + "https://doge3.trezor.io", + "https://doge4.trezor.io", + "https://doge5.trezor.io" + ] + }, + "bitcoin:FJC": { + "type": "blockbook", + "url": [ + "https://explorer.fujicoin.org" + ] + }, + "bitcoin:GAME": { + "type": "blockbook", + "url": [ + "https://blockbook.gamecredits.network" + ] + }, + "bitcoin:GRS": { + "type": "blockbook", + "url": [ + "https://blockbook.groestlcoin.org" + ] + }, + "bitcoin:KOTO": { + "type": "blockbook", + "url": [ + "https://blockbook.kotocoin.info" + ] + }, + "bitcoin:LTC": { + "type": "blockbook", + "url": [ + "https://ltc1.trezor.io", + "https://ltc2.trezor.io", + "https://ltc3.trezor.io", + "https://ltc4.trezor.io", + "https://ltc5.trezor.io" + ] + }, + "bitcoin:MONA": { + "type": "blockbook", + "url": [ + "https://blockbook.electrum-mona.org" + ] + }, + "bitcoin:MUE": { + "type": "blockbook", + "url": [ + "https://blockbook.monetaryunit.org" + ] + }, + "bitcoin:NMC": { + "type": "blockbook", + "url": [ + "https://nmc1.trezor.io", + "https://nmc2.trezor.io" + ] + }, + "bitcoin:PIVX": { + "type": "blockbook", + "url": [ + "https://blockbook.pivx.link" + ] + }, + "bitcoin:POLIS": { + "type": "blockbook", + "url": [ + "https://blockbook.polispay.org" + ] + }, + "bitcoin:PPC": { + "type": "blockbook", + "url": [ + "https://blockbook.peercoin.net" + ] + }, + "bitcoin:RITO": { + "type": "blockbook", + "url": [ + "https://blockbook.ritocoin.org" + ] + }, + "bitcoin:RVN": { + "type": "blockbook", + "url": [ + "https://blockbook.ravencoin.org" + ] + }, + "bitcoin:SYS": { + "type": "blockbook", + "url": [ + "https://sys1.bcfn.ca" + ] + }, + "bitcoin:TEST": { + "type": "blockbook", + "url": [ + "https://tbtc1.trezor.io", + "https://tbtc2.trezor.io" + ] + }, + "bitcoin:UNO": { + "type": "blockbook", + "url": [ + "https://blockbook.flurbo.xyz", + "https://blockbook.unobtanium.uno" + ] + }, + "bitcoin:VIPS": { + "type": "blockbook", + "url": [ + "https://vips.blockbook.japanesecoin-pool.work" + ] + }, + "bitcoin:VTC": { + "type": "blockbook", + "url": [ + "https://vtc1.trezor.io", + "https://vtc2.trezor.io", + "https://vtc3.trezor.io", + "https://vtc4.trezor.io", + "https://vtc5.trezor.io" + ] + }, + "bitcoin:XRC": { + "type": "blockbook", + "url": [ + "https://blockbook1.bitcoinrh.org", + "https://blockbook2.bitcoinrh.org" + ] + }, + "bitcoin:ZCR": { + "type": "blockbook", + "url": [ + "https://blockbook.zcore.cash" + ] + }, + "bitcoin:ZEC": { + "type": "blockbook", + "url": [ + "https://zec1.trezor.io", + "https://zec2.trezor.io", + "https://zec3.trezor.io", + "https://zec4.trezor.io", + "https://zec5.trezor.io" + ] + }, + "bitcoin:ZNY": { + "type": "blockbook", + "url": [ + "https://zny.blockbook.ovh" + ] + }, + "bitcoin:tGRS": { + "type": "blockbook", + "url": [ + "https://blockbook-test.groestlcoin.org" + ] + }, + "bitcoin:tPIVX": { + "type": "blockbook", + "url": [ + "https://blockbook-testnet.pivx.link" + ] + }, + "bitcoin:tPPC": { + "type": "blockbook", + "url": [ + "https://tblockbook.peercoin.net" + ] + }, + "eth:ETC": { + "type": "blockbook", + "url": [ + "https://etc1.trezor.io", + "https://etc2.trezor.io" + ] + }, + "eth:ETH": { + "type": "blockbook", + "url": [ + "https://eth1.trezor.io", + "https://eth2.trezor.io" + ] + }, + "eth:ROP": { + "type": "blockbook", + "url": [ + "https://ropsten1.trezor.io", + "https://ropsten2.trezor.io" + ] + }, + "misc:XRP": { + "type": "ripple", + "url": [ + "wss://s1.ripple.com", + "wss://s-east.ripple.com", + "wss://s-west.ripple.com" + ] + }, + "misc:tXRP": { + "type": "ripple", + "url": [ + "wss://s.altnet.rippletest.net" + ] + } +} diff --git a/common/defs/misc/misc.json b/common/defs/misc/misc.json index 25638b569..499a91b76 100644 --- a/common/defs/misc/misc.json +++ b/common/defs/misc/misc.json @@ -11,8 +11,7 @@ }, "wallet": { "Liskish Wallet": "https://github.com/hirishh/liskish-wallet/releases" - }, - "blockchain_link": null + } }, { "name": "Stellar", @@ -27,8 +26,7 @@ "wallet": { "Account Viewer": "https://accountviewer.stellar.org/", "Exodus": "https://www.exodus.io" - }, - "blockchain_link": null + } }, { "name": "Monero", @@ -42,8 +40,7 @@ }, "wallet": { "Monero CLI/GUI": "https://www.getmonero.org/downloads/" - }, - "blockchain_link": null + } }, { "name": "Ripple", @@ -59,14 +56,6 @@ "Trezor Beta": "https://suite.trezor.io", "Exodus": "https://www.exodus.io", "Magnum": "https://magnumwallet.co" - }, - "blockchain_link": { - "type": "ripple", - "url": [ - "wss://s1.ripple.com", - "wss://s-east.ripple.com", - "wss://s-west.ripple.com" - ] } }, { @@ -81,10 +70,6 @@ }, "wallet": { "Trezor Suite": "https://suite.trezor.io" - }, - "blockchain_link": { - "type": "ripple", - "url": ["wss://s.altnet.rippletest.net"] } }, { @@ -100,8 +85,7 @@ "wallet": { "AdaLite": "https://adalite.io/app", "Yoroi": "https://yoroi-wallet.com" - }, - "blockchain_link": null + } }, { "name": "Tezos", @@ -116,8 +100,7 @@ "wallet": { "SimpleStaking": "https://simplestaking.com", "Magnum": "https://magnumwallet.co" - }, - "blockchain_link": null + } }, { "name": "Ontology", @@ -129,8 +112,7 @@ "Homepage": "https://ont.io", "Github": "https://github.com/ontio/ontology" }, - "wallet": {}, - "blockchain_link": null + "wallet": {} }, { "name": "Wanchain", @@ -144,8 +126,7 @@ }, "wallet": { "Wanchain Wallet": "https://www.wanchain.org/getstarted/" - }, - "blockchain_link": null + } }, { "name": "EOS", @@ -159,8 +140,7 @@ }, "wallet": { "Bloks.io": "https://bloks.io/wallet" - }, - "blockchain_link": null + } }, { "name": "Omni", @@ -172,8 +152,7 @@ "Homepage": "https://www.omnilayer.org", "Github": "https://github.com/OmniLayer" }, - "wallet": {}, - "blockchain_link": null + "wallet": {} }, { "name": "MaidSafeCoin", @@ -185,8 +164,7 @@ "Homepage": "https://maidsafe.net", "Github": "https://github.com/maidsafe" }, - "wallet": {}, - "blockchain_link": null + "wallet": {} }, { "name": "Binance Chain", @@ -199,8 +177,7 @@ }, "wallet": { "Binance Wallet": "https://binance.org/unlock" - }, - "blockchain_link": null + } }, { "name": "Tether", @@ -211,7 +188,6 @@ "links": { "Homepage": "https://tether.to" }, - "wallet": {}, - "blockchain_link": null + "wallet": {} } ] diff --git a/common/tools/coin_info.py b/common/tools/coin_info.py index 095ebabb0..3d2c8cd39 100755 --- a/common/tools/coin_info.py +++ b/common/tools/coin_info.py @@ -147,8 +147,6 @@ BTC_CHECKS = [ check_key("max_address_length", int), check_key("bech32_prefix", str, regex=r"^[a-z-\.\+]+$", nullable=True), check_key("cashaddr_prefix", str, regex=r"^[a-z-\.\+]+$", nullable=True), - check_key("bitcore", list, empty=True), - check_key("blockbook", list, empty=True), ] @@ -199,13 +197,6 @@ def validate_btc(coin): "xpub_magic_segwit_p2sh must not be defined for segwit-disabled coin" ) - for bc in coin["bitcore"] + coin["blockbook"]: - if not bc.startswith("https://"): - errors.append("make sure URLs start with https://") - - if bc.endswith("/"): - errors.append("make sure URLs don't end with '/'") - return errors @@ -527,6 +518,19 @@ def deduplicate_keys(all_coins): coin["dup_key_nontoken"] = True +def fill_blockchain_links(all_coins): + blockchain_links = load_json("blockchain_link.json") + for coins in all_coins.values(): + for coin in coins: + link = blockchain_links.get(coin["key"]) + coin["blockchain_link"] = link + if link and link["type"] == "blockbook": + coin["blockbook"] = link["url"] + else: + coin["blockbook"] = [] + + + def _btc_sort_key(coin): if coin["name"] in ("Bitcoin", "Testnet", "Regtest"): return "000000" + coin["name"] @@ -550,9 +554,11 @@ def collect_coin_info(): misc=_load_misc(), ) - for k, coins in all_coins.items(): + for coins in all_coins.values(): _ensure_mandatory_values(coins) + fill_blockchain_links(all_coins) + return all_coins