From b6d243eef3fe16451350b25fb24d5553f0c0a8eb Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 20 Dec 2024 17:23:35 +0200 Subject: [PATCH] Add required fixes for v3 databases. --- crawlers/mooncrawl/mooncrawl/state_crawler/cli.py | 1 + crawlers/mooncrawl/setup.py | 2 +- moonstreamapi/requirements.txt | 2 +- moonstreamapi/setup.py | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crawlers/mooncrawl/mooncrawl/state_crawler/cli.py b/crawlers/mooncrawl/mooncrawl/state_crawler/cli.py index fffeb4f5..4b2a5a8b 100644 --- a/crawlers/mooncrawl/mooncrawl/state_crawler/cli.py +++ b/crawlers/mooncrawl/mooncrawl/state_crawler/cli.py @@ -195,6 +195,7 @@ def process_multicall_result( "call_data": multicall_calls[index][1], "block_number": block_number, "block_timestamp": block_timestamp, + "block_hash": block_hash, "status": encoded_data[0], "error": str(e), "v3": call.get("v3", False), diff --git a/crawlers/mooncrawl/setup.py b/crawlers/mooncrawl/setup.py index f009edfc..0102bd69 100644 --- a/crawlers/mooncrawl/setup.py +++ b/crawlers/mooncrawl/setup.py @@ -39,7 +39,7 @@ setup( "fastapi", "moonstreamdb>=0.4.5", "moonstreamdb-v3>=0.0.16", - "moonstream-types>=0.0.7", + "moonstream-types>=0.0.9", "moonstream>=0.1.1", "moonworm[moonstream]>=0.9.3", "humbug", diff --git a/moonstreamapi/requirements.txt b/moonstreamapi/requirements.txt index c79bb7ca..9399bee5 100644 --- a/moonstreamapi/requirements.txt +++ b/moonstreamapi/requirements.txt @@ -39,7 +39,7 @@ MarkupSafe==2.1.1 moonstream==0.1.1 moonstreamdb==0.4.5 moonstreamdb-v3==0.0.18 -moonstreamtypes==0.0.6 +moonstreamtypes==0.0.9 multiaddr==0.0.9 multidict==6.0.2 netaddr==0.8.0 diff --git a/moonstreamapi/setup.py b/moonstreamapi/setup.py index bc9f7d24..47a25bff 100644 --- a/moonstreamapi/setup.py +++ b/moonstreamapi/setup.py @@ -17,8 +17,8 @@ setup( "fastapi", "moonstream", "moonstreamdb>=0.4.5", - "moonstreamdb-v3>=0.0.18", - "moonstream-types>=0.0.7", + "moonstreamdb-v3>=0.1.2", + "moonstream-types>=0.0.9", "humbug", "pydantic==1.10.2", "pyevmasm",