[00] — Participation Flow Onetappy / Sepolia(Testnet) / v0.1

One Action
Forever Fair

Traditional hash commitments require two operations and cannot prevent second-mover attack. Onetappy compresses player interaction to a single action via a partner deposit mechanism, completely blocking second-mover attack through economic penalties.

1
Player Actions
0
Look-ahead Windows
5–10%
Partner Revenue Share

[01] — Roles

Partner

5–10%
Game Revenue
01 Independently configure ticket price, quantity, and game duration
02 Submit full deposit (ticket price × quantity) held in escrow by the contract
03 Simultaneously submit hash commitment, atomically locking the game seed with the deposit
04 Responsible for promotion and recruitment; revenue automatically distributed after game ends
Single Game Revenue Example
10 tickets0.1 ticket price10% revenue rate=\text{10 tickets} \cdot 0.1 \text{ ticket price} \cdot 10\% \text{ revenue rate} =
+0.10 ETH

Player

1
Contract Interactions
01 Invited by a partner to join
02 Only one on-chain action required: submit ticket payment + random number, atomically completed
03 No need to understand the underlying hash commitment mechanism; experience identical to a normal ticket purchase
04 Winnings automatically transferred upon winning; purchase target item directly
Action Comparison
Traditional · 2 Actions New Approach · 1 Action

[02] — Deposit Mechanism

[A]

Deposit Lock

When a partner creates a game, they deposit the full amount (ticket price × quantity), held in escrow by the smart contract. No one — including the partner — can withdraw it early.

10 tickets × 0.1 ETH = 1 ETH deposit

[B]

Auto Slash

If the partner refuses to submit the seed or submits an incorrect seed, the contract immediately triggers a penalty, slashing part or all of the deposit and distributing it to affected players. The economic cost of cheating far outweighs any potential gain.

Look-ahead gain < Deposit loss

[C]

Nash Equilibrium

The deposit mechanism makes honest operation the rational dominant strategy for partners. Normal settlement returns the full deposit plus 5–10% revenue, fully aligning economic incentives with fairness.

Honest settlement → Full deposit returned + Revenue

[03] — Full Flow

Phase A Partner Preparation Off-chain
01

Configure Game Parameters

Partner

Set ticket price at 0.1 ETH, 10 tickets, game duration 1 hour, with Apple MacBook Pro as the prize.

02

Promote and Recruit Players

Partner

Share the game link via communities and platforms to recruit 10 users interested in purchasing a MacBook Pro.

Phase B Partner On-chain Action On-chain · Atomic Execution
03

Submit Deposit

Partner

Transfer 1 ETH deposit to the smart contract. No one — including the platform or the partner — can withdraw it early.

Deposit Escrow
04

Submit Hash Commitment

Partner

Submit an encrypted commitment to the smart contract. The configured game parameters are written in and enforced by the smart contract.

keccak256(revealData, salt)
Phase C Player Participation On-chain · Single Action
05

Submit Ticket Payment + Random Number

Player ×10

Each player only needs one transaction with the smart contract: simultaneously submit 0.1 ETH ticket payment and a personal random number. Atomically written to the contract — no second reveal step required.

Phase D Settlement & Distribution On-chain · Auto Execution
06

Submit Original Seed, Trigger Settlement

Partner

After the 1-hour game ends, the partner submits the original revealData. All player random numbers are mixed to select the winning user. The random number is verifiable.

Hash Commitment keccak256(revealData, salt)
Reveal Data revealData
Mixed Random Number keccak256(revealData, playerCommitment)
07

Real-time Automatic Fund Distribution

Contract

Upon settlement, the contract immediately executes distribution: the winning player receives the prize, the partner earns 5% revenue, and the deposit is fully returned. No manual intervention required.

Winner Prize 0.90 ETH
Partner Revenue (5%) 0.05 ETH
Platform Revenue (5%) 0.05 ETH
Deposit Refund (100%) 1 ETH Full

[04] — Comparison

Metric Traditional Commit-Reveal Onetappy
Player Actions 2 1
Look-ahead Protection None Deposit Mechanism
Gas Cost High (2 txns) Low (~50% savings)
Comm. Cost O(2) O(1) (~50% savings)
Economic Incentive None Partner 5–10% Revenue
Game Organizer Role No defined role Partner Mechanism
Fund Distribution Manual Auto real-time by contract
On-chain Verifiable

[05] — Get Started

[A] For Partners

Become a Partner

Configure games independently, promote freely, and enjoy a stable 5–10% revenue share. Deposit fully refunded after normal settlement.

Apply →
[B] For Players

Join Now

Connect your wallet and participate in one action. Fair and transparent — results verifiable on-chain, winnings automatically transferred.

Connect Wallet (soon) →
[C] For Developers

ABI & Interface Docs

Full TypeScript type support

View Contract →