Skip to content

Commit

Permalink
Merge pull request #1111 from moonstream-to/bytea-address-format
Browse files Browse the repository at this point in the history
Bytea address format
  • Loading branch information
Andrei-Dolgolev authored Jul 15, 2024
2 parents 541a55f + 5166596 commit 5387eea
Show file tree
Hide file tree
Showing 6 changed files with 763 additions and 12 deletions.
10 changes: 5 additions & 5 deletions crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def add_events_to_session(
"block_timestamp": label_event.block_timestamp,
"caller_address": None,
"origin_address": None,
"address": label_event.address,
"address": bytes.fromhex(label_event.address[2:]),
"label_name": label_event.label_name,
"label_type": "event",
"label_data": label_event.label_data,
Expand Down Expand Up @@ -345,7 +345,7 @@ def add_function_calls_to_session(
for function_call in function_calls:

label_function_call = _function_call_to_label(
blockchain_type, function_call, db_version
blockchain_type, function_call, db_version, label_name
)

record = {
Expand All @@ -355,9 +355,9 @@ def add_function_calls_to_session(
"block_number": label_function_call.block_number,
"block_hash": label_function_call.block_hash,
"block_timestamp": label_function_call.block_timestamp,
"caller_address": label_function_call.caller_address,
"origin_address": label_function_call.caller_address,
"address": label_function_call.address,
"caller_address": bytes.fromhex(label_function_call.caller_address[2:]),
"origin_address": bytes.fromhex(label_function_call.caller_address[2:]),
"address": bytes.fromhex(label_function_call.address[2:]),
"label_name": label_function_call.label_name,
"label_type": "tx_call",
"label_data": label_function_call.label_data,
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.9"
MOONCRAWL_VERSION = "0.4.10"
2 changes: 1 addition & 1 deletion crawlers/mooncrawl/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"chardet",
"fastapi",
"moonstreamdb>=0.4.5",
"moonstreamdb-v3>=0.0.11",
"moonstreamdb-v3>=0.0.13",
"moonstream-types>=0.0.4",
"moonstream>=0.1.1",
"moonworm[moonstream]>=0.9.2",
Expand Down
Loading

0 comments on commit 5387eea

Please sign in to comment.