adriaparcerisasflow stargate bridges
    Updated 3 days ago
    WITH token_info AS (
    SELECT
    '0xf1815bd50389c46847f0bda824ec8da914045d14' as token_address, 'USDC' as token_name, 6 as decimals
    UNION ALL
    SELECT '0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590', 'WETH', 18
    UNION ALL
    SELECT '0x2aabea2058b5ac2d339b163c6ab6f2b6d53aabed', 'USDF', 6
    UNION ALL
    SELECT '0x674843c06ff83502ddb4d37c2e09c01cda38cbc8', 'USDT', 6
    UNION ALL
    SELECT '0xfa0e06b54986ad96de87a8c56fea76fbd8d493f8', 'USDF', 6
    UNION ALL
    SELECT '0xea3910f1c6e687b59835885904a2fd1944b51ec6', 'TRUMP', 18
    ),

    bridge_transfers AS (
    SELECT
    block_timestamp::Date as date,
    tx_hash,
    contract_address as token_address,
    '0x' || substr(TOPIC_1,27) as from_address,
    '0x' || substr(TOPIC_2,27) as user_address,
    TRY_TO_NUMBER(livequery.utils.udf_hex_to_int(DATA)) as amount_raw,
    t.token_name,
    t.decimals,
    CASE
    WHEN amount_raw IS NOT NULL THEN amount_raw/pow(10,decimals)
    ELSE TRY_TO_NUMBER(data, 16)/pow(10,decimals)
    END as amount
    FROM flow.core_evm.fact_event_logs e
    JOIN token_info t ON e.contract_address = t.token_address
    WHERE origin_to_address = '0xa20db4ffe74a31d17fc24bd32a7dd7555441058e'
    AND topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    AND tx_succeeded = 'TRUE'
    AND '0x' || substr(TOPIC_1,27) = '0x0000000000000000000000000000000000000000'
    ),
    Last run: 3 days ago
    DATE
    SOURCE_CHAIN
    TOKEN_NAME
    UNIQUE_USERS
    TX_COUNT
    VOLUME_USD
    AVG_TRANSFER_USD
    MEDIAN_TRANSFER_USD
    AVG_VOLUME_PER_USER
    1
    2025-05-26 00:00:00.000ArbitrumUSDT12963.905745481.9528725481.9528725963.905745
    2
    2025-05-26 00:00:00.000BaseUSDC11389.936845389.936845389.936845389.936845
    3
    2025-05-25 00:00:00.000EthereumUSDF1199502.25181999502.25181999502.25181999502.251819
    4
    2025-05-25 00:00:00.000BaseUSDC4414235.783558.9452523558.945
    5
    2025-05-25 00:00:00.000Other ChainsUSDC1194.17212594.17212594.17212594.172125
    6
    2025-05-25 00:00:00.000SolanaUSDF2274373737
    7
    2025-05-25 00:00:00.000GravityUSDC1120.17682520.17682520.17682520.176825
    8
    2025-05-25 00:00:00.000AbstractUSDT110.0999390.0999390.0999390.099939
    9
    2025-05-24 00:00:00.000EthereumUSDF33747884.795993249294.93199766759998.795993249294.931997667
    10
    2025-05-24 00:00:00.000Other ChainsUSDC22449.414888224.707444224.707444224.707444
    11
    2025-05-24 00:00:00.000ArbitrumUSDC22176.240688.120388.120388.1203
    12
    2025-05-24 00:00:00.000GravityUSDC4488.11002922.027507255.967747522.02750725
    13
    2025-05-24 00:00:00.000Other ChainsWETH1183.38049012583.38049012583.38049012583.380490125
    14
    2025-05-24 00:00:00.000ArbitrumWETH223.3148207081.6574103541.6574103541.657410354
    15
    2025-05-24 00:00:00.000BSCUSDC111.11.11.11.1
    16
    2025-05-23 00:00:00.000EthereumUSDF1199598.44104899598.44104899598.44104899598.441048
    17
    2025-05-23 00:00:00.000BaseUSDC1229001.5614500.7814500.7829001.56
    18
    2025-05-23 00:00:00.000SolanaUSDF1120000.35801620000.35801620000.35801620000.358016
    19
    2025-05-23 00:00:00.000BaseWETH1116517.0433654616517.0433654616517.0433654616517.04336546
    20
    2025-05-23 00:00:00.000GravityUSDC11112.846799112.846799112.846799112.846799
    ...
    1116
    102KB
    40s