misc updates for deprecating columns

This commit is contained in:
drethereum 2025-01-28 14:12:51 -07:00
parent f90649b357
commit af7517a4ec
6 changed files with 18 additions and 8 deletions

View File

@ -8,7 +8,7 @@ SELECT
block_number,
block_timestamp,
tx_hash,
{# tx_position, --new column, requires FR on silver.decoded_logs #}
{# tx_position, --new column, requires FR on silver.decoded_logs (FR during migration to fsc-evm v4) #}
event_index,
contract_address,
topics,

View File

@ -8,7 +8,7 @@ SELECT
block_number,
block_timestamp,
tx_hash,
{# tx_position, --new column, requires FR on silver.logs #}
{# tx_position, --new column, requires FR on silver.logs (during migration to fsc-evm v4) #}
event_index,
contract_address,
topics,

View File

@ -32,7 +32,7 @@ WITH bridge_native AS (
FROM
{{ ref('silver__native_transfers') }}
et
INNER JOIN {{ ref('silver__transactions') }}
INNER JOIN {{ ref('core__fact_transactions') }}
tx
ON et.block_number = tx.block_number
AND et.tx_hash = tx.tx_hash

View File

@ -53,7 +53,11 @@ underlying AS (
FROM
{{ ref('core__fact_traces') }}
WHERE
identifier = 'CALL_0_1'
CONCAT(
TYPE,
'_',
trace_address
) = 'CALL_0_1'
AND LEFT(
input,
10
@ -77,7 +81,11 @@ unwrapped AS (
FROM
{{ ref('core__fact_traces') }}
WHERE
identifier = 'CALL_0_0'
CONCAT(
TYPE,
'_',
trace_address
) = 'CALL_0_0'
AND LEFT(
input,
10

View File

@ -127,9 +127,12 @@ trace_pull AS (
input,
output,
TYPE,
identifier,
CONCAT(
TYPE,
'_',
trace_address
) AS identifier,
DATA,
tx_status,
sub_traces,
CASE
WHEN trace_status = 'SUCCESS' THEN TRUE

View File

@ -37,7 +37,6 @@ withdraw_logs AS (
contract_address,
DATA,
topics,
tx_status,
modified_timestamp,
CASE
WHEN tx_status = 'SUCCESS' THEN TRUE