Skip to content

htr-tech/MonPaws-Monad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monpaws - DEMO ERC-20 Token for Monad Testnet

Overview

This is an ERC-20 token demo deployed on the Monad Testnet. This project provides scripts to deploy, batch transfer, and burn tokens using Hardhat.

Requirements

Before using this project, ensure you have the following installed:

  • Node.js (v16 or later)
  • A Monad Testnet wallet with testnet funds

Installation

  1. Clone this repository:
    git clone https://github.com/htr-tech/MonPaws-Monad.git
    cd MonPaws-Monad
  2. Install dependencies:
    npm install
  3. Configure environment variables:
    • There is an .env file in the project root.
    • Add your wallet private key in the variables:
      PRIVATE_KEY=0x...

Usage

1. Compile the Token Contract

Run the following command to compile the contract:

npm run compile

2. Deploy the Token

To deploy the token to the Monad Testnet:

npm run mint

After deployment, the contract address will be saved in the .env file.

3. Burn Tokens

Burn a specified amount of tokens:

npm run burn

You will be prompted to enter the amount of tokens to burn.

4. Airdrop Tokens (Batch Transfer)

Batch transfer tokens to multiple addresses specified in airdrop.txt:

npm run drop

Format airdrop.txt as follows:

0xRecipientAddress1, amount1
0xRecipientAddress2, amount2

Credits: Monad Docs

About

An ERC-20 Token Demo for Monad Testnet

Resources

Stars

Watchers

Forks

Contributors