2 releases
Uses new Rust 2024
| 0.10.1 | Oct 21, 2025 |
|---|---|
| 0.10.0 | Oct 14, 2025 |
#1922 in Encoding
377 downloads per month
52KB
1K
SLoC
Carbon Marketplace Decoder
Rust decoder for the Star Atlas Galactic Marketplace program on Solana, generated using Carbon CLI.
Program Information
- Program ID:
traderDnaR5w6Tcoi3NFm53i48FTDNbGjBSZwWXDRrg - Network: Solana Mainnet
- Description: Star Atlas Galactic Marketplace program for NFT trading with order books, currency management, and royalty distribution.
Features
- Decodes all Marketplace account types
- Full instruction parsing support
- Integration with Carbon indexing framework
- Support for orders, currencies, and marketplace configuration
Usage
Add this crate to your Cargo.toml:
[dependencies]
carbon-marketplace-decoder = "0.10.0"
Decoding Accounts
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
_ => {}
}
}
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 trading
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.
Dependencies
~24–39MB
~565K SLoC