This commit is contained in:
Austin 2025-02-11 19:35:51 -05:00
parent a28f048ba1
commit 6ff5cd17a8
9 changed files with 9 additions and 15 deletions

View File

@ -15,6 +15,8 @@ models:
- name: NONCE
description: '{{ doc("dexalot_tx_nonce") }}'
- name: POSITION
description: '{{ doc("evm_column_deprecation_notice_position") }}'
- name: TX_POSITION
description: '{{ doc("dexalot_tx_position") }}'
- name: FROM_ADDRESS
description: '{{ doc("dexalot_from_address") }}'

View File

@ -26,10 +26,7 @@ WITH base_evt AS (
origin_from_address AS recipient,
TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS nonce,
TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS messenger,
CASE
WHEN tx_succeeded THEN TRUE
ELSE FALSE
END AS tx_succeeded,
tx_succeeded,
CONCAT(
tx_hash,
'-',
@ -70,10 +67,7 @@ lp_evt AS (
TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS amount,
TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS vUsdAmount,
TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS fee,
CASE
WHEN tx_succeeded THEN TRUE
ELSE FALSE
END AS tx_succeeded,
tx_succeeded,
CONCAT(
tx_hash,
'-',

View File

@ -30,7 +30,7 @@ WITH base_contracts AS (
from_address = LOWER('0x808d7c71ad2ba3FA531b068a2417C63106BC0949')
AND TYPE ILIKE 'create%'
AND tx_succeeded
AND trace_status = 'SUCCESS'
AND trace_succeeded
{% if is_incremental() %}
AND _inserted_timestamp >= (

View File

@ -146,7 +146,6 @@ AND et.modified_timestamp >= (
{{ this }}
)
AND et.modified_timestamp >= SYSDATE() - INTERVAL '7 day'
AND et.block_timestamp >= SYSDATE() - INTERVAL '7 day'
{% endif %}
),
all_transfers AS (

View File

@ -43,7 +43,7 @@ WITH contract_deployments AS (
)
AND TYPE ILIKE 'create%'
AND tx_succeeded
AND trace_status = 'SUCCESS'
AND trace_succeeded
{% if is_incremental() %}
AND _inserted_timestamp >= (

View File

@ -23,7 +23,7 @@ WITH contract_deployments AS (
)
AND TYPE ILIKE 'create%'
AND tx_succeeded
AND trace_status = 'SUCCESS'
AND trace_succeeded
{% if is_incremental() %}
AND _inserted_timestamp >= (

View File

@ -20,7 +20,7 @@ WITH contract_deployments AS (
from_address = '0x416a7989a964c9ed60257b064efc3a30fe6bf2ee'
AND TYPE ILIKE 'create%'
AND tx_succeeded
AND trace_status = 'SUCCESS'
AND trace_succeeded
{% if is_incremental() %}
AND _inserted_timestamp >= (

View File

@ -43,7 +43,6 @@ AND l.modified_timestamp >= (
{{ this }}
)
AND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'
AND l.block_timestamp >= SYSDATE() - INTERVAL '7 day'
{% endif %}
),
traces_pull AS (

View File

@ -253,7 +253,7 @@ old_native_transfers AS (
AND TYPE = 'CALL'
AND avax_value > 0
AND tx_status = 'SUCCESS'
AND trace_status = 'SUCCESS'
AND trace_succeeded
{% if is_incremental() %}
AND modified_timestamp >= (