| Crates.io | carbon-tcomp-decoder |
| lib.rs | carbon-tcomp-decoder |
| version | 0.12.1 |
| created_at | 2025-10-15 16:53:52.062201+00 |
| updated_at | 2026-01-21 23:38:05.636119+00 |
| description | Rust decoder for Tensor cNFT Compressed program on Solana |
| homepage | https://github.com/staratlasmeta/star-atlas-decoders |
| repository | https://github.com/staratlasmeta/star-atlas-decoders |
| max_upload_size | |
| id | 1884685 |
| size | 206,831 |
Rust decoder for the Tensor cNFT Compressed program on Solana, generated using Carbon CLI.
TCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDpAdd this crate to your Cargo.toml:
[dependencies]
carbon-tcomp-decoder = "0.12.0"
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);
}
}
}
This decoder supports all Tensor cNFT Compressed account types:
ListState - NFT listing state and configurationBidState - Active bid state for NFT purchasesFull documentation is available at docs.rs.
See the main repository for build instructions and contribution guidelines.
Licensed under the Apache-2.0 license.