Skip to content

Commit

Permalink
feat: add Holešky to EthereumConfig (#2100)
Browse files Browse the repository at this point in the history
Co-authored-by: Juliya Smith <[email protected]>
  • Loading branch information
xrchz and antazoey committed May 31, 2024
1 parent 916f35c commit 9c8dca1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"eip712>=0.2.7,<0.3",
"ethpm-types>=0.6.9,<0.7",
"eth_pydantic_types>=0.1.0,<0.2",
"evmchains>=0.0.7,<0.1",
"evmchains>=0.0.9,<0.1",
"evm-trace>=0.1.5,<0.2",
],
entry_points={
Expand Down
2 changes: 2 additions & 0 deletions src/ape_ethereum/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
# chain_id, network_id
"mainnet": (1, 1),
"sepolia": (11155111, 11155111),
"holesky": (17000, 17000),
}
BLUEPRINT_HEADER = HexBytes("0xfe71")

Expand Down Expand Up @@ -310,6 +311,7 @@ def _get_custom_network(self, name: str) -> NetworkConfig:

class EthereumConfig(BaseEthereumConfig):
mainnet: NetworkConfig = create_network_config(block_time=13)
holesky: NetworkConfig = create_network_config(block_time=13)
sepolia: NetworkConfig = create_network_config(block_time=15)


Expand Down
1 change: 1 addition & 0 deletions src/ape_node/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def wait(self, *args, **kwargs):
class EthereumNetworkConfig(PluginConfig):
# Make sure you are running the right networks when you try for these
mainnet: dict = {"uri": get_random_rpc("ethereum", "mainnet")}
holesky: dict = {"uri": get_random_rpc("ethereum", "holesky")}
sepolia: dict = {"uri": get_random_rpc("ethereum", "sepolia")}
# Make sure to run via `geth --dev` (or similar)
local: dict = {**DEFAULT_SETTINGS.copy(), "chain_id": DEFAULT_TEST_CHAIN_ID}
Expand Down

0 comments on commit 9c8dca1

Please sign in to comment.