misc updates

This commit is contained in:
drethereum 2025-01-28 15:01:59 -07:00
parent 4395c4e31b
commit cb7f33519b
6 changed files with 18 additions and 8 deletions

View File

@ -83,6 +83,12 @@ This table is being deprecated for standardization purposes. Please update your
{% enddocs %}
{% docs evm_table_deprecation_notice_fact_token_transfers %}
This table is being deprecated for standardization purposes. Please update your queries to use `ez_token_transfers` instead by February 3, 2025.
{% enddocs %}
{% docs evm_column_deprecation_notice_l1_state_root_tx_hash %}
This column is being deprecated for standardization purposes. Please remove from your queries by February 3, 2025.

View File

@ -28,4 +28,4 @@ SELECT
inserted_timestamp,
modified_timestamp
FROM
{{ ref('silver__transfers') }}
{{ ref('silver__transfers') }}

View File

@ -1,7 +1,7 @@
version: 2
models:
- name: core__fact_token_transfers
description: '{{ doc("evm_fact_token_transfers_table_doc") }}'
description: '{{ doc("evm_table_deprecation_notice_fact_token_transfers") }}'
columns:
- name: BLOCK_NUMBER

View File

@ -119,10 +119,14 @@ transfers AS (
tx_hash,
event_index,
contract_address AS token_address,
_log_id,
_inserted_timestamp
CONCAT(
tx_hash :: STRING,
'-',
event_index :: STRING
) AS _log_id,
modified_timestamp AS _inserted_timestamp
FROM
{{ ref('silver__transfers') }}
{{ ref('core__ez_token_transfers') }}
WHERE
from_address = '0x492751ec3c57141deb205ec2da8bfcb410738630'
AND to_address IN (

View File

@ -153,7 +153,7 @@ token_transfer AS (
tx_hash,
contract_address AS token_address
FROM
{{ ref('silver__transfers') }}
{{ ref('core__ez_token_transfers') }}
WHERE
tx_hash IN (
SELECT

View File

@ -27,10 +27,10 @@ WITH bridge_native AS (
origin_from_address AS recipient,
et.to_address AS bridge_address,
trace_index,
native_transfers_id,
ez_native_transfers_id AS native_transfers_id,
et.modified_timestamp
FROM
{{ ref('silver__native_transfers') }}
{{ ref('core__ez_native_transfers') }}
et
INNER JOIN {{ ref('core__fact_transactions') }}
tx