mm-web3 0.5.0__py3-none-any.whl → 0.5.2__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_web3/retry.py CHANGED
@@ -15,7 +15,7 @@ FuncWithNodeAndProxy = Callable[[str, str | None], Awaitable[Result[T]]]
15
15
  FuncWithProxy = Callable[[str | None], Awaitable[Result[T]]]
16
16
 
17
17
 
18
- async def retry_with_node_and_proxy(retries: int, nodes: Nodes, proxies: Proxies, func: FuncWithNodeAndProxy[T]) -> Result[T]:
18
+ async def retry_with_node_and_proxy[T](retries: int, nodes: Nodes, proxies: Proxies, func: FuncWithNodeAndProxy[T]) -> Result[T]:
19
19
  """
20
20
  Retry the given function multiple times with random node and proxy on each attempt.
21
21
 
@@ -42,7 +42,7 @@ async def retry_with_node_and_proxy(retries: int, nodes: Nodes, proxies: Proxies
42
42
  return Result.err(res.unwrap_err(), {"retry_logs": logs})
43
43
 
44
44
 
45
- async def retry_with_proxy(retries: int, proxies: Proxies, func: FuncWithProxy[T]) -> Result[T]:
45
+ async def retry_with_proxy[T](retries: int, proxies: Proxies, func: FuncWithProxy[T]) -> Result[T]:
46
46
  """
47
47
  Retry the given function multiple times using a random proxy on each attempt.
48
48
 
@@ -1,8 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-web3
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Requires-Python: >=3.13
5
5
  Requires-Dist: loguru>=0.7.3
6
- Requires-Dist: mm-http~=0.1.0
7
- Requires-Dist: mm-print~=0.1.1
6
+ Requires-Dist: mm-http~=0.1.4
7
+ Requires-Dist: mm-print~=0.1.2
8
8
  Requires-Dist: mm-std~=0.5.3
9
+ Requires-Dist: pydantic>=2.11.7
@@ -7,9 +7,9 @@ mm_web3/network.py,sha256=99Qv59rGAvf5akp8Sbow_PXkKQk6B3Yh8oy2kH6JhFw,6902
7
7
  mm_web3/node.py,sha256=vXO9PsKZ_yfKsLKc5R_HL62CAKTDJbOg4BHijqw4IbM,902
8
8
  mm_web3/proxy.py,sha256=dfFeb4cUWfPwxmK7EUZ5WBu_XPkytzDMIYvXYrz8gUk,3523
9
9
  mm_web3/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- mm_web3/retry.py,sha256=GPwESXK-C9EI4r5TcWK46sP2fQa68gnp34D8Lhwc6Cc,2384
10
+ mm_web3/retry.py,sha256=OuiPyxADn16b748ZYe5XVff6hVMumj4bnAteQSvUYs4,2390
11
11
  mm_web3/utils.py,sha256=k-x8R8bLRZKBN3xqeepukD9Tzwt97qiTUETSrK7lIHM,2009
12
12
  mm_web3/validators.py,sha256=nt1AXiLfz1ek5PWsqVMtgvENSsCky0-B0NtrXuf0afI,12894
13
- mm_web3-0.5.0.dist-info/METADATA,sha256=TSwqQfLPOS4KgHyPehqVGwei0j7mPY1puF33WKTy1EI,194
14
- mm_web3-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- mm_web3-0.5.0.dist-info/RECORD,,
13
+ mm_web3-0.5.2.dist-info/METADATA,sha256=G8wm9GjCQAvXKYCc2H5ZkJGm1_61k7h3FKUvrjM8-cs,226
14
+ mm_web3-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ mm_web3-0.5.2.dist-info/RECORD,,