carbon-tcomp-decoder

Crates.iocarbon-tcomp-decoder
lib.rscarbon-tcomp-decoder
version0.12.1
created_at2025-10-15 16:53:52.062201+00
updated_at2026-01-21 23:38:05.636119+00
descriptionRust decoder for Tensor cNFT Compressed program on Solana
homepagehttps://github.com/staratlasmeta/star-atlas-decoders
repositoryhttps://github.com/staratlasmeta/star-atlas-decoders
max_upload_size
id1884685
size206,831
Samuel Vanderwaal (samuelvanderwaal)

documentation

README

Carbon Tcomp Decoder

Rust decoder for the Tensor cNFT Compressed program on Solana, generated using Carbon CLI.

Program Information

  • Program ID: TCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp
  • Network: Solana Mainnet
  • Description: Tensor cNFT Compressed marketplace program for trading compressed NFTs with support for listings, bids, and core asset management.

Features

  • Decodes all Tensor cNFT account types
  • Full instruction parsing support
  • Integration with Carbon indexing framework
  • Support for compressed NFT marketplace operations including listings, bids, and core asset transfers

Usage

Add this crate to your Cargo.toml:

[dependencies]
carbon-tcomp-decoder = "0.12.0"

Decoding Accounts

use carbon_tcomp_decoder::TcompDecoder;
use carbon_core::account::AccountDecoder;

let decoder = TcompDecoder;
let decoded_account = decoder.decode_account(&account);

if let Some(decoded) = decoded_account {
    match decoded.data {
        TcompAccount::ListState(list_state) => {
            println!("List State: {:?}", list_state);
        }
        TcompAccount::BidState(bid_state) => {
            println!("Bid State: {:?}", bid_state);
        }
    }
}

Account Types

This decoder supports all Tensor cNFT Compressed account types:

  • ListState - NFT listing state and configuration
  • BidState - Active bid state for NFT purchases

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.

Commit count: 104

cargo fmt