carbon-tcomp-decoder 0.10.0

Rust decoder for Tensor cNFT Compressed program on Solana
Documentation

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