with SatelliteT as (
select 'Ethereum' as chain,
block_timestamp,
tx_hash,
origin_from_address,
topics[2] as User1,
concat ('0x',right(user1,40)) as User_Address
from ethereum.core.fact_event_logs
where origin_to_address = '0x4f4495243837681061c4743b74b3eedf548d56a5'
and contract_address != '0xce16f69375520ab01377ce7b88f5ba8c48f8d666' -- Squid
and event_name is null
and topics[2] is not null
UNION ALL
select 'Arbitrum' as chain,
block_timestamp,
tx_hash,
origin_from_address,
topics[2] as User1,
concat ('0x',right(user1,40)) as User_Address
from arbitrum.core.fact_event_logs
where origin_to_address = '0xe432150cce91c13a887f7d836923d5597add8e31'
and contract_address != '0xce16f69375520ab01377ce7b88f5ba8c48f8d666' -- Squid
and event_name is null
and topics[2] is not null
UNION ALL
select 'Avalanche' as chain,
block_timestamp,
tx_hash,
origin_from_address,
topics[2] as User1,
concat ('0x',right(user1,40)) as User_Address
from avalanche.core.fact_event_logs