Skip to content

derryld3/erc20-faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ERC20 Token Faucet Website

A simple static website for interacting with an ERC20 token faucet smart contract. This website allows users to:

  • Request tokens from the faucet
  • Contribute tokens to the faucet
  • View cooldown periods and next drip time
  • Access admin functions (for contract owner only)

Setup

  1. Deploy your ERC20 Faucet smart contract
  2. Open index.html and update the CONTRACT_ADDRESS constant with your deployed contract address
  3. Serve the website using any static file server

Features

  • Connect wallet using MetaMask
  • Request tokens (respects cooldown period)
  • Contribute tokens to the faucet
  • View contract information:
    • Contract address
    • Token address
    • Connected wallet
    • Current drip amount
    • Cooldown period
    • Time until next drip
  • Admin functions (owner only):
    • Update drip amount
    • Update cooldown period
    • Withdraw tokens

Requirements

  • MetaMask or Web3-compatible wallet
  • Modern web browser
  • Internet connection

Usage

  1. Connect your wallet using the "Connect Wallet" button
  2. Request tokens using the "Request Tokens" button (subject to cooldown)
  3. To contribute tokens, enter the amount and click "Contribute"
  4. Admin functions are only accessible to the contract owner

Technical Details

  • Built with plain HTML and JavaScript
  • Uses ethers.js for Web3 interactions
  • No build process required
  • Fully static deployment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages