pepperatzichristian-harlequin
    Updated 3 days ago
    with raw as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    left(input, 10) as funct_sig,
    input,
    value,
    output
    from monad.testnet.fact_traces
    where to_address = '0xca810d095e90daae6e867c19df6d9a8c56db2c89'
    and trace_address = 'ORIGIN'
    and tx_succeeded = 'TRUE'
    ),

    native_others as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    regexp_substr_all(substr(input, 11), '.{64}') as segmented_input,
    regexp_substr_all(substr(output, 3), '.{64}') as segmented_output,
    '0x'|| substr(segmented_input[2], 25) as user,
    '0x' || substr(segmented_input[5], 25) as token_in,
    livequery.utils.udf_hex_to_int(segmented_output[2]) as amount_in,
    '0x'|| substr(segmented_input[6], 25) as token_out,
    livequery.utils.udf_hex_to_int(segmented_output[3]) as amount_out,
    from raw
    where funct_sig = '0x7ff36ab5'
    ),

    transfers_native as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    Last run: 3 days ago
    DATE
    DAILY_VOLUME
    1
    2025-02-17 00:00:00.0000.001
    2
    2025-02-18 00:00:00.0009.31
    3
    2025-02-19 00:00:00.000601.294503925
    4
    2025-02-20 00:00:00.0009218.951947984
    5
    2025-02-21 00:00:00.00056420.562278022
    6
    2025-02-22 00:00:00.00083772.272766206
    7
    2025-02-23 00:00:00.000181851.482824675
    8
    2025-02-24 00:00:00.00080502.405017934
    9
    2025-02-25 00:00:00.00097764.557644236
    10
    2025-02-26 00:00:00.000146134.517992243
    11
    2025-02-27 00:00:00.00074722.12631792
    12
    2025-02-28 00:00:00.00052992.391694114
    13
    2025-03-01 00:00:00.00039417.252396158
    14
    2025-03-02 00:00:00.00043545.456650749
    15
    2025-03-03 00:00:00.00048255.799529711
    16
    2025-03-04 00:00:00.00052118.558312984
    17
    2025-03-05 00:00:00.00048772.668068565
    18
    2025-03-06 00:00:00.00047475.754775106
    19
    2025-03-07 00:00:00.00041176.706160531
    20
    2025-03-08 00:00:00.00039016.062103395
    29
    1KB
    58s