hbd1994011 - Prediction Results Stats
    Updated 4 hours ago
    with game_base as (
    select
    BLOCK_TIMESTAMP,
    case
    when INSTRUCTION:accounts[4] = 'A6TzZtPBma5e4rXh37fYppK9uixtpmMcE8qRcVQBBZGR' then 'BTC'
    when INSTRUCTION:accounts[4] = 'FsKXfXtz25kNj8TNaSShgZK2P35yGYF5WjxXz6rf7jTv' then 'ETH'
    when INSTRUCTION:accounts[4] = 'HtDy14WraNsqnEowT94hcDB2EDqsuT1tec1jHLnPaseF' then 'SOL'
    when INSTRUCTION:accounts[4] = '1XYrDpZ3WLzRwZw1cM7e9sDM7KjCmpGHfUBi7ag9Wv7' then 'POPCAT'
    end as asset,
    case
    when INNER_INSTRUCTION is null then 'Closed Price'
    when INNER_INSTRUCTION is not null then 'Starting Price' end as price_type,
    utils.udf_hex_to_int(to_char(reverse(to_binary(substr(replace(substr(utils.udf_base58_to_hex(INSTRUCTION:data),3,1000), ''),17,16)))))/pow(10,9) as asset_price,
    lead(asset_price) over (partition by asset, INSTRUCTION:accounts[1] order by BLOCK_TIMESTAMP) as prices,
    case
    when prices - asset_price > 0 then 'It Mooned'
    when prices - asset_price < 0 then 'It Doomed'
    when prices - asset_price = 0 then 'No Price Change'
    end as game_final_status,
    INSTRUCTION:accounts[1] as current_game,
    INSTRUCTION:accounts[2] as new_game,
    INSTRUCTION:accounts[3] as new_game_funds,
    INSTRUCTION:accounts[5] as prediction_stats,
    INDEX,
    TX_ID
    from eclipse.core.fact_events
    where SUCCEEDED = 'TRUE'
    and PROGRAM_ID = 'DcZMKcjz34CcXF1vx7CkfARZdmEja2Kcwvspu1Zw6Zmn'
    and substr(replace(substr(utils.udf_base58_to_hex(INSTRUCTION:data),3,1000), ''),0,16) = '3b86a17013edc06b'
    and INSTRUCTION:accounts[4] in ('A6TzZtPBma5e4rXh37fYppK9uixtpmMcE8qRcVQBBZGR','FsKXfXtz25kNj8TNaSShgZK2P35yGYF5WjxXz6rf7jTv','HtDy14WraNsqnEowT94hcDB2EDqsuT1tec1jHLnPaseF','1XYrDpZ3WLzRwZw1cM7e9sDM7KjCmpGHfUBi7ag9Wv7')
    qualify prices is not NULL
    order by 1 desc),

    base as (
    select
    distinct a.tx_id,
    Last run: about 4 hours agoAuto-refreshes every 24 hours
    Date
    Predict Resluts
    Daily Predicts
    Cumulative Predicts
    Daily Unique Predictors
    Daily Prediction IDs
    Daily Predicted Games
    Daily Predict Volume
    Cumulative Predict Volume
    1
    2024-09-29 00:00:00.000Lose773770.0070.007
    2
    2024-09-29 00:00:00.000Win773770.0070.007
    3
    2024-10-01 00:00:00.000Lose291220.0510.058
    4
    2024-10-01 00:00:00.000Win181110.0010.008
    5
    2024-10-02 00:00:00.000Lose6152550.0060.064
    6
    2024-10-02 00:00:00.000Win5132550.0060.014
    7
    2024-10-03 00:00:00.000Lose35501135340.04080.1048
    8
    2024-10-03 00:00:00.000Win35481434340.04080.0548
    9
    2024-10-04 00:00:00.000Lose1565815150.050.1548
    10
    2024-10-04 00:00:00.000Win1563815150.050.1048
    11
    2024-10-05 00:00:00.000Lose9745990.0110.1658
    12
    2024-10-05 00:00:00.000Win9724990.0110.1158
    13
    2024-10-06 00:00:00.000Lose2599525250.1310.2968
    14
    2024-10-06 00:00:00.000Win2597725250.1310.2468
    15
    2024-10-07 00:00:00.000Lose901891188870.241750.53855
    16
    2024-10-07 00:00:00.000Win91188987870.244250.49105
    17
    2024-10-08 00:00:00.000Lose23212523230.035750.5743
    18
    2024-10-08 00:00:00.000Win23211623230.035750.5268
    19
    2024-10-09 00:00:00.000Lose11223511100.01750.5918
    20
    2024-10-09 00:00:00.000Win11222511100.020.5468
    ...
    400
    29KB
    228s