MLDZMNComp 2
    Updated 2024-11-28
    -- forked from Comp 1 @ https://flipsidecrypto.xyz/studio/queries/e34874a2-a6b1-4c17-b2a6-3cbfeb79f03e

    select

    case
    when NAME ilike 'skill%' then 'skill'
    when NAME ilike 'contract%' then 'contract'
    when NAME ilike 'protocol%' then 'protocol'
    when NAME ilike 'connection%' then 'connection'
    when NAME ilike 'custom%' then 'custom'
    else null
    end as component_type,

    count(distinct TX_HASH) as no_components


    from crosschain.olas.ez_unit_registrations
    where UNIT_TYPE = 'component'
    group by 1 having component_type is not null


    QueryRunArchived: QueryRun has been archived