TokenVesting Pro - Ethereum Token Vesting Script
TokenVesting Pro - Ethereum Token Vesting Script
Description
Professional Token Vesting Platform with Multi-Schedule Support
What is TokenVesting Pro?
TokenVesting Pro is a production-ready vesting solution for Ethereum-based projects.
Create time-locked token release schedules for team members, investors, advisors, and stakeholders.
Vesting releases tokens gradually with optional cliffs and full per-schedule control — essential for long-term incentives and project stability.
How It Works — Admins
- Deploy the vesting contract with your token address
- Fund the contract with tokens
- Create schedules for beneficiaries
- Manage: update, revoke, or pause schedules
How It Works — Beneficiaries
- Connect via MetaMask or compatible wallet
- View all assigned schedules
- Track progress with live countdowns
- Claim tokens as they vest
Key Concept: Tokens stay locked in the contract — only vested amounts are claimable.
What’s Included
| Category | Files & Features |
|---|---|
| Smart Contracts | TokenVesting.sol, TestToken.sol |
| Deployment | Hardhat config + scripts |
| Frontend | React + TypeScript, Vite |
| UI Framework | Material-UI v5 |
| Wallet Integration | Wagmi v2, Viem, WalletConnect |
| Admin Panel | Schedule management, CSV batch upload |
| User Dashboard | Claiming, progress tracking |
| Themes | Light & Dark mode |
| Documentation | Full setup, deployment, usage guide |
File Structure
TokenVestingPro/
├─ contracts/
│ ├─ TokenVesting.sol
│ └─ TestToken.sol
├─ src/
│ ├─ components/
│ │ ├─ AdminPanel.tsx
│ │ ├─ UserDashboard.tsx
│ │ ├─ CSVBatchUpload.tsx
│ │ └─ ConnectWallet.tsx
│ ├─ config/
│ ├─ theme/
│ └─ utils/
├─ hardhat.config.ts
├─ package.json
└─ README.md
Key Features
| Feature | Description |
|---|---|
| Cliff periods | Delay before first unlock |
| Linear vesting | Smooth daily/hourly releases |
| Multiple schedules per address | Flexible allocations |
| Revocable schedules | Cancel unvested tokens |
| Pause/Unpause | Emergency control |
| CSV batch upload | Create 100s of schedules instantly |
| Live countdowns & progress | Real-time UX |
| Responsive UI | Mobile-first, dark/light |
| Wallet support | MetaMask, WalletConnect, Coinbase |
| OpenZeppelin security | Ownable, Pausable, ReentrancyGuard |
Smart Contract Functions
Admin
createVestingSchedulecreateVestingSchedulesBatchrevokeVestingScheduleupdateVestingSchedulepause()/unpause()emergencyWithdraw
Public
claimclaimAllgetClaimableAmountgetTotalClaimableAmountgetVestingSchedulesgetContractStats
Technical Stack
| Layer | Technology |
|---|---|
| Smart Contracts | Solidity 0.8.20, Hardhat, OpenZeppelin |
| Frontend | React 18, TypeScript, Vite |
| UI | Material-UI v5 |
| Blockchain | Wagmi v2, Viem |
| Wallet | WalletConnect, MetaMask |
| Utils | DayJS, CSV Parser |
Networks Supported
- Ethereum Mainnet
- Sepolia Testnet
- Any EVM chain (configurable)
Vesting Schedule Example
| Parameter | Value |
|---|---|
| Total Amount | 10,000 tokens |
| Start Time | Jan 1, 2025 |
| Cliff | 180 days |
| Duration | 720 days (linear) |
| Revocable | Yes |
Timeline:
- Day 0–180: Cliff → 0 claimable
- Day 180: Cliff ends → first unlock
- Day 180–900: Linear daily unlocks
- Day 900: Fully vested
Common Use Cases
| Use Case | Typical Setup |
|---|---|
| Team allocations | 2–4 yrs, 1-yr cliff |
| Investor locks | By round, tiered cliffs |
| Advisor compensation | 6–12 months, linear |
| Community rewards | Time-based airdrops |
| Partnership milestones | Revocable on conditions |
| Employee packages | Monthly vesting |
Quick Start
npm install
# .env (Backend)
PRIVATE_KEY=your_private_key_here
SEPOLIA_RPC_URL=your_rpc_url
npx hardhat run scripts/deploy.js --network sepolia
# Frontend .env
VITE_TOKEN_ADDRESS=0x...
VITE_VESTING_ADDRESS=0x...
VITE_WALLETCONNECT_PROJECT_ID=your_project_id
npm run dev
Security & Customization
| Feature | Implementation |
|---|---|
| OpenZeppelin | Ownable, Pausable, ReentrancyGuard |
| SafeERC20 | Secure token handling |
| Event Logging | Full audit trail |
| Theme Colors | Edit src/theme/colors.ts |
| Network Config | src/config/wagmi.ts |
Requirements
- Node.js 16+, npm/yarn
- MetaMask or compatible wallet
- ETH for gas (testnet or mainnet)
- Basic Ethereum & smart contract knowledge
What You Get
- Complete source code (contracts + frontend)
- Deployment scripts & config
- Full documentation & guides
- CSV batch upload template
- Production-ready setup
License & Usage Rights
- Full commercial rights to use, modify, deploy
- Unlimited projects, rebrand/white-label
Restriction: Reselling or redistributing the source code is not permitted.
Deploy professional vesting in minutes. Build trust with transparency.
Disclaimer: Web3.Market is a marketplace platform that facilitates the sale of digital products between independent sellers and buyers. We do not develop, endorse, or guarantee any product listed on this platform. All products are provided by third-party sellers and are sold "as is." Web3.Market assumes no responsibility or liability for the functionality, security, legality, or any use or misuse of products purchased through this platform. Buyers are solely responsible for evaluating the suitability of any product for their intended purpose and for ensuring compliance with all applicable laws and regulations. By purchasing, you acknowledge that Web3.Market shall not be held liable for any direct, indirect, incidental, or consequential damages arising from the use of any product.
One-time payment • Lifetime access
Product Info
RPC Providers
Need a reliable RPC endpoint for your dApp? Get started with these trusted providers: