Skip to content

feat: Missing Dojo-Specific Deployment Configuration #137

@KevinMB0220

Description

@KevinMB0220

Issue: Missing Dojo-Specific Deployment Configuration

Description:

The project lacks proper Dojo deployment configuration. While it has basic dojo_dev.toml and dojo_release.toml files, several Dojo-specific deployment elements are missing or incomplete.

Problems Identified:

  1. Incomplete World Configuration: The dojo_release.toml has the world address commented out, which is essential for Dojo deployment
  2. Missing Torii Configuration: No proper Torii indexer configuration for the release environment
  3. Incomplete Contract Registration: The manifest shows only basic mercenary contract, but the codebase has extensive systems that need proper Dojo registration
  4. Missing Dojo Commands: No proper sozo build and sozo migrate configuration for production
  5. No Katana/Torii Setup: Missing configuration for running Katana (local node) and Torii (indexer) in production

Dojo-Specific Issues:

  • World Address: Essential for Dojo - this is the main contract that manages all game state
  • Torii Indexer: Required for querying game state and events
  • Sozo Migration: The sozo migrate apply command needs proper configuration
  • Model Registration: All the game models (Player, Gear, Session, etc.) need to be properly registered in the Dojo world

Impact:

  • High Priority: Without proper Dojo configuration, the game cannot be deployed or queried properly
  • Prevents proper game state management
  • Makes it impossible to use Dojo's ECS architecture effectively
  • Could lead to deployment failures or broken game functionality

Recommended Solutions:

  1. Complete Dojo World Configuration:

    # dojo_release.toml
    [world]
    name = "Citizen of Arcanis"
    description = "A Dojo-based RPG game"
    
    [env]
    rpc_url = "https://starknet-sepolia.public.blastapi.io/rpc/v0_7"
    world_address = "0x..." # Uncomment and set proper address
  2. Add Torii Configuration:

    [torii]
    world = "0x..." # World address
    rpc_url = "https://starknet-sepolia.public.blastapi.io/rpc/v0_7"
  3. Proper Dojo Deployment Scripts:

    # Build
    sozo build
    
    # Migrate to testnet
    sozo migrate apply --rpc-url https://starknet-sepolia.public.blastapi.io/rpc/v0_7
    
    # Start Torii indexer
    torii --world 0x... --rpc-url https://starknet-sepolia.public.blastapi.io/rpc/v0_7

Files Affected:

  • dojo_release.toml - Needs world address and proper configuration
  • manifest_release.json - Needs all system contracts registered
  • Missing: Torii configuration, proper deployment scripts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions