Skip to content

Commit

Permalink
Version 1.10.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Nov 26, 2022
1 parent 45e59f0 commit cf29a5f
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[flake8]
max-complexity=11
max-line-length=127
ignore=E266 # for code sections as comments
E203, W503 # black compatibility
ignore=E266, E203, W503
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
rev: 5.10.1
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Latest changes

## 1.10.6.0

Monero (XMR) support

## 1.10.5.0

Urgent fix: APIManager is not loading correct coin settings from anywhere when receiving events.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Coins support(⚡ means lightning is supported):

- Bitcoin (⚡)
- Bitcoin Cash
- Monero
- Ethereum
- Binance coin (BNB)
- SmartBCH
Expand Down
2 changes: 1 addition & 1 deletion bitcart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from universalasync import wrap

from .coins import BCH, BNB, BSTY, BTC, COINS, ETH, GRS, LTC, MATIC, SBCH, TRX, XRG # noqa: F401
from .coins import BCH, BNB, BSTY, BTC, COINS, ETH, GRS, LTC, MATIC, SBCH, TRX, XMR, XRG # noqa: F401
from .errors import errors
from .manager import APIManager
from .providers.jsonrpcrequests import RPCProxy
Expand Down
2 changes: 2 additions & 0 deletions bitcart/coins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
from .matic import MATIC
from .sbch import SBCH
from .trx import TRX
from .xmr import XMR
from .xrg import XRG

COINS = {
"BTC": BTC,
"BCH": BCH,
"XMR": XMR,
"ETH": ETH,
"BNB": BNB,
"SBCH": SBCH,
Expand Down
4 changes: 2 additions & 2 deletions bitcart/coins/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ async def history(self) -> dict: # pragma: no cover
return await self.server.history() # type: ignore

async def get_address(self, *args: Any, **kwargs: Any) -> NoReturn:
raise NotImplementedError("Full address history lookup not implemented for ETH to remain lightweight")
raise NotImplementedError(f"Full address history lookup not implemented for {self.coin_name} to remain lightweight")

async def pay_to_many(self, *args: Any, **kwargs: Any) -> NoReturn:
raise NotImplementedError("Pay to many not available in ETH directly")
raise NotImplementedError(f"Pay to many not available in {self.coin_name} directly")

async def _convert_amounts(self, data: dict) -> dict: # pragma: no cover
if not hasattr(self, "_fetched_token") and isinstance(self.xpub, dict):
Expand Down
7 changes: 7 additions & 0 deletions bitcart/coins/xmr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .eth import ETH


class XMR(ETH):
coin_name = "XMR"
friendly_name = "Monero"
RPC_URL = "http://localhost:5011"
10 changes: 10 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ BCH supports Schnorr signatures, they are enabled out of the box
:show-inheritance:
:undoc-members:

XMR
---

XMR support is based on our custom daemon implementation which tries to follow electrum APIs as closely as possible

.. autoclass:: bitcart.coins.xmr.XMR
:members:
:show-inheritance:
:undoc-members:

ETH
---

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Supported coins list(⚡ means lightning is supported):

- Bitcoin (⚡)
- Bitcoin Cash
- Monero
- Ethereum
- Binance coin (BNB)
- SmartBCH
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic_tipbot/config.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ api_id = my_api_id
api_hash = my_api_hash

[app]
cryptos=btc,bch,eth,bnb,sbch,matic,trx,xrg,ltc,bsty,grs
cryptos=btc,bch,eth,bnb,sbch,matic,trx,xrg,ltc,bsty,grs,xmr
token=my_telegram_bot_token
xpub=my x/y/z pub/prv here
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="bitcart",
packages=find_packages(),
version="1.10.5.0",
version="1.10.6.0",
license="LGPLv3+",
description="BitcartCC coins support library",
long_description=open("README.md").read(),
Expand Down

0 comments on commit cf29a5f

Please sign in to comment.