Type Alias pallet_ip_pallet::pallet::NFTContracts

source ·
pub type NFTContracts<T: Config> = StorageMap<_GeneratedPrefixForStorageNFTContracts<T>, Blake2_128Concat, T::NFTId, Vec<T::ContractId>, ValueQuery>;
Expand description

Maps NFTs to their active contracts

Provides quick lookup of all contracts (licenses/purchases) associated with an NFT. Used to enforce exclusivity rules and track contract status.

§Note

  • Returns empty Vec if no active contracts
  • Updated whenever contracts are created or completed

Storage type is [StorageMap] with key type T :: NFTId and value type Vec < T :: ContractId >.

Aliased Type§

struct NFTContracts<T: Config>(/* private fields */);