adriaparcerisaswFLOW mints and burns
    Updated 3 days ago
    -- unrwap wflow to flow 0x9db24dee5d3d7cca9ebbbf738ec78722c24f49bb16de4f23f45906b61efab267
    -- wrap flow to wflow 0x6f81ff66eaaea5214b89c7c22ca37a1b0a2010f22438fd9419968d768d9f371d

    with
    wraps as(
    select x.tx_hash, x.origin_from_address, y.value, y.tx_fee, x.block_timestamp
    from flow.core_evm.fact_event_logs x join flow.core_evm.fact_transactions y on x.tx_hash=y.tx_hash
    where --origin_to_address='0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e' or
    contract_address='0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e'
    and x.origin_function_signature='0xd0e30db0'
    ),
    unwraps as(
    select x.tx_hash, x.origin_from_address, y.value, y.tx_fee, x.block_timestamp
    from flow.core_evm.fact_event_logs x join flow.core_evm.fact_transactions y on x.tx_hash=y.tx_hash
    where --origin_to_address='0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e' or
    contract_address='0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e'
    and x.origin_function_signature='0x2e1a7d4d'
    ),
    totals as (
    select *,'Wrap' as action from wraps
    UNION
    select *, 'Unwrap' as action from unwraps
    )
    SELECT
    trunc(block_timestamp,'day') as date,
    action,
    count(distinct tx_hash) as actions,
    sum(actions) over (partition by action order by date) as total_actions,
    count(distinct origin_from_address) as active_users,
    sum(value) as amount,
    sum(amount) over (partition by action order by date) as total_amount,
    avg(value) as avg_amount,
    avg(tx_fee) as avg_fee
    from totals where block_timestamp<current_date group by 1,2 order by 1 desc, 2 desc
    Last run: 3 days ago
    DATE
    ACTION
    ACTIONS
    TOTAL_ACTIONS
    ACTIVE_USERS
    AMOUNT
    TOTAL_AMOUNT
    AVG_AMOUNT
    AVG_FEE
    1
    2025-04-23 00:00:00.000Wrap32388425565314.276721165949.577466717666.0711468750.000002892850323
    2
    2025-04-23 00:00:00.000Unwrap483986350000.000003166147931
    3
    2025-04-22 00:00:00.000Wrap86385271853031.2340320600635.30076679918.9678375580.000006299763494
    4
    2025-04-22 00:00:00.000Unwrap613938470000.000002684792477
    5
    2025-04-21 00:00:00.000Wrap25376620236257.5506311219747604.06673679450.3020252450.00001326121561
    6
    2025-04-21 00:00:00.000Unwrap373877280000.000007527517853
    7
    2025-04-20 00:00:00.000Wrap40374129106329.41306862719511346.51610562658.2353267160.000009962883011
    8
    2025-04-20 00:00:00.000Unwrap323840190000.000002455429636
    9
    2025-04-19 00:00:00.000Wrap393701311118970.7213617719405017.10303728691.5569579940.000004785117707
    10
    2025-04-19 00:00:00.000Unwrap643808580000.000002582362506
    11
    2025-04-18 00:00:00.000Wrap53366246637.50015139218286046.381675212.0283047430.000004313780673
    12
    2025-04-18 00:00:00.000Unwrap943744840000.000002985679369
    13
    2025-04-17 00:00:00.000Wrap1523609110700064.1517857818285408.88152384605.6852091170.000004758397702
    14
    2025-04-17 00:00:00.000Unwrap863650700000.0000027377321
    15
    2025-04-16 00:00:00.000Wrap383457342330525.3125921717585344.72973861329.6134892680.00000744081396
    16
    2025-04-16 00:00:00.000Unwrap473564260000.000001757179592
    17
    2025-04-15 00:00:00.000Wrap47341934170167.7761231515254819.41714593620.5909813440.000003917212668
    18
    2025-04-15 00:00:00.000Unwrap343517250000.000006134258837
    19
    2025-04-14 00:00:00.000Wrap6033723775826.438315084651.64102271263.7739716670.000003829287001
    20
    2025-04-14 00:00:00.000Unwrap373483290000.000002234992979
    ...
    413
    33KB
    7s