Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chains for HC. #1123

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crawlers/mooncrawl/mooncrawl/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
MOONSTREAM_NODE_MANTLE_A_EXTERNAL_URI,
MOONSTREAM_NODE_MANTLE_SEPOLIA_A_EXTERNAL_URI,
MOONSTREAM_NODE_GAME7_ORBIT_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI,
MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI,
MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI,
WEB3_CLIENT_REQUEST_TIMEOUT_SECONDS,
)

Expand Down Expand Up @@ -80,6 +83,9 @@ class BlockCrawlError(Exception):
AvailableBlockchainType.MANTLE: MOONSTREAM_NODE_MANTLE_A_EXTERNAL_URI,
AvailableBlockchainType.MANTLE_SEPOLIA: MOONSTREAM_NODE_MANTLE_SEPOLIA_A_EXTERNAL_URI,
AvailableBlockchainType.GAME7_ORBIT_ARBITRUM_SEPOLIA: MOONSTREAM_NODE_GAME7_ORBIT_ARBITRUM_SEPOLIA_A_EXTERNAL_URI,
AvailableBlockchainType.IMX_ZKEVM: MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI,
AvailableBlockchainType.GAME7_TESTNET: MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI,
AvailableBlockchainType.SEPOLIA: MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI,
}


Expand Down
22 changes: 22 additions & 0 deletions crawlers/mooncrawl/mooncrawl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,28 @@
"MOONSTREAM_NODE_GAME7_ORBIT_ARBITRUM_SEPOLIA_A_EXTERNAL_URI env variable is not set"
)

MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI = os.environ.get(
"MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI", ""
)
if MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI == "":
raise Exception(
"MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI env variable is not set"
)


MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI = os.environ.get(
"MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI", ""
)
if MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI == "":
raise Exception("MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI env variable is not set")


MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI = os.environ.get(
"MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI", ""
)
if MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI == "":
raise Exception("MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI env variable is not set")


MOONSTREAM_CRAWL_WORKERS = 4
MOONSTREAM_CRAWL_WORKERS_RAW = os.environ.get("MOONSTREAM_CRAWL_WORKERS")
Expand Down
2 changes: 1 addition & 1 deletion crawlers/mooncrawl/mooncrawl/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Moonstream crawlers version.
"""

MOONCRAWL_VERSION = "0.4.12"
MOONCRAWL_VERSION = "0.4.13"
3 changes: 3 additions & 0 deletions crawlers/mooncrawl/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export MOONSTREAM_NODE_MANTLE_SEPOLIA_A_EXTERNAL_URI="https://<connection_path_u
export MOONSTREAM_NODE_MANTLE_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"
export MOONSTREAM_NODE_STARKNET_SEPOLIA_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"
export MOONSTREAM_NODE_STARKNET_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"
export MOONSTREAM_NODE_SEPOLIA_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"
export MOONSTREAM_NODE_GAME7_TESTNET_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"
export MOONSTREAM_NODE_IMX_ZKEVM_A_EXTERNAL_URI="https://<connection_path_uri_to_node>"


# AWS environment variables
Expand Down
4 changes: 2 additions & 2 deletions crawlers/mooncrawl/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"chardet",
"fastapi",
"moonstreamdb>=0.4.5",
"moonstreamdb-v3>=0.0.13",
"moonstream-types>=0.0.4",
"moonstreamdb-v3>=0.0.16",
"moonstream-types>=0.0.6",
"moonstream>=0.1.1",
"moonworm[moonstream]>=0.9.3",
"humbug",
Expand Down
Loading