Skip to content

Commit

Permalink
chore: del mumbai
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 12, 2024
1 parent 52d4f75 commit f3d8460
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ repos:
name: black

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: [types-setuptools, pydantic]
Expand Down
2 changes: 0 additions & 2 deletions ape_polygon/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
NETWORKS = {
# chain_id, network_id
"mainnet": (137, 137),
"mumbai": (80001, 80001),
"amoy": (80002, 80002),
}


class PolygonConfig(BaseEthereumConfig):
NETWORKS: ClassVar[Dict[str, Tuple[int, int]]] = NETWORKS
mainnet: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)
mumbai: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)
amoy: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"lint": [
"black>=24.4.2,<25", # Auto-formatter and linter
"mypy>=1.10.0,<2", # Static type analyzer
"mypy>=1.10.1,<2", # Static type analyzer
"types-setuptools", # Needed for mypy type shed
"flake8>=7.0.0,<8", # Style linter
"flake8>=7.1.0,<8", # Style linter
"flake8-breakpoint>=1.1.0,<2", # Detect breakpoints left in code
"flake8-print>=5.0.0,<6", # Detect print statements left in code
"isort>=5.13.2,<6", # Import sorting linter
Expand Down
5 changes: 1 addition & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
│ └── node (default)
├── local (default)
│ └── test (default)
├── mainnet
│ └── node (default)
└── mumbai
└── mainnet
└── node (default)
""".strip()

Expand Down Expand Up @@ -49,7 +47,6 @@ def assert_rich_text(actual: str, expected: str):
def test_networks(runner, cli, polygon):
# Do this in case local env changed it.
polygon.mainnet.set_default_provider("node")
polygon.mumbai.set_default_provider("node")
polygon.amoy.set_default_provider("node")

result = runner.invoke(cli, ("networks", "list"))
Expand Down

0 comments on commit f3d8460

Please sign in to comment.