#solana-carbon #solana

carbon-sage-holosim-decoder

Rust decoder for Star Atlas SAGE Holosim program on Solana

3 unstable releases

Uses new Rust 2024

0.12.1 Jan 21, 2026
0.12.0 Jan 16, 2026
0.10.0 Oct 14, 2025

#1691 in Encoding

Download history 61/week @ 2025-10-23 61/week @ 2025-10-30 47/week @ 2025-11-06 44/week @ 2025-11-13 23/week @ 2025-11-20 12/week @ 2025-11-27 17/week @ 2025-12-04 123/week @ 2025-12-11 32/week @ 2025-12-18 36/week @ 2026-01-01 36/week @ 2026-01-08 6/week @ 2026-01-15 73/week @ 2026-01-22 42/week @ 2026-01-29 25/week @ 2026-02-05

146 downloads per month

Apache-2.0

570KB
13K SLoC

Carbon SAGE Holosim Decoder

Rust decoder for the Star Atlas SAGE Holosim program on Solana, generated using Carbon CLI.

Program Information

  • Program ID: SAgEeT8u14TE69JXtanGSgNkEdoPUcLabeyZD2uw8x9
  • Network: ATMTA Atlasnet
  • Description: Star Atlas SAGE (Starbase and Galactic Expansion) Holosim program for simulated space operations, fleet activities, and resource management.

Features

  • Decodes all SAGE Holosim account types
  • Custom deserialization for complex accounts (Fleet, StarbasePlayer)
  • Full instruction parsing support
  • Integration with Carbon indexing framework

Usage

Add this crate to your Cargo.toml:

[dependencies]
carbon-sage-holosim-decoder = "0.12.0"

Decoding Accounts

use carbon_sage_holosim_decoder::SageDecoder;
use carbon_core::account::AccountDecoder;

let decoder = SageDecoder;
let decoded_account = decoder.decode_account(&account);

if let Some(decoded) = decoded_account {
    match decoded.data {
        SageAccount::Fleet(fleet) => {
            println!("Fleet: {:?}", fleet);
        }
        SageAccount::GameState(game_state) => {
            println!("Game State: {:?}", game_state);
        }
        // ... handle other account types
        _ => {}
    }
}

Account Types

This decoder supports all SAGE Holosim account types including:

  • Fleet - Fleet management with custom state deserialization
  • StarbasePlayer - Player starbase interactions with dynamic escrows
  • Game - Game configuration and state
  • GameState - Current game state
  • Starbase - Starbase definitions
  • MineItem - Mining resources
  • Planet - Planetary bodies
  • Sector - Space sectors
  • And more...

Documentation

Full documentation is available at docs.rs.

Repository

See the main repository for build instructions, patch development workflow, and contribution guidelines.

License

Licensed under the Apache-2.0 license.

Dependencies

~23–41MB
~565K SLoC