mcpField
T
token-minter

token-minter

github.com/kukapayDevelopment37138 installsUpdated 25w ago
Repository

About token-minter

token-minter is a skill for creating custom ERC20 tokens, aimed at users deploying contracts to EVM networks. It guides parameter collection, Solidity generation, Foundry builds, and deployment.

Key features

  1. 01Collects token parameters
  2. 02Generates ERC20 Solidity code
  3. 03Sets up a Foundry project
  4. 04Builds and deploys contracts

Use cases

  1. 01Create a token with custom name and supply
  2. 02Build and deploy an ERC20 contract to an EVM network

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/kukapay/crypto-skills --skill token-minter

After installing, type/token-minterin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
ERC20Template.sol
references/
erc20_guide.md
scripts/
generate_contract.py

Details

From the project README

Token Minter

Overview

This skill enables users to create custom ERC20 tokens by collecting parameters, generating Solidity code, setting up a Foundry project, building the contract, and deploying to a target EVM network.

Workflow

Step 1: Collect Information

Collect the following parameters from the user:

  • Token name (e.g., "MyToken")
  • Token symbol (e.g., "MTK")
  • Decimals (default: 18)
  • Initial supply (default: 1000000)
  • Target network (default: sepolia)
Step 2: Generate ERC20 Contract

Use the provided script to generate the ERC20 contract code based on user parameters.

  • Run python scripts/generate_contract.py <name> <symbol> <decimals> <initial_supply> to generate the contract
  • The generated contract uses OpenZeppelin ERC20 standard
Step 3: Initialize Forge Project
  • Create a temporary directory under ./tmp/
  • Initialize a new Foundry project: forge init
  • Place the generated contract in src/Contract.sol
Step 4: Build Contract
  • Install dependencies: forge install OpenZeppelin/openzeppelin-contracts
  • Build the contract: forge build
Step 5: Deploy to Network
  • Ensure a local cast wallet is created (prerequisite)
  • Get RPC URL for target network from https://chainlist.org/rpcs.json
  • Deploy using: forge create --rpc-url <network_rpc> --account <account_name> src/Contract.sol:MyToken --constructor-args <initial_supply> --broadcast
  • Verify deployment on the target network

Prerequisites

  • Foundry installed (forge, cast commands available)
  • Local cast wallet created with cast wallet new
  • Sufficient funds on the deployment account for gas fees

Resources

scripts/
  • generate_contract.py: Python script to generate ERC20 contract code with custom parameters
references/
  • erc20_guide.md: Overview of ERC20 standard, required functions, events, and deployment considerations
assets/
  • ERC20Template.sol: Template Solidity file for ERC20 contract generation

Comments

Markdown supported