NFTopia On-Chain is the smart contract foundation of the NFTopia platform, built with Cairo v2.9.2 for the Starknet network. This repository contains all blockchain-level logic for NFT management, minting, and marketplace operations.
View Starknet Book Reference | Cairo Documentation
- NFT Core Contracts: ERC-721/ERC-1155 compatible implementations
- Minting Logic: Configurable minting workflows with royalties
- Marketplace Protocol: Secure trading with escrow mechanisms
- Upgradeability: Smart contract migration patterns
- Gas Optimization: Starknet-specific efficiency improvements
| Component | Technology |
|---|---|
| Language | Cairo v2.9.2 |
| Development Kit | Starknet Foundry |
| Testing | Starknet.js + Pytest |
| Deployment | Starknet CLI |
- Rust 1.70+
- Starknet Foundry (
snforge,sncast) - Python 3.9+ (for testing)
- Starknet wallet (ArgentX/Braavos)
- Clone the repo:
git clone https://github.com/NFTopia-Foundation/nftopia-on-chain.git cd nftopia-on-chain - Setup environment:
cp .env.example .env
- Install dependencies:
scarb build # Cairo package manager - Run tests:
snforge test
- Fork the repository
- Create your feature branch:
git checkout -b feat/your-feature- Commit changes following Conventional Commits
- Push to the branch
- Open a Pull Request