| Crates.io | carbon-marketplace-decoder |
| lib.rs | carbon-marketplace-decoder |
| version | 0.12.1 |
| created_at | 2025-10-14 23:00:09.185176+00 |
| updated_at | 2026-01-21 22:51:13.624215+00 |
| description | Rust decoder for Star Atlas Galactic Marketplace program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1883347 |
| size | 188,738 |
Rust decoder for the Star Atlas Galactic Marketplace program on Solana, generated using Carbon CLI.
traderDnaR5w6Tcoi3NFm53i48FTDNbGjBSZwWXDRrgAdd this crate to your Cargo.toml:
[dependencies]
carbon-marketplace-decoder = "0.12.0"
use carbon_marketplace_decoder::MarketplaceDecoder;
use carbon_core::account::AccountDecoder;
let decoder = MarketplaceDecoder;
let decoded_account = decoder.decode_account(&account);
if let Some(decoded) = decoded_account {
match decoded.data {
MarketplaceAccount::MarketVars(vars) => {
println!("Market Variables: {:?}", vars);
}
MarketplaceAccount::OrderAccount(order) => {
println!("Order Account: {:?}", order);
}
MarketplaceAccount::RegisteredCurrency(currency) => {
println!("Registered Currency: {:?}", currency);
}
// ... handle other account types
_ => {}
}
}
This decoder supports all Marketplace account types:
AtlasRateAccount - ATLAS rate tracking for fee calculationsFeeReduction - Fee reduction configurationsMarketVars - Global marketplace variables and settingsOpenOrdersCounter - Counter for tracking open ordersOrderAccount - Individual buy/sell order accountsRegisteredCurrency - Registered currencies for tradingFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.