ZenithLedger is a next-generation decentralized NFT marketplace on Stacks, designed for creators, collectors, and teams seeking flexible minting, transparent trading, and Bitcoin-secured settlement at the peak of innovation.
- Creator-first minting with SIP-009 NFTs, metadata control, and royalties
- Multi-mode trading including fixed-price listings, offers, and auctions
- Bundle sales for drops, collections, and multi-asset deals
- Escrow-backed settlement to keep buyers and sellers protected
- Clear auditability through Clarity smart contracts and on-chain history
contracts/: Clarity smart contracts for NFTs, marketplace, and treasuryfrontend/: Next.js frontend experiencetests/: Clarinet and Vitest coverage for contractsdeployments/: Example deployment plans for mainnet and devnet
- Clarinet
- Node.js v18+
git clone https://github.com/doej/zenith-ledger.git
cd zenith-ledger
npm install
cd frontend && npm installRun the local Stacks devnet and contract suite:
clarinet integrateLaunch the frontend:
cd frontend
npm run dev- Frontend configuration and contract addresses live in
frontend/src/lib/constants.ts - Example environment variables are in
frontend/.env.example
ZenithLedger includes comprehensive test coverage for all smart contract functionality using Clarinet SDK and Vitest.
npm test
npm test marketplace-auctions
npm test -- --watch
npm test -- --coveragetests/- Main test directorycollection-*.test.ts- Collection contract testsnft-*.test.ts- NFT contract testsmarketplace-*.test.ts- Marketplace contract testshelpers/- Shared test utilitieswrappers/- Contract wrapper functions
NFT Contract Tests
- Basic minting and transfers
- Metadata management
- Ownership verification
- Delegation mechanisms
Collection Contract Tests
- Collection creation and configuration
- Minting within collections
- Royalty configuration (0-25%)
- Access control
Marketplace Contract Tests
- Fixed-price listings
- Offers and counter-offers
- Auction mechanics (bidding, extension, settlement)
- Bundle sales (up to 10 NFTs)
- Royalty distribution
- Fee calculations
Advanced Test Scenarios
- Auction bid increments (5% minimum)
- Last-minute auction extensions
- Bundle size constraints
- Royalty enforcement on secondary sales
- Combined fee and royalty calculations
Review CONTRIBUTING.md for branching, testing, and release workflows.
MIT