About
StarQuest is an on-chain GameFi backend built for Hedera EVM that implements a complete, auditable infrastructure for a location-based treasure-hunt experience:focusing on the trustworthy, low-fee economic and audit plane (staking, rewards, tokens, storage, and consensus anchoring) At the center is the StarQuest Core game logic (an EVM contract) which models stars, stakes, challenge lifecycle and payouts: players (via the mobile client) connect a wallet, inspect a geo-anchored star, and create an on-chain Staked transaction that records the stake, star id and player address; the Core emits lifecycle events such as Staked, ChallengeCompleted and RewardPaid that drive downstream actions. Financial settlement and native token economics are handled by the HTS façade contract: this contract implements convenience functions that call Hedera Token Service semantics from the EVM layer (create/mint/burn/associate tokens), enabling the system to mint fungible SQ tokens or SQNFTs and execute low-fee native payouts while preserving EVM-style calls and access control; its events (TokenCreated, TokenMinted, TokenBurned) let frontends and indexers reconcile balances. Price and verification primitives are exposed by the Oracle contract which stores asset identifiers, price values and location attestations and manages an authorizedOracles set—this contract is designed so a backend oracle or third-party oracle network can push signed price updates (PriceUpdated) and location verifications (LocationVerified) that the Core contract can trust when computing HBAR-denominated payouts or validating proximity-based triggers. To provide tamper-proof audit trails and dispute resolution, the Consensus contract implements HCS anchoring patterns: off-chain services relay Hedera Consensus Service message IDs and confirmations into the EVM via submitGameEvent / confirmHCSMessage entrypoints so every critical game event (stakes, completions, disputes, leaderboard updates) can be cryptographically anchored to Hedera Consensus and later audited via HCSMessageConfirmed logs. For long-term storage of player proofs and metadata, the Filecoin Storage contract records IPFS CIDs, storage requests and payments on-chain (events like StorageRequested, StorageCompleted), while an off-chain storage gateway performs pinning and Filecoin deal orchestration; the contract therefore makes CIDs first-class on-chain references with payment and access control, but delegates heavy storage work off-chain. Architecturally the repo and deployment reflect these responsibilities: contracts are authored in Solidity 0.8.19, compiled with Hardhat/typechain/ethers v6, unit-tested, deployed to Hedera Testnet and verified on Hashscan with ABIs and build metadata committed to the public GitHub repo (the deploy script writes hedera-deployment.json with addresses/timestamp for reproducibility). Runtime parameters—minimum and maximum stake (example 0.01–10 HBAR), rarity multipliers (Common 1.5x → Legendary 5x), house fee, and per-star proximity radii (configurable 1.5 m → 300 m)—are configurable on-chain or by admin. Security patterns include role-based access control (Ownable/admin guards), event-driven state changes for off-chain relayers to follow, and standard reentrancy and sanity checks in token flows; the Consensus contract’s multi-oracle/dispute design lets the protocol aggregate attestations before finalizing payouts. In practice the live demo walks through compilHedera-native economic & audit backbone that satisfies the competition requirements (deploy to Hedera EVM, verify on Hashscanct, off-chain relayer confirms proximity and posts an HCS message and/or an oracle price update, the Consensus contract records/anchors the HCS message ID, and the HTS façade mints/transfers the token reward, emitting RewardPaid and TokenMinted events that complete the economic cycle.The contracts instead include explicit hooks such as submitAIDecision and verifyLocation so you can plug in on-device ML or an AI oracle later), which allowed the team to concentrate on delivering a production-grade, Hedera-native economic & audit backbone that satisfies the competition requirements (deploy to Hedera EVM, verify on Hashscan, public source, demo video) auditable integrations for future releases.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






