Carbon Profile Faction Decoder
Rust decoder for the Star Atlas Profile Faction program on Solana, generated using Carbon CLI.
Program Information
- Program ID:
pFACSRuobDmvfMKq1bAzwj27t6d2GJhSCHb1VcfnRmq - Network: Solana Mainnet
- Description: Star Atlas Profile Faction program for managing player faction affiliations within the Star Atlas universe.
Features
- Decodes all Profile Faction account types
- Full instruction parsing support
- Integration with Carbon indexing framework
- Type-safe Faction enum for faction selection
Usage
Add this crate to your Cargo.toml:
[]
= "0.12.0"
Decoding Accounts
use ;
use AccountDecoder;
let decoder = ProfileFactionDecoder;
let decoded_account = decoder.decode_account;
if let Some = decoded_account
Working with Factions
The decoder includes a type-safe Faction enum:
use ;
let profile_faction: ProfileFactionAccount = /* ... */;
// Pattern match on faction
match profile_faction.faction
// Check specific faction
if profile_faction.faction == MUD
Account Types
This decoder supports the Profile Faction account type:
ProfileFactionAccount- Stores a profile's enlisted faction on-chainversion: u8- Account data versionprofile: Pubkey- The profile this faction enlistment is forfaction: Faction- The faction of the profile (type-safe enum)bump: u8- PDA bump seed
Faction Enum
The Faction enum represents the available factions in Star Atlas:
Unaligned- Faction is not selected yet (default)MUD- The MUD factionONI- The ONI factionUstur- The Ustur faction
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.