Skip to content

Commit

Permalink
feat: avalanche support
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jun 18, 2024
1 parent 021b325 commit 47795ea
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
Use the [Infura](https://infura.io/) provider plugin to interact with blockchains via APIs.
This plugin supports the following ecosystems:

- Ethereum
- Polygon
- Arbitrum
- Optimism
- Avalanche
- Blast
- Ethereum
- ~~Linea~~ (awaiting ape-linea update)
- Optimism
- Polygon

## Dependencies

Expand Down
22 changes: 13 additions & 9 deletions ape_infura/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,34 @@
from .provider import Infura

NETWORKS = {
"ethereum": [
"mainnet",
"sepolia",
],
"arbitrum": [
"mainnet",
"sepolia",
],
"optimism": [
"avalanche": [
"fuji",
"mainnet",
"sepolia",
],
"polygon": [
"blast": [
"mainnet",
"amoy",
"sepolia",
],
"blast": [
"ethereum": [
"mainnet",
"sepolia",
],
# TODO: Comment out after ape-linea supports 0.7
# "linea": [
# "mainnet",
# ],
"optimism": [
"mainnet",
"sepolia",
],
"polygon": [
"mainnet",
"amoy",
],
}


Expand Down
5 changes: 3 additions & 2 deletions ape_infura/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
_ENVIRONMENT_VARIABLE_NAMES = ("WEB3_INFURA_PROJECT_ID", "WEB3_INFURA_API_KEY")
# NOTE: https://docs.infura.io/learn/websockets#supported-networks
_WEBSOCKET_CAPABLE_ECOSYSTEMS = {
"ethereum",
"arbitrum",
"avalanche",
"ethereum",
"linea",
"optimism",
"polygon",
"linea",
}


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"pytest-cov", # Coverage analyzer plugin
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
"ape-arbitrum", # For integration testing
"ape-avalanche", # For integration testing
"ape-blast", # For integration testing
"ape-optimism", # For integration testing
"ape-polygon", # For integration testing
Expand Down

0 comments on commit 47795ea

Please sign in to comment.