Skip to content

Commit 948df19

Browse files
authored
feat: avalanche support (#86)
1 parent e156b95 commit 948df19

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ repos:
1010
- id: isort
1111

1212
- repo: https://github.com/psf/black
13-
rev: 24.4.2
13+
rev: 24.8.0
1414
hooks:
1515
- id: black
1616
name: black
1717

1818
- repo: https://github.com/pycqa/flake8
19-
rev: 7.0.0
19+
rev: 7.1.1
2020
hooks:
2121
- id: flake8
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.10.0
24+
rev: v1.11.1
2525
hooks:
2626
- id: mypy
2727
additional_dependencies: [types-PyYAML, types-requests, types-setuptools, pydantic]

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
Use the [Infura](https://infura.io/) provider plugin to interact with blockchains via APIs.
44
This plugin supports the following ecosystems:
55

6-
- Ethereum
7-
- Polygon
86
- Arbitrum
9-
- Optimism
7+
- Avalanche
108
- Blast
9+
- Ethereum
1110
- ~~Linea~~ (awaiting ape-linea update)
11+
- Optimism
12+
- Polygon
1213

1314
## Dependencies
1415

ape_infura/__init__.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,34 @@
33
from .provider import Infura
44

55
NETWORKS = {
6-
"ethereum": [
7-
"mainnet",
8-
"sepolia",
9-
],
106
"arbitrum": [
117
"mainnet",
128
"sepolia",
139
],
14-
"optimism": [
10+
"avalanche": [
11+
"fuji",
1512
"mainnet",
16-
"sepolia",
1713
],
18-
"polygon": [
14+
"blast": [
1915
"mainnet",
20-
"amoy",
16+
"sepolia",
2117
],
22-
"blast": [
18+
"ethereum": [
2319
"mainnet",
2420
"sepolia",
2521
],
2622
# TODO: Comment out after ape-linea supports 0.7
2723
# "linea": [
2824
# "mainnet",
2925
# ],
26+
"optimism": [
27+
"mainnet",
28+
"sepolia",
29+
],
30+
"polygon": [
31+
"mainnet",
32+
"amoy",
33+
],
3034
}
3135

3236

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
"pytest-cov", # Coverage analyzer plugin
1111
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
1212
"ape-arbitrum", # For integration testing
13+
"ape-avalanche", # For integration testing
1314
"ape-blast", # For integration testing
1415
"ape-optimism", # For integration testing
1516
"ape-polygon", # For integration testing
1617
# "ape-linea", # TODO: Comment out after supports 0.7
1718
"websocket-client", # Used for web socket integration testing
1819
],
1920
"lint": [
20-
"black>=24.4.2,<25", # Auto-formatter and linter
21-
"mypy>=1.10.0,<2", # Static type analyzer
21+
"black>=24.8.0,<25", # Auto-formatter and linter
22+
"mypy>=1.11.1,<2", # Static type analyzer
2223
"types-setuptools", # Needed for mypy type shed
23-
"flake8>=7.0.0,<8", # Style linter
24+
"flake8>=7.1.1,<8", # Style linter
2425
"flake8-breakpoint>=1.1.0,<2", # Detect breakpoints left in code
2526
"flake8-print>=5.0.0,<6", # Detect print statements left in code
2627
"isort>=5.13.2,<6", # Import sorting linter

0 commit comments

Comments
 (0)