kidaSquid Router Trading Stats (Most Chains)
    Updated 2023-05-08
    with

    base_eth as (
    select distinct
    origin_from_address
    from ethereum.core.ez_decoded_event_logs
    where full_decoded_log:name = 'NativeGasPaidForContractCallWithToken'
    and decoded_log:sourceAddress = '0xce16f69375520ab01377ce7b88f5ba8c48f8d666' -- squid router contract address
    and tx_status = 'SUCCESS'
    and not event_removed
    ),

    base_bsc as (
    select distinct
    origin_from_address
    from bsc.core.fact_event_logs
    where origin_to_address = '0xce16f69375520ab01377ce7b88f5ba8c48f8d666' -- squid router
    and contract_address = '0x2d5d7d31f671f86c782533cc367f14109a082712' -- axelar gateway
    and topics[0] = '0x999d431b58761213cf53af96262b67a069cbd963499fd8effd1e21556217b841'
    and tx_status = 'SUCCESS'
    and not event_removed
    ),

    base_avax as (
    select distinct
    origin_from_address
    from avalanche.core.ez_decoded_event_logs
    where full_decoded_log:name = 'NativeGasPaidForContractCallWithToken'
    and decoded_log:sourceAddress = '0xce16f69375520ab01377ce7b88f5ba8c48f8d666' -- squid router contract address
    and tx_status = 'SUCCESS'
    and not event_removed
    ),

    base_polygon as (
    select distinct
    origin_from_address
    Run a query to Download Data