| Crates.io | carbon-sage-holosim-decoder |
| lib.rs | carbon-sage-holosim-decoder |
| version | 0.12.1 |
| created_at | 2025-10-14 23:00:09.768709+00 |
| updated_at | 2026-01-21 23:35:24.452332+00 |
| description | Rust decoder for Star Atlas SAGE Holosim program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1883348 |
| size | 679,047 |
Rust decoder for the Star Atlas SAGE Holosim program on Solana, generated using Carbon CLI.
SAgEeT8u14TE69JXtanGSgNkEdoPUcLabeyZD2uw8x9Add this crate to your Cargo.toml:
[dependencies]
carbon-sage-holosim-decoder = "0.12.0"
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
_ => {}
}
}
This decoder supports all SAGE Holosim account types including:
Fleet - Fleet management with custom state deserializationStarbasePlayer - Player starbase interactions with dynamic escrowsGame - Game configuration and stateGameState - Current game stateStarbase - Starbase definitionsMineItem - Mining resourcesPlanet - Planetary bodiesSector - Space sectorsFull documentation is available at docs.rs.
See the main repository for build instructions, patch development workflow, and contribution guidelines.
Licensed under the Apache-2.0 license.