upgrades (#75)

* upgrades

* fix
This commit is contained in:
Austin 2024-11-20 11:47:22 -05:00 committed by GitHub
parent 86773efd02
commit 4cf9cb9183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -15,12 +15,17 @@ WITH base AS (
total_interaction_count >= 100
{% if is_incremental() %}
EXCEPT
and contract_address not in (
SELECT
contract_address
FROM
{{ this }}
WHERE
abi_data :data :result :: STRING <> 'Max rate limit reached'
)
{% endif %}
ORDER BY
total_interaction_count DESC
LIMIT
50
), row_nos AS (

View File

@ -30,11 +30,7 @@ GROUP BY
),
function_calls AS (
SELECT
IFF(
TYPE = 'DELEGATECALL',
from_address,
to_address
) AS contract_address,
to_address AS contract_address,
COUNT(*) AS function_call_count,
MAX(_inserted_timestamp) AS max_inserted_timestamp_traces,
MAX(block_number) AS latest_call_block