carbon-atlas-staking-decoder

Crates.iocarbon-atlas-staking-decoder
lib.rscarbon-atlas-staking-decoder
version0.12.1
created_at2025-10-14 23:00:08.146673+00
updated_at2026-01-21 22:43:33.378145+00
descriptionRust decoder for Star Atlas ATLAS staking program on Solana
homepagehttps://github.com/staratlasmeta/star-atlas-decoders
repositoryhttps://github.com/staratlasmeta/star-atlas-decoders
max_upload_size
id1883345
size155,343
Samuel Vanderwaal (samuelvanderwaal)

documentation

README

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.

Commit count: 104

cargo fmt