BlockTrackermain query (swap) total
    Updated 2024-05-22
    -- forked from main query (swap) @ https://flipsidecrypto.xyz/edit/queries/7fe6bf7a-577f-460d-ae03-2598d65247f6

    with ethereum_chain_data as (
    select
    'ethereum' as chain,
    'LiFi' as aggregator,
    block_timestamp,
    tx_hash,
    event_index,
    origin_from_address,
    decoded_log : fromAssetId :: string as "fromAssetId",
    decoded_log : toAssetId :: string as "toAssetId",
    decoded_log : fromAmount :: int as "fromAmount",
    decoded_log : toAmount :: int as "toAmount"
    from ethereum.core.ez_decoded_event_logs
    where event_name IN ('LiFiGenericSwapCompleted','LiFiSwappedGeneric')
    and decoded_log:integrator :: string = 'jumper.exchange'
    and block_timestamp::date >= '2024-01-01'
    )
    ,
    arbitrum_chain_data as (
    select
    'arbitrum' as chain,
    'LiFi' as aggregator,
    block_timestamp,
    tx_hash,
    event_index,
    origin_from_address,
    decoded_log : fromAssetId :: string as "fromAssetId",
    decoded_log : toAssetId :: string as "toAssetId",
    decoded_log : fromAmount :: int as "fromAmount",
    decoded_log : toAmount :: int as "toAmount"
    from arbitrum.core.ez_decoded_event_logs
    where event_name IN ('LiFiGenericSwapCompleted','LiFiSwappedGeneric')
    and decoded_log:integrator :: string = 'jumper.exchange'
    and block_timestamp::date >= '2024-01-01'
    QueryRunArchived: QueryRun has been archived