1 unstable release
Uses new Rust 2024
| 0.10.0 | Oct 15, 2025 |
|---|
#12 in #solana-carbon
314 downloads per month
68KB
1.5K
SLoC
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 configurationBidState- 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.
Dependencies
~24–40MB
~580K SLoC