Skip to content

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

License

Notifications You must be signed in to change notification settings

jeffcail/EthGoat

Repository files navigation

EthGoat

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

GitHub releaselicense

Tips

此代码只是案例,切勿直接使用

EthGoat ERC20合约

基于HardHat框架,在Sepolia发行一个ERC20 Solidity,Hardhat,Token standard,Interoperability, ERC-20

水龙头

Chainlink 测试网水龙头:https://faucets.chain.link Alchemy 测试网水龙头:https://sepoliafaucet.com/ Infura 测试网水龙头:https://www.infura.io/faucet/sepolia

安装依赖

npm install 

部署, 默认HARDHAT NETWORK

npx hardhat run scripts/deployEthGoat.js

将合约部署到sepolia测试网络

Alchemy SELECT sepolia

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

合约名称

EthGoat

contract address

sepolia浏览器

env-enc

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

验证合约

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

npx hardhat verify --network sepolia 0xb2bdF796373ae527Cf645dc1b0b0489B7dFA65b3

测试

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

部署

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

单测

mochajs chaijs.com

npx hardhat test

·

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published