Skip to content

Commit

Permalink
chore: address all feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 25, 2024
1 parent 6cd618a commit 4acf263
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ The `ape-alchemy` plugin supports the following ecosystems:
- Ethereum
- Arbitrum
- Base
- Fantom
- Optimism
- Polygon
- Polygon-ZkEVM
- Fantom

## Dependencies

Expand Down
9 changes: 4 additions & 5 deletions ape_alchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"mainnet",
"sepolia",
],
"fantom": [
"opera",
"testnet",
],
"optimism": [
"mainnet",
"sepolia",
Expand All @@ -27,11 +31,6 @@
"mainnet",
"cardona",
],
"fantom": [
"opera",
"testnet",
],

}


Expand Down
3 changes: 3 additions & 0 deletions ape_alchemy/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ def uri(self):

network_format = network_formats_by_ecosystem[ecosystem_name]
network_name = self.network.name

# NOTE: Fantom's mainnet is named "opera", but the Alchemy URI expects "mainnet".
if self.network.ecosystem.name == "fantom" and self.network.name == "opera":
network_name = "mainnet"

uri = network_format.format(network_name, key)
self.network_uris[(ecosystem_name, network_name)] = uri
return uri
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include = '\.pyi?$'
[tool.pytest.ini_options]
addopts = """
-p no:ape_test
-p no:pytest_ethereum
--cov-branch
--cov-report term
--cov-report html
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[flake8]
max-line-length = 100
ignore = E704,W503,PYD002
exclude =
venv*
docs
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"test": [ # `test` GitHub Action jobs uses this
"ape-arbitrum", # Needed for testing Arbitrum integration
"ape-base", # Needed for testing Base integration
"ape-fantom", # Needed for testing fantom integration
"ape-optimism", # Needed for testing Optimism integration
"ape-polygon", # Needed for testing Polygon integration
"ape-polygon-zkevm", # Needed for testing Polygon-ZkEVM integration
Expand Down

0 comments on commit 4acf263

Please sign in to comment.