eth-prototype 1.5.0b1__tar.gz → 1.5.0b2__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.
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/PKG-INFO +1 -1
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/PKG-INFO +1 -1
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/aa_bundler.py +25 -17
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.coveragerc +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.github/workflows/publish.yaml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.github/workflows/test.yaml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.gitignore +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.isort.cfg +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.pre-commit-config.yaml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/.readthedocs.yml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/AUTHORS.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/CHANGELOG.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/LICENSE.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/README.md +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/Makefile +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/_static/.gitignore +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/authors.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/changelog.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/conf.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/index.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/license.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/readme.rst +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/docs/requirements.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/pyproject.toml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/setup.cfg +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/setup.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/SOURCES.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/dependency_links.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/not-zip-safe +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/requires.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/top_level.txt +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/__init__.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/build_artifacts.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/contracts.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/defender_relay.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/test_utils/__init__.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/test_utils/factories.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/test_utils/hardhat.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/test_utils/vcr_utils.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/w3wrappers.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/wadray.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/ethproto/wrappers.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/__init__.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/cassettes/test_aa_bundler/test_build_user_operation.yaml +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/conftest.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/README.md +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/artifacts2/TestCurrency.sol/TestCurrency.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/Count.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/Counter.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/CounterUpgradeable.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/CounterUpgradeableWithLibrary.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/CounterWithLibrary.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/Datatypes.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/EventLauncher.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/TestCurrency.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/TestCurrencyUUPS.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/TestNFT.sol +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/hardhat.config.js +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/package-lock.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/package.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/verifiable-binaries/@anotherOrg/aPkg/1.0.2/build/contracts/TestCurrency.sol/TestCurrency.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/verifiable-binaries/@org/pkg/0.2.1/build/contracts/TestCurrency.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/verifiable-binaries/@org/pkg/0.3.0/build/contracts/TestCurrency.json +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_aa_bundler.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_build_artifacts.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_contracts.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_defender.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_time_control.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_w3.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/test_wadray.py +0 -0
- {eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tox.ini +0 -0
|
@@ -13,6 +13,7 @@ from eth_account.messages import encode_defunct
|
|
|
13
13
|
from eth_typing import HexAddress
|
|
14
14
|
from eth_utils import add_0x_prefix, function_signature_to_4byte_selector
|
|
15
15
|
from hexbytes import HexBytes
|
|
16
|
+
from requests import HTTPError
|
|
16
17
|
from web3 import Web3
|
|
17
18
|
from web3.constants import ADDRESS_ZERO
|
|
18
19
|
from web3.types import StateOverride, TxParams
|
|
@@ -461,23 +462,30 @@ class Bundler:
|
|
|
461
462
|
)
|
|
462
463
|
|
|
463
464
|
def alchemy_estimation(self, user_operation: UserOperation) -> AlchemyGasAndPaymasterAndData:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
"
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
465
|
+
try:
|
|
466
|
+
resp = self.bundler.provider.make_request(
|
|
467
|
+
"alchemy_requestGasAndPaymasterAndData",
|
|
468
|
+
[
|
|
469
|
+
{
|
|
470
|
+
"policyId": self.alchemy_gas_policy_id,
|
|
471
|
+
"entryPoint": self.entrypoint,
|
|
472
|
+
"dummySignature": DUMMY_SIGNATURE,
|
|
473
|
+
"userOperation": user_operation.as_reduced_dict(),
|
|
474
|
+
"overrides": {
|
|
475
|
+
"maxFeePerGas": {"multiplier": self.base_gas_price_factor},
|
|
476
|
+
"maxPriorityFeePerGas": {"multiplier": self.priority_gas_price_factor},
|
|
477
|
+
"callGasLimit": {"multiplier": self.gas_limit_factor},
|
|
478
|
+
"verificationGasLimit": {"multiplier": self.verification_gas_factor},
|
|
479
|
+
},
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
)
|
|
483
|
+
except HTTPError as e:
|
|
484
|
+
raise BundlerRevertError(
|
|
485
|
+
f"HTTP error while requesting gas and paymaster data: {str(e)}",
|
|
486
|
+
userop=user_operation,
|
|
487
|
+
response=e.response,
|
|
488
|
+
) from e
|
|
481
489
|
|
|
482
490
|
if "error" in resp:
|
|
483
491
|
raise BundlerRevertError(resp["error"]["message"], userop=user_operation, response=resp)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/src/eth_prototype.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/Datatypes.sol
RENAMED
|
File without changes
|
{eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/EventLauncher.sol
RENAMED
|
File without changes
|
{eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/TestCurrency.sol
RENAMED
|
File without changes
|
{eth_prototype-1.5.0b1 → eth_prototype-1.5.0b2}/tests/hardhat-project/contracts/TestCurrencyUUPS.sol
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|