4 ms·
Base L2. The smart contract portion simply holds funds, while game server manages them. High level flow: Deposit: Player calls deposit(serverId) → contract p
by goonlord 7mo ago
Base L2.
The smart contract portion simply holds funds, while game server manages them.
High level flow:
Deposit: Player calls deposit(serverId) → contract pulls buyInAmount USDC, emits an event. The server indexer picks it up and spawns the player with mass.
Play: All gameplay from this point on is off-chain. No transactions during play. Simply ws communication between authoritative server and clients.
When a player exits: Server signs a payout ticket (contractAddr, chainId, serverId, sessionId, player, amount, deadline). A relayer submits it on-chain — contract verifies the signature, prevents replay via sessionId, takes a fee, sends net USDC to the player.
Trust model: Contract holds USDC, server is trusted for amounts, but the contract enforces no double-claims and no overdraft. ~430 lines of Solidity.
- LatencyKills 7mo agoHeh... okay. No one in their right mind will touch this.
- goonlord 7mo agoLess hostility bro. Just a person trying to build something that hopefully finds its market. Do we not have a multi-billion gambling market within the US alone. Do you see a problem with the product itself. OR the space.
- cindyllm 7mo ago[dead]
- LatencyKills 7mo agoI'm not your bro. Your target audience are the people who post about “technology” on Reddit; not the hacker news crowd. The fact that your ToS has copy and paste disabled, and that you share nothing about the project makes this entire thing a joke. There are literal rug pull projects that share more than you have. That’s not “hostile”; it’s the truth. I have no problem with any type of crypto implementation when it is done correctly. (Me: ex-Apple / Microsoft dev who helped build MS’s first btc client api and audits smart contracts)