Fix/decode traces rt (#1060)

* decoded traces issues

* contracts

* alias
This commit is contained in:
drethereum 2025-05-20 13:29:38 -06:00 committed by GitHub
parent 6bd474440b
commit 1be38f6a3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 12 deletions

View File

@ -126,11 +126,7 @@
from_address,
to_address,
TYPE,
REGEXP_REPLACE(
identifier,
'[A-Z]+_',
''
) AS trace_address,
trace_address,
sub_traces,
CASE
WHEN sub_traces > 0

View File

@ -157,7 +157,7 @@ FROM
tb.block_timestamp
) = tp.hour
AND tp.token_address = tb.contract_address
LEFT JOIN {{ ref("silver__contracts") }} C
LEFT JOIN {{ ref("core__dim_contracts") }} C
ON tb.contract_address = LOWER(
C.address
)

View File

@ -26,11 +26,8 @@ WITH look_back AS (
from_address,
to_address,
TYPE,
REGEXP_REPLACE(
identifier,
'[A-Z]+_',
''
) AS trace_address,
CONCAT(type,'_',trace_address) AS identifier,
trace_address,
sub_traces,
CASE
WHEN sub_traces > 0
@ -47,7 +44,7 @@ WITH look_back AS (
'-',
t.block_number,
t.tx_position,
t.identifier
identifier
) AS _call_id
FROM
{{ ref("core__fact_traces") }}