Skip to content

KaustubhOG/MintX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” MintX

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.

✨ Features

  • πŸͺ™ 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

πŸ“‚ Structure

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

πŸ”„ Flow

1. Create Token β†’ 2. Initialize Vesting β†’ 3. Assign Users β†’ 4. Claim

Vesting Model

Tokens
  β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€ Fully Vested
  β”‚    ────/
  │───/  Linear Release
  └─────────────────────► Time
    ↑    ↑           ↑
  Start Cliff      End
  • Before Cliff: No claims
  • After Cliff: Linear vesting
  • After End: Full unlock

πŸ§ͺ Testing

anchor test

Covers: token creation, vesting setup, claims (instant/partial/full), cliff enforcement, multi-user, edge cases

πŸ›  Stack

Contract: Solana β€’ Anchor β€’ Rust β€’ SPL Token-2022
Frontend: Next.js β€’ TypeScript β€’ Solana Wallet Adapter

πŸš€ Quick Start

# Clone
git clone https://github.com/KaustubhOG/MintX
cd MintX/mintx

# Build & Test
anchor build
anchor test

πŸ” Security

  • PDA-based vault authority
  • Time-based access control
  • Safe math (overflow protection)
  • Input validation

Made by @KaustubhOG β€’ Star ⭐ if helpful!

About

Token Launchpad with Vesting & Claims on Solana - Create, Lock, and Distribute Tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors