permaryPickaxe shop
    Updated 2025-04-03
    with purchase as (
    select
    from_address as player,
    date_trunc ('day', block_timestamp) as date,
    tx_hash as hash
    from ronin.core.fact_transactions
    where origin_function_signature = '0xefef39a1'
    ),

    pixel_purchase as (
    select
    tx_hash as hash,
    amount
    from ronin.core.ez_token_transfers
    where contract_address= '0x7eae20d11ef8c779433eb24503def900b9d28ad7'
    ),

    pickaxe_buys as (
    select
    tx_hash as hash,
    DECODED_LOG:id::STRING AS id,
    DECODED_LOG:value::STRING AS amount
    from ronin.core.ez_decoded_event_logs
    where contract_address ='0x9fa2b2b2b314f0486a15c48810b736ae83d5cc53'
    and topic_0 ='0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'
    ),

    buy_data as (
    select p.date,
    ((p.player)) as buyers,
    p.hash,
    (pp.amount) as pixel_spent,
    (a.amount) as axes_bought
    from purchase p
    left join pixel_purchase pp on p.hash = pp.hash
    left join pickaxe_buys a on p.hash = a.hash
    Last run: 19 days ago
    PIXEL_SPENT
    BUYS
    NUM_BUYERS
    TOTAL_PIXEL_SPENT
    TOTAL_AXES_BOUGHT
    1
    2022970125364594009186000
    2
    1005061184050610017204000
    3
    4004825786193000077200000
    4
    1000220642200007600030
    5
    15001899182528485001898
    6
    2000259500002000000
    7
    50003691800007200000
    7
    209B
    18s