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-03-30 00:00:00.000After Axelar Integration148
    2
    2025-03-29 00:00:00.000After Axelar Integration137
    3
    2025-03-28 00:00:00.000After Axelar Integration312
    4
    2025-03-27 00:00:00.000After Axelar Integration330
    5
    2025-03-26 00:00:00.000After Axelar Integration329
    6
    2025-03-25 00:00:00.000After Axelar Integration345
    7
    2025-03-24 00:00:00.000After Axelar Integration387
    8
    2025-03-23 00:00:00.000After Axelar Integration342
    9
    2025-03-22 00:00:00.000After Axelar Integration322
    10
    2025-03-21 00:00:00.000After Axelar Integration334
    11
    2025-03-20 00:00:00.000After Axelar Integration370
    12
    2025-03-19 00:00:00.000After Axelar Integration362
    13
    2025-03-18 00:00:00.000After Axelar Integration377
    14
    2025-03-17 00:00:00.000After Axelar Integration317
    15
    2025-03-16 00:00:00.000After Axelar Integration268
    16
    2025-03-15 00:00:00.000After Axelar Integration280
    17
    2025-03-14 00:00:00.000After Axelar Integration323
    18
    2025-03-13 00:00:00.000After Axelar Integration292
    19
    2025-03-12 00:00:00.000After Axelar Integration308
    20
    2025-03-11 00:00:00.000After Axelar Integration341
    89
    5KB
    13s