#solana-carbon #solana #star-atlas

carbon-marketplace-decoder

Rust decoder for Star Atlas Galactic Marketplace program on Solana

2 releases

Uses new Rust 2024

0.10.1 Oct 21, 2025
0.10.0 Oct 14, 2025

#1922 in Encoding

Download history 158/week @ 2025-10-11 171/week @ 2025-10-18 72/week @ 2025-10-25 63/week @ 2025-11-01 56/week @ 2025-11-08

377 downloads per month

Apache-2.0

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 calculations
  • FeeReduction - Fee reduction configurations
  • MarketVars - Global marketplace variables and settings
  • OpenOrdersCounter - Counter for tracking open orders
  • OrderAccount - Individual buy/sell order accounts
  • RegisteredCurrency - 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