mm-web3 0.5.1__py3-none-any.whl → 0.5.3__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
|
|
|
@@ -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=
|
|
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.
|
|
14
|
-
mm_web3-0.5.
|
|
15
|
-
mm_web3-0.5.
|
|
13
|
+
mm_web3-0.5.3.dist-info/METADATA,sha256=KyDkCKrT0fs9TBvTbfwqyyWVJFOvlIT68ApyfuqFbqE,226
|
|
14
|
+
mm_web3-0.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
mm_web3-0.5.3.dist-info/RECORD,,
|
mm_web3-0.5.1.dist-info/METADATA
DELETED
|
File without changes
|