Updated 2025-02-26
    with table1 as (select block_timestamp, source_address as user
    from crosschain.defi.ez_bridge_activity
    where platform in ('wormhole')
    and block_timestamp::date>='2024-01-01'
    and source_chain in ('arbitrum','avalanche','base','bsc','bnb','binance smart chain','ethereum','optimism','polygon','avalanche c-chain')),

    table2 as (select block_timestamp, source_address as user
    from crosschain.defi.ez_bridge_activity
    where platform in ('wormhole') and block_timestamp::date>='2024-01-01'
    and source_chain in ('solana')),

    table3 as (select block_timestamp, sender as user
    from aptos.defi.ez_bridge_activity
    where source_chain in ('Aptos','aptos') and platform in ('wormhole')
    and block_timestamp::date>='2024-01-01'),

    table4 as (with tab1 as (select address
    from sei.core.dim_labels
    where label_type='bridge' and label='wormhole'),

    tab2 as (select block_timestamp, tx_id, sender, receiver, amount, currency
    from sei.core.fact_transfers
    where tx_succeeded='TRUE')

    select block_timestamp, sender as user
    from tab1 left join tab2 on tab1.address=tab2.receiver
    where currency='usei' and block_timestamp::date>='2024-01-01')

    select * from table1 union all
    select * from table2 union all
    select * from table3 union all
    select * from table4
    Last run: 17 days ago
    BLOCK_TIMESTAMP
    USER
    1
    2024-05-29 08:28:14.0000xe83f75907fb4c575414fa6f5cfe8cef24dc5870c
    2
    2024-05-29 21:16:27.0000x0a6c69327d517568e6308f1e1cd2fd2b2b3cd4bf
    3
    2024-05-29 02:02:22.0000x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675
    4
    2024-05-29 13:10:32.0000x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675
    5
    2024-05-29 03:19:48.0000xf04d00d9beea896445c29364f7f13004369d5add
    6
    2024-05-29 01:09:38.0000x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675
    7
    2024-05-29 20:30:17.0000x7fccf1120e056d2e32fd2654a4043adc4c33e9ca
    8
    2024-05-29 14:16:52.0000x2040de680d0a102ce0527812aece0c5fbda52974
    9
    2024-05-29 04:29:51.0000x9acb980634ffac234e773d55d3edc1d9dcd3e02d
    10
    2024-05-29 10:40:27.0000xc8d5cf84e1aa38ffa9e5e532fc97b2f6e1c4740c
    10
    731B
    2s