carbon-atlas-staking-decoder 0.12.1

Rust decoder for Star Atlas ATLAS staking program on Solana
Documentation

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.