adriaparcerisasflow stats: contracts after axelar
    Updated 5 days 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: 5 days ago
    DATE
    PERIOD
    ACTIVE_CONTRACTS
    1
    2025-05-18 00:00:00.000After Axelar Integration353
    2
    2025-05-17 00:00:00.000After Axelar Integration356
    3
    2025-05-16 00:00:00.000After Axelar Integration475
    4
    2025-05-15 00:00:00.000After Axelar Integration734
    5
    2025-05-14 00:00:00.000After Axelar Integration598
    6
    2025-05-13 00:00:00.000After Axelar Integration487
    7
    2025-05-12 00:00:00.000After Axelar Integration471
    8
    2025-05-11 00:00:00.000After Axelar Integration431
    9
    2025-05-10 00:00:00.000After Axelar Integration447
    10
    2025-05-09 00:00:00.000After Axelar Integration493
    11
    2025-05-08 00:00:00.000After Axelar Integration822
    12
    2025-05-07 00:00:00.000After Axelar Integration1151
    13
    2025-05-06 00:00:00.000After Axelar Integration636
    14
    2025-05-05 00:00:00.000After Axelar Integration639
    15
    2025-05-04 00:00:00.000After Axelar Integration598
    16
    2025-05-03 00:00:00.000After Axelar Integration550
    17
    2025-05-02 00:00:00.000After Axelar Integration808
    18
    2025-05-01 00:00:00.000After Axelar Integration856
    19
    2025-04-30 00:00:00.000After Axelar Integration854
    20
    2025-04-29 00:00:00.000After Axelar Integration888
    ...
    138
    8KB
    21s