| Crates.io | carbon-atlas-staking-decoder |
| lib.rs | carbon-atlas-staking-decoder |
| version | 0.12.1 |
| created_at | 2025-10-14 23:00:08.146673+00 |
| updated_at | 2026-01-21 22:43:33.378145+00 |
| description | Rust decoder for Star Atlas ATLAS staking program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1883345 |
| size | 155,343 |
Rust decoder for the Star Atlas ATLAS staking program on Solana, generated using Carbon CLI.
ATLocKpzDbTokxgvnLew3d7drZkEzLzDpzwgrgWKDbmcAdd this crate to your Cargo.toml:
[dependencies]
carbon-atlas-staking-decoder = "0.12.0"
use carbon_atlas_staking_decoder::AtlasStakingDecoder;
use carbon_core::account::AccountDecoder;
let decoder = AtlasStakingDecoder;
let decoded_account = decoder.decode_account(&account);
if let Some(decoded) = decoded_account {
match decoded.data {
AtlasStakingAccount::RegisteredStake(stake) => {
println!("Registered Stake: {:?}", stake);
}
AtlasStakingAccount::StakingAccount(account) => {
println!("Staking Account: {:?}", account);
}
AtlasStakingAccount::StakingVars(vars) => {
println!("Staking Variables: {:?}", vars);
}
}
}
This decoder supports all ATLAS staking account types:
RegisteredStake - Registered stake configurationStakingAccount - Individual user staking accountsStakingVars - Global staking variables and configurationFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.