carbon-locked-voter-decoder

Crates.iocarbon-locked-voter-decoder
lib.rscarbon-locked-voter-decoder
version0.12.1
created_at2025-10-14 23:00:08.806253+00
updated_at2026-01-21 22:50:07.935779+00
descriptionRust decoder for Star Atlas Locked Voter governance program on Solana
homepagehttps://github.com/staratlasmeta/star-atlas-decoders
repositoryhttps://github.com/staratlasmeta/star-atlas-decoders
max_upload_size
id1883346
size174,019
Samuel Vanderwaal (samuelvanderwaal)

documentation

README

Carbon Locked Voter Decoder

Rust decoder for the Star Atlas Locked Voter governance program on Solana, generated using Carbon CLI.

Program Information

  • Program ID: Lock7kBijGCQLEFAmXcengzXKA88iDNQPriQ7TbgeyG
  • Network: Solana Mainnet
  • Description: Star Atlas POLIS governance and voting program with token locking, escrow management, and whitelist controls for DAO participation.

Features

  • Decodes all Locked Voter account types
  • Full instruction parsing support
  • Integration with Carbon indexing framework
  • Support for escrows, lockers, and governance voting

Usage

Add this crate to your Cargo.toml:

[dependencies]
carbon-locked-voter-decoder = "0.12.0"

Decoding Accounts

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
        _ => {}
    }
}

Account Types

This decoder supports Locked Voter account types including:

  • Locker - Token locking configuration
  • Escrow - User token escrow accounts
  • LockerWhitelistEntry - Whitelist management
  • And more...

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