This is a minimal viable product (MVP) for a decentralized marketplace built on the Tari network. It mimics the core functionality of platforms like Etsy, but for digital assets represented as Tari Digital Assets (TDAs) and transacted in XTR.
tari-marketplace-mvp/
├── smart_contract/ # Rust smart contract using Tari DAN Template
│ └── marketplace_template.rs
├── indexing_service/ # Rust backend with PostgreSQL for indexing and API
│ ├── Cargo.toml
│ └── src/
│ └── main.rs
├── frontend/ # React web frontend
│ ├── package.json
│ └── src/
│ ├── App.js
│ └── App.css
- Listing creation, purchase, cancellation
- Atomic TDA transfers
- Platform fee support
- Events for indexer
- Wallet connection (mocked)
- Browse listings
- Create listing
- View listing details
- Purchase flow
- Listens to Tari DAN events (simulated)
- Stores listing data
- Serves JSON API via Warp
Build and deploy to Tari Layer 2 (DAN)
Requires:
- Tari template SDK
- Rust toolchain
cd smart_contract
# Build & deploy instructions based on Tari SDK documentation
Rust backend with PostgreSQL
- Rust
- PostgreSQL
cd indexing_service
cargo run- Node.js + npm
cd frontend
npm install
npm start- Wallet: Uses
mockWalletfor demo - Event Listener: Polling stub for future Tari DAN integration
- Digital assets only (TDAs)
- No minting (assumed external)
- No advanced search/filtering
- XTR only, fixed price sales
- No physical goods support
- Centralized read indexing
- Real wallet integration (Aurora, Tari.js)
- Decentralized metadata via IPFS
- Event-driven backend from Tari nodes
- Auctions, reviews, categories
- Tari DAN
- Rust, React, PostgreSQL, Warp
MIT