169 lines
3.6 KiB
Markdown
169 lines
3.6 KiB
Markdown
# ๐ LaunchPaw - Token Launch Platform
|
|
|
|
LaunchPaw is a decentralized platform built on EduChain that enables users to create, launch, and trade tokens with an automated bonding curve mechanism.
|
|
|
|
## โจ Features
|
|
|
|
* **๐ซ Bonding Curve Mechanism**
|
|
* Dynamic pricing based on supply and demand
|
|
* Fair token distribution
|
|
* Automated price discovery
|
|
|
|
* **๐ง Liquidity Management**
|
|
* Automated liquidity pool creation
|
|
* Built-in reward system for liquidity providers
|
|
* Efficient token swapping
|
|
|
|
* **๐ Security Features**
|
|
* Verified smart contracts
|
|
* Automated security checks
|
|
* Transparent token mechanics
|
|
|
|
* **๐ User Dashboard**
|
|
* Portfolio tracking
|
|
* Transaction history
|
|
* Performance analytics
|
|
|
|
## ๐ ๏ธ Technical Stack
|
|
|
|
* **Frontend**
|
|
* React + TypeScript
|
|
* Tailwind CSS
|
|
* Framer Motion
|
|
* wagmi/viem
|
|
* ethers.js
|
|
|
|
* **Smart Contracts**
|
|
* Solidity
|
|
* Hardhat
|
|
* OpenZeppelin
|
|
|
|
## ๐ Getting Started
|
|
|
|
### Prerequisites
|
|
|
|
```bash
|
|
node.js >= 16.0.0
|
|
npm or yarn
|
|
```
|
|
|
|
### Installation
|
|
|
|
1. Clone the repository:
|
|
```bash
|
|
git clone https://github.com/arhansuba/launchpaw.git
|
|
cd launchpaw
|
|
```
|
|
|
|
2. Install dependencies:
|
|
```bash
|
|
# Install frontend dependencies
|
|
cd src
|
|
npm install
|
|
|
|
# Install contract dependencies
|
|
cd contracts
|
|
npm install
|
|
```
|
|
|
|
3. Set up environment variables:
|
|
```bash
|
|
cp .env.example .env
|
|
```
|
|
|
|
4. Start local development:
|
|
```bash
|
|
# Start local hardhat node
|
|
npx hardhat node
|
|
|
|
# Deploy contracts
|
|
npx hardhat run scripts/deploy.js --network localhost
|
|
|
|
# Start frontend
|
|
npm run dev
|
|
```
|
|
|
|
## ๐ Project Structure
|
|
|
|
```
|
|
LaunchPaw/
|
|
โโโ src/ # Frontend application
|
|
โ โโโ components/ # Reusable components
|
|
โ โโโ pages/ # Page components
|
|
โ โโโ hooks/ # Custom React hooks
|
|
โ โโโ config/ # Configuration files
|
|
โ โโโ utils/ # Utility functions
|
|
โ
|
|
โโโ contracts/ # Smart contracts
|
|
โ โโโ contracts/ # Contract source files
|
|
โ โโโ scripts/ # Deployment scripts
|
|
โ โโโ test/ # Contract tests
|
|
```
|
|
|
|
## ๐ง Configuration
|
|
|
|
1. Configure your network in `src/config/chains.ts`
|
|
2. Update contract addresses in `src/config/contracts.ts`
|
|
3. Configure hardhat settings in `contracts/hardhat.config.js`
|
|
|
|
## ๐งช Testing
|
|
|
|
```bash
|
|
# Run contract tests
|
|
cd contracts
|
|
npx hardhat test
|
|
|
|
# Run frontend tests
|
|
cd src
|
|
npm test
|
|
```
|
|
|
|
## ๐ Deployment
|
|
|
|
1. Deploy contracts:
|
|
```bash
|
|
cd contracts
|
|
npx hardhat run scripts/deploy.js --network educhain
|
|
```
|
|
|
|
2. Build frontend:
|
|
```bash
|
|
cd src
|
|
npm run build
|
|
```
|
|
|
|
## ๐ Smart Contract Documentation
|
|
|
|
Key contracts:
|
|
- `TokenFactory.sol`: Main factory for token creation
|
|
- `NativeLiquidityPool.sol`: Handles liquidity and swaps
|
|
- `BondingCurve.sol`: Implements bonding curve mechanics
|
|
|
|
## ๐ค Contributing
|
|
|
|
1. Fork the repository
|
|
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
|
|
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
|
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
|
5. Open a Pull Request
|
|
|
|
## ๐ License
|
|
|
|
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|
|
|
|
## ๐ Acknowledgments
|
|
|
|
- Built for the EduChain Hackathon
|
|
- Inspired by innovative DeFi platforms
|
|
- Uses OpenZeppelin contracts for security
|
|
|
|
## ๐ Support
|
|
|
|
For support and questions, please open an issue in the GitHub repository or contact the team at [your contact info].
|
|
|
|
## ๐ฎ Future Roadmap
|
|
|
|
- [ ] Enhanced analytics dashboard
|
|
- [ ] Additional token features
|
|
- [ ] Advanced trading tools
|
|
- [ ] Mobile app development |