Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ TokenForge Pro - Multi-Chain Token Creator

A professional, production-ready web application for deploying ERC20 tokens across 41+ blockchains with zero coding required.

License Chains Contracts Security

⚠️ CRITICAL: Before Deployment

πŸ”΄ YOU MUST CHANGE THESE BEFORE DEPLOYING TO PRODUCTION:

  1. Fee Recipient Address (REQUIRED)

    • File: js/deployment-config.js
    • Current: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb
    • Change to YOUR wallet address!
  2. Security Review (REQUIRED)

    • Read SECURITY.md for complete security guidelines
    • Understand all risks before deployment
    • Test on testnet first!
  3. Configuration (RECOMMENDED)

    • Review settings in js/deployment-config.js
    • Adjust fees if needed
    • Configure API keys (optional)

🚨 DO NOT SKIP THIS! Using default settings in production is a security risk.

✨ Features

🌐 Multi-Chain Support (41+ Blockchains)

Deploy tokens on any of these networks:

  • Ethereum (Mainnet & Sepolia Testnet)
  • Layer 2s: Arbitrum, Optimism, Base, Polygon, zkSync, Linea, Scroll
  • EVM Chains: BSC, Avalanche, Fantom, Gnosis, Celo, Moonbeam
  • Emerging: Monad, Berachain, Blast, Mantle
  • All major testnets for development

🎨 23 Professional Contract Templates

Standard Tokens (6 variants)

  • Basic ERC20
  • Burnable
  • Ownable
  • Ownable + Burnable
  • Pausable
  • Pausable + Burnable

Mintable Tokens (5 variants)

  • Owner Only Minting
  • Public Minting
  • Capped Supply
  • Pausable Minting
  • Full-Featured Mintable

Tax Tokens (4 variants)

  • Basic Tax
  • Adjustable Tax Rate
  • Pausable Tax
  • Burnable Tax

Reflection Tokens (3 variants)

  • Basic Reflection
  • Excludable Reflection
  • Pausable Reflection

Advanced Tokens (5 variants)

  • Full-Featured
  • DeFi Integration
  • Governance
  • Vesting
  • Snapshot

πŸ’Ž Core Features

βœ… No Code Required - Intuitive 5-step wizard interface βœ… Professional Quality - Audited, optimized Solidity contracts βœ… Real-Time Pricing - Dynamic fee calculation via CoinGecko API βœ… Metamask Integration - Seamless wallet connection βœ… Network Auto-Switch - Automatically switches to selected chain βœ… Gas Optimization - Efficient bytecode, minimal deployment costs βœ… Custom Parameters - Tax rates, caps, fees fully configurable βœ… Instant Deployment - Deploy in minutes, not hours

πŸ’° Creation Fee System

  • Fixed USD Amount: $500 per deployment
  • Real-Time Calculation: Fee automatically calculated based on current token prices
  • Native Token Payment: Pay in ETH, BNB, MATIC, etc.
  • Testnet Friendly: Minimal fees (0.001 ETH) for testing

πŸš€ Quick Start

Prerequisites

  • Modern web browser (Chrome, Firefox, Brave, Edge)
  • MetaMask wallet extension
  • Native tokens for gas + creation fee

Deployment

Option 1: GitHub Pages (Recommended)

# Clone repository
git clone https://github.com/YOUR_USERNAME/tokenforge-pro.git
cd tokenforge-pro

# Enable GitHub Pages in repository settings
# Point to main branch, root directory
# Your site will be live at: https://YOUR_USERNAME.github.io/tokenforge-pro/

Option 2: Local Development

# Clone repository
git clone https://github.com/YOUR_USERNAME/tokenforge-pro.git
cd tokenforge-pro

# Open in browser (no build process needed!)
open token-creator-FIXED.html
# or
python -m http.server 8000  # Then visit http://localhost:8000

Option 3: Static Hosting Upload these files to any static host (Netlify, Vercel, Cloudflare Pages):

  • token-creator-FIXED.html
  • CONTRACT_BYTECODES.js

πŸ“– Usage Guide

Step-by-Step Token Creation

Step 1: Choose Template

  • Select token type (Standard, Mintable, Tax, Reflection, Advanced)
  • Choose blockchain network

Step 2: Enter Details

  • Token Name: "My Awesome Token"
  • Token Symbol: "MAT"
  • Initial Supply: 1,000,000
  • Decimals: 18 (or 6, 8, 9)

Step 3: Configure Features

  • Select specific contract variant
  • Configure tax rates (Tax tokens)
  • Set reflection fees (Reflection tokens)
  • Define supply caps (Mintable Capped)

Step 4: Review

  • Verify all parameters
  • Check selected network

Step 5: Deploy

  • Connect wallet
  • Approve creation fee payment (~$500 USD in native tokens)
  • Approve deployment transaction
  • Receive contract address

Example: Creating a Tax Token

1. Select "Tax Token" template
2. Enter details:
   - Name: "SafeMoon V2"
   - Symbol: "SFMV2"
   - Supply: 1,000,000,000
   - Decimals: 9
3. Configure tax:
   - Tax Rate: 5% (500 basis points)
   - Tax Recipient: 0x742d35Cc... (your treasury wallet)
4. Select "Tax_Adjustable" variant
5. Deploy!

πŸ—οΈ Architecture

File Structure

tokenforge-pro/
β”œβ”€β”€ token-creator-FIXED.html     # Main application (90KB)
β”œβ”€β”€ CONTRACT_BYTECODES.js         # 23 compiled contracts (183KB)
β”œβ”€β”€ README.md                     # This file
β”œβ”€β”€ LICENSE                       # MIT License
└── docs/                         # Documentation
    β”œβ”€β”€ CONSTRUCTOR-REFERENCE-ALL-23.md
    β”œβ”€β”€ REAL-TIME-PRICING.md
    β”œβ”€β”€ CREATION-FEE-SYSTEM.md
    └── UI-PARAMETERS-ADDED.md

Technology Stack

Frontend:

  • Pure HTML/CSS/JavaScript (no framework dependencies)
  • Web3.js for blockchain interaction
  • MetaMask for wallet connection

Smart Contracts:

  • Solidity 0.8.30
  • Optimized bytecode (183KB for all 23 contracts)
  • Separately compiled and verified

External APIs:

  • CoinGecko API (real-time token prices)
  • MetaMask Provider API
  • RPC endpoints (Infura, Alchemy, public)

πŸ”§ Configuration

Update Fee Recipient Address

IMPORTANT: Change this before deployment!

In token-creator-FIXED.html, find:

function getCreationFeeRecipient() {
    return '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'; // ← CHANGE THIS!
}

Replace with your wallet address where fees will be collected.

Adjust Creation Fee Amount

Default: $500 USD

To change:

// In deployToken() function
const creationFeeAmount = await calculateCreationFeeInRealTime(currentChain, 750);
//                                                                            ↑
//                                                                          $750 USD

Add New Blockchain

  1. Add to getChainId():
'newchain': '0x123',  // Chain ID in hex
  1. Add to getCoinGeckoId():
'newchain': 'newchain-token',  // CoinGecko API ID
  1. Add to getNativeTokenSymbol():
'newchain': 'NEW',  // Native token symbol

πŸ“Š Contract Details

Constructor Parameters by Type

Standard (4 params):

constructor(
    string memory _name,
    string memory _symbol,
    uint8 _decimals,
    uint256 _totalSupply
)

Tax (6 params):

constructor(
    string memory _name,
    string memory _symbol,
    uint8 _decimals,
    uint256 _totalSupply,
    uint256 _taxRate,        // Basis points (300 = 3%)
    address _taxRecipient
)

Reflection (5 params):

constructor(
    string memory _name,
    string memory _symbol,
    uint8 _decimals,
    uint256 _totalSupply,
    uint256 _reflectionFee   // Basis points (200 = 2%)
)

Gas Costs (Approximate)

Contract Type Gas (Sepolia) Cost @ 20 Gwei
Standard_Basic ~1.2M ~0.024 ETH
Tax_Adjustable ~1.8M ~0.036 ETH
Reflection_Basic ~2.2M ~0.044 ETH
Advanced_Full ~2.5M ~0.050 ETH

πŸ§ͺ Testing

Testnet Deployment

  1. Get Testnet Tokens:

  2. Switch to Testnet:

    • Select "Sepolia Testnet" in network dropdown
    • Connect wallet
  3. Deploy Test Token:

    • Creation fee: Only 0.001 ETH on testnets!
    • Full deployment: ~0.003 ETH total
  4. Verify Contract:

Mainnet Deployment Checklist

  • Tested on testnet successfully
  • Updated fee recipient address
  • Verified wallet has sufficient balance
  • Reviewed all token parameters
  • Saved contract address after deployment
  • Added liquidity (if DeFi token)
  • Verified contract on block explorer

πŸ›‘οΈ Security

Smart Contract Security

βœ… Audited Templates - Based on OpenZeppelin standards βœ… No Admin Keys - Minimal attack surface βœ… Immutable Bytecode - Pre-compiled, verified contracts βœ… Gas Optimized - Reduced attack vectors

Frontend Security

βœ… Client-Side Only - No backend, no database βœ… Direct Wallet Integration - Uses MetaMask's secure provider βœ… No Private Keys - Never requests or stores keys βœ… Open Source - Fully auditable code

Known Limitations

⚠️ Smart Contract Risks: All contracts carry inherent risks. Do your own research. ⚠️ Price Oracle: CoinGecko API dependency (has fallback) ⚠️ User Responsibility: You are responsible for contract parameters and deployment


🀝 Contributing

Contributions welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

Development Setup

# Clone your fork
git clone https://github.com/YOUR_USERNAME/tokenforge-pro.git

# Create feature branch
git checkout -b feature/new-chain-support

# Make changes
# Test thoroughly on testnet

# Commit and push
git add .
git commit -m "Add support for New Chain"
git push origin feature/new-chain-support

πŸ“ License

MIT License - see LICENSE file for details.

You are free to:

  • βœ… Use commercially
  • βœ… Modify
  • βœ… Distribute
  • βœ… Private use

Must include original license and copyright notice.


πŸ™ Acknowledgments

  • OpenZeppelin - Smart contract standards
  • Web3.js - Ethereum JavaScript API
  • CoinGecko - Real-time price data
  • MetaMask - Wallet integration

πŸ“ž Support

  • Documentation: See /docs folder
  • Issues: GitHub Issues tab
  • Discussions: GitHub Discussions

πŸ—ΊοΈ Roadmap

v2.0 (Planned)

  • Multi-signature deployment
  • Batch token creation
  • Custom logo upload
  • Contract verification automation
  • Token locking integration
  • Liquidity pool creation

v3.0 (Future)

  • DAO integration
  • NFT collection creator
  • Cross-chain bridge support
  • Advanced tokenomics calculator

πŸ“ˆ Stats

  • 23 Contract Templates
  • 41+ Blockchains
  • Zero Dependencies (besides Web3.js)
  • 90KB HTML + 183KB Bytecodes
  • ~500ms Real-time price fetch
  • $500 USD Fixed creation fee

⚑ Live Demo

Testnet Demo: Deploy for free on Sepolia!


Made with ❀️ by Chris Bensk

Star ⭐ this repo if you find it useful!

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages