with hop_bridger as (with hop as (
select
tx_hash
from ethereum.core.fact_event_logs
where event_inputs:chainId = '10'
and contract_address in ('0xb8901acb165ed027e32754e0ffe830802919727f', '0x3666f603cc164936c1b87e207f36beba4ac5f18a',
'0x3e4a3a4796d16c0cd582c382691998f7c06420b6', '0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1', '0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2')
),
hop_usd_amount as (
select
block_timestamp,
origin_from_address,
tx_hash,
amount_usd
from ethereum.core.ez_eth_transfers
where tx_hash in (select tx_hash from hop)
union
select
block_timestamp,
origin_from_address,
tx_hash,
amount_usd
from ethereum.core.ez_token_transfers
where tx_hash in ( select tx_hash from hop)
),
native_bridge as (
select
block_timestamp,
origin_from_address,
tx_hash,
amount_usd
from ethereum.core.ez_eth_transfers
where eth_to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'
union
select