How ganesh0324/blackchain works
Project type and purpose
• From the README (“BlackChain: A Blockchain X Social Media Initiative”) and the file tree, this is a Web3 social-media DApp:
• A Next.js/React frontend under frontend/
• On-chain Move smart contract(s) under contracts/black_contract deployed to the Sui blockchain (see sui.config.ts)
• Deployment & initialization scripts in scripts/
• No traditional backend server—UI talks directly to Sui via RPC and a wallet provider
File structure
• Top-level:
• contracts/black_contract: Move source, tests, Toml lock, and deployment artifacts
• frontend/: React/Next.js app (pages, components, hooks, lib, config)
• scripts/: TypeScript scripts (faucet.ts, initialize.ts, plus a shell publish script)
• sui.config.ts: Sui chain configuration
• Patterns:
• Frontend follows Next.js 13 App Router (app/) with React components, hooks, and CSS + Tailwind configs
• Smart-contract project using Move language and Sui-native tooling (Move.toml, Move.lock)
• Dev/deploy files:
• scripts/* for on-chain contract deployment & testnet faucet funding
• sui.config.ts for RPC endpoints, network names, and default package path
README
• Minimal README, but name and file tree strongly imply Web3 social feed on Sui
Elements
• “User Browser & Wallet Extension”
• “Wallet Provider Adapter”
• “Sui RPC Node” (external service)
• “Move Smart Contract (black_contract)”
• “Deployment Scripts / CI”
• UI → Wallet Provider → RPC Node → Smart Contract → RPC Node → UI
• Deployment Scripts → RPC Node → Smart Contract
• Blue for frontend components
• Green for blockchain on-chain elements
• Orange for external services (RPC nodes, ZK login service)