A decentralized token launch platform built on Solana, featuring bonding curves, real-time trading, and seamless wallet integration. This is the frontend application for the Closed Digital ecosystem.
- π Features
- ποΈ Tech Stack
- π Quick Start
- π Project Structure
- π§ Configuration
- π‘ Key Components
- π Smart Contract Integration
- π Trading Features
- πΌοΈ Image & Metadata Handling
- π WebSocket Integration
- π± Responsive Design
- π€ Contributing
- π Contact
- π License
- Token Launch Platform: Create and launch new tokens with bonding curves
- Real-time Trading: Buy/sell tokens with live price updates
- Wallet Integration: Support for multiple Solana wallets (Phantom, Solflare, Torus, Ledger)
- Interactive Charts: TradingView charts with real-time data
- Token Discovery: Browse and filter launched tokens
- Holder Analytics: View token holder distributions and statistics
- Bonding Curve Mechanics: Automated market making with price discovery
- Early Access System: Premium access for qualified users
- Migration to Raydium: Automatic liquidity migration upon completion
- Social Features: Token chat and community interaction
- Audit Information: Security audit badges and verification
- Mobile Responsive: Full mobile optimization
- Framework: Next.js 14 (React 18)
- Styling: Tailwind CSS with custom configurations
- TypeScript: Full type safety
- State Management: React Context API
- Solana Web3.js: Blockchain interactions
- Anchor Framework: Smart contract integration
- Wallet Adapters: Multi-wallet support
- Token Program: SPL token operations
- TradingView: Advanced charting
- Pinata IPFS: Decentralized image storage
- Birdeye API: Token price and market data
- CoinGecko: SOL price feeds
- Socket.io: Real-time updates
- ESLint: Code linting
- PostCSS: CSS processing
- Yarn: Package management
- Node.js 18+
- Yarn package manager
- Solana wallet browser extension
- Clone the repository
git clone https://github.com/topsecretagent007/Closed-pumpfun-fe.git
cd Closed-pumpfun-fe- Install dependencies
yarn install- Environment Setup
Create a
.env.localfile in the root directory:
NEXT_PUBLIC_BACKEND_URL=your_backend_url
NEXT_PUBLIC_PINATA_PRIVATE_KEY=your_pinata_jwt
NEXT_PUBLIC_BIRDEYE_API_KEY=your_birdeye_key
NEXT_PUBLIC_SOLANA_RPC=your_solana_rpc_endpoint
NEXT_PUBLIC_NETWORK=mainnet # or devnet- Run the development server
yarn dev- Build for production
yarn build
yarn startThe application will be available at http://localhost:5501
src/
βββ app/ # Next.js App Router
β βββ archive/ # Token archive page
β βββ create-coin/ # Token creation page
β βββ trading/[address]/ # Trading interface
β βββ layout.tsx # Root layout
β βββ page.tsx # Homepage
βββ components/ # Reusable UI components
β βββ archive/ # Archive components
β βββ buttons/ # Button components
β βββ cards/ # Card components
β βββ creatToken/ # Token creation flow
β βββ footer/ # Footer component
β βββ header/ # Navigation header
β βββ home/ # Homepage sections
β βββ loadings/ # Loading components
β βββ modals/ # Modal dialogs
β βββ others/ # Utility components
β βββ trading/ # Trading interface
β βββ TVChart/ # TradingView integration
β βββ upload/ # File upload components
βββ config/ # Configuration files
βββ context/ # React Context
βββ contexts/ # Context providers
βββ program/ # Solana program integration
βββ provider/ # App providers
βββ utils/ # Utility functions
The app supports both mainnet and devnet. Configure in .env.local:
NEXT_PUBLIC_NETWORK=mainnet # or devnet
NEXT_PUBLIC_SOLANA_RPC=https://api.mainnet-beta.solana.comSupported wallets are configured in src/contexts/SolanaWalletProvider.tsx:
- Phantom Wallet
- Solflare Wallet
- Torus Wallet
- Ledger Wallet
TradingView charts are configured with:
- Custom datafeed for token price data
- Real-time WebSocket updates
- Multiple timeframe support
- Technical indicators
- SnoopDoggToken: Featured token showcase
- Tokenomics: Platform tokenomics explanation
- Moment: Key moments and milestones
- EarlyAccess: Early access signup
- Conversation: Community features
- CreateTokenBtn: Token creation CTA
- TradingChart: TradingView integration
- TradeForm: Buy/sell interface
- Holder: Token holder analytics
- Chatting: Real-time chat
- SubmitToken: Token creation form
- ImageUpload: IPFS image upload
- TokenSubmission: Creation confirmation
The platform integrates with a custom Solana program (src/program/pumpfun.ts) featuring:
- Launch: Create new tokens with bonding curves
- Swap: Buy/sell tokens through bonding curve
- Migrate: Graduate tokens to Raydium AMM
- Configure: Admin configuration management
launch: Deploy new token with metadataswap: Execute token tradesmigrate: Move to external AMMsimulateSwap: Preview trade outcomes
- Linear bonding curve with configurable parameters
- Automatic price discovery based on supply
- Fee structure for platform sustainability
- Migration trigger at curve completion
- Live Price Updates: WebSocket-based price feeds
- Slippage Protection: Configurable slippage tolerance
- Trade History: Complete transaction history
- Order Book: Real-time market depth
- TradingView Integration: Professional charting tools
- Multiple Timeframes: 1m, 5m, 15m, 1h, 4h, 1d
- Technical Indicators: Moving averages, RSI, MACD
- Volume Analysis: Trading volume visualization
- Token Holdings: Real-time balance tracking
- P&L Tracking: Profit/loss calculations
- Transaction History: Detailed trade records
- Pinata Service: Decentralized image storage
- Metadata Standards: Metaplex token metadata
- Image Optimization: Automatic resizing and compression
- Image validation and processing
- IPFS upload via Pinata
- Metadata JSON creation
- On-chain metadata account creation
- Price Updates: Live token price streams
- New Token Alerts: Instant launch notifications
- Trade Notifications: Real-time trade updates
- Chat Messages: Live community chat
// WebSocket connection setup
const socket = io(BACKEND_URL, {
transports: ['websocket'],
upgrade: true
});/* Custom Tailwind breakpoints */
'4xs': '280px',
'3.5xs': '320px',
'3xs': '375px',
'2xs': '414px',
xs: '520px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px'- Touch-friendly interfaces
- Responsive charts and tables
- Optimized wallet connection flow
- Gesture-based navigation
# Development
yarn dev # Start development server
# Building
yarn build # Build for production
yarn start # Start production server
# Code Quality
yarn lint # Run ESLint
yarn lint:fix # Fix ESLint issues
# Testing
yarn test # Run test suiteWe welcome contributions to the Closed PumpFun Frontend! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Use Tailwind CSS for styling
- Maintain responsive design principles
- Write comprehensive tests
- Document new features
- Use meaningful variable names
- Add comments for complex logic
- Follow React hooks best practices
- Implement proper error handling
Developer: topsecretagent007
- Telegram: @topsecretagent_007
- Twitter: @lendon1114
- Email: lendonbracewell1114@gmail.com
- GitHub: @topsecretagent007
The platform has been audited by leading security firms:
- Halborn: Smart contract security audit
- OtterSec: Infrastructure security review
- Sec3: Code quality assessment
- Oak Security: DeFi protocol audit
- β Core trading functionality
- β Wallet integration
- β Basic charting
- β Token creation
- π Advanced analytics
- π Mobile app
- π Cross-chain support
- π Governance features
- π Yield farming
- π NFT integration
- π DAO governance
- π Advanced DeFi features
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by the Closed Digital team
Empowering the next generation of decentralized token launches on Solana
