| Crates.io | carbon-crew-decoder |
| lib.rs | carbon-crew-decoder |
| version | 0.12.1 |
| created_at | 2025-10-15 16:52:17.759912+00 |
| updated_at | 2026-01-21 22:44:29.407097+00 |
| description | Rust decoder for Star Atlas Crew management program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1884681 |
| size | 160,514 |
Rust decoder for the Star Atlas Crew management program on Solana, generated using Carbon CLI.
CREWiq8qbxvo4SKkAFpVnc6t7CRQC4tAAscsNAENXgrJAdd this crate to your Cargo.toml:
[dependencies]
carbon-crew-decoder = "0.12.0"
use carbon_crew_decoder::CrewDecoder;
use carbon_core::account::AccountDecoder;
let decoder = CrewDecoder;
let decoded_account = decoder.decode_account(&account);
if let Some(decoded) = decoded_account {
match decoded.data {
CrewAccount::CrewConfig(config) => {
println!("Crew Config: {:?}", config);
}
CrewAccount::PackTiers(tiers) => {
println!("Pack Tiers: {:?}", tiers);
}
CrewAccount::PackType(pack_type) => {
println!("Pack Type: {:?}", pack_type);
}
CrewAccount::SftRedemption(redemption) => {
println!("SFT Redemption: {:?}", redemption);
}
CrewAccount::UserRedemption(user_redemption) => {
println!("User Redemption: {:?}", user_redemption);
}
}
}
This decoder supports all Crew account types:
CrewConfig - Crew configuration and metadataPackTiers - Pack tier definitionsPackType - Pack type configurationSftRedemption - SFT redemption trackingUserRedemption - User redemption recordsFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.