eth-prototype 1.3.5__tar.gz → 1.3.6__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.3.5 → eth_prototype-1.3.6}/PKG-INFO +1 -1
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/PKG-INFO +1 -1
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/build_artifacts.py +4 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_build_artifacts.py +8 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.coveragerc +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.github/workflows/publish.yaml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.github/workflows/test.yaml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.gitignore +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.isort.cfg +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.pre-commit-config.yaml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/.readthedocs.yml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/AUTHORS.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/CHANGELOG.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/LICENSE.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/README.md +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/Makefile +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/_static/.gitignore +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/authors.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/changelog.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/conf.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/index.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/license.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/readme.rst +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/docs/requirements.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/pyproject.toml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/setup.cfg +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/setup.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/SOURCES.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/dependency_links.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/not-zip-safe +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/requires.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/eth_prototype.egg-info/top_level.txt +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/__init__.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/aa_bundler.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/contracts.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/defender_relay.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/test_utils/__init__.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/test_utils/factories.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/test_utils/hardhat.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/test_utils/vcr_utils.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/w3wrappers.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/wadray.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/src/ethproto/wrappers.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/__init__.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/cassettes/test_aa_bundler/test_build_user_operation.yaml +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/conftest.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/README.md +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/artifacts2/TestCurrency.sol/TestCurrency.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/Count.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/Counter.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/CounterUpgradeable.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/CounterUpgradeableWithLibrary.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/CounterWithLibrary.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/Datatypes.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/EventLauncher.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/TestCurrency.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/TestCurrencyUUPS.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/TestNFT.sol +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/hardhat.config.js +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/package-lock.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/package.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/verifiable-binaries/@anotherOrg/aPkg/1.0.2/build/contracts/TestCurrency.sol/TestCurrency.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/verifiable-binaries/@org/pkg/0.2.1/build/contracts/TestCurrency.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/verifiable-binaries/@org/pkg/0.3.0/build/contracts/TestCurrency.json +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_aa_bundler.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_contracts.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_defender.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_time_control.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_w3.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/test_wadray.py +0 -0
- {eth_prototype-1.3.5 → eth_prototype-1.3.6}/tox.ini +0 -0
@@ -250,6 +250,10 @@ class ArtifactLibrary:
|
|
250
250
|
Calling with contract_ref <ContractClass>@local is the same as calling get_artifact_by_name(<ContractClass>).
|
251
251
|
"""
|
252
252
|
ref = self._find_ref(contract_ref)
|
253
|
+
if ref is None:
|
254
|
+
by_name = self.get_artifact_by_name(contract_ref)
|
255
|
+
if by_name is not None:
|
256
|
+
return by_name
|
253
257
|
|
254
258
|
if ref is None:
|
255
259
|
raise FileNotFoundError(f"Could not find artifact for {contract_ref} on {self.lookup_paths}")
|
@@ -125,6 +125,14 @@ def test_artifact_libraries_generator():
|
|
125
125
|
assert libraries == []
|
126
126
|
|
127
127
|
|
128
|
+
def test_artifact_library_ref_lookup_fallback():
|
129
|
+
library = ArtifactLibrary(
|
130
|
+
os.path.join(HARDHAT_PROJECT, "artifacts", "contracts", "Counter.sol"),
|
131
|
+
)
|
132
|
+
|
133
|
+
assert library.get_artifact_by_ref("Counter") == library.get_artifact_by_name("Counter")
|
134
|
+
|
135
|
+
|
128
136
|
def test_artifact_library_ref_lookup():
|
129
137
|
library = ArtifactLibrary(
|
130
138
|
os.path.join(HARDHAT_PROJECT, "artifacts"),
|
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
|
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.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/CounterUpgradeable.sol
RENAMED
File without changes
|
File without changes
|
{eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/CounterWithLibrary.sol
RENAMED
File without changes
|
File without changes
|
{eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/EventLauncher.sol
RENAMED
File without changes
|
{eth_prototype-1.3.5 → eth_prototype-1.3.6}/tests/hardhat-project/contracts/TestCurrency.sol
RENAMED
File without changes
|
{eth_prototype-1.3.5 → eth_prototype-1.3.6}/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
|