mm-apt 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl
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/retry.py
ADDED
@@ -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
|
+
)
|
@@ -3,6 +3,7 @@ mm_apt/ans.py,sha256=LP9lgOW6nIC2cIWhl6iQKKMKi6I7ni2FarJ1QISyNmo,1104
|
|
3
3
|
mm_apt/balance.py,sha256=5GHPwxFy550FjHSTGxL3N3GcQu68nGg6RkNdl5mLimY,583
|
4
4
|
mm_apt/coin.py,sha256=NuVFVxDcL3acXdZBLr79dbzT44bWHZP2gtLILWxTzdE,71
|
5
5
|
mm_apt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
mm_apt
|
7
|
-
mm_apt-0.3.
|
8
|
-
mm_apt-0.3.
|
6
|
+
mm_apt/retry.py,sha256=ONVBcoiJRfhgTtgt5vB7-e6DOv0RBJkkKEeN-mVhqm0,434
|
7
|
+
mm_apt-0.3.4.dist-info/METADATA,sha256=kQhthNDX8gZgYaXg6QNDY6jJMm6svQiDfZzj2mFRzP0,112
|
8
|
+
mm_apt-0.3.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
mm_apt-0.3.4.dist-info/RECORD,,
|
File without changes
|