0xHaM-dNon ETH Transfer in total
    Updated 2022-10-23
    with Bridge as (
    select
    block_timestamp as send_date,
    'Standard Op' as bridg,
    origin_from_address as eth_user
    from ethereum.core.ez_eth_transfers
    where origin_to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1' -- Optimism: Gateway
    and block_timestamp::date >= CURRENT_DATE() - interval '{{number_of_timeframe }} {{timeframe}}'
    and origin_to_address = eth_to_address

    UNION
    select
    block_timestamp as send_date,
    'Hop' as bridg,
    origin_from_address as eth_user
    from ethereum.core.fact_event_logs
    where event_inputs:chainId = '10'
    and contract_address in (lower('0xb8901acb165ed027e32754e0ffe830802919727f'),lower('0x3666f603cc164936c1b87e207f36beba4ac5f18a'),
    lower('0x3e4a3a4796d16c0cd582c382691998f7c06420b6'),
    lower('0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1'), lower('0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2'))
    and block_timestamp::date >= CURRENT_DATE() - interval '{{number_of_timeframe }} {{timeframe}}'
    UNION
    select
    block_timestamp as send_date,
    'Across' as bridg,
    origin_from_address as eth_user
    from optimism.core.fact_token_transfers
    where ORIGIN_TO_ADDRESS = lower('0xa420b2d1c0841415A695b81E5B867BCD07Dff8C9')
    and CONTRACT_ADDRESS != lower('0x4200000000000000000000000000000000000006')
    and origin_function_signature in ('0x49228978')
    and block_timestamp::date >= CURRENT_DATE() - interval '{{number_of_timeframe }} {{timeframe}}'

    Run a query to Download Data