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
159 downloads per month
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 configurationStakingAccount- Individual user staking accountsStakingVars- 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