Skip to content

Commit

Permalink
feat: support new sepolia testnet [APE-1494] (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Nov 3, 2023
1 parent db9288a commit 207be68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ape_arbitrum/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# chain_id, network_id
"mainnet": (42161, 42161),
"goerli": (421613, 421613),
"sepolia": (421614, 421614),
}
INTERNAL_TRANSACTION_TYPE = 106

Expand Down Expand Up @@ -118,6 +119,8 @@ class ArbitrumConfig(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 @@ -48,6 +50,7 @@ def test_networks(runner, cli, arbitrum):
# Do this in case local env changed it.
arbitrum.mainnet.set_default_provider("geth")
arbitrum.goerli.set_default_provider("geth")
arbitrum.sepolia.set_default_provider("geth")

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

0 comments on commit 207be68

Please sign in to comment.