mirror of
https://github.com/FlipsideCrypto/kaia-models.git
synced 2026-02-06 13:26:45 +00:00
Merge branch 'main' of github.com:FlipsideCrypto/kaia-models into AN-5337/kaia-phase-2-changes
This commit is contained in:
commit
cb17f196cc
@ -12,7 +12,7 @@ WITH base AS (
|
||||
to_address,
|
||||
MIN(block_number) AS start_block,
|
||||
MIN(block_timestamp) AS start_timestamp,
|
||||
MAX(_inserted_timestamp) AS _inserted_timestamp
|
||||
MAX(modified_timestamp) AS _inserted_timestamp
|
||||
FROM
|
||||
{{ ref('core__fact_traces') }}
|
||||
WHERE
|
||||
@ -22,7 +22,7 @@ WITH base AS (
|
||||
AND from_address != to_address -- exclude self-calls
|
||||
|
||||
{% if is_incremental() %}
|
||||
AND _inserted_timestamp >= (
|
||||
AND modified_timestamp >= (
|
||||
SELECT
|
||||
MAX(_inserted_timestamp) - INTERVAL '24 hours'
|
||||
FROM
|
||||
|
||||
@ -13,7 +13,7 @@ WITH contract_deployments AS (
|
||||
block_timestamp,
|
||||
from_address AS deployer_address,
|
||||
to_address AS contract_address,
|
||||
modified_timestamp AS _inserted_timestamp
|
||||
modified_timestamp as _inserted_timestamp
|
||||
FROM
|
||||
{{ ref('core__fact_traces') }}
|
||||
WHERE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user