Cycle

The Scriptorium

Smart Assembly code templates and tools for on-chain development in Eve Frontier.

SA Fundamentals
BeginnerChapter 1 of 510 min read

What is Smart Assembly?

Smart Assembly (SA) is the programmable system at the heart of Eve Frontier. Every structure, gate, and interactive object in the game world is a Smart Assembly — a configurable entity that runs on-chain logic.

Why It Matters

Unlike traditional MMOs where game objects are static and server-controlled, Eve Frontier's Smart Assemblies are owned and programmable by players. This means:

  • Gates can enforce custom access rules
  • Structures can charge fees, track visitors, or trigger events
  • Resources can be distributed according to player-defined logic

The Building Blocks

Every Smart Assembly is composed of:

  • The Assembly itself — an on-chain entity with a unique ID and owner
  • Systems — Solidity contracts that define behavior
  • Tables — On-chain storage for state (powered by MUD)
  • solidity
    // A minimal Smart Assembly system
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.24;
    
    import { System } from "@latticexyz/world/src/System.sol";
    
    contract MyFirstSystem is System {
      function execute() public {
        // Your logic here
      }
    }

    What You'll Learn

    In this tutorial series, you'll go from zero to building functional Smart Assemblies. We'll cover:

    • The MUD framework and how it powers Eve Frontier
    • Writing your first system
    • Reading and writing on-chain tables
    • Deploying to the Eve Frontier world
    • Testing your assemblies locally

    Let's get started!

    Sign in to track your progress.