remove comments

This commit is contained in:
drethereum 2025-01-28 15:18:00 -07:00
parent cb7f33519b
commit 6170eb9175
4 changed files with 4 additions and 24 deletions

View File

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

View File

@ -1,10 +1,7 @@
{{ config(
materialized = 'incremental',
incremental_strategy = 'delete+insert',
unique_key = 'block_number',
cluster_by = ['block_timestamp::DATE'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(trace_address, from_address, to_address)",
tags = ['non_realtime','reorg']
materialized = 'view',
persist_docs ={ "relation": true,
"columns": true }
) }}
SELECT
@ -28,13 +25,4 @@ SELECT
SYSDATE() AS modified_timestamp,
identifier --deprecate
FROM
{{ ref('silver__native_transfers') }}
{% if is_incremental() %}
WHERE modified_timestamp > (
SELECT
COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp
FROM
{{ this }}
)
{% endif %}
{{ ref('silver__native_transfers') }}

View File

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

View File

@ -16,7 +16,6 @@ WITH base AS (
from_address AS origin_from_address,
to_address AS origin_to_address,
tx_status,
{# position AS tx_position, --new column #}
logs,
_inserted_timestamp
FROM
@ -40,7 +39,6 @@ flat_logs AS (
origin_from_address,
origin_to_address,
tx_status,
{# tx_position, #}
VALUE :address :: STRING AS contract_address,
VALUE :blockHash :: STRING AS block_hash,
VALUE :data :: STRING AS DATA,
@ -65,7 +63,6 @@ new_records AS (
l.origin_to_address,
txs.origin_function_signature,
l.tx_status,
{# l.tx_position, #}
l.contract_address,
l.block_hash,
l.data,
@ -110,7 +107,6 @@ missing_data AS (
t.origin_to_address,
txs.origin_function_signature,
t.tx_status,
{# t.tx_position, #}
t.contract_address,
t.block_hash,
t.data,
@ -144,7 +140,6 @@ FINAL AS (
origin_to_address,
origin_function_signature,
tx_status,
{# tx_position, #}
contract_address,
block_hash,
DATA,
@ -167,7 +162,6 @@ SELECT
origin_to_address,
origin_function_signature,
tx_status,
{# tx_position, #}
contract_address,
block_hash,
DATA,