Skip to content

Commit

Permalink
Merge pull request #1123 from moonstream-to/update-moonstream-types
Browse files Browse the repository at this point in the history
Add chains for HC.
  • Loading branch information
Andrei-Dolgolev authored Aug 13, 2024
2 parents 88a6d47 + 9e0e99e commit 5c3941b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
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

0 comments on commit 5c3941b

Please sign in to comment.