Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 2.04 KB

README_en.md

File metadata and controls

72 lines (57 loc) · 2.04 KB

EthGoat

基于HardHat框架,在Sepolia发行一个ERC20

GitHub releaselicense

Tips

This code is just an example, do not use it directly

EthGoat ERC20合约

Based on the HardHat framework, an ERC20 is issued in Sepolia Solidity,Hardhat,Token standard,Interoperability, ERC-20

Faucets

Chainlink testnet faucet: https://faucets.chain.link Alchemy testnet faucet: https://sepoliafaucet.com/ Infura testnet faucet: https://www.infura.io/faucet/sepolia

Install Dependencies

npm install 

Deployment, default HARDHAT NETWORK

npx hardhat run scripts/deployEthGoat.js

Deploy the contract to the sepolia test network

Alchemy SELECT sepolia

npx hardhat run scripts/deployEthGoat.js --network sepolia

Contract Name

EthGoat

contract address

sepolia浏览器

env-enc

npm install --save-dev @chainlink@env-enc
npx env-enc set-pw

Verfiy the contract

https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify

npx hardhat verify --network sepolia 0xb2bdF796373ae527Cf645dc1b0b0489B7dFA65b3

Task

npx hardhat deploy_ethgoat --network sepolia
npx hardhat interact_ethgoat --network sepolia

Deploy the contract to the sepolia test network

npx hardhat run scripts/deployEthGoat.js --network sepolia

Unit Testing

mochajs chaijs.com

npx hardhat test