diff --git a/CHANGELOG.md b/CHANGELOG.md index 280efd1..d7a8574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Latest changes +## 1.11.1.0 + +Add new `xpub_name` attribute in coin objects, used to display what "xpub" actually means in context of current coin (i.e. it may be xpub, or it may actually be an address) + ## 1.11.0.0 Change license to MIT license diff --git a/bitcart/coin.py b/bitcart/coin.py index 11fc00f..565493c 100644 --- a/bitcart/coin.py +++ b/bitcart/coin.py @@ -3,6 +3,7 @@ class Coin: coin_name: str + xpub_name: str friendly_name: str event_handlers: Dict[str, Callable] xpub: Optional[str] diff --git a/bitcart/coins/btc.py b/bitcart/coins/btc.py index 12741dd..f951a25 100644 --- a/bitcart/coins/btc.py +++ b/bitcart/coins/btc.py @@ -29,6 +29,7 @@ async def wrapper(*args: Any, **kwargs: Any) -> Any: class BTC(Coin, EventDelivery): coin_name = "BTC" + xpub_name = "Xpub" friendly_name = "Bitcoin" RPC_URL = "http://localhost:5000" RPC_USER = "electrum" diff --git a/bitcart/coins/eth.py b/bitcart/coins/eth.py index 4a11cee..2316090 100644 --- a/bitcart/coins/eth.py +++ b/bitcart/coins/eth.py @@ -6,6 +6,7 @@ class ETH(BTC): coin_name = "ETH" + xpub_name = "Address" friendly_name = "Ethereum" RPC_URL = "http://localhost:5002" ALLOWED_EVENTS = ["new_block", "new_transaction", "new_payment"] diff --git a/bitcart/coins/xmr.py b/bitcart/coins/xmr.py index 7718872..79edb39 100644 --- a/bitcart/coins/xmr.py +++ b/bitcart/coins/xmr.py @@ -3,6 +3,7 @@ class XMR(ETH): coin_name = "XMR" + xpub_name = "Secret viewkey" friendly_name = "Monero" RPC_URL = "http://localhost:5011" additional_xpub_fields = ["address"] diff --git a/setup.py b/setup.py index 5d8f743..2ceb4cd 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name="bitcart", packages=find_packages(), - version="1.11.0.0", + version="1.11.1.0", license="MIT", description="BitcartCC coins support library", long_description=open("README.md").read(),