adriaparcerisasflow stats: new contracts after axelar
    Updated 2 days ago
    WITH core_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 AS new_contract,
    MIN(trunc(block_timestamp, 'day')) AS debut
    FROM (
    select x.block_timestamp, x.from_address as creator,y.contract_address as contract
    from flow.core_evm.fact_transactions x
    join flow.core_evm.fact_event_logs y on x.tx_hash=y.tx_hash
    where y.topics[0] ilike '%0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0%'
    UNION
    select x.block_timestamp, x.from_address as creator, x.tx_hash as contract
    from flow.core_evm.fact_transactions x
    where (x.origin_function_signature='0x60c06040' or x.origin_function_signature='0x60806040') and tx_hash not in (select x.tx_hash
    from flow.core_evm.fact_transactions x
    join flow.core_evm.fact_event_logs y on x.tx_hash=y.tx_hash
    where y.topics[0] ilike '%0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0%')
    )
    GROUP BY 1
    ),
    combined_news AS (
    SELECT new_contract, debut FROM core_news
    UNION ALL
    SELECT new_contract, debut FROM evm_news
    ),
    final as (
    SELECT
    debut AS date,
    COUNT(DISTINCT new_contract) AS new_contracts,
    SUM(COUNT(DISTINCT new_contract)) OVER (ORDER BY debut) AS unique_contracts
    FROM combined_news where date>'2020-01-01' and date<trunc(current_date,'day')
    GROUP BY debut
    Last run: 2 days ago
    DATE
    PERIOD
    NEW_CONTRACTS
    1
    2025-05-18 00:00:00.000After Axelar Integration50
    2
    2025-05-17 00:00:00.000After Axelar Integration48
    3
    2025-05-16 00:00:00.000After Axelar Integration331
    4
    2025-05-15 00:00:00.000After Axelar Integration717
    5
    2025-05-14 00:00:00.000After Axelar Integration399
    6
    2025-05-13 00:00:00.000After Axelar Integration249
    7
    2025-05-12 00:00:00.000After Axelar Integration138
    8
    2025-05-11 00:00:00.000After Axelar Integration428
    9
    2025-05-10 00:00:00.000After Axelar Integration596
    10
    2025-05-09 00:00:00.000After Axelar Integration189
    11
    2025-05-08 00:00:00.000After Axelar Integration581
    12
    2025-05-07 00:00:00.000After Axelar Integration896
    13
    2025-05-06 00:00:00.000After Axelar Integration921
    14
    2025-05-05 00:00:00.000After Axelar Integration3540
    15
    2025-05-04 00:00:00.000After Axelar Integration1540
    16
    2025-05-03 00:00:00.000After Axelar Integration189
    17
    2025-05-02 00:00:00.000After Axelar Integration389
    18
    2025-05-01 00:00:00.000After Axelar Integration685
    19
    2025-04-30 00:00:00.000After Axelar Integration461
    20
    2025-04-29 00:00:00.000After Axelar Integration742
    ...
    138
    8KB
    63s