generated from ApeWorX/project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Handle 0.7 breaking changes and updates [APE-1608] (#9)
- Loading branch information
1 parent
9e9f30e
commit 7d08472
Showing
5 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from ape import plugins | ||
|
||
from .providers import ETH_NETWORKS, Chainstack | ||
from .providers import Chainstack | ||
from .utils import NETWORKS | ||
|
||
|
||
@plugins.register(plugins.ProviderPlugin) | ||
def providers(): | ||
for network_name in ETH_NETWORKS: | ||
yield "ethereum", network_name, Chainstack | ||
for ecosystem_name in NETWORKS: | ||
for network_name in NETWORKS[ecosystem_name]: | ||
yield ecosystem_name, network_name, Chainstack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Dict, List | ||
|
||
API_KEY_ENV_KEY_MAP = { | ||
"base": "BASE_CHAINSTACK_API_KEY", | ||
"ethereum": "ETH_CHAINSTACK_API_KEY", | ||
"gnosis": "GNOSIS_CHAINSTACK_API_KEY", | ||
"optimism": "OPTIMISM_CHAINSTACK_API_KEY", | ||
"polygon": "POLYGON_CHAINSTACK_API_KEY", | ||
} | ||
|
||
NETWORKS: Dict[str, List[str]] = { | ||
"base": ["mainnet", "goerli", "sepolia"], | ||
"ethereum": ["mainnet", "ropsten", "rinkeby", "goerli", "sepolia"], | ||
"gnosis": ["mainnet", "chiado"], | ||
"optimism": ["mainnet", "goerli", "sepolia"], | ||
"polygon": ["mainnet"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters