Fully Onchain Plan
Overview
Incarnation's ultimate vision is to become a fully onchain autonomous world—a game that runs entirely on blockchain infrastructure without relying on centralized servers or control. This ambitious goal represents the future of truly decentralized gaming, where the game can continue to exist and evolve even without the original development team.
Why Fully Onchain?
True Ownership and Permanence
In a fully onchain game, all game state, logic, and assets exist on the blockchain. This means:
Perpetual Existence: The game cannot be shut down by any single entity
Complete Ownership: Players truly own their cards, decks, and all in-game assets
Transparent Rules: All game mechanics are publicly visible and verifiable
Permissionless Innovation: Anyone can build tools, mods, and extensions for the game
Composability and Interoperability
Fully onchain games become building blocks for larger ecosystems:
Cross-Game Assets: Cards from Incarnation could be used in other onchain games
Shared Protocols: Multiple games can share the same card pools and assets
Open APIs: All game data is accessible to anyone building applications
DeFi Integration: Seamless connection with lending, trading, and other protocols
Community Sovereignty
A fully onchain architecture ensures complete community control:
Immutable Core Rules: Fundamental game mechanics cannot be changed arbitrarily
Governance: Card pools, balance changes, and features decided by token holders
Forking Freedom: If the community disagrees, they can fork the entire game
No Platform Risk: No dependency on company servers or policies
Architecture Evolution
Phase 1: Hybrid Architecture (Current - 2025)
What's Onchain:
Card NFT ownership and metadata
Vault NFT contracts for card issuance/redemption
Asset transactions and transfers
AI agent permissions (x402/ERC-8004)
Core economic mechanisms
What's Offchain:
Game rendering and UI
Battle calculations and logic
Matchmaking and lobbies
Player accounts and profiles
Some card mechanics (executed via Lua scripts)
Benefits:
Faster gameplay and better user experience
Lower transaction costs for players
Easier iteration and bug fixes
Accessible to mainstream players
Phase 2: Progressive Decentralization (2026-2027)
Gradual Migration Strategy:
Card Logic Onchain
Migrate Lua scripts to smart contract implementations
Deploy card mechanics as modular onchain components
Enable fully verifiable card interactions
Game State Onchain
Store all game states (decks, matches, player stats) onchain
Implement battle logic in smart contracts
Create onchain matchmaking and tournament systems
Decentralized Infrastructure
Deploy game client as open-source software
Enable anyone to run game nodes
Implement peer-to-peer networking for matches
Challenges to Address:
Gas Costs: Complex game logic generates high transaction fees
Latency: Blockchain confirmation times affect gameplay smoothness
Complexity: Smart contract security becomes critical
User Experience: Balancing decentralization with accessibility
Phase 3: Fully Onchain Game (2027+)
Complete Onchain Architecture:
Smart Contract Stack: All game logic in Cairo/Dojo smart contracts
Onchain State: Every card, deck, match, and player stat stored onchain
Autonomous Execution: Game runs without any centralized servers
Open Source Clients: Multiple compatible front-ends available
Decentralized Hosting: IPFS or similar for static assets
Advanced Features:
Autonomous Tournaments
Fully automated tournament execution via smart contracts
Prize pools managed by onchain vaults
Results verifiable by anyone
Onchain AI Agents
AI agents run as smart contracts themselves
Provably fair agent behavior
Agent-to-agent matches without human intervention
Cross-Chain Expansion
Bridge cards to other chains
Multi-chain tournaments
Unified liquidity across chains
Technical Implementation Plan
Smart Contract Migration
Card Logic Contracts
Convert Lua scripts to Cairo smart contracts
Implement standard card ability interfaces
Create card effect composition system
Ensure backward compatibility with existing cards
Game Engine Contracts
Battle state machine implementation
Turn-based action validation
Resource (mana, health) management
Win condition verification
Tournament and Pool Contracts
Card pool management and voting
Tournament bracket generation and progression
Prize distribution mechanisms
Performance statistics tracking
Starknet Mainnet Deployment
Infrastructure Requirements:
Testnet Validation
Extensive testing on Starknet testnet
Security audits for all smart contracts
Community beta testing period
Performance optimization
Mainnet Migration
Gradual rollout strategy
Asset migration tools for existing players
Backwards compatibility layer
Emergency pause mechanisms initially
Scaling Solutions
Leverage Starknet's native scalability features
Implement batch operations where possible
Use Volition for data availability optimization
Explore L3 or appchain options for ultimate scale
Appchain / L3 Consideration
For maximum performance and customization, Incarnation may eventually deploy its own application-specific chain:
Benefits:
Custom gas economics (potentially free-to-play)
Optimized consensus for game-specific operations
Greater control over upgrade paths
Dedicated resources for game transactions
Technology Options:
Starknet L3 / Appchain
Dojo-optimized chain
Integration with emerging game-focused infrastructure
Timeline: 2028+ (dependent on ecosystem maturity)
Economic Sustainability in Fully Onchain Model
Vault NFT at Scale
In a fully onchain environment, Vault NFT becomes even more powerful:
Onchain Yield Strategies: Smart contracts automatically manage DeFi positions
Trustless Liquidations: Automatic card pool adjustments based on liquidity
Cross-Protocol Integrations: Cards as collateral in other DeFi applications
Autonomous Market Making: Built-in liquidity provision mechanisms
Treasury and Development Funding
Decentralized Autonomous Organization (DAO):
$CARD token holders govern the protocol
Treasury funded by vault fees and protocol revenue
Community proposals for new features and improvements
Grants for developers building on Incarnation
Sustainable Revenue Streams:
Protocol fees from card minting/redemption
Tournament entry fees
Premium AI agent marketplace fees
Cross-game licensing and IP expansion
Community Governance
Governance Structure
Token-Based Voting:
$CARD holders vote on major protocol changes
Card creators have additional voting power for their cards
Delegation mechanisms for casual players
Key Governance Decisions:
Card pool additions/removals
Game balance adjustments
Protocol fee structures
Treasury fund allocation
Smart contract upgrades
Transparency and Accountability
Onchain Governance:
All proposals and votes recorded onchain
Execution timelock for major changes
Multi-sig security for critical operations
Public forums for community discussion
Risks and Mitigation
Technical Risks
Smart Contract Bugs:
Comprehensive audits before mainnet
Bug bounty programs
Gradual rollout with escape hatches
Insurance mechanisms for critical failures
Network Congestion:
Layer 2 scaling solutions
Batch operations and optimizations
Alternative L3/appchain if needed
Economic Risks
Vault Liquidity Crisis:
Diversified yield strategies
Conservative collateralization ratios
Emergency circuit breakers
Community-backed liquidity provision
Token Volatility:
Stable stablecoin integration options
Gradual migration from speculative to utility value
Treasury diversification
Social Risks
Governance Attacks:
Time-weighted voting to prevent flash attacks
Quadratic voting for fairer representation
Core protocol immutability guarantees
Community Fragmentation:
Clear upgrade processes
Backwards compatibility commitments
Support for multiple forks if necessary
Milestones and Timeline
2025-2026: Foundation
✅ AI agents implemented and tested
✅ Vault NFT operational
⏳ Lua scripting system launched (Q3 2025)
⏳ Card creation and trading platforms (Q4 2025)
⏳ Starknet testnet deployment
⏳ Security audits phase 1
2026-2027: Transition
Migrate core card logic to smart contracts
Launch Starknet mainnet version
Implement onchain tournament system
Establish DAO governance structure
Phase out centralized infrastructure gradually
2027-2028: Fully Onchain
Complete migration to onchain game state
Launch fully autonomous game version
Deploy cross-chain bridges
Evaluate appchain/L3 deployment
Achieve full community sovereignty
2028+: Expansion
Potential appchain launch
Cross-game asset interoperability
Metaverse integrations
IP licensing and ecosystem growth
Incarnation becomes a platform for other card games
Conclusion
The journey to becoming fully onchain is ambitious and challenging, but it represents our commitment to true decentralization and player ownership. By progressing gradually and maintaining a focus on player experience, security, and sustainability, Incarnation will evolve into a permanent, community-owned gaming experience that can outlive any single team or company.
This is not just a game—it's a new paradigm for how games can be built, owned, and governed. The fully onchain future of Incarnation is the future of gaming itself.
Last updated