carbon-marketplace-decoder 0.12.1

Rust decoder for Star Atlas Galactic Marketplace program on Solana
Documentation

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.12.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.