From 4cbf74f7894301865a6ab91d97847bdf4aec003b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=87=E5=B1=B1P?= Date: Thu, 8 Feb 2018 22:09:40 +0900 Subject: [PATCH] Support monacoin (#215) --- trezorlib/coins.py | 4 +++- trezorlib/tx_api.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/trezorlib/coins.py b/trezorlib/coins.py index 907c3bc322..77f09708a6 100644 --- a/trezorlib/coins.py +++ b/trezorlib/coins.py @@ -1,4 +1,4 @@ -from .tx_api import TxApiBitcoin, TxApiTestnet, TxApiLitecoin, TxApiZcash, TxApiDash, TxApiBcash, TxApiDecredTestnet, TxApiDogecoin +from .tx_api import TxApiBitcoin, TxApiTestnet, TxApiLitecoin, TxApiZcash, TxApiDash, TxApiBcash, TxApiDecredTestnet, TxApiDogecoin, TxApiMonacoin coins_slip44 = { 'Bitcoin': 0, @@ -8,6 +8,7 @@ coins_slip44 = { 'Dogecoin': 3, 'Dash': 5, 'Namecoin': 7, + 'Monacoin': 22, 'Decred': 42, 'Ether': 60, 'EtherClassic': 61, @@ -24,4 +25,5 @@ coins_txapi = { 'Bcash': TxApiBcash, 'Decred Testnet': TxApiDecredTestnet, 'Dogecoin': TxApiDogecoin, + 'Monacoin': TxApiMonacoin, } diff --git a/trezorlib/tx_api.py b/trezorlib/tx_api.py index 147246cb2e..223356fd86 100644 --- a/trezorlib/tx_api.py +++ b/trezorlib/tx_api.py @@ -193,3 +193,4 @@ TxApiBcash = TxApiInsight(network='insight_bcash', url='https://bch-bitcore2.tre TxApiDecredTestnet = TxApiInsight(network='insight_decred_testnet', url='https://testnet.decred.org/api/') TxApiDogecoin = TxApiBlockCypher(network='blockcypher_dogecoin', url='https://api.blockcypher.com/v1/doge/main/') TxApiSegnet = TxApiSmartbit(network='smartbit_segnet', url='https://segnet-api.smartbit.com.au/v1/blockchain/') +TxApiMonacoin = TxApiInsight(network='insight_monacoin', url='https://mona.insight.monaco-ex.org/insight-api-monacoin/')