mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 14:11:55 +00:00
misc updates for deprecating columns
This commit is contained in:
parent
f90649b357
commit
af7517a4ec
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -37,7 +37,6 @@ withdraw_logs AS (
|
||||
contract_address,
|
||||
DATA,
|
||||
topics,
|
||||
tx_status,
|
||||
modified_timestamp,
|
||||
CASE
|
||||
WHEN tx_status = 'SUCCESS' THEN TRUE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user