| Crates.io | carbon-srsly-decoder |
| lib.rs | carbon-srsly-decoder |
| version | 0.12.1 |
| created_at | 2025-10-15 16:53:20.917416+00 |
| updated_at | 2026-01-21 23:37:37.08817+00 |
| description | Rust decoder for Star Atlas Fleet Rentals (SRSLY) program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1884684 |
| size | 160,071 |
Rust decoder for the Star Atlas Fleet Rentals (SRSLY) program on Solana, generated using Carbon CLI.
SRSLY1fq9TJqCk1gNSE7VZL2bztvTn9wm4VR8u8jMKTAdd this crate to your Cargo.toml:
[dependencies]
carbon-srsly-decoder = "0.12.0"
use carbon_srsly_decoder::SrslyDecoder;
use carbon_core::account::AccountDecoder;
let decoder = SrslyDecoder;
let decoded_account = decoder.decode_account(&account);
if let Some(decoded) = decoded_account {
match decoded.data {
SrslyAccount::ContractState(contract) => {
println!("Contract State: {:?}", contract);
}
SrslyAccount::Fleet(fleet) => {
println!("Fleet: {:?}", fleet);
}
SrslyAccount::RentalState(rental) => {
println!("Rental State: {:?}", rental);
}
SrslyAccount::Thread(thread) => {
println!("Thread: {:?}", thread);
}
}
}
This decoder supports all SRSLY account types:
ContractState - Rental contract configuration and stateFleet - Fleet data for rental managementRentalState - Active rental state trackingThread - Automated payment thread dataFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.