Deployment Log #002

Decentralizing state in a real-time gaming environment.

Orchestrating a SLITH-gated play loop on BSC: high-frame gameplay up front, deterministic settlement behind the curtain.

01. THE LATENCY GAP

The "Tick Rate" Problem

A Snake game updates its state (movement, collision, growth) 30 to 60 times per second. BSC finalizes every few seconds—orders of magnitude slower.

Writing every move is impossible; it would fragment the experience and burn the prize pool. We needed a gate that feels invisible to players, anchors entry economics in SLITH, and keeps payouts observable without exposing the full play loop.

02. HYBRID ARCHITECTURE

Quote-and-Play

We engineered a "Quote-and-Play" pattern. Gameplay stays off-chain; the only on-chain surface is a SLITH entry backed by an edge-issued quote. The chain records intent and funds, the worker owns tempo and scoring.

  • A.

    Quote Signer

    An edge signer produces short-lived admission quotes, bound to a wallet and round window, so tickets cannot be replayed or re-sold.

  • B.

    On-Chain Verification

    The pay-to-play contract checks the quote signer, moves SLITH into the prize pool, and emits a ticket for the session; indexing, anti-abuse, and session state stay in the edge control plane.

FIG 2.1 - SETTLEMENT LOGIC

payToPlay (concept)

function payToPlay( Quote memory quote, bytes calldata signature) external {

// Verify a short-lived quote issued off-chain

address signer = ECDSA.recover(hashQuote(quote), signature);

if (signer != quoteSigner) revert InvalidQuote();

 

// Collect SLITH entry and mint a ticketed session

SLITH.transferFrom(msg.sender, prizePool, quote.entryFee);

emit TicketIssued(msg.sender, quoteId, block.timestamp);

}

03. DATA FLOW

State Synchronization

GAME
CLIENT
60 TPS
SIGNER
NODE
BSC
MAINNET
Few-sec finality
Related lane

SlitherTime is proof for the Web3 infrastructure lane: chain-connected backends, signed edge control planes, and observable settlement.

The important proof here is not just the contract. It is the full system around it: admission quotes, anti-replay controls, edge orchestration, and a product flow that hides chain latency without hiding the economics.

Previous Case Study

TaxCalc.ng: Financial Precision

Work Index

Browse all Axiom Labs case studies