Skip to content

TIMLG Protocol — Devnet Guide

This guide explains the user-visible flow of the current Devnet MVP. It focuses on what a technically literate participant needs to understand the interface, the ticket lifecycle, and the wallet-level statistics shown by the application.

Devnet only

Devnet tokens and balances are for protocol testing. They do not represent production value.


Prerequisites

Requirement Why it is needed
SOL Network transaction fees
TIMLG Ticket stake
Connected wallet Ticket ownership, claims, and ticket closure

Round flow in one table

Phase What the user sees What the protocol is doing
Commit Play card accepts a ticket Stake is escrowed and a ticket PDA is created
Waiting pulse Ticket is pending Commit window is closed; oracle pulse is not yet set
Reveal Reveal actions become available Commitment is checked and the result is classified
Settlement Outcome becomes final / claimable Losers and no-reveals are burned; winners await claim
Claim / close Winner claims; user later closes ticket Reward is delivered, then ticket rent can be recovered

Ticket panel: fields worth understanding

UI field Meaning
Round ID The target round for the ticket
Assigned Bit Deterministic bit index used to evaluate the ticket
Stake TIMLG amount escrowed for this ticket
Nonce Per-ticket uniqueness input
Commitment Hash of hidden guess + salt
Ticket address The PDA representing this participation

Order-history status interpretation

Status Meaning Economic consequence
PENDING Ticket committed; waiting for pulse Stake escrowed
REVEAL OPEN / REVEAL NOW User can reveal No final outcome yet
WIN Correct reveal Becomes claimable after settlement
LOSS / BURN LOSS Incorrect reveal Stake burned
EXPIRED / BURN EXPIRED Reveal missed or invalid Stake burned
CLAIMED Winning ticket successfully claimed Settlement completed for the ticket
SWEPT Winning ticket was not claimed in time Terminal; prize no longer claimable
REFUNDED Oracle-failure refund path used Original stake returned

Wallet statistics (UserStats)

The wallet view should be read as an aggregated summary, not as a replacement for ticket-level inspection.

Metric What it tells you
Total / Played How many tickets the wallet committed
Won / Lost Classified revealed outcomes
Revealed Tickets successfully revealed
Refunded Tickets that exited through the refund path
Claimed Winning tickets already claimed
Current streak Current consecutive-win run
Max streak Best historical consecutive-win run

For the protocol-level reference, see User Statistics.


Why streaks matter

current_streak and max_streak are useful today for observability and wallet-level performance summaries. They are also the natural input surface for future leaderboard or streak-based prize campaigns.

Not a live prize ledger

In the current MVP, a high streak does not automatically create a separate reward. Any future streak campaign should publish its own eligibility rules and claim process.


Common confusion points

Question Correct interpretation
"I won, why do I still need another action?" Reveal and claim are separate steps. Winning becomes claimable after settlement.
"Why do I still see a ticket after claiming?" Claim does not close the ticket PDA. close_ticket recovers rent separately.
"Does sweep mean treasury stole my reward?" Sweep is the documented post-grace terminal path for an unclaimed winner.
"Are wallet statistics the same as treasury balances?" No. UserStats summarizes activity; it does not hold user funds.

Reading analytics correctly

Surface Best use
Order History Inspect exact ticket lifecycle and terminal state
Wallet statistics Read cumulative participation and streaks
Protocol docs Understand the canonical rules behind both