nft
Installation
SKILL.md
Scope This skill covers NFT development on Midnight Network. It includes the OpenZeppelin NonFungibleToken contract (ERC721-like implementation in Compact) and native Midnight token operations (shielded/unshielded). Covers minting, transfers, approvals, metadata URIs, and privacy patterns for NFTs.
Place files exactly as shown:
contracts/NonFungibleToken.compact→ OpenZeppelin base contractcontracts/MyNFT.compact→ your custom NFT contracttest/→ contract unit tests
1) Installation
Prerequisites
- Node.js v22.15+
- Compact devtools:
curl --proto '=https' --tlsv1.2 -sSf https://github.com/midnightntwrk/compact/releases/latest/download/compact-installer.sh | sh - Add to PATH:
source $HOME/.local/bin/env