adriaparcerisasflow stats: contracts after axelar
    Updated 23 hours ago
    WITH news AS (
    SELECT DISTINCT event_contract AS new_contract,
    MIN(trunc(block_timestamp, 'day')) AS debut
    FROM flow.core.fact_events
    GROUP BY 1
    ),
    evm_news AS (
    SELECT DISTINCT contract_address AS new_contract,
    MIN(trunc(block_timestamp, 'day')) AS debut
    FROM flow.core_evm.fact_event_logs
    GROUP BY 1
    ),
    combined_news AS (
    SELECT new_contract, debut FROM news
    UNION ALL
    SELECT new_contract, debut FROM evm_news
    ),
    final as (
    SELECT
    trunc(x.block_timestamp, 'day') AS date,
    COUNT(DISTINCT x.event_contract) AS active_contracts
    FROM flow.core.fact_events x
    WHERE x.tx_succeeded = 'true' and date<trunc(current_date,'day')
    GROUP BY 1

    UNION ALL

    SELECT
    trunc(y.block_timestamp, 'day') AS date,
    COUNT(DISTINCT y.contract_address) AS active_contracts
    FROM flow.core_evm.fact_event_logs y where date>'2020-01-01' and date<trunc(current_date,'day')
    GROUP BY 1
    ORDER BY date ASC
    )
    select date, case when date<'2025-01-22' then 'Before Axelar Integration' else 'After Axelar Integration' end as period, sum(active_contracts) as active_contracts from final where date>='2025-01-01' group by 1,2 order by 1 desc


    Last run: about 23 hours ago
    DATE
    PERIOD
    ACTIVE_CONTRACTS
    1
    2025-04-27 00:00:00.000After Axelar Integration610
    2
    2025-04-26 00:00:00.000After Axelar Integration673
    3
    2025-04-25 00:00:00.000After Axelar Integration633
    4
    2025-04-24 00:00:00.000After Axelar Integration614
    5
    2025-04-23 00:00:00.000After Axelar Integration552
    6
    2025-04-22 00:00:00.000After Axelar Integration515
    7
    2025-04-21 00:00:00.000After Axelar Integration507
    8
    2025-04-20 00:00:00.000After Axelar Integration469
    9
    2025-04-19 00:00:00.000After Axelar Integration503
    10
    2025-04-18 00:00:00.000After Axelar Integration468
    11
    2025-04-17 00:00:00.000After Axelar Integration578
    12
    2025-04-16 00:00:00.000After Axelar Integration422
    13
    2025-04-15 00:00:00.000After Axelar Integration429
    14
    2025-04-14 00:00:00.000After Axelar Integration533
    15
    2025-04-13 00:00:00.000After Axelar Integration432
    16
    2025-04-12 00:00:00.000After Axelar Integration442
    17
    2025-04-11 00:00:00.000After Axelar Integration407
    18
    2025-04-10 00:00:00.000After Axelar Integration386
    19
    2025-04-09 00:00:00.000After Axelar Integration352
    20
    2025-04-08 00:00:00.000After Axelar Integration345
    ...
    117
    7KB
    33s