Skip to content

Commit

Permalink
refactor: remove goerli (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: Juliya Smith <[email protected]>
  • Loading branch information
NotPeopling2day and antazoey authored Dec 5, 2024
1 parent 5ed3d13 commit cf4faf3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 5 additions & 7 deletions ape_tenderly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"ethereum": [
("mainnet", TenderlyGatewayProvider),
("mainnet-fork", TenderlyForkProvider),
("goerli", TenderlyGatewayProvider),
("goerli-fork", TenderlyForkProvider),
("sepolia", TenderlyGatewayProvider),
("sepolia-fork", TenderlyForkProvider),
],
Expand All @@ -19,19 +17,19 @@
],
"arbitrum": [
("mainnet-fork", TenderlyForkProvider),
("goerli-fork", TenderlyForkProvider),
("sepolia-fork", TenderlyForkProvider),
],
"optimism": [
("mainnet", TenderlyGatewayProvider),
("mainnet-fork", TenderlyForkProvider),
("goerli", TenderlyGatewayProvider),
("goerli-fork", TenderlyForkProvider),
("sepolia", TenderlyGatewayProvider),
("sepolia-fork", TenderlyForkProvider),
],
"base": [
("mainnet", TenderlyGatewayProvider),
("mainnet-fork", TenderlyForkProvider),
("goerli", TenderlyGatewayProvider),
("goerli-fork", TenderlyForkProvider),
("sepolia", TenderlyGatewayProvider),
("sepolia-fork", TenderlyForkProvider),
],
"avalance": [
("mainnet-fork", TenderlyForkProvider),
Expand Down
2 changes: 1 addition & 1 deletion ape_tenderly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def remove_fork(self, fork_id: str):

def get_gateway_rpc_uri(self, ecosystem_name: str, network_name: str) -> str:
if ecosystem_name == "ethereum":
# e.g. Sepolia, Goerli, etc.
# e.g. Sepolia, etc.
network_subdomain = network_name
elif network_name == "mainnet":
# e.g. Polygon mainnet, Optimism, etc.
Expand Down
3 changes: 1 addition & 2 deletions ape_tenderly/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ def connect(self):
raise ProviderError(f"Failed to connect to Tenderly Gateway.\n{repr(err)}") from err

# Any chain that *began* as PoA needs the middleware for pre-merge blocks
ethereum_goerli = 5
optimism = (10, 420)
polygon = (137, 80001)

if chain_id in (ethereum_goerli, *optimism, *polygon):
if chain_id in (*optimism, *polygon):
self._web3.middleware_onion.inject(geth_poa_middleware, layer=0)

self._web3.eth.set_gas_price_strategy(rpc_gas_price_strategy)
Expand Down

0 comments on commit cf4faf3

Please sign in to comment.