Updated 2024-10-20
    with tab1 as (
    select
    SOURCE_ADDRESS
    from near.defi.ez_bridge_activity
    )
    select case
    when DECODED_LOG:bridgeData:destinationChainId=10 then 'Optimism'
    when DECODED_LOG:bridgeData:destinationChainId=324 then 'zkSync'
    when DECODED_LOG:bridgeData:destinationChainId=8453 then 'Base'
    when DECODED_LOG:bridgeData:destinationChainId=137 then 'Polygon'
    when DECODED_LOG:bridgeData:destinationChainId=56 then 'BNB'
    when DECODED_LOG:bridgeData:destinationChainId=59144 then 'Linea'
    when DECODED_LOG:bridgeData:destinationChainId=1 then 'Ethereum'
    when DECODED_LOG:bridgeData:destinationChainId=43114 then 'Avalanche'
    when DECODED_LOG:bridgeData:destinationChainId=250 then 'Fantom'
    when DECODED_LOG:bridgeData:destinationChainId=1101 then 'Polygon zkEVM'
    when DECODED_LOG:bridgeData:destinationChainId=1088 then 'Metis'
    when DECODED_LOG:bridgeData:destinationChainId=34443 then 'Mode'
    when DECODED_LOG:bridgeData:destinationChainId=534352 then 'Scroll'
    when DECODED_LOG:bridgeData:destinationChainId=1151111081099710 then 'Solana'
    end as dst_chain
    ,count(distinct TX_HASH) as bridges
    from arbitrum.core.ez_decoded_event_logs
    where EVENT_NAME='LiFiTransferStarted'
    and DECODED_LOG:bridgeData:integrator='jumper.exchange'
    and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and ORIGIN_FROM_ADDRESS in (select SOURCE_ADDRESS from tab1)
    and dst_chain is not null
    group by 1


    QueryRunArchived: QueryRun has been archived