Skip to content
Satria's
CV
Satria's
← All work

Shardfall

A 5-minute browser battle royale where a Monad smart contract, not the organiser, holds the tickets and pays the prizes.

Scroll to explore ↓2026 · Solidity · Hardhat · Monad

Shardfall — cover
Role
Smart contract & Web3 developer
Year
2026
Duration
8 hours
Team
Delviano Khayru Attahira (backend) · Prihastomo Budi Satrio (frontend)
Stack
Solidity, Hardhat, Monad, Colyseus, React, Three.js
Links
Live ↗Source ↗

Problem

At community and campus game tournaments the organiser holds the prize money. Prizes arrive late, get cut or never arrive, and players cannot check any of it. Players also cannot prove that loot, chests and the zone were not rigged, and one match usually takes too long to fit between other things.

Process

We built Shardfall at Monad Blitz Jogja (24 October 2026): an isometric battle royale for 3 to 10 players that ends in 5 minutes. Players explore, clear monster camps, open chests and collect coins; anyone below the coin quota at the end of a zone phase is out.

Gameplay runs on a normal real-time server (Colyseus, 20 ticks per second). My part was the on-chain side, and the chain only does the three things that need trust: holding the ticket money, proving the map was not changed, and paying the winners. A 0.1 MON ticket goes from the player's wallet straight into the MatchEscrow contract, so the server never touches player funds.

Communities and venues can also run tournaments, with vouchers to redeem as an extra reward. The feature works; in the demo the vouchers are a mock redeemed with testnet MON.

Gallery

Shardfall — screenshot 1
Shardfall — screenshot 2
Shardfall — screenshot 3

Key decisions

  1. Commit–reveal for the map seed

    When a match is created the server stores keccak256(seed) on-chain before anyone joins, then reveals the seed at the end. The contract rejects settlement if the hash does not match, and the results screen shows a Verified badge.

  2. The contract pays out in one transaction

    settleMatch sends 5% to the treasury and splits the rest 60/25/15 between the top three, with no organiser involved.

  3. Player money always has a way back

    If a lobby has fewer than 3 players after 2 minutes, or a match is not settled within 15 minutes, every player can call refund. Skins are cosmetic ERC-1155 tokens (0.05 MON), so there is no pay-to-win.

Results

9 Hardhat tests for the contracts: invalid transactions rejected, payouts for 10 and 4 players, refunds and skin purchases.

One match uses 3 kinds of on-chain transaction: createMatch, joinMatch from each player's wallet (live in the demo) and settleMatch.