Skip to content

Commit

Permalink
feat: support new sepolia testnet [APE-1487] (#19)
Browse files Browse the repository at this point in the history
* feat: support new sepolia testnet

* test: add sepolia to tests
  • Loading branch information
fubuloubu authored Nov 2, 2023
1 parent 1d87c77 commit 1be1991
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ape_optimism/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# chain_id, network_id
"mainnet": (10, 10),
"goerli": (420, 420),
"sepolia": (11155420, 11155420),
}


Expand Down Expand Up @@ -54,6 +55,8 @@ class OptimismConfig(PluginConfig):
mainnet_fork: NetworkConfig = _create_local_config()
goerli: NetworkConfig = _create_network_config()
goerli_fork: NetworkConfig = _create_local_config()
sepolia: NetworkConfig = _create_network_config()
sepolia_fork: NetworkConfig = _create_local_config()
local: NetworkConfig = _create_local_config(default_provider="test")
default_network: str = LOCAL_NETWORK_NAME

Expand Down
3 changes: 3 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
│ └── geth (default)
├── goerli
│ └── geth (default)
├── sepolia
│ └── geth (default)
└── local (default)
└── test (default)
""".strip()
Expand Down Expand Up @@ -47,6 +49,7 @@ def assert_rich_text(actual: str, expected: str):
def test_networks(runner, cli, optimism):
optimism.mainnet.set_default_provider("geth")
optimism.goerli.set_default_provider("geth")
optimism.sepolia.set_default_provider("geth")

result = runner.invoke(cli, ["networks", "list"])
assert_rich_text(result.output, EXPECTED_OUTPUT)

0 comments on commit 1be1991

Please sign in to comment.