Skip to content

Smart Contracts

Loot Survivor is built on Starknet using the Dojo engine, with all game logic executed fully onchain. The game's smart contracts handle everything from adventurer creation to combat resolution, ensuring transparency and verifiability.

Contract Architecture

The Loot Survivor smart contract system is organized into several core components:

  • Game: Main game logic and state management
  • Game Token: Interfaces for Embeddable Game Standard compatibility
  • Beast: Creature stats, behavior, and combat mechanics
  • Adventurer: Player character data and progression
  • Loot: Item generation, properties, and bonuses
  • Objectives: Quest and achievement system
  • Renderer: Visual rendering and display logic
  • Settings: Game configuration and parameters

Contract Addresses

Contract/NetworkSepoliaMainnet
Game

0x553b...74c5

0x6f7c...3a9c

Game Token

0xd9ab...ea73

0x5e2d...9863

Beast

0x5f93...2c77

0x74ab...35c7

Adventurer

0x49d0...ae4f

0x3fc7...6a01

Loot

0x78d7...8fd7

0x4c38...dbe4

Objectives

0x4032...3e32

Renderer

0x73a1...dc67

0x6135...f1cb

Settings

0x2757...6eae

0x3caf...12d0

Development Resources

Contract Interaction

Players interact with the smart contracts through:

  • Game Interface: Main game client at lootsurvivor.io
  • Direct Calls: Advanced users can call contract functions directly
  • Block Explorers: View transactions and state on Starkscan or Voyager

All game actions are recorded onchain, providing complete transparency and allowing for independent verification of gameplay mechanics.