solver-multirpc 3.1.8__py3-none-any.whl → 3.1.10__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.
- multirpc/base_multi_rpc_interface.py +3 -3
- multirpc/exceptions.py +2 -0
- {solver_multirpc-3.1.8.dist-info → solver_multirpc-3.1.10.dist-info}/METADATA +1 -1
- {solver_multirpc-3.1.8.dist-info → solver_multirpc-3.1.10.dist-info}/RECORD +5 -5
- {solver_multirpc-3.1.8.dist-info → solver_multirpc-3.1.10.dist-info}/WHEEL +0 -0
|
@@ -16,7 +16,7 @@ from requests import ConnectionError, HTTPError, ReadTimeout
|
|
|
16
16
|
from web3 import AsyncWeb3, Web3
|
|
17
17
|
from web3._utils.contracts import encode_transaction_data # noqa
|
|
18
18
|
from web3.contract import Contract
|
|
19
|
-
from web3.exceptions import BadResponseFormat, BlockNotFound, TimeExhausted, TransactionNotFound
|
|
19
|
+
from web3.exceptions import BadResponseFormat, BlockNotFound, TimeExhausted, TransactionNotFound, Web3RPCError
|
|
20
20
|
from web3.types import BlockData, BlockIdentifier, TxReceipt
|
|
21
21
|
|
|
22
22
|
from .constants import EstimateGasLimitBuffer, GasLimit, GasUpperBound, MultiRPCLogger, ViewPolicy
|
|
@@ -311,7 +311,7 @@ class BaseMultiRpc(ABC):
|
|
|
311
311
|
self._logger_params(**{f"{rpc_label_prefix}_post_send_time": get_unix_time()})
|
|
312
312
|
self._logger_params(tx_send_time=int(time.time() * 1000))
|
|
313
313
|
return provider, transaction
|
|
314
|
-
except ValueError as e:
|
|
314
|
+
except (ValueError, Web3RPCError) as e:
|
|
315
315
|
MultiRPCLogger.error(f"RPC({rpc_url}) value error: {str(e)}")
|
|
316
316
|
t_bnb_flag = "transaction would cause overdraft" in str(e).lower() and (await provider.eth.chain_id) == 97
|
|
317
317
|
if not (
|
|
@@ -492,7 +492,7 @@ class BaseMultiRpc(ABC):
|
|
|
492
492
|
]
|
|
493
493
|
result = await self.__execute_batch_tasks(
|
|
494
494
|
execution_tx_list,
|
|
495
|
-
[ValueError, ConnectionError, ReadTimeout, HTTPError],
|
|
495
|
+
[ValueError, ConnectionError, ReadTimeout, HTTPError, Web3RPCError],
|
|
496
496
|
FailedOnAllRPCs
|
|
497
497
|
)
|
|
498
498
|
provider, tx = result
|
multirpc/exceptions.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: solver-multirpc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.10
|
|
4
4
|
Summary: A robust Python library for interacting with Ethereum smart contracts via multiple RPC endpoints, ensuring reliability, availability, and load distribution with automatic retries on failure.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: rorschach
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
multirpc/__init__.py,sha256=f7h3txKkb_WQX6u-PzbgMpHt1VGqA0OjhrSe4Vdsk5I,100
|
|
2
2
|
multirpc/async_multi_rpc_interface.py,sha256=2YyGXst5jyxZ7ro7z7qeOAF2wKC4JEgbwkR-ADCa-9w,5548
|
|
3
|
-
multirpc/base_multi_rpc_interface.py,sha256=
|
|
3
|
+
multirpc/base_multi_rpc_interface.py,sha256=PHQFRLIfXvEIixu8IwOc9EKKviSRxkCmZxD6saYr5tw,28546
|
|
4
4
|
multirpc/constants.py,sha256=h0njFnxTtWU8-NO_3q7sMrLAqQAv4JxM3nZcc2WOqEc,1210
|
|
5
|
-
multirpc/exceptions.py,sha256=
|
|
5
|
+
multirpc/exceptions.py,sha256=acoy8mjlAth-r0sJ5PJCTI2xOS4LAROdnPDCxLu0oLs,1861
|
|
6
6
|
multirpc/gas_estimation.py,sha256=k0FVO9FgSRuRQhEkQ9YZZ-rSpW_zxaLLFdMAYOF3xco,7276
|
|
7
7
|
multirpc/sync_multi_rpc_interface.py,sha256=T9x5bLbLJF_1XorkkDqzc8pZmbdNs6OE9trGjVWQBdg,5762
|
|
8
8
|
multirpc/tx_trace.py,sha256=G7sTVMzALtTeC1F2JjxMSGRRFlmAAZG-Sdhd4UQtfw8,7885
|
|
9
9
|
multirpc/utils.py,sha256=V0hosPMFqsvZy1OtWUOR-4xk1U4bPmGUfviBivygZJw,9067
|
|
10
|
-
solver_multirpc-3.1.
|
|
11
|
-
solver_multirpc-3.1.
|
|
12
|
-
solver_multirpc-3.1.
|
|
10
|
+
solver_multirpc-3.1.10.dist-info/METADATA,sha256=lgSPN5WKGOcFHhKAtec-IfhgoQELWItw5oWmz7QAY9A,8287
|
|
11
|
+
solver_multirpc-3.1.10.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
12
|
+
solver_multirpc-3.1.10.dist-info/RECORD,,
|
|
File without changes
|