#solana-carbon #solana #decoder

carbon-atlas-staking-decoder

Rust decoder for Star Atlas ATLAS staking 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

#2825 in Encoding

Download history 64/week @ 2025-10-16 63/week @ 2025-10-23 62/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

159 downloads per month

Apache-2.0

44KB
941 lines

Carbon ATLAS Staking Decoder

Rust decoder for the Star Atlas ATLAS staking program on Solana, generated using Carbon CLI.

Program Information

  • Program ID: ATLocKpzDbTokxgvnLew3d7drZkEzLzDpzwgrgWKDbmc
  • Network: Solana Mainnet
  • Description: Star Atlas ATLAS token staking program with configurable rewards and cooldown periods for participating in the Star Atlas ecosystem.

Features

  • Decodes all ATLAS staking account types
  • Full instruction parsing support
  • Integration with Carbon indexing framework
  • Support for staking pools, user stakes, and reward distribution

Usage

Add this crate to your Cargo.toml:

[dependencies]
carbon-atlas-staking-decoder = "0.12.0"

Decoding Accounts

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);
        }
    }
}

Account Types

This decoder supports all ATLAS staking account types:

  • RegisteredStake - Registered stake configuration
  • StakingAccount - Individual user staking accounts
  • StakingVars - Global staking variables and configuration

Documentation

Full documentation is available at docs.rs.

Repository

See the main repository for build instructions and contribution guidelines.

License

Licensed under the Apache-2.0 license.

Dependencies

~23–41MB
~564K SLoC