GithubHelp home page GithubHelp logo

sipalingtestnet / faucettoken-erc20 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from querylab/faucettoken-erc20

0.0 0.0 0.0 703 KB

This project is a dApp faucet that uses Ethers.js, React.js, Hardhat and Solidity to allow users to obtain free tokens through a smart contract on the Sepolia testnet.

Home Page: https://faucet-token-erc-20.vercel.app

License: MIT License

JavaScript 72.38% CSS 5.85% HTML 6.85% Solidity 14.93%

faucettoken-erc20's Introduction

FaucetToken-ERC20 ๐Ÿšฐ๐Ÿ’ฐโšก

This project consists of a dApp Faucet that uses technologies such as Ethers.js and React.js to connect to a Metamask Wallet and allow users to obtain tokens for free. Hardhat and Solidity were used to develop the smart contracts, and the Sepolia Testnet was used for testing without incurring real costs. The dApp offers an intuitive interface where users can request tokens through a faucet and perform transactions by interacting with the smart contract.

Setting Up


1. Clone the repository

2. Install dependencies

$ cd FaucetToken-ERC20
$ npm install 

3. Change variables in Files

# hardhat-contracts/hardhat.config.js
$ SEPOLIA_ALCHEMY_API_KEY
$ SEPOLIA_PRIVATE_KEY
# src/ethereum/faucet.js 
$ faucetContract
# hardhat-contracts/scripts/deployFaucet.js 
$ particlestoken

4. Deployment Solidity Contract Addresses

# Deployment Contract in folder hardhat-contracts
$ npx hardhat clean
$ npx hardhat compile
$ npx hardhat run scripts/deploy.js --network sepolia

#After deploying the particlestoken.sol replace this address in hardhat-contracts/scripts/deployFaucet.js file with the variable:

const particlestoken = await Faucet.deploy("0xD20ACA19f1018D45A0c08364246d24CA0063e946");

# Once you deploy Faucet.sol replace that contract address faucet in src/ethereum/faucet.js 

$ npx hardhat run scripts/deployFaucet.js --network sepolia

# Now you need to call the token contract in your Metamask wallet to have funds from the created token. After you get tokens now you need to send some tokens to the Faucet contract so that the contract can be fund.

5. Localhost Deployment

# Run this on Parent folder FaucetToken-ERC20

$ npm start

http://localhost:3000/

faucettoken-erc20's People

Contributors

querylab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.