A Substrate pallet implementing a complete NFT marketplace for digital collectibles called "Kitties". Each kitty is a unique non-fungible token with randomly generated DNA, ownership tracking, and marketplace functionality.
- NFT Creation: Generate unique kitties with 32-byte DNA signatures
- Ownership Management: Track and transfer ownership between accounts
- Marketplace: Set prices and trade kitties with built-in escrow
- Collection Limits: Bounded collections to prevent storage bloat
- Event System: Comprehensive event emissions for all marketplace activities
create_kitty()- Mint new kitties with unique DNAtransfer()- Transfer ownership between accountsset_price()- List kitties for sale or remove from marketbuy_kitty()- Purchase kitties with price validation
- Tracks total kitty count and individual kitty metadata
- Maps accounts to their owned kitty collections (max 100 per account)
- Stores pricing information for marketplace listings
cargo buildcargo testcargo +nightly fmt
cargo +nightly clippyBuilt with Polkadot SDK using the latest FRAME v2 architecture.