Token Launchpad and Vesting DApp on Solana
A secure token vesting smart contract built with Anchor framework and SPL Token-2022, enabling cliff-based linear vesting with PDA-secured custody.
- πͺ SPL Token-2022 - Create and manage tokens
- β° Cliff + Linear Vesting - Configurable vesting schedules
- π PDA Vault - Secure token custody
- π₯ Multi-User - Allocate to multiple beneficiaries
- π‘οΈ Anti Double-Claim - Built-in safeguards
- β Tested - Full test coverage
mintx/
βββ programs/mintx/src/
β βββ instructions/
β β βββ create_token.rs
β β βββ initialize_vesting.rs
β β βββ initialize_user_vesting.rs
β β βββ claim.rs
β βββ state/
β β βββ vesting_config.rs
β β βββ user_vesting.rs
β βββ utils/
β βββ time.rs
frontend/ # Next.js DApp
1. Create Token β 2. Initialize Vesting β 3. Assign Users β 4. Claim
Tokens
β ββββββββ Fully Vested
β ββββ/
ββββ/ Linear Release
βββββββββββββββββββββββΊ Time
β β β
Start Cliff End
- Before Cliff: No claims
- After Cliff: Linear vesting
- After End: Full unlock
anchor testCovers: token creation, vesting setup, claims (instant/partial/full), cliff enforcement, multi-user, edge cases
Contract: Solana β’ Anchor β’ Rust β’ SPL Token-2022
Frontend: Next.js β’ TypeScript β’ Solana Wallet Adapter
# Clone
git clone https://github.com/KaustubhOG/MintX
cd MintX/mintx
# Build & Test
anchor build
anchor test- PDA-based vault authority
- Time-based access control
- Safe math (overflow protection)
- Input validation
Made by @KaustubhOG β’ Star β if helpful!