mm-apt 0.3.3__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mm_apt-0.3.3 → mm_apt-0.3.4}/PKG-INFO +2 -2
- {mm_apt-0.3.3 → mm_apt-0.3.4}/pyproject.toml +2 -2
- mm_apt-0.3.4/src/mm_apt/retry.py +12 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/uv.lock +4 -4
- {mm_apt-0.3.3 → mm_apt-0.3.4}/.env.example +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/.gitignore +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/README.txt +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/dict.dic +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/justfile +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/src/mm_apt/__init__.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/src/mm_apt/ans.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/src/mm_apt/balance.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/src/mm_apt/coin.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/src/mm_apt/py.typed +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/tests/__init__.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/tests/conftest.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/tests/test_ans.py +0 -0
- {mm_apt-0.3.3 → mm_apt-0.3.4}/tests/test_balance.py +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
from mm_crypto_utils import Nodes, Proxies, retry_with_node_and_proxy
|
2
|
+
from mm_std import Result
|
3
|
+
|
4
|
+
from mm_apt import balance
|
5
|
+
|
6
|
+
|
7
|
+
async def get_balance(
|
8
|
+
retries: int, nodes: Nodes, proxies: Proxies, *, account: str, coin_type: str, timeout: float = 5
|
9
|
+
) -> Result[int]:
|
10
|
+
return await retry_with_node_and_proxy(
|
11
|
+
retries, nodes, proxies, lambda node, proxy: balance.get_balance(node, account, coin_type, timeout, proxy)
|
12
|
+
)
|
@@ -413,7 +413,7 @@ wheels = [
|
|
413
413
|
|
414
414
|
[[package]]
|
415
415
|
name = "mm-apt"
|
416
|
-
version = "0.3.
|
416
|
+
version = "0.3.4"
|
417
417
|
source = { editable = "." }
|
418
418
|
dependencies = [
|
419
419
|
{ name = "mm-crypto-utils" },
|
@@ -431,7 +431,7 @@ dev = [
|
|
431
431
|
]
|
432
432
|
|
433
433
|
[package.metadata]
|
434
|
-
requires-dist = [{ name = "mm-crypto-utils", specifier = ">=0.3.
|
434
|
+
requires-dist = [{ name = "mm-crypto-utils", specifier = ">=0.3.6" }]
|
435
435
|
|
436
436
|
[package.metadata.requires-dev]
|
437
437
|
dev = [
|
@@ -446,14 +446,14 @@ dev = [
|
|
446
446
|
|
447
447
|
[[package]]
|
448
448
|
name = "mm-crypto-utils"
|
449
|
-
version = "0.3.
|
449
|
+
version = "0.3.6"
|
450
450
|
source = { registry = "https://pypi.org/simple" }
|
451
451
|
dependencies = [
|
452
452
|
{ name = "loguru" },
|
453
453
|
{ name = "mm-std" },
|
454
454
|
]
|
455
455
|
wheels = [
|
456
|
-
{ url = "https://files.pythonhosted.org/packages/
|
456
|
+
{ url = "https://files.pythonhosted.org/packages/1c/09/c6dcf43a19d9d31a3f1dcc2367fdf7fde73c7bf5f8eaad7ada907930324e/mm_crypto_utils-0.3.6-py3-none-any.whl", hash = "sha256:ad4328130100e178b7c7388c58b4a6ccb2b7b3635e52a1fc21b323063573652c", size = 10484, upload_time = "2025-04-22T06:57:01.239Z" },
|
457
457
|
]
|
458
458
|
|
459
459
|
[[package]]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|