web3 7.0.0b4__tar.gz → 7.0.0b5__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.
- {web3-7.0.0b4/web3.egg-info → web3-7.0.0b5}/PKG-INFO +2 -2
- {web3-7.0.0b4 → web3-7.0.0b5}/setup.py +2 -2
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contracts.py +5 -5
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/events.py +18 -18
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/filters.py +6 -6
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/method_formatters.py +0 -23
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/__init__.py +0 -3
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/eth_module.py +434 -365
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/rpc_abi.py +0 -18
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/contract/async_contract.py +11 -11
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/contract/base_contract.py +19 -18
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/contract/contract.py +13 -13
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/eth/async_eth.py +5 -4
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/eth/eth.py +2 -2
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/exceptions.py +55 -21
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/geth.py +0 -188
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/main.py +0 -4
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/manager.py +124 -66
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/filter.py +18 -6
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/signing.py +2 -2
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/eth_tester/defaults.py +0 -48
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/eth_tester/main.py +36 -11
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/eth_tester/middleware.py +3 -8
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/rpc/async_rpc.py +1 -1
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/rpc/rpc.py +3 -1
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/rpc/utils.py +1 -10
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tools/benchmark/node.py +2 -8
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/types.py +1 -1
- {web3-7.0.0b4 → web3-7.0.0b5/web3.egg-info}/PKG-INFO +2 -2
- {web3-7.0.0b4 → web3-7.0.0b5}/web3.egg-info/SOURCES.txt +0 -1
- {web3-7.0.0b4 → web3-7.0.0b5}/web3.egg-info/requires.txt +1 -1
- web3-7.0.0b4/web3/_utils/module_testing/go_ethereum_personal_module.py +0 -300
- {web3-7.0.0b4 → web3-7.0.0b5}/LICENSE +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/MANIFEST.in +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/README.md +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/_normalization.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/abis.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/async_ens.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/auto.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/base_ens.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/constants.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/contract_data.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/ens.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/exceptions.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/specs/nf.json +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/specs/normalization_spec.json +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/ens/utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/pyproject.toml +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/setup.cfg +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/abi.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/async_caching.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/async_transactions.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/blocks.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/caching.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/compat/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/compile_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/_custom_contract_data.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/address_reflector.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/arrays_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/bytes_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/constructor_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/contract_caller_tester.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/emitter_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/event_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/extended_resolver.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/fallback_function_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/function_name_tester_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/math_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/offchain_lookup.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/offchain_resolver.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/panic_errors_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/payable_tester.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/receive_function_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/reflector_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/revert_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/simple_resolver.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/storage_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/string_contract.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/contract_sources/contract_data/tuple_contracts.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/datatypes.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/decorators.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/empty.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/encoding.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/ens.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/error_formatters_utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/fee_utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/formatters.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/function_identifiers.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/http.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/hypothesis.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/math.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/go_ethereum_admin_module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/go_ethereum_txpool_module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/module_testing_utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/net_module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/persistent_connection_provider.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/module_testing/web3_module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/normalizers.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/request.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/threads.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/transactions.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/type_conversion.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/utility_methods.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/validation.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/_utils/windows.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/auto/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/auto/gethdev.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/beacon/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/beacon/api_endpoints.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/beacon/async_beacon.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/beacon/beacon.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/constants.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/contract/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/contract/utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/datastructures.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/eth/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/eth/base_eth.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/gas_strategies/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/gas_strategies/rpc.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/gas_strategies/time_based.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/logs.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/method.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/attrdict.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/base.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/buffered_gas_estimate.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/formatting.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/gas_price_strategy.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/names.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/proof_of_authority.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/pythonic.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/stalecheck.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/middleware/validation.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/module.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/net.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/async_base.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/auto.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/base.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/eth_tester/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/ipc.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/legacy_websocket.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/async_ipc.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/persistent.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/persistent_connection.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/request_processor.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/persistent/websocket.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/providers/rpc/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/py.typed +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/scripts/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/scripts/release/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/scripts/release/test_package.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/testing.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tools/benchmark/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tools/benchmark/main.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tools/benchmark/reporting.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tools/benchmark/utils.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/tracing.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/__init__.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/abi.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/address.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/async_exception_handling.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/caching.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3/utils/exception_handling.py +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3.egg-info/dependency_links.txt +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3.egg-info/not-zip-safe +0 -0
- {web3-7.0.0b4 → web3-7.0.0b5}/web3.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: web3
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.0b5
|
|
4
4
|
Summary: web3.py
|
|
5
5
|
Home-page: https://github.com/ethereum/web3.py
|
|
6
6
|
Author: The Ethereum Foundation
|
|
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: aiohttp>=3.7.4.post0
|
|
23
23
|
Requires-Dist: eth-abi>=5.0.1
|
|
24
|
-
Requires-Dist: eth-account>=0.12.
|
|
24
|
+
Requires-Dist: eth-account>=0.12.2
|
|
25
25
|
Requires-Dist: eth-hash[pycryptodome]>=0.5.1
|
|
26
26
|
Requires-Dist: eth-typing>=4.0.0
|
|
27
27
|
Requires-Dist: eth-utils>=4.0.0
|
|
@@ -42,7 +42,7 @@ with open("./README.md") as readme:
|
|
|
42
42
|
setup(
|
|
43
43
|
name="web3",
|
|
44
44
|
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
|
|
45
|
-
version="7.0.0-beta.
|
|
45
|
+
version="7.0.0-beta.5",
|
|
46
46
|
description="""web3.py""",
|
|
47
47
|
long_description_content_type="text/markdown",
|
|
48
48
|
long_description=long_description,
|
|
@@ -53,7 +53,7 @@ setup(
|
|
|
53
53
|
install_requires=[
|
|
54
54
|
"aiohttp>=3.7.4.post0",
|
|
55
55
|
"eth-abi>=5.0.1",
|
|
56
|
-
"eth-account>=0.12.
|
|
56
|
+
"eth-account>=0.12.2",
|
|
57
57
|
"eth-hash[pycryptodome]>=0.5.1",
|
|
58
58
|
"eth-typing>=4.0.0",
|
|
59
59
|
"eth-utils>=4.0.0",
|
|
@@ -75,7 +75,7 @@ from web3._utils.normalizers import (
|
|
|
75
75
|
abi_string_to_text,
|
|
76
76
|
)
|
|
77
77
|
from web3.exceptions import (
|
|
78
|
-
|
|
78
|
+
BlockNumberOutOfRange,
|
|
79
79
|
Web3TypeError,
|
|
80
80
|
Web3ValidationError,
|
|
81
81
|
Web3ValueError,
|
|
@@ -424,7 +424,7 @@ def parse_block_identifier(
|
|
|
424
424
|
):
|
|
425
425
|
return w3.eth.get_block(block_identifier)["number"]
|
|
426
426
|
else:
|
|
427
|
-
raise
|
|
427
|
+
raise BlockNumberOutOfRange
|
|
428
428
|
|
|
429
429
|
|
|
430
430
|
def parse_block_identifier_int(w3: "Web3", block_identifier_int: int) -> BlockNumber:
|
|
@@ -434,7 +434,7 @@ def parse_block_identifier_int(w3: "Web3", block_identifier_int: int) -> BlockNu
|
|
|
434
434
|
last_block = w3.eth.get_block("latest")["number"]
|
|
435
435
|
block_num = last_block + block_identifier_int + 1
|
|
436
436
|
if block_num < 0:
|
|
437
|
-
raise
|
|
437
|
+
raise BlockNumberOutOfRange
|
|
438
438
|
return BlockNumber(block_num)
|
|
439
439
|
|
|
440
440
|
|
|
@@ -453,7 +453,7 @@ async def async_parse_block_identifier(
|
|
|
453
453
|
requested_block = await async_w3.eth.get_block(block_identifier)
|
|
454
454
|
return requested_block["number"]
|
|
455
455
|
else:
|
|
456
|
-
raise
|
|
456
|
+
raise BlockNumberOutOfRange
|
|
457
457
|
|
|
458
458
|
|
|
459
459
|
async def async_parse_block_identifier_int(
|
|
@@ -466,5 +466,5 @@ async def async_parse_block_identifier_int(
|
|
|
466
466
|
last_block_num = last_block["number"]
|
|
467
467
|
block_num = last_block_num + block_identifier_int + 1
|
|
468
468
|
if block_num < 0:
|
|
469
|
-
raise
|
|
469
|
+
raise BlockNumberOutOfRange
|
|
470
470
|
return BlockNumber(block_num)
|
|
@@ -340,8 +340,8 @@ is_not_indexed = complement(is_indexed)
|
|
|
340
340
|
|
|
341
341
|
class BaseEventFilterBuilder:
|
|
342
342
|
formatter = None
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
_from_block = None
|
|
344
|
+
_to_block = None
|
|
345
345
|
_address = None
|
|
346
346
|
_immutable = False
|
|
347
347
|
|
|
@@ -361,30 +361,30 @@ class BaseEventFilterBuilder:
|
|
|
361
361
|
self._ordered_arg_names = tuple(arg["name"] for arg in event_abi["inputs"])
|
|
362
362
|
|
|
363
363
|
@property
|
|
364
|
-
def
|
|
365
|
-
return self.
|
|
364
|
+
def from_block(self) -> BlockIdentifier:
|
|
365
|
+
return self._from_block
|
|
366
366
|
|
|
367
|
-
@
|
|
368
|
-
def
|
|
369
|
-
if self.
|
|
370
|
-
self.
|
|
367
|
+
@from_block.setter
|
|
368
|
+
def from_block(self, value: BlockIdentifier) -> None:
|
|
369
|
+
if self._from_block is None and not self._immutable:
|
|
370
|
+
self._from_block = value
|
|
371
371
|
else:
|
|
372
372
|
raise Web3ValueError(
|
|
373
|
-
f"
|
|
373
|
+
f"from_block is already set to {self._from_block!r}. "
|
|
374
374
|
"Resetting filter parameters is not permitted"
|
|
375
375
|
)
|
|
376
376
|
|
|
377
377
|
@property
|
|
378
|
-
def
|
|
379
|
-
return self.
|
|
378
|
+
def to_block(self) -> BlockIdentifier:
|
|
379
|
+
return self._to_block
|
|
380
380
|
|
|
381
|
-
@
|
|
382
|
-
def
|
|
383
|
-
if self.
|
|
384
|
-
self.
|
|
381
|
+
@to_block.setter
|
|
382
|
+
def to_block(self, value: BlockIdentifier) -> None:
|
|
383
|
+
if self._to_block is None and not self._immutable:
|
|
384
|
+
self._to_block = value
|
|
385
385
|
else:
|
|
386
386
|
raise Web3ValueError(
|
|
387
|
-
f"toBlock is already set to {self.
|
|
387
|
+
f"toBlock is already set to {self._to_block!r}. "
|
|
388
388
|
"Resetting filter parameters is not permitted"
|
|
389
389
|
)
|
|
390
390
|
|
|
@@ -432,8 +432,8 @@ class BaseEventFilterBuilder:
|
|
|
432
432
|
def filter_params(self) -> FilterParams:
|
|
433
433
|
params = {
|
|
434
434
|
"topics": self.topics,
|
|
435
|
-
"fromBlock": self.
|
|
436
|
-
"toBlock": self.
|
|
435
|
+
"fromBlock": self.from_block,
|
|
436
|
+
"toBlock": self.to_block,
|
|
437
437
|
"address": self.address,
|
|
438
438
|
}
|
|
439
439
|
return valfilter(lambda x: x is not None, params)
|
|
@@ -73,8 +73,8 @@ def construct_event_filter_params(
|
|
|
73
73
|
contract_address: Optional[ChecksumAddress] = None,
|
|
74
74
|
argument_filters: Optional[Dict[str, Any]] = None,
|
|
75
75
|
topics: Optional[Sequence[HexStr]] = None,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
from_block: Optional[BlockIdentifier] = None,
|
|
77
|
+
to_block: Optional[BlockIdentifier] = None,
|
|
78
78
|
address: Optional[ChecksumAddress] = None,
|
|
79
79
|
) -> Tuple[List[List[Optional[HexStr]]], FilterParams]:
|
|
80
80
|
filter_params: FilterParams = {}
|
|
@@ -121,11 +121,11 @@ def construct_event_filter_params(
|
|
|
121
121
|
else:
|
|
122
122
|
validate_address(filter_params["address"])
|
|
123
123
|
|
|
124
|
-
if
|
|
125
|
-
filter_params["fromBlock"] =
|
|
124
|
+
if from_block is not None:
|
|
125
|
+
filter_params["fromBlock"] = from_block
|
|
126
126
|
|
|
127
|
-
if
|
|
128
|
-
filter_params["toBlock"] =
|
|
127
|
+
if to_block is not None:
|
|
128
|
+
filter_params["toBlock"] = to_block
|
|
129
129
|
|
|
130
130
|
data_filters_set = construct_event_data_set(event_abi, abi_codec, argument_filters)
|
|
131
131
|
|
|
@@ -32,8 +32,6 @@ from eth_utils.curried import (
|
|
|
32
32
|
is_integer,
|
|
33
33
|
is_null,
|
|
34
34
|
is_string,
|
|
35
|
-
remove_0x_prefix,
|
|
36
|
-
text_if_str,
|
|
37
35
|
to_checksum_address,
|
|
38
36
|
to_list,
|
|
39
37
|
to_tuple,
|
|
@@ -52,10 +50,6 @@ from hexbytes import (
|
|
|
52
50
|
from web3._utils.abi import (
|
|
53
51
|
is_length,
|
|
54
52
|
)
|
|
55
|
-
from web3._utils.encoding import (
|
|
56
|
-
hexstr_if_str,
|
|
57
|
-
to_hex,
|
|
58
|
-
)
|
|
59
53
|
from web3._utils.error_formatters_utils import (
|
|
60
54
|
raise_contract_logic_error_on_revert,
|
|
61
55
|
raise_transaction_indexing_error_if_indexing,
|
|
@@ -583,16 +577,6 @@ PYTHONIC_REQUEST_FORMATTERS: Dict[RPCEndpoint, Callable[..., Any]] = {
|
|
|
583
577
|
RPC.eth_sendTransaction: apply_formatter_at_index(transaction_param_formatter, 0),
|
|
584
578
|
RPC.eth_signTransaction: apply_formatter_at_index(transaction_param_formatter, 0),
|
|
585
579
|
RPC.eth_getProof: apply_formatter_at_index(to_hex_if_integer, 2),
|
|
586
|
-
# personal
|
|
587
|
-
RPC.personal_importRawKey: apply_formatter_at_index(
|
|
588
|
-
compose(remove_0x_prefix, hexstr_if_str(to_hex)),
|
|
589
|
-
0,
|
|
590
|
-
),
|
|
591
|
-
RPC.personal_sign: apply_formatter_at_index(text_if_str(to_hex), 0),
|
|
592
|
-
RPC.personal_ecRecover: apply_formatter_at_index(text_if_str(to_hex), 0),
|
|
593
|
-
RPC.personal_sendTransaction: apply_formatter_at_index(
|
|
594
|
-
transaction_param_formatter, 0
|
|
595
|
-
),
|
|
596
580
|
# Snapshot and Revert
|
|
597
581
|
RPC.evm_revert: apply_formatter_at_index(integer_to_hex, 0),
|
|
598
582
|
# tracing
|
|
@@ -788,13 +772,6 @@ PYTHONIC_RESULT_FORMATTERS: Dict[RPCEndpoint, Callable[..., Any]] = {
|
|
|
788
772
|
RPC.eth_signTransaction: apply_formatter_if(is_not_null, signed_tx_formatter),
|
|
789
773
|
RPC.eth_signTypedData: HexBytes,
|
|
790
774
|
RPC.eth_syncing: apply_formatter_if(is_not_false, syncing_formatter),
|
|
791
|
-
# personal
|
|
792
|
-
RPC.personal_importRawKey: to_checksum_address,
|
|
793
|
-
RPC.personal_listAccounts: apply_list_to_array_formatter(to_checksum_address),
|
|
794
|
-
RPC.personal_listWallets: apply_list_to_array_formatter(geth_wallets_formatter),
|
|
795
|
-
RPC.personal_newAccount: to_checksum_address,
|
|
796
|
-
RPC.personal_sendTransaction: to_hexbytes(32),
|
|
797
|
-
RPC.personal_signTypedData: HexBytes,
|
|
798
775
|
# Transaction Pool
|
|
799
776
|
RPC.txpool_content: transaction_pool_content_formatter,
|
|
800
777
|
RPC.txpool_inspect: transaction_pool_inspect_formatter,
|
|
@@ -5,9 +5,6 @@ from .eth_module import (
|
|
|
5
5
|
from .go_ethereum_admin_module import (
|
|
6
6
|
GoEthereumAdminModuleTest,
|
|
7
7
|
)
|
|
8
|
-
from .go_ethereum_personal_module import (
|
|
9
|
-
GoEthereumPersonalModuleTest,
|
|
10
|
-
)
|
|
11
8
|
from .go_ethereum_txpool_module import (
|
|
12
9
|
GoEthereumAsyncTxPoolModuleTest,
|
|
13
10
|
GoEthereumTxPoolModuleTest,
|