| Crates.io | carbon-locked-voter-decoder |
| lib.rs | carbon-locked-voter-decoder |
| version | 0.12.1 |
| created_at | 2025-10-14 23:00:08.806253+00 |
| updated_at | 2026-01-21 22:50:07.935779+00 |
| description | Rust decoder for Star Atlas Locked Voter governance program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1883346 |
| size | 174,019 |
Rust decoder for the Star Atlas Locked Voter governance program on Solana, generated using Carbon CLI.
Lock7kBijGCQLEFAmXcengzXKA88iDNQPriQ7TbgeyGAdd this crate to your Cargo.toml:
[dependencies]
carbon-locked-voter-decoder = "0.12.0"
use carbon_locked_voter_decoder::LockedVoterDecoder;
use carbon_core::account::AccountDecoder;
let decoder = LockedVoterDecoder;
let decoded_account = decoder.decode_account(&account);
if let Some(decoded) = decoded_account {
match decoded.data {
LockedVoterAccount::Locker(locker) => {
println!("Locker: {:?}", locker);
}
LockedVoterAccount::Escrow(escrow) => {
println!("Escrow: {:?}", escrow);
}
// ... handle other account types
_ => {}
}
}
This decoder supports Locked Voter account types including:
Locker - Token locking configurationEscrow - User token escrow accountsLockerWhitelistEntry - Whitelist managementFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.