mirror of
https://github.com/FlipsideCrypto/avalanche-models.git
synced 2026-02-06 15:36:51 +00:00
updates
This commit is contained in:
parent
a28f048ba1
commit
6ff5cd17a8
@ -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") }}'
|
||||
|
||||
@ -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,
|
||||
'-',
|
||||
|
||||
@ -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 >= (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 >= (
|
||||
|
||||
@ -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 >= (
|
||||
|
||||
@ -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 >= (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 >= (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user