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.
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-apt
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Requires-Python: >=3.12
5
- Requires-Dist: mm-crypto-utils>=0.3.5
5
+ Requires-Dist: mm-crypto-utils>=0.3.6
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "mm-apt"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = ""
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
7
- "mm-crypto-utils>=0.3.5",
7
+ "mm-crypto-utils>=0.3.6",
8
8
  ]
9
9
 
10
10
  [build-system]
@@ -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.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.5" }]
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.5"
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/4d/a2/884d26cd5d5b236e79370892ae5c859a2396bd8395b27c18df34462fa9f8/mm_crypto_utils-0.3.5-py3-none-any.whl", hash = "sha256:e01afc1b51f2fdf9bc3cc87c363a5d5debd489ca72dfc940ef70c80c21156162", size = 10071, upload_time = "2025-04-19T06:15:33.143Z" },
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