0xHaM-dETH Transfer Over Time
    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
    and origin_function_signature = '0xb1a1a882' -- depositETH

    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'))
    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}}'

    UNION
    Run a query to Download Data