[Grant Proposal] Eldonia - A Fully On-Chain 3D RTS Game Capitalizing on Secret's Native Privacy Architecture

:crown: 1. Executive Summary & Core Paradigm

Eldonia is a fully on-chain 3D Real-Time Strategy (RTS) multi-kingdom simulation sandbox designed to run natively within the Cosmos/CosmWasm environment. While traditional Fully On-Chain Games (FOCG) face existential design constraints due to public ledger transparency, Eldonia embraces Secret Network’s hardware-based Trusted Execution Environments (TEE/Intel SGX) to introduce mechanic structures previously thought impossible on-chain: an unbreakable macro-tactical Confidential Fog of War and a 100% Inflation-Free Velocity-Driven Financial Ecosystem.

Following the community consensus of Proposal #365, the network requires transactional utility dApps that generate high-frequency velocity without bleeding ecosystem pools. Eldonia delivers exactly this: a high-engagement sink for $SCRT that rewards territorial sovereignty, active logistics management, and skill-based tactical gameplay.


:shield: 2. Comprehensive Architecture & Secret Network TEE Integration

Unlike standard EVM games or pseudonymous turn-based card protocols, Eldonia maps a massive, multi-biome 10,000 × 10,000 grid universe where state validation occurs inside encrypted enclaves.

A. Cryptographic Spatial Obfuscation (True Fog of War)

The raw X/Z coordinate vectors of roaming bandit squads, commercial NPC supply caravans, and rival military cohorts are committed to the ledger as encrypted variables (private).
When a commander moves their golden 3D Cylinder mesh across the Aureon Plains or Ferndon Crags, the front-end client queries the view_radar() contract function. The enclave calculates Euclidean spatial proximities strictly behind the cryptographic curtain of the TEE:
\(\text{Proximity}=\sqrt{(X_{\text{entity}}-X_{\text{player}})^{2}+(Z_{\text{entity}}-Z_{\text{player}})^{2}}\)
Only coordinates validating within the specific vision envelope (140 units) are temporarily decrypted and streamed via secure state-channels to the individual user’s WebGL viewport. This prevents network client scraping and entirely mitigates map-hack exploits at the protocol level.

B. Standalone 3D RTS Battle Switching & Multi-Unit Routing

When a player mesh collides with an active bandit vector, macro-movement halts, and the camera re-angles to a dedicated 3D Grid Tactical Battle Arena. To execute complex real-time commands without state desynchronization, the contract orchestrates micro-management handlers via detached structural arrays:

  • Independent Unit Manipulation: In the RTS overlay hud, selecting the Spearman Group (Blue 3D Block) to intercept a target vector modifies only the Spearman pathfinding array inside the enclave. The Bowman Group (Green 3D Sphere) remains statically fixed at its current parameters.
  • Ballistic Simulation: Stationary bowmen autonomously acquire the coordinates of the Red Enemy Chief Cone. The TEE calculates real-time ballistic projectile lines, dynamically deducting HP until combat completion before restoring the player’s updated army array to the macro world plane.

:coin: 3. Sustainable Tokenomics & Cash-Flow质量守恆 (Mass Conservation)

Eldonia rejects the standard “mint-to-reward” hyper-inflation mechanics that destroyed the first generation of GameFi. The circular architecture enforces strict capital velocity:

  1. Genesis Capital Pools: Fiefdoms, independent villages, and main hold capitals spawn with dedicated starting reserves backed by the initial allocation pool. Players enter by staking native $SCRT directly into the macro expedition smart contract at a hard 1:1 backed ratio.
  2. The Let-Profit (讓利) 5% / 3% Tax Router: To spark aggressive territorial conflicts, all economic matching executed inside a settlement’s market matrix incurs a strict 8% total processing transaction fee:
    • 92% Net Margin: Transferred directly to the merchant wallet.
    • 5% Local Lord Allocation: Routed directly to the regional vault of the player who currently occupies and secures that specific 3D sector. This yields immediate, high-frequency revenue for dominant regional nodes to subsidize standing armies.
    • 3% Global Sovereign Chest: Maintained at the central finance contract to act as the macro prize pool for weekly Kingdom PvP Sieges, with a 20% stream of this specific sub-pool routed to the developer wallet for permanent infrastructure upkeep.
  3. The Hardcore Logistic Sinks: Standing troops consume a flat 0.1 units of grain per day-cycle (8 seconds). Spent token fees flow straight back to the corresponding village contract vaults. If grain drops to zero, the player mesh suffers a mandatory 50% speed penalty code-lock, and an on-chain automated randomness check triggers a 25% attrition/desertion rate, forcing continuous engagement with localized agrarian trade loops.
  4. confindential Highway Robbery (Black Market Loop): Players wanting to bypass the 5% local lord tax can haul resources under the shield of midnight fog to the Confidential Black Market (2% flat fee). However, traveling these routes exposes the cargo arrays to high-rate bandit encounters. If a player loses to a bandit, 25% of their carried $SCRT cache is programmatically extracted and added to the bandit mesh’s on-chain drop wallet, returning capital directly into the gameplay loop via emergent player-vs-environment bounty-hunting.

:date: 4. Development Milestones & Funding Request

We are requesting a total development grant of 30,000 USD (payable in equivalent native SCRT based on 30-day trailing averages), milestone-gated against verifiable on-chain code deliverables:

  • Milestone 1: 3D Macro Plane Infrastructure & Keplr Authentication (Month 1-2)
    • Deliverables: 10,000 × 10,000 Three.js WebGL terrain scrolling engine, smooth camera tracking handlers, multi-biome grid partition (Plains, Mountains, Ocean), and a Web3 server locking universe entry behind an authentic Keplr wallet signature.
    • Allocation: $15,000 USD (50%)
  • Milestone 2: Independent RTS Combat Canvas & Supply Engine (Month 3-4)
    • Deliverables: Standalone 3D grid battle system allowing parallel unit array update manipulation (Spearman vs. Bowman command splits), Cylinder projectile tracking, 0.1 grain consumption loop scripts, and automated AI defensive patrol pathing.
    • Allocation: $9,000 USD (30%)
  • Milestone 3: CosmWasm Encrypted State Integration & Sandbox Launch (Month 5)
    • Deliverables: Compilation of the 5% Lord / 3% Central CosmWasm tax router modules, TEE distance check validation matrices for obscured entities, and official public deployment on the Secret Network Testnet.
    • Allocation: $6,000 USD (20%)

:rocket: 5. Core Team & Prototype Status

We are highly agile, independent developers focused on high-utility engineering. We believe in building working prototypes before approaching governance pools.
Our core WebGL render loop, camera system, spatial collision arrays, and tax split user interface are already fully compiled, optimized for Google Chrome, and operational.

(Note: Once you host your code folder on Netlify Drop, insert your unique Netlify URL right here so validators can click and play instantly, guaranteeing high conversion for YES votes!)

We look forward to collaborating with the Secret Foundation, validators, and node operators to build an un-bottlenecked gaming ecosystem that champions Secret’s true cryptographic advantages. We welcome feedback in this thread!